DBA Data[Home] [Help]

PACKAGE BODY: APPS.PER_SUC_UPD

Source


1 Package Body per_suc_upd as
2 /* $Header: pesucrhi.pkb 120.1 2008/02/05 07:07:45 schowdhu noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  per_suc_upd.';  -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------------< update_dml >------------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 --
15 -- Description:
16 --   This procedure controls the actual dml update logic. The processing of
17 --   this procedure is:
18 --   1) Increment the object_version_number by 1 if the object_version_number
19 --      is defined as an attribute for this entity.
20 --   2) To set and unset the g_api_dml status as required (as we are about to
21 --      perform dml).
22 --   3) To update the specified row in the schema using the primary key in
23 --      the predicates.
24 --   4) To trap any constraint violations that may have occurred.
25 --   5) To raise any other errors.
26 --
27 -- Prerequisites:
28 --   This is an internal private procedure which must be called from the upd
29 --   procedure.
30 --
31 -- In Parameters:
32 --   A Pl/Sql record structre.
33 --
34 -- Post Success:
35 --   The specified row will be updated in the schema.
36 --
37 -- Post Failure:
38 --   On the update dml failure it is important to note that we always reset the
39 --   g_api_dml status to false.
40 --   If a check, unique or parent integrity constraint violation is raised the
41 --   constraint_error procedure will be called.
42 --   If any other error is reported, the error will be raised after the
43 --   g_api_dml status is reset.
44 --
45 -- Developer Implementation Notes:
46 --   The update 'set' attribute list should be modified if any of your
47 --   attributes are not updateable.
48 --
49 -- Access Status:
50 --   Internal Row Handler Use Only.
51 --
52 -- {End Of Comments}
53 -- ----------------------------------------------------------------------------
54 Procedure update_dml(p_rec in out nocopy per_suc_shd.g_rec_type) is
55 --
56   l_proc  varchar2(72) := g_package||'update_dml';
57 --
58 Begin
59   hr_utility.set_location('Entering:'||l_proc, 5);
60   --
61   -- Increment the object version
62   --
63   p_rec.object_version_number := p_rec.object_version_number + 1;
64   --
65   per_suc_shd.g_api_dml := true;  -- Set the api dml status
66   --
67   -- Update the per_succession_planning Row
68   --
69   update per_succession_planning
70   set
71   succession_plan_id                = p_rec.succession_plan_id,
72   person_id                         = p_rec.person_id,
73   position_id                       = p_rec.position_id,
74   business_group_id                 = p_rec.business_group_id,
75   start_date                        = p_rec.start_date,
76   time_scale                        = p_rec.time_scale,
77   end_date                          = p_rec.end_date,
78   available_for_promotion           = p_rec.available_for_promotion,
79   manager_comments                  = p_rec.manager_comments,
80   object_version_number             = p_rec.object_version_number,
81   attribute_category                = p_rec.attribute_category,
82   attribute1                        = p_rec.attribute1,
83   attribute2                        = p_rec.attribute2,
84   attribute3                        = p_rec.attribute3,
85   attribute4                        = p_rec.attribute4,
86   attribute5                        = p_rec.attribute5,
87   attribute6                        = p_rec.attribute6,
88   attribute7                        = p_rec.attribute7,
89   attribute8                        = p_rec.attribute8,
90   attribute9                        = p_rec.attribute9,
91   attribute10                       = p_rec.attribute10,
92   attribute11                       = p_rec.attribute11,
93   attribute12                       = p_rec.attribute12,
94   attribute13                       = p_rec.attribute13,
95   attribute14                       = p_rec.attribute14,
96   attribute15                       = p_rec.attribute15,
97   attribute16                       = p_rec.attribute16,
98   attribute17                       = p_rec.attribute17,
99   attribute18                       = p_rec.attribute18,
100   attribute19                       = p_rec.attribute19,
101   attribute20                       = p_rec.attribute20,
102   job_id                            = p_rec.job_id,
103   successee_person_id               = p_rec.successee_person_id
104   where succession_plan_id = p_rec.succession_plan_id;
105   --
106   per_suc_shd.g_api_dml := false;   -- Unset the api dml status
107   --
108   hr_utility.set_location(' Leaving:'||l_proc, 10);
109 --
110 Exception
111   When hr_api.check_integrity_violated Then
112     -- A check constraint has been violated
113     per_suc_shd.g_api_dml := false;   -- Unset the api dml status
114     per_suc_shd.constraint_error
115       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
116   When hr_api.parent_integrity_violated Then
117     -- Parent integrity has been violated
118     per_suc_shd.g_api_dml := false;   -- Unset the api dml status
119     per_suc_shd.constraint_error
120       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
121   When hr_api.unique_integrity_violated Then
122     -- Unique integrity has been violated
123     per_suc_shd.g_api_dml := false;   -- Unset the api dml status
124     per_suc_shd.constraint_error
125       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
126   When Others Then
127     per_suc_shd.g_api_dml := false;   -- Unset the api dml status
128     Raise;
129 End update_dml;
130 --
131 -- ----------------------------------------------------------------------------
132 -- |------------------------------< pre_update >------------------------------|
133 -- ----------------------------------------------------------------------------
134 -- {Start Of Comments}
135 --
136 -- Description:
137 --   This private procedure contains any processing which is required before
138 --   the update dml.
139 --
140 -- Prerequisites:
141 --   This is an internal procedure which is called from the upd procedure.
142 --
143 -- In Parameters:
144 --   A Pl/Sql record structre.
145 --
146 -- Post Success:
147 --   Processing continues.
148 --
149 -- Post Failure:
150 --   If an error has occurred, an error message and exception will be raised
151 --   but not handled.
152 --
153 -- Developer Implementation Notes:
154 --   Any pre-processing required before the update dml is issued should be
155 --   coded within this procedure. It is important to note that any 3rd party
156 --   maintenance should be reviewed before placing in this procedure.
157 --
158 -- Access Status:
159 --   Internal Row Handler Use Only.
160 --
161 -- {End Of Comments}
162 -- ----------------------------------------------------------------------------
163 Procedure pre_update(p_rec in per_suc_shd.g_rec_type) is
164 --
165   l_proc  varchar2(72) := g_package||'pre_update';
166 --
167 Begin
168   hr_utility.set_location('Entering:'||l_proc, 5);
169   --
170   hr_utility.set_location(' Leaving:'||l_proc, 10);
171 End pre_update;
172 --
173 -- ----------------------------------------------------------------------------
174 -- |-----------------------------< post_update >------------------------------|
175 -- ----------------------------------------------------------------------------
176 -- {Start Of Comments}
177 --
178 -- Description:
179 --   This private procedure contains any processing which is required after the
180 --   update dml.
181 --
182 -- Prerequisites:
183 --   This is an internal procedure which is called from the upd procedure.
184 --
185 -- In Parameters:
186 --   A Pl/Sql record structre.
187 --
188 -- Post Success:
189 --   Processing continues.
190 --
191 -- Post Failure:
192 --   If an error has occurred, an error message and exception will be raised
193 --   but not handled.
194 --
195 -- Developer Implementation Notes:
196 --   Any post-processing required after the update dml is issued should be
197 --   coded within this procedure. It is important to note that any 3rd party
198 --   maintenance should be reviewed before placing in this procedure.
199 --
200 -- Access Status:
201 --   Internal Row Handler Use Only.
202 --
203 -- {End Of Comments}
204 -- ----------------------------------------------------------------------------
205 Procedure post_update(p_rec            in per_suc_shd.g_rec_type,
206                       p_effective_date in date) is
207 --
208   l_proc  varchar2(72) := g_package||'post_update';
209 --
210 Begin
211   hr_utility.set_location('Entering:'||l_proc, 5);
212   --
213   -- Start of Row Handler User Hook for post_update.
214   --
215   Begin
216     per_suc_rku.after_update
217       (
218       p_succession_plan_id           => p_rec.succession_plan_id,
219       p_person_id                    => p_rec.person_id,
220       p_position_id                  => p_rec.position_id,
221       p_business_group_id            => p_rec.business_group_id,
222       p_start_date                   => p_rec.start_date,
223       p_time_scale                   => p_rec.time_scale,
224       p_end_date                     => p_rec.end_date,
225       p_available_for_promotion      => p_rec.available_for_promotion,
226       p_manager_comments             => p_rec.manager_comments,
227       p_object_version_number        => p_rec.object_version_number,
228       p_attribute_category           => p_rec.attribute_category,
229       p_attribute1                   => p_rec.attribute1,
230       p_attribute2                   => p_rec.attribute2,
231       p_attribute3                   => p_rec.attribute3,
232       p_attribute4                   => p_rec.attribute4,
233       p_attribute5                   => p_rec.attribute5,
234       p_attribute6                   => p_rec.attribute6,
235       p_attribute7                   => p_rec.attribute7,
236       p_attribute8                   => p_rec.attribute8,
237       p_attribute9                   => p_rec.attribute9,
238       p_attribute10                  => p_rec.attribute10,
239       p_attribute11                  => p_rec.attribute11,
240       p_attribute12                  => p_rec.attribute12,
241       p_attribute13                  => p_rec.attribute13,
242       p_attribute14                  => p_rec.attribute14,
243       p_attribute15                  => p_rec.attribute15,
244       p_attribute16                  => p_rec.attribute16,
245       p_attribute17                  => p_rec.attribute17,
246       p_attribute18                  => p_rec.attribute18,
247       p_attribute19                  => p_rec.attribute19,
248       p_attribute20                  => p_rec.attribute20,
249       p_effective_date               => p_effective_date,
250       p_job_id                       => p_rec.job_id,
251       p_successee_person_id          => p_rec.successee_person_id,
252       p_person_id_o                  => per_suc_shd.g_old_rec.person_id,
253       p_position_id_o                => per_suc_shd.g_old_rec.position_id,
254       p_business_group_id_o          => per_suc_shd.g_old_rec.business_group_id,
255       p_start_date_o                 => per_suc_shd.g_old_rec.start_date,
256       p_time_scale_o                 => per_suc_shd.g_old_rec.time_scale,
257       p_end_date_o                   => per_suc_shd.g_old_rec.end_date,
258       p_available_for_promotion_o    => per_suc_shd.g_old_rec.available_for_promotion,
259       p_manager_comments_o           => per_suc_shd.g_old_rec.manager_comments,
260       p_object_version_number_o      => per_suc_shd.g_old_rec.object_version_number,
261       p_attribute_category_o         => per_suc_shd.g_old_rec.attribute_category,
262       p_attribute1_o                 => per_suc_shd.g_old_rec.attribute1,
263       p_attribute2_o                 => per_suc_shd.g_old_rec.attribute2,
264       p_attribute3_o                 => per_suc_shd.g_old_rec.attribute3,
265       p_attribute4_o                 => per_suc_shd.g_old_rec.attribute4,
266       p_attribute5_o                 => per_suc_shd.g_old_rec.attribute5,
267       p_attribute6_o                 => per_suc_shd.g_old_rec.attribute6,
268       p_attribute7_o                 => per_suc_shd.g_old_rec.attribute7,
269       p_attribute8_o                 => per_suc_shd.g_old_rec.attribute8,
270       p_attribute9_o                 => per_suc_shd.g_old_rec.attribute9,
271       p_attribute10_o                => per_suc_shd.g_old_rec.attribute10,
272       p_attribute11_o                => per_suc_shd.g_old_rec.attribute11,
273       p_attribute12_o                => per_suc_shd.g_old_rec.attribute12,
274       p_attribute13_o                => per_suc_shd.g_old_rec.attribute13,
275       p_attribute14_o                => per_suc_shd.g_old_rec.attribute14,
276       p_attribute15_o                => per_suc_shd.g_old_rec.attribute15,
277       p_attribute16_o                => per_suc_shd.g_old_rec.attribute16,
278       p_attribute17_o                => per_suc_shd.g_old_rec.attribute17,
279       p_attribute18_o                => per_suc_shd.g_old_rec.attribute18,
280       p_attribute19_o                => per_suc_shd.g_old_rec.attribute19,
281       p_attribute20_o                => per_suc_shd.g_old_rec.attribute20,
282       p_job_id_o                     => per_suc_shd.g_old_rec.job_id,
283       p_successee_person_id_o        => per_suc_shd.g_old_rec.successee_person_id
284       );
285   exception
286     when hr_api.cannot_find_prog_unit then
287       hr_api.cannot_find_prog_unit_error
288         (p_module_name => 'PER_SUCCESSION_PLANNING'
289         ,p_hook_type   => 'AU'
290         );
291   end;
292   --
293   -- End of Row Handler User Hook for post_update.
294   --
295   hr_utility.set_location(' Leaving:'||l_proc, 10);
296 End post_update;
297 --
298 -- ----------------------------------------------------------------------------
299 -- |-----------------------------< convert_defs >-----------------------------|
300 -- ----------------------------------------------------------------------------
301 -- {Start Of Comments}
302 --
303 -- Description:
304 --   The Convert_Defs procedure has one very important function:
305 --   It must return the record structure for the row with all system defaulted
306 --   values converted into its corresponding parameter value for update. When
307 --   we attempt to update a row through the Upd process , certain
308 --   parameters can be defaulted which enables flexibility in the calling of
309 --   the upd process (e.g. only attributes which need to be updated need to be
310 --   specified). For the upd process to determine which attributes
311 --   have NOT been specified we need to check if the parameter has a reserved
312 --   system default value. Therefore, for all parameters which have a
313 --   corresponding reserved system default mechanism specified we need to
314 --   check if a system default is being used. If a system default is being
315 --   used then we convert the defaulted value into its corresponding attribute
316 --   value held in the g_old_rec data structure.
317 --
318 -- Prerequisites:
319 --   This private function can only be called from the upd process.
320 --
321 -- In Parameters:
322 --   A Pl/Sql record structre.
323 --
324 -- Post Success:
325 --   The record structure will be returned with all system defaulted parameter
326 --   values converted into its current row attribute value.
327 --
328 -- Post Failure:
329 --   No direct error handling is required within this function. Any possible
330 --   errors within this procedure will be a PL/SQL value error due to conversion
331 
332 --   of datatypes or data lengths.
333 --
334 -- Developer Implementation Notes:
335 --   None.
336 --
337 -- Access Status:
338 --   Internal Row Handler Use Only.
339 --
340 -- {End Of Comments}
341 -- ----------------------------------------------------------------------------
342 Procedure convert_defs(p_rec in out nocopy per_suc_shd.g_rec_type) is
343 --
344   l_proc  varchar2(72) := g_package||'convert_defs';
345 --
346 Begin
347   --
348   hr_utility.set_location('Entering:'||l_proc, 5);
349   --
350   -- We must now examine each argument value in the
351   -- p_rec plsql record structure
352   -- to see if a system default is being used. If a system default
353   -- is being used then we must set to the 'current' argument value.
354   --
355   If (p_rec.person_id = hr_api.g_number) then
356     p_rec.person_id :=
357     per_suc_shd.g_old_rec.person_id;
358   End If;
359   If (p_rec.position_id = hr_api.g_number) then
360     p_rec.position_id :=
361     per_suc_shd.g_old_rec.position_id;
362   End If;
363   If (p_rec.business_group_id = hr_api.g_number) then
364     p_rec.business_group_id :=
365     per_suc_shd.g_old_rec.business_group_id;
366   End If;
367   If (p_rec.start_date = hr_api.g_date) then
368     p_rec.start_date :=
369     per_suc_shd.g_old_rec.start_date;
370   End If;
371   If (p_rec.time_scale = hr_api.g_varchar2) then
372     p_rec.time_scale :=
373     per_suc_shd.g_old_rec.time_scale;
374   End If;
375   If (p_rec.end_date = hr_api.g_date) then
376     p_rec.end_date :=
377     per_suc_shd.g_old_rec.end_date;
378   End If;
379   If (p_rec.available_for_promotion = hr_api.g_varchar2) then
380     p_rec.available_for_promotion :=
381     per_suc_shd.g_old_rec.available_for_promotion;
382   End If;
383   If (p_rec.manager_comments = hr_api.g_varchar2) then
384     p_rec.manager_comments :=
385     per_suc_shd.g_old_rec.manager_comments;
386   End If;
387   If (p_rec.attribute_category = hr_api.g_varchar2) then
388     p_rec.attribute_category :=
389     per_suc_shd.g_old_rec.attribute_category;
390   End If;
391   If (p_rec.attribute1 = hr_api.g_varchar2) then
392     p_rec.attribute1 :=
393     per_suc_shd.g_old_rec.attribute1;
394   End If;
395   If (p_rec.attribute2 = hr_api.g_varchar2) then
396     p_rec.attribute2 :=
397     per_suc_shd.g_old_rec.attribute2;
398   End If;
399   If (p_rec.attribute3 = hr_api.g_varchar2) then
400     p_rec.attribute3 :=
401     per_suc_shd.g_old_rec.attribute3;
402   End If;
403   If (p_rec.attribute4 = hr_api.g_varchar2) then
404     p_rec.attribute4 :=
405     per_suc_shd.g_old_rec.attribute4;
406   End If;
407   If (p_rec.attribute5 = hr_api.g_varchar2) then
408     p_rec.attribute5 :=
409     per_suc_shd.g_old_rec.attribute5;
410   End If;
411   If (p_rec.attribute6 = hr_api.g_varchar2) then
412     p_rec.attribute6 :=
413     per_suc_shd.g_old_rec.attribute6;
414   End If;
415   If (p_rec.attribute7 = hr_api.g_varchar2) then
416     p_rec.attribute7 :=
417     per_suc_shd.g_old_rec.attribute7;
418   End If;
419   If (p_rec.attribute8 = hr_api.g_varchar2) then
420     p_rec.attribute8 :=
421     per_suc_shd.g_old_rec.attribute8;
422   End If;
423   If (p_rec.attribute9 = hr_api.g_varchar2) then
424     p_rec.attribute9 :=
425     per_suc_shd.g_old_rec.attribute9;
426   End If;
427   If (p_rec.attribute10 = hr_api.g_varchar2) then
428     p_rec.attribute10 :=
429     per_suc_shd.g_old_rec.attribute10;
430   End If;
431   If (p_rec.attribute11 = hr_api.g_varchar2) then
432     p_rec.attribute11 :=
433     per_suc_shd.g_old_rec.attribute11;
434   End If;
435   If (p_rec.attribute12 = hr_api.g_varchar2) then
436     p_rec.attribute12 :=
437     per_suc_shd.g_old_rec.attribute12;
438   End If;
439   If (p_rec.attribute13 = hr_api.g_varchar2) then
440     p_rec.attribute13 :=
441     per_suc_shd.g_old_rec.attribute13;
442   End If;
443   If (p_rec.attribute14 = hr_api.g_varchar2) then
444     p_rec.attribute14 :=
445     per_suc_shd.g_old_rec.attribute14;
446   End If;
447   If (p_rec.attribute15 = hr_api.g_varchar2) then
448     p_rec.attribute15 :=
449     per_suc_shd.g_old_rec.attribute15;
450   End If;
451   If (p_rec.attribute16 = hr_api.g_varchar2) then
452     p_rec.attribute16 :=
453     per_suc_shd.g_old_rec.attribute16;
454   End If;
455   If (p_rec.attribute17 = hr_api.g_varchar2) then
456     p_rec.attribute17 :=
457     per_suc_shd.g_old_rec.attribute17;
458   End If;
459   If (p_rec.attribute18 = hr_api.g_varchar2) then
460     p_rec.attribute18 :=
461     per_suc_shd.g_old_rec.attribute18;
462   End If;
463   If (p_rec.attribute19 = hr_api.g_varchar2) then
464     p_rec.attribute19 :=
465     per_suc_shd.g_old_rec.attribute19;
466   End If;
467   If (p_rec.attribute20 = hr_api.g_varchar2) then
468     p_rec.attribute20 :=
469     per_suc_shd.g_old_rec.attribute20;
470   End If;
471      If (p_rec.job_id = hr_api.g_number) then
472       p_rec.job_id :=
473       per_suc_shd.g_old_rec.job_id;
474     End If;
475      If (p_rec.successee_person_id = hr_api.g_number) then
476       p_rec.successee_person_id :=
477       per_suc_shd.g_old_rec.successee_person_id;
478   End If;
479   --
480   hr_utility.set_location(' Leaving:'||l_proc, 10);
481 --
482 End convert_defs;
483 --
484 -- ----------------------------------------------------------------------------
485 -- |---------------------------------< upd >----------------------------------|
486 -- ----------------------------------------------------------------------------
487 Procedure upd
488   (
489   p_rec            in out nocopy per_suc_shd.g_rec_type,
490   p_effective_date in date
491   ) is
492 --
493   l_proc  varchar2(72) := g_package||'upd';
494 --
495 Begin
496   hr_utility.set_location('Entering:'||l_proc, 5);
497   --
498   -- We must lock the row which we need to update.
499   --
500   per_suc_shd.lck
501 	(
502 	p_rec.succession_plan_id,
503 	p_rec.object_version_number
504 	);
505   --
506   -- 1. During an update system defaults are used to determine if
507   --    arguments have been defaulted or not. We must therefore
508   --    derive the full record structure values to be updated.
509   --
510   -- 2. Call the supporting update validate operations.
511   --
512   convert_defs(p_rec);
513   per_suc_bus.update_validate(p_rec,p_effective_date);
514   --
515   -- Call the supporting pre-update operation
516   --
517   pre_update(p_rec);
518   --
519   -- Update the row.
520   --
521   update_dml(p_rec);
522   --
523   -- Call the supporting post-update operation
524   --
525   post_update(p_rec, p_effective_date);
526 End upd;
527 --
528 -- ----------------------------------------------------------------------------
529 -- |---------------------------------< upd >----------------------------------|
530 -- ----------------------------------------------------------------------------
531 Procedure upd
532   (
533   p_succession_plan_id           in number,
534   p_person_id                    in number           default hr_api.g_number,
535   p_position_id                  in number           default hr_api.g_number,
536   p_business_group_id            in number           default hr_api.g_number,
537   p_start_date                   in date             default hr_api.g_date,
538   p_time_scale                   in varchar2         default hr_api.g_varchar2,
539   p_end_date                     in date             default hr_api.g_date,
540   p_available_for_promotion      in varchar2         default hr_api.g_varchar2,
541   p_manager_comments             in varchar2         default hr_api.g_varchar2,
542   p_object_version_number        in out nocopy number,
543   p_attribute_category           in varchar2         default hr_api.g_varchar2,
544   p_attribute1                   in varchar2         default hr_api.g_varchar2,
545   p_attribute2                   in varchar2         default hr_api.g_varchar2,
546   p_attribute3                   in varchar2         default hr_api.g_varchar2,
547   p_attribute4                   in varchar2         default hr_api.g_varchar2,
548   p_attribute5                   in varchar2         default hr_api.g_varchar2,
549   p_attribute6                   in varchar2         default hr_api.g_varchar2,
550   p_attribute7                   in varchar2         default hr_api.g_varchar2,
551   p_attribute8                   in varchar2         default hr_api.g_varchar2,
552   p_attribute9                   in varchar2         default hr_api.g_varchar2,
553   p_attribute10                  in varchar2         default hr_api.g_varchar2,
554   p_attribute11                  in varchar2         default hr_api.g_varchar2,
555   p_attribute12                  in varchar2         default hr_api.g_varchar2,
556   p_attribute13                  in varchar2         default hr_api.g_varchar2,
557   p_attribute14                  in varchar2         default hr_api.g_varchar2,
558   p_attribute15                  in varchar2         default hr_api.g_varchar2,
559   p_attribute16                  in varchar2         default hr_api.g_varchar2,
560   p_attribute17                  in varchar2         default hr_api.g_varchar2,
561   p_attribute18                  in varchar2         default hr_api.g_varchar2,
562   p_attribute19                  in varchar2         default hr_api.g_varchar2,
563   p_attribute20                  in varchar2         default hr_api.g_varchar2,
564   p_effective_date               in date             default hr_api.g_date,
565   p_job_id                       in number           default hr_api.g_number,
566   p_successee_person_id          in number           default hr_api.g_number
567   ) is
568 --
569   l_rec	  per_suc_shd.g_rec_type;
570   l_proc  varchar2(72) := g_package||'upd';
571 --
572 Begin
573   hr_utility.set_location('Entering:'||l_proc, 5);
574   --
575   -- Call conversion function to turn arguments into the
576   -- l_rec structure.
577   --
578   l_rec :=
579   per_suc_shd.convert_args
580   (
581   p_succession_plan_id,
582   p_person_id,
583   p_position_id,
584   p_business_group_id,
585   p_start_date,
586   p_time_scale,
587   p_end_date,
588   p_available_for_promotion,
589   p_manager_comments,
590   p_object_version_number,
591   p_attribute_category,
592   p_attribute1,
593   p_attribute2,
594   p_attribute3,
595   p_attribute4,
596   p_attribute5,
597   p_attribute6,
598   p_attribute7,
599   p_attribute8,
600   p_attribute9,
601   p_attribute10,
602   p_attribute11,
603   p_attribute12,
604   p_attribute13,
605   p_attribute14,
606   p_attribute15,
607   p_attribute16,
608   p_attribute17,
609   p_attribute18,
610   p_attribute19,
611   p_attribute20,
612   p_job_id,
613   p_successee_person_id
614   );
615   --
616   -- Having converted the arguments into the
617   -- plsql record structure we call the corresponding record
618   -- business process.
619   --
620   upd(l_rec,p_effective_date);
621   p_object_version_number := l_rec.object_version_number;
622   --
623   hr_utility.set_location(' Leaving:'||l_proc, 10);
624 End upd;
625 --
626 end per_suc_upd;