DBA Data[Home] [Help]

PACKAGE BODY: APPS.IRC_IDP_UPD

Source


1 Package Body irc_idp_upd as
2 /* $Header: iridprhi.pkb 120.0.12010000.2 2008/08/05 10:49:00 ubhat ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33) := '  irc_idp_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
55   (p_rec in out nocopy irc_idp_shd.g_rec_type
56   ) is
57 --
58   l_proc  varchar2(72) := g_package||'update_dml';
59 --
60 Begin
61   hr_utility.set_location('Entering:'||l_proc, 5);
62   --
63   -- Increment the object version
64   p_rec.object_version_number := p_rec.object_version_number + 1;
65   --
66   irc_idp_shd.g_api_dml := true;  -- Set the api dml status
67   --
68   -- Update the irc_default_postings Row
69   --
70   update irc_default_postings
71     set
72      default_posting_id              = p_rec.default_posting_id
73     ,position_id                     = p_rec.position_id
74     ,job_id                          = p_rec.job_id
75     ,attribute_category              = p_rec.attribute_category
76     ,organization_id                 = p_rec.organization_id
77     ,attribute1                      = p_rec.attribute1
78     ,attribute2                      = p_rec.attribute2
79     ,attribute3                      = p_rec.attribute3
80     ,attribute4                      = p_rec.attribute4
81     ,attribute5                      = p_rec.attribute5
82     ,attribute6                      = p_rec.attribute6
83     ,attribute7                      = p_rec.attribute7
84     ,attribute8                      = p_rec.attribute8
85     ,attribute9                      = p_rec.attribute9
86     ,attribute10                     = p_rec.attribute10
87     ,attribute11                     = p_rec.attribute11
88     ,attribute12                     = p_rec.attribute12
89     ,attribute13                     = p_rec.attribute13
90     ,attribute14                     = p_rec.attribute14
91     ,attribute15                     = p_rec.attribute15
92     ,attribute16                     = p_rec.attribute16
93     ,attribute17                     = p_rec.attribute17
94     ,attribute18                     = p_rec.attribute18
95     ,attribute19                     = p_rec.attribute19
96     ,attribute20                     = p_rec.attribute20
97     ,attribute21                     = p_rec.attribute21
98     ,attribute22                     = p_rec.attribute22
99     ,attribute23                     = p_rec.attribute23
100     ,attribute24                     = p_rec.attribute24
101     ,attribute25                     = p_rec.attribute25
102     ,attribute26                     = p_rec.attribute26
103     ,attribute27                     = p_rec.attribute27
104     ,attribute28                     = p_rec.attribute28
105     ,attribute29                     = p_rec.attribute29
106     ,attribute30                     = p_rec.attribute30
107     ,object_version_number           = p_rec.object_version_number
108     where default_posting_id = p_rec.default_posting_id;
109   --
110   irc_idp_shd.g_api_dml := false;  -- Unset the api dml status
111   --
112   hr_utility.set_location(' Leaving:'||l_proc, 10);
113 --
114 Exception
115   When hr_api.check_integrity_violated Then
116     -- A check constraint has been violated
117     irc_idp_shd.g_api_dml := false;  -- Unset the api dml status
118     --
119     irc_idp_shd.constraint_error
120       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
121   When hr_api.parent_integrity_violated Then
122     -- Parent integrity has been violated
123     irc_idp_shd.g_api_dml := false;  -- Unset the api dml status
124     --
125     irc_idp_shd.constraint_error
126       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
127   When hr_api.unique_integrity_violated Then
128     -- Unique integrity has been violated
129     irc_idp_shd.g_api_dml := false;  -- Unset the api dml status
130     --
131     irc_idp_shd.constraint_error
132       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
133   When Others Then
134     irc_idp_shd.g_api_dml := false;  -- Unset the api dml status
135     --
136     Raise;
137 End update_dml;
138 --
139 -- ----------------------------------------------------------------------------
140 -- |------------------------------< pre_update >------------------------------|
141 -- ----------------------------------------------------------------------------
142 -- {Start Of Comments}
143 --
144 -- Description:
145 --   This private procedure contains any processing which is required before
146 --   the update dml.
147 --
148 -- Prerequisites:
149 --   This is an internal procedure which is called from the upd procedure.
150 --
151 -- In Parameters:
152 --   A Pl/Sql record structure.
153 --
154 -- Post Success:
155 --   Processing continues.
156 --
157 -- Post Failure:
158 --   If an error has occurred, an error message and exception wil be raised
159 --   but not handled.
160 --
161 -- Developer Implementation Notes:
162 --   Any pre-processing required before the update dml is issued should be
163 --   coded within this procedure. It is important to note that any 3rd party
164 --   maintenance should be reviewed before placing in this procedure.
165 --
166 -- Access Status:
167 --   Internal Row Handler Use Only.
168 --
169 -- {End Of Comments}
170 -- ----------------------------------------------------------------------------
171 Procedure pre_update
172   (p_rec in irc_idp_shd.g_rec_type
173   ) is
174 --
175   l_proc  varchar2(72) := g_package||'pre_update';
176 --
177 Begin
178   hr_utility.set_location('Entering:'||l_proc, 5);
179   --
180   hr_utility.set_location(' Leaving:'||l_proc, 10);
181 End pre_update;
182 --
183 -- ----------------------------------------------------------------------------
184 -- |-----------------------------< post_update >------------------------------|
185 -- ----------------------------------------------------------------------------
186 -- {Start Of Comments}
187 --
188 -- Description:
189 --   This private procedure contains any processing which is required after
190 --   the update dml.
191 --
192 -- Prerequisites:
193 --   This is an internal procedure which is called from the upd procedure.
194 --
195 -- In Parameters:
196 --   A Pl/Sql record structure.
197 --
198 -- Post Success:
199 --   Processing continues.
200 --
201 -- Post Failure:
202 --   If an error has occurred, an error message and exception will be raised
203 --   but not handled.
204 --
205 -- Developer Implementation Notes:
206 --   Any post-processing required after the update dml is issued should be
207 --   coded within this procedure. It is important to note that any 3rd party
208 --   maintenance should be reviewed before placing in this procedure.
209 --
210 -- Access Status:
211 --   Internal Row Handler Use Only.
212 --
213 -- {End Of Comments}
214 -- ----------------------------------------------------------------------------
215 Procedure post_update
216   (p_rec                          in irc_idp_shd.g_rec_type
217   ) is
218 --
219   l_proc  varchar2(72) := g_package||'post_update';
220 --
221 Begin
222   hr_utility.set_location('Entering:'||l_proc, 5);
223   begin
224     --
225     irc_idp_rku.after_update
226       (p_default_posting_id
227       => p_rec.default_posting_id
228       ,p_position_id
229       => p_rec.position_id
230       ,p_job_id
231       => p_rec.job_id
232       ,p_attribute_category
233       => p_rec.attribute_category
234       ,p_organization_id
235       => p_rec.organization_id
236       ,p_attribute1
237       => p_rec.attribute1
238       ,p_attribute2
239       => p_rec.attribute2
240       ,p_attribute3
241       => p_rec.attribute3
242       ,p_attribute4
243       => p_rec.attribute4
244       ,p_attribute5
245       => p_rec.attribute5
246       ,p_attribute6
247       => p_rec.attribute6
248       ,p_attribute7
249       => p_rec.attribute7
250       ,p_attribute8
251       => p_rec.attribute8
252       ,p_attribute9
253       => p_rec.attribute9
254       ,p_attribute10
255       => p_rec.attribute10
256       ,p_attribute11
257       => p_rec.attribute11
258       ,p_attribute12
259       => p_rec.attribute12
260       ,p_attribute13
261       => p_rec.attribute13
262       ,p_attribute14
263       => p_rec.attribute14
264       ,p_attribute15
265       => p_rec.attribute15
266       ,p_attribute16
267       => p_rec.attribute16
268       ,p_attribute17
269       => p_rec.attribute17
270       ,p_attribute18
271       => p_rec.attribute18
272       ,p_attribute19
273       => p_rec.attribute19
274       ,p_attribute20
275       => p_rec.attribute20
276       ,p_attribute21
277       => p_rec.attribute21
278       ,p_attribute22
279       => p_rec.attribute22
280       ,p_attribute23
281       => p_rec.attribute23
282       ,p_attribute24
283       => p_rec.attribute24
284       ,p_attribute25
285       => p_rec.attribute25
286       ,p_attribute26
287       => p_rec.attribute26
288       ,p_attribute27
289       => p_rec.attribute27
290       ,p_attribute28
291       => p_rec.attribute28
292       ,p_attribute29
293       => p_rec.attribute29
294       ,p_attribute30
295       => p_rec.attribute30
296       ,p_object_version_number
297       => p_rec.object_version_number
298       ,p_position_id_o
299       => irc_idp_shd.g_old_rec.position_id
300       ,p_job_id_o
301       => irc_idp_shd.g_old_rec.job_id
302       ,p_attribute_category_o
303       => irc_idp_shd.g_old_rec.attribute_category
304       ,p_organization_id_o
305       => irc_idp_shd.g_old_rec.organization_id
306       ,p_attribute1_o
307       => irc_idp_shd.g_old_rec.attribute1
308       ,p_attribute2_o
309       => irc_idp_shd.g_old_rec.attribute2
310       ,p_attribute3_o
311       => irc_idp_shd.g_old_rec.attribute3
312       ,p_attribute4_o
313       => irc_idp_shd.g_old_rec.attribute4
314       ,p_attribute5_o
315       => irc_idp_shd.g_old_rec.attribute5
316       ,p_attribute6_o
317       => irc_idp_shd.g_old_rec.attribute6
318       ,p_attribute7_o
319       => irc_idp_shd.g_old_rec.attribute7
320       ,p_attribute8_o
321       => irc_idp_shd.g_old_rec.attribute8
322       ,p_attribute9_o
323       => irc_idp_shd.g_old_rec.attribute9
324       ,p_attribute10_o
325       => irc_idp_shd.g_old_rec.attribute10
326       ,p_attribute11_o
327       => irc_idp_shd.g_old_rec.attribute11
328       ,p_attribute12_o
329       => irc_idp_shd.g_old_rec.attribute12
330       ,p_attribute13_o
331       => irc_idp_shd.g_old_rec.attribute13
332       ,p_attribute14_o
333       => irc_idp_shd.g_old_rec.attribute14
334       ,p_attribute15_o
335       => irc_idp_shd.g_old_rec.attribute15
336       ,p_attribute16_o
337       => irc_idp_shd.g_old_rec.attribute16
338       ,p_attribute17_o
339       => irc_idp_shd.g_old_rec.attribute17
340       ,p_attribute18_o
341       => irc_idp_shd.g_old_rec.attribute18
342       ,p_attribute19_o
343       => irc_idp_shd.g_old_rec.attribute19
344       ,p_attribute20_o
345       => irc_idp_shd.g_old_rec.attribute20
346       ,p_attribute21_o
347       => irc_idp_shd.g_old_rec.attribute21
348       ,p_attribute22_o
349       => irc_idp_shd.g_old_rec.attribute22
350       ,p_attribute23_o
351       => irc_idp_shd.g_old_rec.attribute23
352       ,p_attribute24_o
353       => irc_idp_shd.g_old_rec.attribute24
354       ,p_attribute25_o
355       => irc_idp_shd.g_old_rec.attribute25
356       ,p_attribute26_o
357       => irc_idp_shd.g_old_rec.attribute26
358       ,p_attribute27_o
359       => irc_idp_shd.g_old_rec.attribute27
360       ,p_attribute28_o
361       => irc_idp_shd.g_old_rec.attribute28
362       ,p_attribute29_o
363       => irc_idp_shd.g_old_rec.attribute29
364       ,p_attribute30_o
365       => irc_idp_shd.g_old_rec.attribute30
366       ,p_object_version_number_o
367       => irc_idp_shd.g_old_rec.object_version_number
368       );
369     --
370   exception
371     --
372     when hr_api.cannot_find_prog_unit then
373       --
374       hr_api.cannot_find_prog_unit_error
375         (p_module_name => 'IRC_DEFAULT_POSTINGS'
376         ,p_hook_type   => 'AU');
377       --
378   end;
379   --
380   hr_utility.set_location(' Leaving:'||l_proc, 10);
381 End post_update;
382 --
383 -- ----------------------------------------------------------------------------
384 -- |-----------------------------< convert_defs >-----------------------------|
385 -- ----------------------------------------------------------------------------
386 -- {Start Of Comments}
387 --
388 -- Description:
389 --   The Convert_Defs procedure has one very important function:
390 --   It must return the record structure for the row with all system defaulted
391 --   values converted into its corresponding parameter value for update. When
392 --   we attempt to update a row through the Upd process , certain
393 --   parameters can be defaulted which enables flexibility in the calling of
394 --   the upd process (e.g. only attributes which need to be updated need to be
395 --   specified). For the upd process to determine which attributes
396 --   have NOT been specified we need to check if the parameter has a reserved
397 --   system default value. Therefore, for all parameters which have a
398 --   corresponding reserved system default mechanism specified we need to
399 --   check if a system default is being used. If a system default is being
400 --   used then we convert the defaulted value into its corresponding attribute
401 --   value held in the g_old_rec data structure.
402 --
403 -- Prerequisites:
404 --   This private function can only be called from the upd process.
405 --
406 -- In Parameters:
407 --   A Pl/Sql record structure.
408 --
409 -- Post Success:
410 --   The record structure will be returned with all system defaulted parameter
411 --   values converted into its current row attribute value.
412 --
413 -- Post Failure:
414 --   No direct error handling is required within this function. Any possible
415 --   errors within this procedure will be a PL/SQL value error due to
416 --   conversion of datatypes or data lengths.
417 --
418 -- Developer Implementation Notes:
419 --   None.
420 --
421 -- Access Status:
422 --   Internal Row Handler Use Only.
423 --
424 -- {End Of Comments}
425 -- ----------------------------------------------------------------------------
426 Procedure convert_defs
427   (p_rec in out nocopy irc_idp_shd.g_rec_type
428   ) is
429 --
430 Begin
431   --
432   -- We must now examine each argument value in the
433   -- p_rec plsql record structure
434   -- to see if a system default is being used. If a system default
435   -- is being used then we must set to the 'current' argument value.
436   --
437   If (p_rec.position_id = hr_api.g_number) then
438     p_rec.position_id :=
439     irc_idp_shd.g_old_rec.position_id;
440   End If;
441   If (p_rec.job_id = hr_api.g_number) then
442     p_rec.job_id :=
443     irc_idp_shd.g_old_rec.job_id;
444   End If;
445   If (p_rec.attribute_category = hr_api.g_varchar2) then
446     p_rec.attribute_category :=
447     irc_idp_shd.g_old_rec.attribute_category;
448   End If;
449   If (p_rec.organization_id = hr_api.g_number) then
450     p_rec.organization_id :=
451     irc_idp_shd.g_old_rec.organization_id;
452   End If;
453   If (p_rec.attribute1 = hr_api.g_varchar2) then
454     p_rec.attribute1 :=
455     irc_idp_shd.g_old_rec.attribute1;
456   End If;
457   If (p_rec.attribute2 = hr_api.g_varchar2) then
458     p_rec.attribute2 :=
459     irc_idp_shd.g_old_rec.attribute2;
460   End If;
461   If (p_rec.attribute3 = hr_api.g_varchar2) then
462     p_rec.attribute3 :=
463     irc_idp_shd.g_old_rec.attribute3;
464   End If;
465   If (p_rec.attribute4 = hr_api.g_varchar2) then
466     p_rec.attribute4 :=
467     irc_idp_shd.g_old_rec.attribute4;
468   End If;
469   If (p_rec.attribute5 = hr_api.g_varchar2) then
470     p_rec.attribute5 :=
471     irc_idp_shd.g_old_rec.attribute5;
472   End If;
473   If (p_rec.attribute6 = hr_api.g_varchar2) then
474     p_rec.attribute6 :=
475     irc_idp_shd.g_old_rec.attribute6;
476   End If;
477   If (p_rec.attribute7 = hr_api.g_varchar2) then
478     p_rec.attribute7 :=
479     irc_idp_shd.g_old_rec.attribute7;
480   End If;
481   If (p_rec.attribute8 = hr_api.g_varchar2) then
482     p_rec.attribute8 :=
483     irc_idp_shd.g_old_rec.attribute8;
484   End If;
485   If (p_rec.attribute9 = hr_api.g_varchar2) then
486     p_rec.attribute9 :=
487     irc_idp_shd.g_old_rec.attribute9;
488   End If;
489   If (p_rec.attribute10 = hr_api.g_varchar2) then
490     p_rec.attribute10 :=
491     irc_idp_shd.g_old_rec.attribute10;
492   End If;
493   If (p_rec.attribute11 = hr_api.g_varchar2) then
494     p_rec.attribute11 :=
495     irc_idp_shd.g_old_rec.attribute11;
496   End If;
497   If (p_rec.attribute12 = hr_api.g_varchar2) then
498     p_rec.attribute12 :=
499     irc_idp_shd.g_old_rec.attribute12;
500   End If;
501   If (p_rec.attribute13 = hr_api.g_varchar2) then
502     p_rec.attribute13 :=
503     irc_idp_shd.g_old_rec.attribute13;
504   End If;
505   If (p_rec.attribute14 = hr_api.g_varchar2) then
506     p_rec.attribute14 :=
507     irc_idp_shd.g_old_rec.attribute14;
508   End If;
509   If (p_rec.attribute15 = hr_api.g_varchar2) then
510     p_rec.attribute15 :=
511     irc_idp_shd.g_old_rec.attribute15;
512   End If;
513   If (p_rec.attribute16 = hr_api.g_varchar2) then
514     p_rec.attribute16 :=
515     irc_idp_shd.g_old_rec.attribute16;
516   End If;
517   If (p_rec.attribute17 = hr_api.g_varchar2) then
518     p_rec.attribute17 :=
519     irc_idp_shd.g_old_rec.attribute17;
520   End If;
521   If (p_rec.attribute18 = hr_api.g_varchar2) then
522     p_rec.attribute18 :=
523     irc_idp_shd.g_old_rec.attribute18;
524   End If;
525   If (p_rec.attribute19 = hr_api.g_varchar2) then
526     p_rec.attribute19 :=
527     irc_idp_shd.g_old_rec.attribute19;
528   End If;
529   If (p_rec.attribute20 = hr_api.g_varchar2) then
530     p_rec.attribute20 :=
531     irc_idp_shd.g_old_rec.attribute20;
532   End If;
533   If (p_rec.attribute21 = hr_api.g_varchar2) then
534     p_rec.attribute21 :=
535     irc_idp_shd.g_old_rec.attribute21;
536   End If;
537   If (p_rec.attribute22 = hr_api.g_varchar2) then
538     p_rec.attribute22 :=
539     irc_idp_shd.g_old_rec.attribute22;
540   End If;
541   If (p_rec.attribute23 = hr_api.g_varchar2) then
542     p_rec.attribute23 :=
543     irc_idp_shd.g_old_rec.attribute23;
544   End If;
545   If (p_rec.attribute24 = hr_api.g_varchar2) then
546     p_rec.attribute24 :=
547     irc_idp_shd.g_old_rec.attribute24;
548   End If;
549   If (p_rec.attribute25 = hr_api.g_varchar2) then
550     p_rec.attribute25 :=
551     irc_idp_shd.g_old_rec.attribute25;
552   End If;
553   If (p_rec.attribute26 = hr_api.g_varchar2) then
554     p_rec.attribute26 :=
555     irc_idp_shd.g_old_rec.attribute26;
556   End If;
557   If (p_rec.attribute27 = hr_api.g_varchar2) then
558     p_rec.attribute27 :=
559     irc_idp_shd.g_old_rec.attribute27;
560   End If;
561   If (p_rec.attribute28 = hr_api.g_varchar2) then
562     p_rec.attribute28 :=
563     irc_idp_shd.g_old_rec.attribute28;
564   End If;
565   If (p_rec.attribute29 = hr_api.g_varchar2) then
566     p_rec.attribute29 :=
567     irc_idp_shd.g_old_rec.attribute29;
568   End If;
569   If (p_rec.attribute30 = hr_api.g_varchar2) then
570     p_rec.attribute30 :=
571     irc_idp_shd.g_old_rec.attribute30;
572   End If;
573   --
574 End convert_defs;
575 --
576 -- ----------------------------------------------------------------------------
577 -- |---------------------------------< upd >----------------------------------|
578 -- ----------------------------------------------------------------------------
579 Procedure upd
580   (p_rec                          in out nocopy irc_idp_shd.g_rec_type
581   ) is
582 --
583   l_proc  varchar2(72) := g_package||'upd';
584 --
585 Begin
586   hr_utility.set_location('Entering:'||l_proc, 5);
587   --
588   -- We must lock the row which we need to update.
589   --
590   irc_idp_shd.lck
591     (p_rec.default_posting_id
592     ,p_rec.object_version_number
593     );
594   --
595   -- 1. During an update system defaults are used to determine if
596   --    arguments have been defaulted or not. We must therefore
597   --    derive the full record structure values to be updated.
598   --
599   -- 2. Call the supporting update validate operations.
600   --
601   convert_defs(p_rec);
602   irc_idp_bus.update_validate
603      (p_rec
604      );
605   --
606   -- Call the supporting pre-update operation
607   --
608   irc_idp_upd.pre_update(p_rec);
609   --
610   -- Update the row.
611   --
612   irc_idp_upd.update_dml(p_rec);
613   --
614   -- Call the supporting post-update operation
615   --
616   irc_idp_upd.post_update
617      (p_rec
618      );
619 End upd;
620 --
621 -- ----------------------------------------------------------------------------
622 -- |---------------------------------< upd >----------------------------------|
623 -- ----------------------------------------------------------------------------
624 Procedure upd
625   (p_default_posting_id           in     number
626   ,p_object_version_number        in out nocopy number
627   ,p_position_id                  in     number    default hr_api.g_number
628   ,p_job_id                       in     number    default hr_api.g_number
629   ,p_organization_id              in     number    default hr_api.g_number
630   ,p_attribute_category           in     varchar2  default hr_api.g_varchar2
631   ,p_attribute1                   in     varchar2  default hr_api.g_varchar2
632   ,p_attribute2                   in     varchar2  default hr_api.g_varchar2
633   ,p_attribute3                   in     varchar2  default hr_api.g_varchar2
634   ,p_attribute4                   in     varchar2  default hr_api.g_varchar2
635   ,p_attribute5                   in     varchar2  default hr_api.g_varchar2
636   ,p_attribute6                   in     varchar2  default hr_api.g_varchar2
637   ,p_attribute7                   in     varchar2  default hr_api.g_varchar2
638   ,p_attribute8                   in     varchar2  default hr_api.g_varchar2
639   ,p_attribute9                   in     varchar2  default hr_api.g_varchar2
640   ,p_attribute10                  in     varchar2  default hr_api.g_varchar2
641   ,p_attribute11                  in     varchar2  default hr_api.g_varchar2
642   ,p_attribute12                  in     varchar2  default hr_api.g_varchar2
643   ,p_attribute13                  in     varchar2  default hr_api.g_varchar2
644   ,p_attribute14                  in     varchar2  default hr_api.g_varchar2
645   ,p_attribute15                  in     varchar2  default hr_api.g_varchar2
646   ,p_attribute16                  in     varchar2  default hr_api.g_varchar2
647   ,p_attribute17                  in     varchar2  default hr_api.g_varchar2
648   ,p_attribute18                  in     varchar2  default hr_api.g_varchar2
649   ,p_attribute19                  in     varchar2  default hr_api.g_varchar2
650   ,p_attribute20                  in     varchar2  default hr_api.g_varchar2
651   ,p_attribute21                  in     varchar2  default hr_api.g_varchar2
652   ,p_attribute22                  in     varchar2  default hr_api.g_varchar2
653   ,p_attribute23                  in     varchar2  default hr_api.g_varchar2
654   ,p_attribute24                  in     varchar2  default hr_api.g_varchar2
655   ,p_attribute25                  in     varchar2  default hr_api.g_varchar2
656   ,p_attribute26                  in     varchar2  default hr_api.g_varchar2
657   ,p_attribute27                  in     varchar2  default hr_api.g_varchar2
658   ,p_attribute28                  in     varchar2  default hr_api.g_varchar2
659   ,p_attribute29                  in     varchar2  default hr_api.g_varchar2
660   ,p_attribute30                  in     varchar2  default hr_api.g_varchar2
661   ) is
662 --
663   l_rec   irc_idp_shd.g_rec_type;
664   l_proc  varchar2(72) := g_package||'upd';
665 --
666 Begin
667   hr_utility.set_location('Entering:'||l_proc, 5);
668   --
669   -- Call conversion function to turn arguments into the
670   -- l_rec structure.
671   --
672   l_rec :=
673   irc_idp_shd.convert_args
674   (p_default_posting_id
675   ,p_position_id
676   ,p_job_id
677   ,p_attribute_category
678   ,p_organization_id
679   ,p_attribute1
680   ,p_attribute2
681   ,p_attribute3
682   ,p_attribute4
683   ,p_attribute5
684   ,p_attribute6
685   ,p_attribute7
686   ,p_attribute8
687   ,p_attribute9
688   ,p_attribute10
689   ,p_attribute11
690   ,p_attribute12
691   ,p_attribute13
692   ,p_attribute14
693   ,p_attribute15
694   ,p_attribute16
695   ,p_attribute17
696   ,p_attribute18
697   ,p_attribute19
698   ,p_attribute20
699   ,p_attribute21
700   ,p_attribute22
701   ,p_attribute23
702   ,p_attribute24
703   ,p_attribute25
704   ,p_attribute26
705   ,p_attribute27
706   ,p_attribute28
707   ,p_attribute29
708   ,p_attribute30
709   ,p_object_version_number
710   );
711   --
712   -- Having converted the arguments into the
713   -- plsql record structure we call the corresponding record
714   -- business process.
715   --
716   irc_idp_upd.upd
717      (l_rec
718      );
719   p_object_version_number := l_rec.object_version_number;
720   --
721   hr_utility.set_location(' Leaving:'||l_proc, 10);
722 End upd;
723 --
724 end irc_idp_upd;