DBA Data[Home] [Help]

PACKAGE BODY: APPS.PER_CNI_UPD

Source


1 Package Body per_cni_upd as
2 /* $Header: pecnirhi.pkb 120.0 2005/05/31 06:49 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33) := '  per_cni_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 per_cni_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   --
64   --
65   p_rec.object_version_number :=p_rec.object_version_number+1;
66   --
67   -- Update the per_ri_config_information Row
68   --
69   update per_ri_config_information
70     set
71      configuration_code              = p_rec.configuration_code
72     ,config_information_category     = p_rec.config_information_category
73     ,config_information1             = p_rec.config_information1
74     ,config_information2             = p_rec.config_information2
75     ,config_information3             = p_rec.config_information3
76     ,config_information4             = p_rec.config_information4
77     ,config_information5             = p_rec.config_information5
78     ,config_information6             = p_rec.config_information6
79     ,config_information7             = p_rec.config_information7
80     ,config_information8             = p_rec.config_information8
81     ,config_information9             = p_rec.config_information9
82     ,config_information10            = p_rec.config_information10
83     ,config_information11            = p_rec.config_information11
84     ,config_information12            = p_rec.config_information12
85     ,config_information13            = p_rec.config_information13
86     ,config_information14            = p_rec.config_information14
87     ,config_information15            = p_rec.config_information15
88     ,config_information16            = p_rec.config_information16
89     ,config_information17            = p_rec.config_information17
90     ,config_information18            = p_rec.config_information18
91     ,config_information19            = p_rec.config_information19
92     ,config_information20            = p_rec.config_information20
93     ,config_information21            = p_rec.config_information21
94     ,config_information22            = p_rec.config_information22
95     ,config_information23            = p_rec.config_information23
96     ,config_information24            = p_rec.config_information24
97     ,config_information25            = p_rec.config_information25
98     ,config_information26            = p_rec.config_information26
99     ,config_information27            = p_rec.config_information27
100     ,config_information28            = p_rec.config_information28
101     ,config_information29            = p_rec.config_information29
102     ,config_information30            = p_rec.config_information30
103     ,config_information_id           = p_rec.config_information_id
104     ,config_sequence                 = p_rec.config_sequence
105     ,object_version_number           = p_rec.object_version_number
106     where config_information_id = p_rec.config_information_id;
107   --
108   --
109   --
110   hr_utility.set_location(' Leaving:'||l_proc, 10);
111 --
112 Exception
113   When hr_api.check_integrity_violated Then
114     -- A check constraint has been violated
115     --
116     per_cni_shd.constraint_error
117       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
118   When hr_api.parent_integrity_violated Then
119     -- Parent integrity has been violated
120     --
121     per_cni_shd.constraint_error
122       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
123   When hr_api.unique_integrity_violated Then
124     -- Unique integrity has been violated
125     --
126     per_cni_shd.constraint_error
127       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
128   When Others Then
129     --
130     Raise;
131 End update_dml;
132 --
133 -- ----------------------------------------------------------------------------
134 -- |------------------------------< pre_update >------------------------------|
135 -- ----------------------------------------------------------------------------
136 -- {Start Of Comments}
137 --
138 -- Description:
139 --   This private procedure contains any processing which is required before
140 --   the update dml.
141 --
142 -- Prerequisites:
143 --   This is an internal procedure which is called from the upd procedure.
144 --
145 -- In Parameters:
146 --   A Pl/Sql record structure.
147 --
148 -- Post Success:
149 --   Processing continues.
150 --
151 -- Post Failure:
152 --   If an error has occurred, an error message and exception wil be raised
153 --   but not handled.
154 --
155 -- Developer Implementation Notes:
156 --   Any pre-processing required before the update dml is issued should be
157 --   coded within this procedure. It is important to note that any 3rd party
158 --   maintenance should be reviewed before placing in this procedure.
159 --
160 -- Access Status:
161 --   Internal Row Handler Use Only.
162 --
163 -- {End Of Comments}
164 -- ----------------------------------------------------------------------------
165 Procedure pre_update
166   (p_rec in per_cni_shd.g_rec_type
167   ) is
168 --
169   l_proc  varchar2(72) := g_package||'pre_update';
170 --
171 Begin
172   hr_utility.set_location('Entering:'||l_proc, 5);
173   --
174   hr_utility.set_location(' Leaving:'||l_proc, 10);
175 End pre_update;
176 --
177 -- ----------------------------------------------------------------------------
178 -- |-----------------------------< post_update >------------------------------|
179 -- ----------------------------------------------------------------------------
180 -- {Start Of Comments}
181 --
182 -- Description:
183 --   This private procedure contains any processing which is required after
184 --   the update dml.
185 --
186 -- Prerequisites:
187 --   This is an internal procedure which is called from the upd procedure.
188 --
189 -- In Parameters:
190 --   A Pl/Sql record structure.
191 --
192 -- Post Success:
193 --   Processing continues.
194 --
195 -- Post Failure:
196 --   If an error has occurred, an error message and exception will be raised
197 --   but not handled.
198 --
199 -- Developer Implementation Notes:
200 --   Any post-processing required after the update dml is issued should be
201 --   coded within this procedure. It is important to note that any 3rd party
202 --   maintenance should be reviewed before placing in this procedure.
203 --
204 -- Access Status:
205 --   Internal Row Handler Use Only.
206 --
207 -- {End Of Comments}
208 -- ----------------------------------------------------------------------------
209 Procedure post_update
210   (p_effective_date               in date
211   ,p_rec                          in per_cni_shd.g_rec_type
212   ) is
213 --
214   l_proc  varchar2(72) := g_package||'post_update';
215 --
216 Begin
217   hr_utility.set_location('Entering:'||l_proc, 5);
218   begin
219     --
220     per_cni_rku.after_update
221       (p_effective_date              => p_effective_date
222       ,p_configuration_code
223       => p_rec.configuration_code
224       ,p_config_information_category
225       => p_rec.config_information_category
226       ,p_config_information1
227       => p_rec.config_information1
228       ,p_config_information2
229       => p_rec.config_information2
230       ,p_config_information3
231       => p_rec.config_information3
232       ,p_config_information4
233       => p_rec.config_information4
234       ,p_config_information5
235       => p_rec.config_information5
236       ,p_config_information6
237       => p_rec.config_information6
238       ,p_config_information7
239       => p_rec.config_information7
240       ,p_config_information8
241       => p_rec.config_information8
242       ,p_config_information9
243       => p_rec.config_information9
244       ,p_config_information10
245       => p_rec.config_information10
246       ,p_config_information11
247       => p_rec.config_information11
248       ,p_config_information12
249       => p_rec.config_information12
250       ,p_config_information13
251       => p_rec.config_information13
252       ,p_config_information14
253       => p_rec.config_information14
254       ,p_config_information15
255       => p_rec.config_information15
256       ,p_config_information16
257       => p_rec.config_information16
258       ,p_config_information17
259       => p_rec.config_information17
260       ,p_config_information18
261       => p_rec.config_information18
262       ,p_config_information19
263       => p_rec.config_information19
264       ,p_config_information20
265       => p_rec.config_information20
266       ,p_config_information21
267       => p_rec.config_information21
268       ,p_config_information22
269       => p_rec.config_information22
270       ,p_config_information23
271       => p_rec.config_information23
272       ,p_config_information24
273       => p_rec.config_information24
274       ,p_config_information25
275       => p_rec.config_information25
276       ,p_config_information26
277       => p_rec.config_information26
278       ,p_config_information27
279       => p_rec.config_information27
280       ,p_config_information28
281       => p_rec.config_information28
282       ,p_config_information29
283       => p_rec.config_information29
284       ,p_config_information30
285       => p_rec.config_information30
286       ,p_config_information_id
287       => p_rec.config_information_id
288       ,p_config_sequence
289       => p_rec.config_sequence
290       ,p_configuration_code_o
291       => per_cni_shd.g_old_rec.configuration_code
292       ,p_config_information_categor_o
293       => per_cni_shd.g_old_rec.config_information_category
294       ,p_config_information1_o
295       => per_cni_shd.g_old_rec.config_information1
296       ,p_config_information2_o
297       => per_cni_shd.g_old_rec.config_information2
298       ,p_config_information3_o
299       => per_cni_shd.g_old_rec.config_information3
300       ,p_config_information4_o
301       => per_cni_shd.g_old_rec.config_information4
302       ,p_config_information5_o
303       => per_cni_shd.g_old_rec.config_information5
304       ,p_config_information6_o
305       => per_cni_shd.g_old_rec.config_information6
306       ,p_config_information7_o
307       => per_cni_shd.g_old_rec.config_information7
308       ,p_config_information8_o
309       => per_cni_shd.g_old_rec.config_information8
310       ,p_config_information9_o
311       => per_cni_shd.g_old_rec.config_information9
312       ,p_config_information10_o
313       => per_cni_shd.g_old_rec.config_information10
314       ,p_config_information11_o
315       => per_cni_shd.g_old_rec.config_information11
316       ,p_config_information12_o
317       => per_cni_shd.g_old_rec.config_information12
318       ,p_config_information13_o
319       => per_cni_shd.g_old_rec.config_information13
320       ,p_config_information14_o
321       => per_cni_shd.g_old_rec.config_information14
322       ,p_config_information15_o
323       => per_cni_shd.g_old_rec.config_information15
324       ,p_config_information16_o
325       => per_cni_shd.g_old_rec.config_information16
326       ,p_config_information17_o
327       => per_cni_shd.g_old_rec.config_information17
328       ,p_config_information18_o
329       => per_cni_shd.g_old_rec.config_information18
330       ,p_config_information19_o
331       => per_cni_shd.g_old_rec.config_information19
332       ,p_config_information20_o
333       => per_cni_shd.g_old_rec.config_information20
334       ,p_config_information21_o
335       => per_cni_shd.g_old_rec.config_information21
336       ,p_config_information22_o
337       => per_cni_shd.g_old_rec.config_information22
338       ,p_config_information23_o
339       => per_cni_shd.g_old_rec.config_information23
340       ,p_config_information24_o
341       => per_cni_shd.g_old_rec.config_information24
342       ,p_config_information25_o
343       => per_cni_shd.g_old_rec.config_information25
344       ,p_config_information26_o
345       => per_cni_shd.g_old_rec.config_information26
346       ,p_config_information27_o
347       => per_cni_shd.g_old_rec.config_information27
348       ,p_config_information28_o
349       => per_cni_shd.g_old_rec.config_information28
350       ,p_config_information29_o
351       => per_cni_shd.g_old_rec.config_information29
352       ,p_config_information30_o
353       => per_cni_shd.g_old_rec.config_information30
354       ,p_config_sequence_o
355       => per_cni_shd.g_old_rec.config_sequence
356       );
357     --
358   exception
359     --
360     when hr_api.cannot_find_prog_unit then
361       --
362       hr_api.cannot_find_prog_unit_error
363         (p_module_name => 'PER_RI_CONFIG_INFORMATION'
364         ,p_hook_type   => 'AU');
365       --
366   end;
367   --
368   hr_utility.set_location(' Leaving:'||l_proc, 10);
369 End post_update;
370 --
371 -- ----------------------------------------------------------------------------
372 -- |-----------------------------< convert_defs >-----------------------------|
373 -- ----------------------------------------------------------------------------
374 -- {Start Of Comments}
375 --
376 -- Description:
377 --   The Convert_Defs procedure has one very important function:
378 --   It must return the record structure for the row with all system defaulted
379 --   values converted into its corresponding parameter value for update. When
380 --   we attempt to update a row through the Upd process , certain
381 --   parameters can be defaulted which enables flexibility in the calling of
382 --   the upd process (e.g. only attributes which need to be updated need to be
383 --   specified). For the upd process to determine which attributes
384 --   have NOT been specified we need to check if the parameter has a reserved
385 --   system default value. Therefore, for all parameters which have a
386 --   corresponding reserved system default mechanism specified we need to
387 --   check if a system default is being used. If a system default is being
388 --   used then we convert the defaulted value into its corresponding attribute
389 --   value held in the g_old_rec data structure.
390 --
391 -- Prerequisites:
392 --   This private function can only be called from the upd process.
393 --
394 -- In Parameters:
395 --   A Pl/Sql record structure.
396 --
397 -- Post Success:
398 --   The record structure will be returned with all system defaulted parameter
399 --   values converted into its current row attribute value.
400 --
401 -- Post Failure:
402 --   No direct error handling is required within this function. Any possible
403 --   errors within this procedure will be a PL/SQL value error due to
404 --   conversion of datatypes or data lengths.
405 --
406 -- Developer Implementation Notes:
407 --   None.
408 --
409 -- Access Status:
410 --   Internal Row Handler Use Only.
411 --
412 -- {End Of Comments}
413 -- ----------------------------------------------------------------------------
414 Procedure convert_defs
415   (p_rec in out nocopy per_cni_shd.g_rec_type
416   ) is
417 --
418 Begin
419   --
420   -- We must now examine each argument value in the
421   -- p_rec plsql record structure
422   -- to see if a system default is being used. If a system default
423   -- is being used then we must set to the 'current' argument value.
424   --
425   If (p_rec.configuration_code = hr_api.g_varchar2) then
426     p_rec.configuration_code :=
427     per_cni_shd.g_old_rec.configuration_code;
428   End If;
429   If (p_rec.config_information_category = hr_api.g_varchar2) then
430     p_rec.config_information_category :=
431     per_cni_shd.g_old_rec.config_information_category;
432   End If;
433   If (p_rec.config_information1 = hr_api.g_varchar2) then
434     p_rec.config_information1 :=
435     per_cni_shd.g_old_rec.config_information1;
436   End If;
437   If (p_rec.config_information2 = hr_api.g_varchar2) then
438     p_rec.config_information2 :=
439     per_cni_shd.g_old_rec.config_information2;
440   End If;
441   If (p_rec.config_information3 = hr_api.g_varchar2) then
442     p_rec.config_information3 :=
443     per_cni_shd.g_old_rec.config_information3;
444   End If;
445   If (p_rec.config_information4 = hr_api.g_varchar2) then
446     p_rec.config_information4 :=
447     per_cni_shd.g_old_rec.config_information4;
448   End If;
449   If (p_rec.config_information5 = hr_api.g_varchar2) then
450     p_rec.config_information5 :=
451     per_cni_shd.g_old_rec.config_information5;
452   End If;
453   If (p_rec.config_information6 = hr_api.g_varchar2) then
454     p_rec.config_information6 :=
455     per_cni_shd.g_old_rec.config_information6;
456   End If;
457   If (p_rec.config_information7 = hr_api.g_varchar2) then
458     p_rec.config_information7 :=
459     per_cni_shd.g_old_rec.config_information7;
460   End If;
461   If (p_rec.config_information8 = hr_api.g_varchar2) then
462     p_rec.config_information8 :=
463     per_cni_shd.g_old_rec.config_information8;
464   End If;
465   If (p_rec.config_information9 = hr_api.g_varchar2) then
466     p_rec.config_information9 :=
467     per_cni_shd.g_old_rec.config_information9;
468   End If;
469   If (p_rec.config_information10 = hr_api.g_varchar2) then
470     p_rec.config_information10 :=
471     per_cni_shd.g_old_rec.config_information10;
472   End If;
473   If (p_rec.config_information11 = hr_api.g_varchar2) then
474     p_rec.config_information11 :=
475     per_cni_shd.g_old_rec.config_information11;
476   End If;
477   If (p_rec.config_information12 = hr_api.g_varchar2) then
478     p_rec.config_information12 :=
479     per_cni_shd.g_old_rec.config_information12;
480   End If;
481   If (p_rec.config_information13 = hr_api.g_varchar2) then
482     p_rec.config_information13 :=
483     per_cni_shd.g_old_rec.config_information13;
484   End If;
485   If (p_rec.config_information14 = hr_api.g_varchar2) then
486     p_rec.config_information14 :=
487     per_cni_shd.g_old_rec.config_information14;
488   End If;
489   If (p_rec.config_information15 = hr_api.g_varchar2) then
490     p_rec.config_information15 :=
491     per_cni_shd.g_old_rec.config_information15;
492   End If;
493   If (p_rec.config_information16 = hr_api.g_varchar2) then
494     p_rec.config_information16 :=
495     per_cni_shd.g_old_rec.config_information16;
496   End If;
497   If (p_rec.config_information17 = hr_api.g_varchar2) then
498     p_rec.config_information17 :=
499     per_cni_shd.g_old_rec.config_information17;
500   End If;
501   If (p_rec.config_information18 = hr_api.g_varchar2) then
502     p_rec.config_information18 :=
503     per_cni_shd.g_old_rec.config_information18;
504   End If;
505   If (p_rec.config_information19 = hr_api.g_varchar2) then
506     p_rec.config_information19 :=
507     per_cni_shd.g_old_rec.config_information19;
508   End If;
509   If (p_rec.config_information20 = hr_api.g_varchar2) then
510     p_rec.config_information20 :=
511     per_cni_shd.g_old_rec.config_information20;
512   End If;
513   If (p_rec.config_information21 = hr_api.g_varchar2) then
514     p_rec.config_information21 :=
515     per_cni_shd.g_old_rec.config_information21;
516   End If;
517   If (p_rec.config_information22 = hr_api.g_varchar2) then
518     p_rec.config_information22 :=
519     per_cni_shd.g_old_rec.config_information22;
520   End If;
521   If (p_rec.config_information23 = hr_api.g_varchar2) then
522     p_rec.config_information23 :=
523     per_cni_shd.g_old_rec.config_information23;
524   End If;
525   If (p_rec.config_information24 = hr_api.g_varchar2) then
526     p_rec.config_information24 :=
527     per_cni_shd.g_old_rec.config_information24;
528   End If;
529   If (p_rec.config_information25 = hr_api.g_varchar2) then
530     p_rec.config_information25 :=
531     per_cni_shd.g_old_rec.config_information25;
532   End If;
533   If (p_rec.config_information26 = hr_api.g_varchar2) then
534     p_rec.config_information26 :=
535     per_cni_shd.g_old_rec.config_information26;
536   End If;
537   If (p_rec.config_information27 = hr_api.g_varchar2) then
538     p_rec.config_information27 :=
539     per_cni_shd.g_old_rec.config_information27;
540   End If;
541   If (p_rec.config_information28 = hr_api.g_varchar2) then
542     p_rec.config_information28 :=
543     per_cni_shd.g_old_rec.config_information28;
544   End If;
545   If (p_rec.config_information29 = hr_api.g_varchar2) then
546     p_rec.config_information29 :=
547     per_cni_shd.g_old_rec.config_information29;
548   End If;
549   If (p_rec.config_information30 = hr_api.g_varchar2) then
550     p_rec.config_information30 :=
551     per_cni_shd.g_old_rec.config_information30;
552   End If;
553   If (p_rec.config_sequence = hr_api.g_number) then
554     p_rec.config_sequence :=
555     per_cni_shd.g_old_rec.config_sequence;
556   End If;
557   --
558 End convert_defs;
559 --
560 -- ----------------------------------------------------------------------------
561 -- |---------------------------------< upd >----------------------------------|
562 -- ----------------------------------------------------------------------------
563 Procedure upd
564   (p_effective_date               in date
565   ,p_rec                          in out nocopy per_cni_shd.g_rec_type
566   ) is
567 --
568   l_proc  varchar2(72) := g_package||'upd';
569 --
570 Begin
571   hr_utility.set_location('Entering:'||l_proc, 5);
572   --
573   -- We must lock the row which we need to update.
574   --
575   per_cni_shd.lck
576     (p_rec.config_information_id
577     ,p_rec.object_version_number
578     );
579   --
580   -- 1. During an update system defaults are used to determine if
581   --    arguments have been defaulted or not. We must therefore
582   --    derive the full record structure values to be updated.
583   --
584   -- 2. Call the supporting update validate operations.
585   --
586   convert_defs(p_rec);
587   per_cni_bus.update_validate
588      (p_effective_date
589      ,p_rec
590      );
591   --
592   -- Call to raise any errors on multi-message list
593   hr_multi_message.end_validation_set;
594   --
595   -- Call the supporting pre-update operation
596   --
597   per_cni_upd.pre_update(p_rec);
598   --
599   -- Update the row.
600   --
601   per_cni_upd.update_dml(p_rec);
602   --
603   -- Call the supporting post-update operation
604   --
605   per_cni_upd.post_update
606      (p_effective_date
607      ,p_rec
608      );
609   --
610   -- Call to raise any errors on multi-message list
611   hr_multi_message.end_validation_set;
612 End upd;
613 --
614 -- ----------------------------------------------------------------------------
615 -- |---------------------------------< upd >----------------------------------|
616 -- ----------------------------------------------------------------------------
617 Procedure upd
618   (p_effective_date               in     date
619   ,p_config_information_id        in     number
620   ,p_configuration_code           in     varchar2  default hr_api.g_varchar2
621   ,p_config_information_category  in     varchar2  default hr_api.g_varchar2
622   ,p_config_sequence              in     number    default hr_api.g_number
623   ,p_config_information1          in     varchar2  default hr_api.g_varchar2
624   ,p_config_information2          in     varchar2  default hr_api.g_varchar2
625   ,p_config_information3          in     varchar2  default hr_api.g_varchar2
626   ,p_config_information4          in     varchar2  default hr_api.g_varchar2
627   ,p_config_information5          in     varchar2  default hr_api.g_varchar2
628   ,p_config_information6          in     varchar2  default hr_api.g_varchar2
629   ,p_config_information7          in     varchar2  default hr_api.g_varchar2
630   ,p_config_information8          in     varchar2  default hr_api.g_varchar2
631   ,p_config_information9          in     varchar2  default hr_api.g_varchar2
632   ,p_config_information10         in     varchar2  default hr_api.g_varchar2
633   ,p_config_information11         in     varchar2  default hr_api.g_varchar2
634   ,p_config_information12         in     varchar2  default hr_api.g_varchar2
635   ,p_config_information13         in     varchar2  default hr_api.g_varchar2
636   ,p_config_information14         in     varchar2  default hr_api.g_varchar2
637   ,p_config_information15         in     varchar2  default hr_api.g_varchar2
638   ,p_config_information16         in     varchar2  default hr_api.g_varchar2
639   ,p_config_information17         in     varchar2  default hr_api.g_varchar2
640   ,p_config_information18         in     varchar2  default hr_api.g_varchar2
641   ,p_config_information19         in     varchar2  default hr_api.g_varchar2
642   ,p_config_information20         in     varchar2  default hr_api.g_varchar2
643   ,p_config_information21         in     varchar2  default hr_api.g_varchar2
644   ,p_config_information22         in     varchar2  default hr_api.g_varchar2
645   ,p_config_information23         in     varchar2  default hr_api.g_varchar2
646   ,p_config_information24         in     varchar2  default hr_api.g_varchar2
647   ,p_config_information25         in     varchar2  default hr_api.g_varchar2
648   ,p_config_information26         in     varchar2  default hr_api.g_varchar2
649   ,p_config_information27         in     varchar2  default hr_api.g_varchar2
650   ,p_config_information28         in     varchar2  default hr_api.g_varchar2
651   ,p_config_information29         in     varchar2  default hr_api.g_varchar2
652   ,p_config_information30         in     varchar2  default hr_api.g_varchar2
653   ,p_object_version_number        In Out Nocopy Number
654   ) is
655 --
656   l_rec   per_cni_shd.g_rec_type;
657   l_proc  varchar2(72) := g_package||'upd';
658 --
659 Begin
660   hr_utility.set_location('Entering:'||l_proc, 5);
661   --
662   -- Call conversion function to turn arguments into the
663   -- l_rec structure.
664   --
665   l_rec :=
666   per_cni_shd.convert_args
667   (p_configuration_code
668   ,p_config_information_category
669   ,p_config_information1
670   ,p_config_information2
671   ,p_config_information3
672   ,p_config_information4
673   ,p_config_information5
674   ,p_config_information6
675   ,p_config_information7
676   ,p_config_information8
677   ,p_config_information9
678   ,p_config_information10
679   ,p_config_information11
680   ,p_config_information12
681   ,p_config_information13
682   ,p_config_information14
683   ,p_config_information15
684   ,p_config_information16
685   ,p_config_information17
686   ,p_config_information18
687   ,p_config_information19
688   ,p_config_information20
689   ,p_config_information21
690   ,p_config_information22
691   ,p_config_information23
692   ,p_config_information24
693   ,p_config_information25
694   ,p_config_information26
695   ,p_config_information27
696   ,p_config_information28
697   ,p_config_information29
698   ,p_config_information30
699   ,p_config_information_id
700   ,p_config_sequence
701   ,p_object_version_number
702   );
703   --
704   -- Having converted the arguments into the
705   -- plsql record structure we call the corresponding record
706   -- business process.
707   --
708   per_cni_upd.upd
709      (p_effective_date
710      ,l_rec
711      );
712   --
713 
714   p_object_version_number := l_rec.object_version_number;
715 
716   --
717   hr_utility.set_location(' Leaving:'||l_proc, 10);
718 End upd;
719 --
720 end per_cni_upd;