1 Package Body ben_lbr_upd as
2 /* $Header: belbrrhi.pkb 120.0 2005/05/28 03:16:53 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_lbr_upd.'; -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |----------------------------< dt_update_dml >-----------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 --
15 -- Description:
16 -- This procedure controls the execution of dml from the datetrack mode
17 -- of CORRECTION only. It is important to note that the object version
18 -- number is only increment by 1 because the datetrack correction is
19 -- soley for one datetracked row.
20 -- This procedure controls the actual dml update logic. The functions of this
21 -- procedure are as follows:
22 -- 1) Get the next object_version_number.
23 -- 2) To set and unset the g_api_dml status as required (as we are about to
24 -- perform dml).
25 -- 3) To update the specified row in the schema using the primary key in
26 -- the predicates.
27 -- 4) To trap any constraint violations that may have occurred.
28 -- 5) To raise any other errors.
29 --
30 -- Prerequisites:
31 -- This is an internal private procedure which must be called from the
32 -- update_dml procedure.
33 --
34 -- In Parameters:
35 -- A Pl/Sql record structre.
36 --
37 -- Post Success:
38 -- The specified row will be updated in the schema.
39 --
40 -- Post Failure:
41 -- On the update dml failure it is important to note that we always reset the
42 -- g_api_dml status to false.
43 -- If a check or unique integrity constraint violation is raised the
44 -- constraint_error procedure will be called.
45 -- If any other error is reported, the error will be raised after the
46 -- g_api_dml status is reset.
47 --
48 -- Developer Implementation Notes:
49 -- The update 'set' arguments list should be modified if any of your
50 -- attributes are not updateable.
51 --
52 -- Access Status:
53 -- Internal Row Handler Use Only.
54 --
55 -- {End Of Comments}
56 -- ----------------------------------------------------------------------------
57 Procedure dt_update_dml
58 (p_rec in out nocopy ben_lbr_shd.g_rec_type,
59 p_effective_date in date,
60 p_datetrack_mode in varchar2,
61 p_validation_start_date in date,
62 p_validation_end_date in date) is
63 --
64 l_proc varchar2(72) := g_package||'dt_update_dml';
65 --
66 Begin
67 hr_utility.set_location('Entering:'||l_proc, 5);
68 --
69 If (p_datetrack_mode = 'CORRECTION') then
70 hr_utility.set_location(l_proc, 10);
71 --
72 -- Because we are updating a row we must get the next object
73 -- version number.
74 --
75 p_rec.object_version_number :=
76 dt_api.get_object_version_number
77 (p_base_table_name => 'ben_ler_bnft_rstrn_f',
78 p_base_key_column => 'ler_bnft_rstrn_id',
79 p_base_key_value => p_rec.ler_bnft_rstrn_id);
80 --
81 ben_lbr_shd.g_api_dml := true; -- Set the api dml status
82 --
83 -- Update the ben_ler_bnft_rstrn_f Row
84 --
85 update ben_ler_bnft_rstrn_f
86 set
87 ler_bnft_rstrn_id = p_rec.ler_bnft_rstrn_id,
88 no_mx_cvg_amt_apls_flag = p_rec.no_mx_cvg_amt_apls_flag,
89 no_mn_cvg_incr_apls_flag = p_rec.no_mn_cvg_incr_apls_flag,
90 no_mx_cvg_incr_apls_flag = p_rec.no_mx_cvg_incr_apls_flag,
91 mx_cvg_incr_wcf_alwd_amt = p_rec.mx_cvg_incr_wcf_alwd_amt,
92 mx_cvg_incr_alwd_amt = p_rec.mx_cvg_incr_alwd_amt,
93 mx_cvg_alwd_amt = p_rec.mx_cvg_alwd_amt,
94 mx_cvg_mlt_incr_num = p_rec.mx_cvg_mlt_incr_num,
95 mx_cvg_mlt_incr_wcf_num = p_rec.mx_cvg_mlt_incr_wcf_num,
96 mx_cvg_rl = p_rec.mx_cvg_rl,
97 mx_cvg_wcfn_amt = p_rec.mx_cvg_wcfn_amt,
98 mx_cvg_wcfn_mlt_num = p_rec.mx_cvg_wcfn_mlt_num,
99 mn_cvg_amt = p_rec.mn_cvg_amt,
100 mn_cvg_rl = p_rec.mn_cvg_rl,
101 cvg_incr_r_decr_only_cd = p_rec.cvg_incr_r_decr_only_cd,
102 unsspnd_enrt_cd = p_rec.unsspnd_enrt_cd,
103 dflt_to_asn_pndg_ctfn_cd = p_rec.dflt_to_asn_pndg_ctfn_cd,
104 dflt_to_asn_pndg_ctfn_rl = p_rec.dflt_to_asn_pndg_ctfn_rl,
105 ler_id = p_rec.ler_id,
106 pl_id = p_rec.pl_id,
107 business_group_id = p_rec.business_group_id,
108 plip_id = p_rec.plip_id,
109 lbr_attribute_category = p_rec.lbr_attribute_category,
110 lbr_attribute1 = p_rec.lbr_attribute1,
111 lbr_attribute2 = p_rec.lbr_attribute2,
112 lbr_attribute3 = p_rec.lbr_attribute3,
113 lbr_attribute4 = p_rec.lbr_attribute4,
114 lbr_attribute5 = p_rec.lbr_attribute5,
115 lbr_attribute6 = p_rec.lbr_attribute6,
116 lbr_attribute7 = p_rec.lbr_attribute7,
117 lbr_attribute8 = p_rec.lbr_attribute8,
118 lbr_attribute9 = p_rec.lbr_attribute9,
119 lbr_attribute10 = p_rec.lbr_attribute10,
120 lbr_attribute11 = p_rec.lbr_attribute11,
121 lbr_attribute12 = p_rec.lbr_attribute12,
122 lbr_attribute13 = p_rec.lbr_attribute13,
123 lbr_attribute14 = p_rec.lbr_attribute14,
124 lbr_attribute15 = p_rec.lbr_attribute15,
125 lbr_attribute16 = p_rec.lbr_attribute16,
126 lbr_attribute17 = p_rec.lbr_attribute17,
127 lbr_attribute18 = p_rec.lbr_attribute18,
128 lbr_attribute19 = p_rec.lbr_attribute19,
129 lbr_attribute20 = p_rec.lbr_attribute20,
130 lbr_attribute21 = p_rec.lbr_attribute21,
131 lbr_attribute22 = p_rec.lbr_attribute22,
132 lbr_attribute23 = p_rec.lbr_attribute23,
133 lbr_attribute24 = p_rec.lbr_attribute24,
134 lbr_attribute25 = p_rec.lbr_attribute25,
135 lbr_attribute26 = p_rec.lbr_attribute26,
136 lbr_attribute27 = p_rec.lbr_attribute27,
137 lbr_attribute28 = p_rec.lbr_attribute28,
138 lbr_attribute29 = p_rec.lbr_attribute29,
139 lbr_attribute30 = p_rec.lbr_attribute30,
140 susp_if_ctfn_not_prvd_flag = p_rec.susp_if_ctfn_not_prvd_flag,
141 ctfn_determine_cd = p_rec.ctfn_determine_cd,
142 object_version_number = p_rec.object_version_number
143 where ler_bnft_rstrn_id = p_rec.ler_bnft_rstrn_id
144 and effective_start_date = p_validation_start_date
145 and effective_end_date = p_validation_end_date;
146 --
147 ben_lbr_shd.g_api_dml := false; -- Unset the api dml status
148 --
149 -- Set the effective start and end dates
150 --
151 p_rec.effective_start_date := p_validation_start_date;
152 p_rec.effective_end_date := p_validation_end_date;
153 End If;
154 --
155 hr_utility.set_location(' Leaving:'||l_proc, 15);
156 Exception
157 When hr_api.check_integrity_violated Then
158 -- A check constraint has been violated
159 ben_lbr_shd.g_api_dml := false; -- Unset the api dml status
160 ben_lbr_shd.constraint_error
161 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
162 When hr_api.unique_integrity_violated Then
163 -- Unique integrity has been violated
164 ben_lbr_shd.g_api_dml := false; -- Unset the api dml status
165 ben_lbr_shd.constraint_error
166 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
167 When Others Then
168 ben_lbr_shd.g_api_dml := false; -- Unset the api dml status
169 Raise;
170 End dt_update_dml;
171 --
172 -- ----------------------------------------------------------------------------
173 -- |------------------------------< update_dml >------------------------------|
174 -- ----------------------------------------------------------------------------
175 -- {Start Of Comments}
176 --
177 -- Description:
178 -- This procedure calls the dt_update_dml control logic which handles
179 -- the actual datetrack dml.
180 --
181 -- Prerequisites:
182 -- This is an internal private procedure which must be called from the upd
183 -- procedure.
184 --
185 -- In Parameters:
186 -- A Pl/Sql record structre.
187 --
188 -- Post Success:
189 -- Processing contines.
190 --
191 -- Post Failure:
192 -- No specific error handling is required within this procedure.
193 --
194 -- Developer Implementation Notes:
195 -- The update 'set' arguments list should be modified if any of your
196 -- attributes are not updateable.
197 --
198 -- Access Status:
199 -- Internal Row Handler Use Only.
200 --
201 -- {End Of Comments}
202 -- ----------------------------------------------------------------------------
203 Procedure update_dml
204 (p_rec in out nocopy ben_lbr_shd.g_rec_type,
205 p_effective_date in date,
206 p_datetrack_mode in varchar2,
207 p_validation_start_date in date,
208 p_validation_end_date in date) is
209 --
210 l_proc varchar2(72) := g_package||'update_dml';
211 --
212 Begin
213 hr_utility.set_location('Entering:'||l_proc, 5);
214 --
215 dt_update_dml(p_rec => p_rec,
216 p_effective_date => p_effective_date,
217 p_datetrack_mode => p_datetrack_mode,
218 p_validation_start_date => p_validation_start_date,
219 p_validation_end_date => p_validation_end_date);
220 --
221 hr_utility.set_location(' Leaving:'||l_proc, 10);
222 End update_dml;
223 --
224 -- ----------------------------------------------------------------------------
225 -- |----------------------------< dt_pre_update >-----------------------------|
226 -- ----------------------------------------------------------------------------
227 -- {Start Of Comments}
228 --
229 -- Description:
230 -- The dt_pre_update procedure controls the execution
231 -- of dml for the datetrack modes of: UPDATE, UPDATE_OVERRIDE
232 -- and UPDATE_CHANGE_INSERT only. The execution required is as
233 -- follows:
234 --
235 -- 1) Providing the datetrack update mode is not 'CORRECTION'
236 -- then set the effective end date of the current row (this
237 -- will be the validation_start_date - 1).
238 -- 2) If the datetrack mode is 'UPDATE_OVERRIDE' then call the
239 -- corresponding delete_dml process to delete any future rows
240 -- where the effective_start_date is greater than or equal to
241 -- the validation_start_date.
242 -- 3) Call the insert_dml process to insert the new updated row
243 -- details..
244 --
245 -- Prerequisites:
246 -- This is an internal procedure which is called from the
247 -- pre_update procedure.
248 --
249 -- In Parameters:
250 --
251 -- Post Success:
252 -- Processing continues.
253 --
254 -- Post Failure:
255 -- If an error has occurred, an error message and exception will be raised
256 -- but not handled.
257 --
258 -- Developer Implementation Notes:
259 -- This is an internal procedure which is required by Datetrack. Don't
260 -- remove or modify.
261 --
262 -- Access Status:
263 -- Internal Row Handler Use Only.
264 --
265 -- {End Of Comments}
266 -- ----------------------------------------------------------------------------
267 Procedure dt_pre_update
268 (p_rec in out nocopy ben_lbr_shd.g_rec_type,
269 p_effective_date in date,
270 p_datetrack_mode in varchar2,
271 p_validation_start_date in date,
272 p_validation_end_date in date) is
273 --
274 l_proc varchar2(72) := g_package||'dt_pre_update';
275 l_dummy_version_number number;
276 --
277 Begin
278 hr_utility.set_location('Entering:'||l_proc, 5);
279 If (p_datetrack_mode <> 'CORRECTION') then
280 hr_utility.set_location(l_proc, 10);
281 --
282 -- Update the current effective end date
283 --
284 ben_lbr_shd.upd_effective_end_date
285 (p_effective_date => p_effective_date,
286 p_base_key_value => p_rec.ler_bnft_rstrn_id,
287 p_new_effective_end_date => (p_validation_start_date - 1),
288 p_validation_start_date => p_validation_start_date,
289 p_validation_end_date => p_validation_end_date,
290 p_object_version_number => l_dummy_version_number);
291 --
292 If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
293 hr_utility.set_location(l_proc, 15);
294 --
295 -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
296 -- delete any future rows
297 --
298 ben_lbr_del.delete_dml
299 (p_rec => p_rec,
300 p_effective_date => p_effective_date,
301 p_datetrack_mode => p_datetrack_mode,
302 p_validation_start_date => p_validation_start_date,
303 p_validation_end_date => p_validation_end_date);
304 End If;
305 hr_utility.set_location(l_proc, 20);
306 --
307 -- We must now insert the updated row
308 --
309 ben_lbr_ins.insert_dml
310 (p_rec => p_rec,
311 p_effective_date => p_effective_date,
312 p_datetrack_mode => p_datetrack_mode,
313 p_validation_start_date => p_validation_start_date,
314 p_validation_end_date => p_validation_end_date);
315 End If;
316 hr_utility.set_location(' Leaving:'||l_proc, 20);
317 End dt_pre_update;
318 --
319 -- ----------------------------------------------------------------------------
320 -- |------------------------------< pre_update >------------------------------|
321 -- ----------------------------------------------------------------------------
322 -- {Start Of Comments}
323 --
324 -- Description:
325 -- This private procedure contains any processing which is required before
326 -- the update dml.
327 --
328 -- Prerequisites:
329 -- This is an internal procedure which is called from the upd procedure.
330 --
331 -- In Parameters:
332 -- A Pl/Sql record structre.
333 --
334 -- Post Success:
335 -- Processing continues.
336 --
337 -- Post Failure:
338 -- If an error has occurred, an error message and exception will be raised
339 -- but not handled.
340 --
341 -- Developer Implementation Notes:
342 -- Any pre-processing required before the update dml is issued should be
343 -- coded within this procedure. It is important to note that any 3rd party
344 -- maintenance should be reviewed before placing in this procedure. The call
345 -- to the dt_update_dml procedure should NOT be removed.
346 --
347 -- Access Status:
348 -- Internal Row Handler Use Only.
349 --
350 -- {End Of Comments}
351 -- ----------------------------------------------------------------------------
352 Procedure pre_update
353 (p_rec in out nocopy ben_lbr_shd.g_rec_type,
354 p_effective_date in date,
355 p_datetrack_mode in varchar2,
356 p_validation_start_date in date,
357 p_validation_end_date in date) is
358 --
359 l_proc varchar2(72) := g_package||'pre_update';
360 --
361 Begin
362 hr_utility.set_location('Entering:'||l_proc, 5);
363 --
364 --
365 --
366 dt_pre_update
367 (p_rec => p_rec,
368 p_effective_date => p_effective_date,
369 p_datetrack_mode => p_datetrack_mode,
370 p_validation_start_date => p_validation_start_date,
371 p_validation_end_date => p_validation_end_date);
372 --
373 hr_utility.set_location(' Leaving:'||l_proc, 10);
374 End pre_update;
375 --
376 -- ----------------------------------------------------------------------------
377 -- |-----------------------------< post_update >------------------------------|
378 -- ----------------------------------------------------------------------------
379 -- {Start Of Comments}
380 --
381 -- Description:
382 -- This private procedure contains any processing which is required after the
383 -- update dml.
384 --
385 -- Prerequisites:
386 -- This is an internal procedure which is called from the upd procedure.
387 --
388 -- In Parameters:
389 -- A Pl/Sql record structre.
390 --
391 -- Post Success:
392 -- Processing continues.
393 --
394 -- Post Failure:
395 -- If an error has occurred, an error message and exception will be raised
396 -- but not handled.
397 --
398 -- Developer Implementation Notes:
399 -- Any post-processing required after the update dml is issued should be
400 -- coded within this procedure. It is important to note that any 3rd party
401 -- maintenance should be reviewed before placing in this procedure.
402 --
403 -- Access Status:
404 -- Internal Row Handler Use Only.
405 --
406 -- {End Of Comments}
407 -- ----------------------------------------------------------------------------
408 Procedure post_update
409 (p_rec in ben_lbr_shd.g_rec_type,
410 p_effective_date in date,
411 p_datetrack_mode in varchar2,
412 p_validation_start_date in date,
413 p_validation_end_date in date) is
414 --
415 l_proc varchar2(72) := g_package||'post_update';
416 --
417 Begin
418 hr_utility.set_location('Entering:'||l_proc, 5);
419 --
420 --
421 -- Start of API User Hook for post_update.
422 --
423 begin
424 --
425 ben_lbr_rku.after_update
426 (
427 p_ler_bnft_rstrn_id =>p_rec.ler_bnft_rstrn_id
428 ,p_effective_start_date =>p_rec.effective_start_date
429 ,p_effective_end_date =>p_rec.effective_end_date
430 ,p_no_mx_cvg_amt_apls_flag =>p_rec.no_mx_cvg_amt_apls_flag
431 ,p_no_mn_cvg_incr_apls_flag =>p_rec.no_mn_cvg_incr_apls_flag
432 ,p_no_mx_cvg_incr_apls_flag =>p_rec.no_mx_cvg_incr_apls_flag
433 ,p_mx_cvg_incr_wcf_alwd_amt =>p_rec.mx_cvg_incr_wcf_alwd_amt
434 ,p_mx_cvg_incr_alwd_amt =>p_rec.mx_cvg_incr_alwd_amt
435 ,p_mx_cvg_alwd_amt =>p_rec.mx_cvg_alwd_amt
436 ,p_mx_cvg_mlt_incr_num =>p_rec.mx_cvg_mlt_incr_num
437 ,p_mx_cvg_mlt_incr_wcf_num =>p_rec.mx_cvg_mlt_incr_wcf_num
438 ,p_mx_cvg_rl =>p_rec.mx_cvg_rl
439 ,p_mx_cvg_wcfn_amt =>p_rec.mx_cvg_wcfn_amt
440 ,p_mx_cvg_wcfn_mlt_num =>p_rec.mx_cvg_wcfn_mlt_num
441 ,p_mn_cvg_amt =>p_rec.mn_cvg_amt
442 ,p_mn_cvg_rl =>p_rec.mn_cvg_rl
443 ,p_cvg_incr_r_decr_only_cd =>p_rec.cvg_incr_r_decr_only_cd
444 ,p_unsspnd_enrt_cd =>p_rec.unsspnd_enrt_cd
445 ,p_dflt_to_asn_pndg_ctfn_cd =>p_rec.dflt_to_asn_pndg_ctfn_cd
446 ,p_dflt_to_asn_pndg_ctfn_rl =>p_rec.dflt_to_asn_pndg_ctfn_rl
447 ,p_ler_id =>p_rec.ler_id
448 ,p_pl_id =>p_rec.pl_id
449 ,p_business_group_id =>p_rec.business_group_id
450 ,p_plip_id =>p_rec.plip_id
451 ,p_lbr_attribute_category =>p_rec.lbr_attribute_category
452 ,p_lbr_attribute1 =>p_rec.lbr_attribute1
453 ,p_lbr_attribute2 =>p_rec.lbr_attribute2
454 ,p_lbr_attribute3 =>p_rec.lbr_attribute3
455 ,p_lbr_attribute4 =>p_rec.lbr_attribute4
456 ,p_lbr_attribute5 =>p_rec.lbr_attribute5
457 ,p_lbr_attribute6 =>p_rec.lbr_attribute6
458 ,p_lbr_attribute7 =>p_rec.lbr_attribute7
459 ,p_lbr_attribute8 =>p_rec.lbr_attribute8
460 ,p_lbr_attribute9 =>p_rec.lbr_attribute9
461 ,p_lbr_attribute10 =>p_rec.lbr_attribute10
462 ,p_lbr_attribute11 =>p_rec.lbr_attribute11
463 ,p_lbr_attribute12 =>p_rec.lbr_attribute12
464 ,p_lbr_attribute13 =>p_rec.lbr_attribute13
465 ,p_lbr_attribute14 =>p_rec.lbr_attribute14
466 ,p_lbr_attribute15 =>p_rec.lbr_attribute15
467 ,p_lbr_attribute16 =>p_rec.lbr_attribute16
468 ,p_lbr_attribute17 =>p_rec.lbr_attribute17
469 ,p_lbr_attribute18 =>p_rec.lbr_attribute18
470 ,p_lbr_attribute19 =>p_rec.lbr_attribute19
471 ,p_lbr_attribute20 =>p_rec.lbr_attribute20
472 ,p_lbr_attribute21 =>p_rec.lbr_attribute21
473 ,p_lbr_attribute22 =>p_rec.lbr_attribute22
474 ,p_lbr_attribute23 =>p_rec.lbr_attribute23
475 ,p_lbr_attribute24 =>p_rec.lbr_attribute24
476 ,p_lbr_attribute25 =>p_rec.lbr_attribute25
477 ,p_lbr_attribute26 =>p_rec.lbr_attribute26
478 ,p_lbr_attribute27 =>p_rec.lbr_attribute27
479 ,p_lbr_attribute28 =>p_rec.lbr_attribute28
480 ,p_lbr_attribute29 =>p_rec.lbr_attribute29
481 ,p_lbr_attribute30 =>p_rec.lbr_attribute30
482 ,p_susp_if_ctfn_not_prvd_flag =>p_rec.susp_if_ctfn_not_prvd_flag
483 ,p_ctfn_determine_cd =>p_rec.ctfn_determine_cd
484 ,p_object_version_number =>p_rec.object_version_number
485 ,p_effective_date =>p_effective_date
486 ,p_datetrack_mode =>p_datetrack_mode
487 ,p_validation_start_date =>p_validation_start_date
488 ,p_validation_end_date =>p_validation_end_date
489 ,p_effective_start_date_o =>ben_lbr_shd.g_old_rec.effective_start_date
490 ,p_effective_end_date_o =>ben_lbr_shd.g_old_rec.effective_end_date
491 ,p_no_mx_cvg_amt_apls_flag_o =>ben_lbr_shd.g_old_rec.no_mx_cvg_amt_apls_flag
492 ,p_no_mn_cvg_incr_apls_flag_o =>ben_lbr_shd.g_old_rec.no_mn_cvg_incr_apls_flag
493 ,p_no_mx_cvg_incr_apls_flag_o =>ben_lbr_shd.g_old_rec.no_mx_cvg_incr_apls_flag
494 ,p_mx_cvg_incr_wcf_alwd_amt_o =>ben_lbr_shd.g_old_rec.mx_cvg_incr_wcf_alwd_amt
495 ,p_mx_cvg_incr_alwd_amt_o =>ben_lbr_shd.g_old_rec.mx_cvg_incr_alwd_amt
496 ,p_mx_cvg_alwd_amt_o =>ben_lbr_shd.g_old_rec.mx_cvg_alwd_amt
497 ,p_mx_cvg_mlt_incr_num_o =>ben_lbr_shd.g_old_rec.mx_cvg_mlt_incr_num
498 ,p_mx_cvg_mlt_incr_wcf_num_o =>ben_lbr_shd.g_old_rec.mx_cvg_mlt_incr_wcf_num
499 ,p_mx_cvg_rl_o =>ben_lbr_shd.g_old_rec.mx_cvg_rl
500 ,p_mx_cvg_wcfn_amt_o =>ben_lbr_shd.g_old_rec.mx_cvg_wcfn_amt
501 ,p_mx_cvg_wcfn_mlt_num_o =>ben_lbr_shd.g_old_rec.mx_cvg_wcfn_mlt_num
502 ,p_mn_cvg_amt_o =>ben_lbr_shd.g_old_rec.mn_cvg_amt
503 ,p_mn_cvg_rl_o =>ben_lbr_shd.g_old_rec.mn_cvg_rl
504 ,p_cvg_incr_r_decr_only_cd_o =>ben_lbr_shd.g_old_rec.cvg_incr_r_decr_only_cd
505 ,p_unsspnd_enrt_cd_o =>ben_lbr_shd.g_old_rec.unsspnd_enrt_cd
506 ,p_dflt_to_asn_pndg_ctfn_cd_o =>ben_lbr_shd.g_old_rec.dflt_to_asn_pndg_ctfn_cd
507 ,p_dflt_to_asn_pndg_ctfn_rl_o =>ben_lbr_shd.g_old_rec.dflt_to_asn_pndg_ctfn_rl
508 ,p_ler_id_o =>ben_lbr_shd.g_old_rec.ler_id
509 ,p_pl_id_o =>ben_lbr_shd.g_old_rec.pl_id
510 ,p_business_group_id_o =>ben_lbr_shd.g_old_rec.business_group_id
511 ,p_plip_id_o =>ben_lbr_shd.g_old_rec.plip_id
512 ,p_lbr_attribute_category_o =>ben_lbr_shd.g_old_rec.lbr_attribute_category
513 ,p_lbr_attribute1_o =>ben_lbr_shd.g_old_rec.lbr_attribute1
514 ,p_lbr_attribute2_o =>ben_lbr_shd.g_old_rec.lbr_attribute2
515 ,p_lbr_attribute3_o =>ben_lbr_shd.g_old_rec.lbr_attribute3
516 ,p_lbr_attribute4_o =>ben_lbr_shd.g_old_rec.lbr_attribute4
517 ,p_lbr_attribute5_o =>ben_lbr_shd.g_old_rec.lbr_attribute5
518 ,p_lbr_attribute6_o =>ben_lbr_shd.g_old_rec.lbr_attribute6
519 ,p_lbr_attribute7_o =>ben_lbr_shd.g_old_rec.lbr_attribute7
520 ,p_lbr_attribute8_o =>ben_lbr_shd.g_old_rec.lbr_attribute8
521 ,p_lbr_attribute9_o =>ben_lbr_shd.g_old_rec.lbr_attribute9
522 ,p_lbr_attribute10_o =>ben_lbr_shd.g_old_rec.lbr_attribute10
523 ,p_lbr_attribute11_o =>ben_lbr_shd.g_old_rec.lbr_attribute11
524 ,p_lbr_attribute12_o =>ben_lbr_shd.g_old_rec.lbr_attribute12
525 ,p_lbr_attribute13_o =>ben_lbr_shd.g_old_rec.lbr_attribute13
526 ,p_lbr_attribute14_o =>ben_lbr_shd.g_old_rec.lbr_attribute14
527 ,p_lbr_attribute15_o =>ben_lbr_shd.g_old_rec.lbr_attribute15
528 ,p_lbr_attribute16_o =>ben_lbr_shd.g_old_rec.lbr_attribute16
529 ,p_lbr_attribute17_o =>ben_lbr_shd.g_old_rec.lbr_attribute17
530 ,p_lbr_attribute18_o =>ben_lbr_shd.g_old_rec.lbr_attribute18
531 ,p_lbr_attribute19_o =>ben_lbr_shd.g_old_rec.lbr_attribute19
532 ,p_lbr_attribute20_o =>ben_lbr_shd.g_old_rec.lbr_attribute20
533 ,p_lbr_attribute21_o =>ben_lbr_shd.g_old_rec.lbr_attribute21
534 ,p_lbr_attribute22_o =>ben_lbr_shd.g_old_rec.lbr_attribute22
535 ,p_lbr_attribute23_o =>ben_lbr_shd.g_old_rec.lbr_attribute23
536 ,p_lbr_attribute24_o =>ben_lbr_shd.g_old_rec.lbr_attribute24
537 ,p_lbr_attribute25_o =>ben_lbr_shd.g_old_rec.lbr_attribute25
538 ,p_lbr_attribute26_o =>ben_lbr_shd.g_old_rec.lbr_attribute26
539 ,p_lbr_attribute27_o =>ben_lbr_shd.g_old_rec.lbr_attribute27
540 ,p_lbr_attribute28_o =>ben_lbr_shd.g_old_rec.lbr_attribute28
541 ,p_lbr_attribute29_o =>ben_lbr_shd.g_old_rec.lbr_attribute29
542 ,p_lbr_attribute30_o =>ben_lbr_shd.g_old_rec.lbr_attribute30
543 ,p_susp_if_ctfn_not_prvd_flag_o =>ben_lbr_shd.g_old_rec.susp_if_ctfn_not_prvd_flag
544 ,p_ctfn_determine_cd_o =>ben_lbr_shd.g_old_rec.ctfn_determine_cd
545 ,p_object_version_number_o =>ben_lbr_shd.g_old_rec.object_version_number
546 );
547 --
548 exception
549 --
550 when hr_api.cannot_find_prog_unit then
551 --
552 hr_api.cannot_find_prog_unit_error
553 (p_module_name => 'ben_ler_bnft_rstrn_f'
554 ,p_hook_type => 'AU');
555 --
556 end;
557 --
558 -- End of API User Hook for post_update.
559 --
560 --
561 hr_utility.set_location(' Leaving:'||l_proc, 10);
562 End post_update;
563 --
564 -- ----------------------------------------------------------------------------
565 -- |-----------------------------< convert_defs >-----------------------------|
566 -- ----------------------------------------------------------------------------
567 -- {Start Of Comments}
568 --
569 -- Description:
570 -- The Convert_Defs procedure has one very important function:
571 -- It must return the record structure for the row with all system defaulted
572 -- values converted into its corresponding parameter value for update. When
573 -- we attempt to update a row through the Upd process , certain
574 -- parameters can be defaulted which enables flexibility in the calling of
575 -- the upd process (e.g. only attributes which need to be updated need to be
576 -- specified). For the upd process to determine which attributes
577 -- have NOT been specified we need to check if the parameter has a reserved
578 -- system default value. Therefore, for all parameters which have a
579 -- corresponding reserved system default mechanism specified we need to
580 -- check if a system default is being used. If a system default is being
581 -- used then we convert the defaulted value into its corresponding attribute
582 -- value held in the g_old_rec data structure.
583 --
584 -- Prerequisites:
585 -- This private function can only be called from the upd process.
586 --
587 -- In Parameters:
588 -- A Pl/Sql record structre.
589 --
590 -- Post Success:
591 -- The record structure will be returned with all system defaulted parameter
592 -- values converted into its current row attribute value.
593 --
594 -- Post Failure:
595 -- No direct error handling is required within this function. Any possible
596 -- errors within this procedure will be a PL/SQL value error due to conversion
597 -- of datatypes or data lengths.
598 --
599 -- Developer Implementation Notes:
600 -- None.
601 --
602 -- Access Status:
603 -- Internal Row Handler Use Only.
604 --
605 -- {End Of Comments}
606 -- ----------------------------------------------------------------------------
607 Procedure convert_defs(p_rec in out nocopy ben_lbr_shd.g_rec_type) is
608 --
609 l_proc varchar2(72) := g_package||'convert_defs';
610 --
611 Begin
612 --
613 hr_utility.set_location('Entering:'||l_proc, 5);
614 --
615 -- We must now examine each argument value in the
616 -- p_rec plsql record structure
617 -- to see if a system default is being used. If a system default
618 -- is being used then we must set to the 'current' argument value.
619 --
620 If (p_rec.no_mx_cvg_amt_apls_flag = hr_api.g_varchar2) then
621 p_rec.no_mx_cvg_amt_apls_flag :=
622 ben_lbr_shd.g_old_rec.no_mx_cvg_amt_apls_flag;
623 End If;
624 If (p_rec.no_mn_cvg_incr_apls_flag = hr_api.g_varchar2) then
625 p_rec.no_mn_cvg_incr_apls_flag :=
626 ben_lbr_shd.g_old_rec.no_mn_cvg_incr_apls_flag;
627 End If;
628 If (p_rec.no_mx_cvg_incr_apls_flag = hr_api.g_varchar2) then
629 p_rec.no_mx_cvg_incr_apls_flag :=
630 ben_lbr_shd.g_old_rec.no_mx_cvg_incr_apls_flag;
631 End If;
632 If (p_rec.mx_cvg_incr_wcf_alwd_amt = hr_api.g_number) then
633 p_rec.mx_cvg_incr_wcf_alwd_amt :=
634 ben_lbr_shd.g_old_rec.mx_cvg_incr_wcf_alwd_amt;
635 End If;
636 If (p_rec.mx_cvg_incr_alwd_amt = hr_api.g_number) then
637 p_rec.mx_cvg_incr_alwd_amt :=
638 ben_lbr_shd.g_old_rec.mx_cvg_incr_alwd_amt;
639 End If;
640 If (p_rec.mx_cvg_alwd_amt = hr_api.g_number) then
641 p_rec.mx_cvg_alwd_amt :=
642 ben_lbr_shd.g_old_rec.mx_cvg_alwd_amt;
643 End If;
644 If (p_rec.mx_cvg_mlt_incr_num = hr_api.g_number) then
645 p_rec.mx_cvg_mlt_incr_num :=
646 ben_lbr_shd.g_old_rec.mx_cvg_mlt_incr_num;
647 End If;
648 If (p_rec.mx_cvg_mlt_incr_wcf_num = hr_api.g_number) then
649 p_rec.mx_cvg_mlt_incr_wcf_num :=
650 ben_lbr_shd.g_old_rec.mx_cvg_mlt_incr_wcf_num;
651 End If;
652 If (p_rec.mx_cvg_rl = hr_api.g_number) then
653 p_rec.mx_cvg_rl :=
654 ben_lbr_shd.g_old_rec.mx_cvg_rl;
655 End If;
656 If (p_rec.mx_cvg_wcfn_amt = hr_api.g_number) then
657 p_rec.mx_cvg_wcfn_amt :=
658 ben_lbr_shd.g_old_rec.mx_cvg_wcfn_amt;
659 End If;
660 If (p_rec.mx_cvg_wcfn_mlt_num = hr_api.g_number) then
661 p_rec.mx_cvg_wcfn_mlt_num :=
662 ben_lbr_shd.g_old_rec.mx_cvg_wcfn_mlt_num;
663 End If;
664 If (p_rec.mn_cvg_amt = hr_api.g_number) then
665 p_rec.mn_cvg_amt :=
666 ben_lbr_shd.g_old_rec.mn_cvg_amt;
667 End If;
668 If (p_rec.mn_cvg_rl = hr_api.g_number) then
669 p_rec.mn_cvg_rl :=
670 ben_lbr_shd.g_old_rec.mn_cvg_rl;
671 End If;
672 If (p_rec.cvg_incr_r_decr_only_cd = hr_api.g_varchar2) then
673 p_rec.cvg_incr_r_decr_only_cd :=
674 ben_lbr_shd.g_old_rec.cvg_incr_r_decr_only_cd;
675 End If;
676 If (p_rec.unsspnd_enrt_cd = hr_api.g_varchar2) then
677 p_rec.unsspnd_enrt_cd :=
678 ben_lbr_shd.g_old_rec.unsspnd_enrt_cd;
679 End If;
680 If (p_rec.dflt_to_asn_pndg_ctfn_cd = hr_api.g_varchar2) then
681 p_rec.dflt_to_asn_pndg_ctfn_cd :=
682 ben_lbr_shd.g_old_rec.dflt_to_asn_pndg_ctfn_cd;
683 End If;
684 If (p_rec.dflt_to_asn_pndg_ctfn_rl = hr_api.g_number) then
685 p_rec.dflt_to_asn_pndg_ctfn_rl :=
686 ben_lbr_shd.g_old_rec.dflt_to_asn_pndg_ctfn_rl;
687 End If;
688 If (p_rec.ler_id = hr_api.g_number) then
689 p_rec.ler_id :=
690 ben_lbr_shd.g_old_rec.ler_id;
691 End If;
692 If (p_rec.pl_id = hr_api.g_number) then
693 p_rec.pl_id :=
694 ben_lbr_shd.g_old_rec.pl_id;
695 End If;
696 If (p_rec.business_group_id = hr_api.g_number) then
697 p_rec.business_group_id :=
698 ben_lbr_shd.g_old_rec.business_group_id;
699 End If;
700 If (p_rec.plip_id = hr_api.g_number) then
701 p_rec.plip_id :=
702 ben_lbr_shd.g_old_rec.plip_id;
703 End If;
704 If (p_rec.lbr_attribute_category = hr_api.g_varchar2) then
705 p_rec.lbr_attribute_category :=
706 ben_lbr_shd.g_old_rec.lbr_attribute_category;
707 End If;
708 If (p_rec.lbr_attribute1 = hr_api.g_varchar2) then
709 p_rec.lbr_attribute1 :=
710 ben_lbr_shd.g_old_rec.lbr_attribute1;
711 End If;
712 If (p_rec.lbr_attribute2 = hr_api.g_varchar2) then
713 p_rec.lbr_attribute2 :=
714 ben_lbr_shd.g_old_rec.lbr_attribute2;
715 End If;
716 If (p_rec.lbr_attribute3 = hr_api.g_varchar2) then
717 p_rec.lbr_attribute3 :=
718 ben_lbr_shd.g_old_rec.lbr_attribute3;
719 End If;
720 If (p_rec.lbr_attribute4 = hr_api.g_varchar2) then
721 p_rec.lbr_attribute4 :=
722 ben_lbr_shd.g_old_rec.lbr_attribute4;
723 End If;
724 If (p_rec.lbr_attribute5 = hr_api.g_varchar2) then
725 p_rec.lbr_attribute5 :=
726 ben_lbr_shd.g_old_rec.lbr_attribute5;
727 End If;
728 If (p_rec.lbr_attribute6 = hr_api.g_varchar2) then
729 p_rec.lbr_attribute6 :=
730 ben_lbr_shd.g_old_rec.lbr_attribute6;
731 End If;
732 If (p_rec.lbr_attribute7 = hr_api.g_varchar2) then
733 p_rec.lbr_attribute7 :=
734 ben_lbr_shd.g_old_rec.lbr_attribute7;
735 End If;
736 If (p_rec.lbr_attribute8 = hr_api.g_varchar2) then
737 p_rec.lbr_attribute8 :=
738 ben_lbr_shd.g_old_rec.lbr_attribute8;
739 End If;
740 If (p_rec.lbr_attribute9 = hr_api.g_varchar2) then
741 p_rec.lbr_attribute9 :=
742 ben_lbr_shd.g_old_rec.lbr_attribute9;
743 End If;
744 If (p_rec.lbr_attribute10 = hr_api.g_varchar2) then
745 p_rec.lbr_attribute10 :=
746 ben_lbr_shd.g_old_rec.lbr_attribute10;
747 End If;
748 If (p_rec.lbr_attribute11 = hr_api.g_varchar2) then
749 p_rec.lbr_attribute11 :=
750 ben_lbr_shd.g_old_rec.lbr_attribute11;
751 End If;
752 If (p_rec.lbr_attribute12 = hr_api.g_varchar2) then
753 p_rec.lbr_attribute12 :=
754 ben_lbr_shd.g_old_rec.lbr_attribute12;
755 End If;
756 If (p_rec.lbr_attribute13 = hr_api.g_varchar2) then
757 p_rec.lbr_attribute13 :=
758 ben_lbr_shd.g_old_rec.lbr_attribute13;
759 End If;
760 If (p_rec.lbr_attribute14 = hr_api.g_varchar2) then
761 p_rec.lbr_attribute14 :=
762 ben_lbr_shd.g_old_rec.lbr_attribute14;
763 End If;
764 If (p_rec.lbr_attribute15 = hr_api.g_varchar2) then
765 p_rec.lbr_attribute15 :=
766 ben_lbr_shd.g_old_rec.lbr_attribute15;
767 End If;
768 If (p_rec.lbr_attribute16 = hr_api.g_varchar2) then
769 p_rec.lbr_attribute16 :=
770 ben_lbr_shd.g_old_rec.lbr_attribute16;
771 End If;
772 If (p_rec.lbr_attribute17 = hr_api.g_varchar2) then
773 p_rec.lbr_attribute17 :=
774 ben_lbr_shd.g_old_rec.lbr_attribute17;
775 End If;
776 If (p_rec.lbr_attribute18 = hr_api.g_varchar2) then
777 p_rec.lbr_attribute18 :=
778 ben_lbr_shd.g_old_rec.lbr_attribute18;
779 End If;
780 If (p_rec.lbr_attribute19 = hr_api.g_varchar2) then
781 p_rec.lbr_attribute19 :=
782 ben_lbr_shd.g_old_rec.lbr_attribute19;
783 End If;
784 If (p_rec.lbr_attribute20 = hr_api.g_varchar2) then
785 p_rec.lbr_attribute20 :=
786 ben_lbr_shd.g_old_rec.lbr_attribute20;
787 End If;
788 If (p_rec.lbr_attribute21 = hr_api.g_varchar2) then
789 p_rec.lbr_attribute21 :=
790 ben_lbr_shd.g_old_rec.lbr_attribute21;
791 End If;
792 If (p_rec.lbr_attribute22 = hr_api.g_varchar2) then
793 p_rec.lbr_attribute22 :=
794 ben_lbr_shd.g_old_rec.lbr_attribute22;
795 End If;
796 If (p_rec.lbr_attribute23 = hr_api.g_varchar2) then
797 p_rec.lbr_attribute23 :=
798 ben_lbr_shd.g_old_rec.lbr_attribute23;
799 End If;
800 If (p_rec.lbr_attribute24 = hr_api.g_varchar2) then
801 p_rec.lbr_attribute24 :=
802 ben_lbr_shd.g_old_rec.lbr_attribute24;
803 End If;
804 If (p_rec.lbr_attribute25 = hr_api.g_varchar2) then
805 p_rec.lbr_attribute25 :=
806 ben_lbr_shd.g_old_rec.lbr_attribute25;
807 End If;
808 If (p_rec.lbr_attribute26 = hr_api.g_varchar2) then
809 p_rec.lbr_attribute26 :=
810 ben_lbr_shd.g_old_rec.lbr_attribute26;
811 End If;
812 If (p_rec.lbr_attribute27 = hr_api.g_varchar2) then
813 p_rec.lbr_attribute27 :=
814 ben_lbr_shd.g_old_rec.lbr_attribute27;
815 End If;
816 If (p_rec.lbr_attribute28 = hr_api.g_varchar2) then
817 p_rec.lbr_attribute28 :=
818 ben_lbr_shd.g_old_rec.lbr_attribute28;
819 End If;
820 If (p_rec.lbr_attribute29 = hr_api.g_varchar2) then
821 p_rec.lbr_attribute29 :=
822 ben_lbr_shd.g_old_rec.lbr_attribute29;
823 End If;
824 If (p_rec.lbr_attribute30 = hr_api.g_varchar2) then
825 p_rec.lbr_attribute30 :=
826 ben_lbr_shd.g_old_rec.lbr_attribute30;
827 End If;
828 If (p_rec.susp_if_ctfn_not_prvd_flag = hr_api.g_varchar2) then
829 p_rec.susp_if_ctfn_not_prvd_flag :=
830 ben_lbr_shd.g_old_rec.susp_if_ctfn_not_prvd_flag;
831 End If;
832 If (p_rec.ctfn_determine_cd = hr_api.g_varchar2) then
833 p_rec.ctfn_determine_cd :=
834 ben_lbr_shd.g_old_rec.ctfn_determine_cd;
835 End If;
836
837 --
838 hr_utility.set_location(' Leaving:'||l_proc, 10);
839 --
840 End convert_defs;
841 --
842 -- ----------------------------------------------------------------------------
843 -- |---------------------------------< upd >----------------------------------|
844 -- ----------------------------------------------------------------------------
845 Procedure upd
846 (
847 p_rec in out nocopy ben_lbr_shd.g_rec_type,
848 p_effective_date in date,
849 p_datetrack_mode in varchar2
850 ) is
851 --
852 l_proc varchar2(72) := g_package||'upd';
853 l_validation_start_date date;
854 l_validation_end_date date;
855 --
856 Begin
857 hr_utility.set_location('Entering:'||l_proc, 5);
858 --
859 -- Ensure that the DateTrack update mode is valid
860 --
861 dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
862 --
863 -- We must lock the row which we need to update.
864 --
865 ben_lbr_shd.lck
866 (p_effective_date => p_effective_date,
867 p_datetrack_mode => p_datetrack_mode,
868 p_ler_bnft_rstrn_id => p_rec.ler_bnft_rstrn_id,
869 p_object_version_number => p_rec.object_version_number,
870 p_validation_start_date => l_validation_start_date,
871 p_validation_end_date => l_validation_end_date);
872 --
873 -- 1. During an update system defaults are used to determine if
874 -- arguments have been defaulted or not. We must therefore
875 -- derive the full record structure values to be updated.
876 --
877 -- 2. Call the supporting update validate operations.
878 --
879 convert_defs(p_rec);
880 ben_lbr_bus.update_validate
881 (p_rec => p_rec,
882 p_effective_date => p_effective_date,
883 p_datetrack_mode => p_datetrack_mode,
884 p_validation_start_date => l_validation_start_date,
885 p_validation_end_date => l_validation_end_date);
886 --
887 -- Call the supporting pre-update operation
888 --
889 pre_update
890 (p_rec => p_rec,
891 p_effective_date => p_effective_date,
892 p_datetrack_mode => p_datetrack_mode,
893 p_validation_start_date => l_validation_start_date,
894 p_validation_end_date => l_validation_end_date);
895 --
896 -- Update the row.
897 --
898 update_dml
899 (p_rec => p_rec,
900 p_effective_date => p_effective_date,
901 p_datetrack_mode => p_datetrack_mode,
902 p_validation_start_date => l_validation_start_date,
903 p_validation_end_date => l_validation_end_date);
904 --
905 -- Call the supporting post-update operation
906 --
907 post_update
908 (p_rec => p_rec,
909 p_effective_date => p_effective_date,
910 p_datetrack_mode => p_datetrack_mode,
911 p_validation_start_date => l_validation_start_date,
912 p_validation_end_date => l_validation_end_date);
913 End upd;
914 --
915 -- ----------------------------------------------------------------------------
916 -- |---------------------------------< upd >----------------------------------|
917 -- ----------------------------------------------------------------------------
918 Procedure upd
919 (
920 p_ler_bnft_rstrn_id in number,
921 p_effective_start_date out nocopy date,
922 p_effective_end_date out nocopy date,
923 p_no_mx_cvg_amt_apls_flag in varchar2,
924 p_no_mn_cvg_incr_apls_flag in varchar2,
925 p_no_mx_cvg_incr_apls_flag in varchar2,
926 p_mx_cvg_incr_wcf_alwd_amt in number ,
927 p_mx_cvg_incr_alwd_amt in number ,
928 p_mx_cvg_alwd_amt in number ,
929 p_mx_cvg_mlt_incr_num in number ,
930 p_mx_cvg_mlt_incr_wcf_num in number ,
931 p_mx_cvg_rl in number ,
932 p_mx_cvg_wcfn_amt in number ,
933 p_mx_cvg_wcfn_mlt_num in number ,
934 p_mn_cvg_amt in number ,
935 p_mn_cvg_rl in number ,
936 p_cvg_incr_r_decr_only_cd in varchar2,
937 p_unsspnd_enrt_cd in varchar2,
938 p_dflt_to_asn_pndg_ctfn_cd in varchar2,
939 p_dflt_to_asn_pndg_ctfn_rl in number ,
940 p_ler_id in number ,
941 p_pl_id in number ,
942 p_business_group_id in number ,
943 p_plip_id in number ,
944 p_lbr_attribute_category in varchar2,
945 p_lbr_attribute1 in varchar2,
946 p_lbr_attribute2 in varchar2,
947 p_lbr_attribute3 in varchar2,
948 p_lbr_attribute4 in varchar2,
949 p_lbr_attribute5 in varchar2,
950 p_lbr_attribute6 in varchar2,
951 p_lbr_attribute7 in varchar2,
952 p_lbr_attribute8 in varchar2,
953 p_lbr_attribute9 in varchar2,
954 p_lbr_attribute10 in varchar2,
955 p_lbr_attribute11 in varchar2,
956 p_lbr_attribute12 in varchar2,
957 p_lbr_attribute13 in varchar2,
958 p_lbr_attribute14 in varchar2,
959 p_lbr_attribute15 in varchar2,
960 p_lbr_attribute16 in varchar2,
961 p_lbr_attribute17 in varchar2,
962 p_lbr_attribute18 in varchar2,
963 p_lbr_attribute19 in varchar2,
964 p_lbr_attribute20 in varchar2,
965 p_lbr_attribute21 in varchar2,
966 p_lbr_attribute22 in varchar2,
967 p_lbr_attribute23 in varchar2,
968 p_lbr_attribute24 in varchar2,
969 p_lbr_attribute25 in varchar2,
970 p_lbr_attribute26 in varchar2,
971 p_lbr_attribute27 in varchar2,
972 p_lbr_attribute28 in varchar2,
973 p_lbr_attribute29 in varchar2,
974 p_lbr_attribute30 in varchar2,
975 p_susp_if_ctfn_not_prvd_flag in varchar2,
976 p_ctfn_determine_cd in varchar2,
977 p_object_version_number in out nocopy number,
978 p_effective_date in date,
979 p_datetrack_mode in varchar2
980 ) is
981 --
982 l_rec ben_lbr_shd.g_rec_type;
983 l_proc varchar2(72) := g_package||'upd';
984 --
985 Begin
986 hr_utility.set_location('Entering:'||l_proc, 5);
987 --
988 -- Call conversion function to turn arguments into the
989 -- l_rec structure.
990 --
991 l_rec :=
992 ben_lbr_shd.convert_args
993 (
994 p_ler_bnft_rstrn_id,
995 null,
996 null,
997 p_no_mx_cvg_amt_apls_flag,
998 p_no_mn_cvg_incr_apls_flag,
999 p_no_mx_cvg_incr_apls_flag,
1000 p_mx_cvg_incr_wcf_alwd_amt,
1001 p_mx_cvg_incr_alwd_amt,
1002 p_mx_cvg_alwd_amt,
1003 p_mx_cvg_mlt_incr_num,
1004 p_mx_cvg_mlt_incr_wcf_num,
1005 p_mx_cvg_rl,
1006 p_mx_cvg_wcfn_amt,
1007 p_mx_cvg_wcfn_mlt_num,
1008 p_mn_cvg_amt,
1009 p_mn_cvg_rl,
1010 p_cvg_incr_r_decr_only_cd,
1011 p_unsspnd_enrt_cd,
1012 p_dflt_to_asn_pndg_ctfn_cd,
1013 p_dflt_to_asn_pndg_ctfn_rl,
1014 p_ler_id,
1015 p_pl_id,
1016 p_business_group_id,
1017 p_plip_id,
1018 p_lbr_attribute_category,
1019 p_lbr_attribute1,
1020 p_lbr_attribute2,
1021 p_lbr_attribute3,
1022 p_lbr_attribute4,
1023 p_lbr_attribute5,
1024 p_lbr_attribute6,
1025 p_lbr_attribute7,
1026 p_lbr_attribute8,
1027 p_lbr_attribute9,
1028 p_lbr_attribute10,
1029 p_lbr_attribute11,
1030 p_lbr_attribute12,
1031 p_lbr_attribute13,
1032 p_lbr_attribute14,
1033 p_lbr_attribute15,
1034 p_lbr_attribute16,
1035 p_lbr_attribute17,
1036 p_lbr_attribute18,
1037 p_lbr_attribute19,
1038 p_lbr_attribute20,
1039 p_lbr_attribute21,
1040 p_lbr_attribute22,
1041 p_lbr_attribute23,
1042 p_lbr_attribute24,
1043 p_lbr_attribute25,
1044 p_lbr_attribute26,
1045 p_lbr_attribute27,
1046 p_lbr_attribute28,
1047 p_lbr_attribute29,
1048 p_lbr_attribute30,
1049 p_susp_if_ctfn_not_prvd_flag,
1050 p_ctfn_determine_cd,
1051 p_object_version_number
1052 );
1053 --
1054 -- Having converted the arguments into the
1055 -- plsql record structure we call the corresponding record
1056 -- business process.
1057 --
1058 upd(l_rec, p_effective_date, p_datetrack_mode);
1059 p_object_version_number := l_rec.object_version_number;
1060 p_effective_start_date := l_rec.effective_start_date;
1061 p_effective_end_date := l_rec.effective_end_date;
1062 --
1063 --
1064 hr_utility.set_location(' Leaving:'||l_proc, 10);
1065 End upd;
1066 --
1067 end ben_lbr_upd;