1 Package Body ben_bpl_upd as
2 /* $Header: bebplrhi.pkb 120.1.12010000.2 2008/09/18 04:35:40 sallumwa ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_bpl_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_bpl_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_bnft_prvdd_ldgr_f',
78 p_base_key_column => 'bnft_prvdd_ldgr_id',
79 p_base_key_value => p_rec.bnft_prvdd_ldgr_id);
80 --
81 ben_bpl_shd.g_api_dml := true; -- Set the api dml status
82 --
83 -- Update the ben_bnft_prvdd_ldgr_f Row
84 --
85 update ben_bnft_prvdd_ldgr_f
86 set
87 bnft_prvdd_ldgr_id = p_rec.bnft_prvdd_ldgr_id,
88 prtt_ro_of_unusd_amt_flag = p_rec.prtt_ro_of_unusd_amt_flag,
89 frftd_val = p_rec.frftd_val,
90 prvdd_val = p_rec.prvdd_val,
91 used_val = p_rec.used_val,
92 bnft_prvdr_pool_id = p_rec.bnft_prvdr_pool_id,
93 acty_base_rt_id = p_rec.acty_base_rt_id,
94 per_in_ler_id = p_rec.per_in_ler_id,
95 prtt_enrt_rslt_id = p_rec.prtt_enrt_rslt_id,
96 business_group_id = p_rec.business_group_id,
97 bpl_attribute_category = p_rec.bpl_attribute_category,
98 bpl_attribute1 = p_rec.bpl_attribute1,
99 bpl_attribute2 = p_rec.bpl_attribute2,
100 bpl_attribute3 = p_rec.bpl_attribute3,
101 bpl_attribute4 = p_rec.bpl_attribute4,
102 bpl_attribute5 = p_rec.bpl_attribute5,
103 bpl_attribute6 = p_rec.bpl_attribute6,
104 bpl_attribute7 = p_rec.bpl_attribute7,
105 bpl_attribute8 = p_rec.bpl_attribute8,
106 bpl_attribute9 = p_rec.bpl_attribute9,
107 bpl_attribute10 = p_rec.bpl_attribute10,
108 bpl_attribute11 = p_rec.bpl_attribute11,
109 bpl_attribute12 = p_rec.bpl_attribute12,
110 bpl_attribute13 = p_rec.bpl_attribute13,
111 bpl_attribute14 = p_rec.bpl_attribute14,
112 bpl_attribute15 = p_rec.bpl_attribute15,
113 bpl_attribute16 = p_rec.bpl_attribute16,
114 bpl_attribute17 = p_rec.bpl_attribute17,
115 bpl_attribute18 = p_rec.bpl_attribute18,
116 bpl_attribute19 = p_rec.bpl_attribute19,
117 bpl_attribute20 = p_rec.bpl_attribute20,
118 bpl_attribute21 = p_rec.bpl_attribute21,
119 bpl_attribute22 = p_rec.bpl_attribute22,
120 bpl_attribute23 = p_rec.bpl_attribute23,
121 bpl_attribute24 = p_rec.bpl_attribute24,
122 bpl_attribute25 = p_rec.bpl_attribute25,
123 bpl_attribute26 = p_rec.bpl_attribute26,
124 bpl_attribute27 = p_rec.bpl_attribute27,
125 bpl_attribute28 = p_rec.bpl_attribute28,
126 bpl_attribute29 = p_rec.bpl_attribute29,
127 bpl_attribute30 = p_rec.bpl_attribute30,
128 object_version_number = p_rec.object_version_number,
129 cash_recd_val = p_rec.cash_recd_val,
130 rld_up_val = p_rec.rld_up_val,
131 acty_ref_perd_cd = p_rec.acty_ref_perd_cd,
132 cmcd_frftd_val = p_rec.cmcd_frftd_val,
133 cmcd_prvdd_val = p_rec.cmcd_prvdd_val,
134 cmcd_rld_up_val = p_rec.cmcd_rld_up_val,
135 cmcd_used_val = p_rec.cmcd_used_val,
136 cmcd_cash_recd_val = p_rec.cmcd_cash_recd_val,
137 cmcd_ref_perd_cd = p_rec.cmcd_ref_perd_cd,
138 ann_frftd_val = p_rec.ann_frftd_val,
139 ann_prvdd_val = p_rec.ann_prvdd_val,
140 ann_rld_up_val = p_rec.ann_rld_up_val,
141 ann_used_val = p_rec.ann_used_val,
142 ann_cash_recd_val = p_rec.ann_cash_recd_val
143 where bnft_prvdd_ldgr_id = p_rec.bnft_prvdd_ldgr_id
144 and effective_start_date = p_validation_start_date
145 and effective_end_date = p_validation_end_date;
146 --
147 ben_bpl_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_bpl_shd.g_api_dml := false; -- Unset the api dml status
160 ben_bpl_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_bpl_shd.g_api_dml := false; -- Unset the api dml status
165 ben_bpl_shd.constraint_error
166 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
167 When Others Then
168 ben_bpl_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_bpl_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_bpl_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_bpl_shd.upd_effective_end_date
285 (p_effective_date => p_effective_date,
286 p_base_key_value => p_rec.bnft_prvdd_ldgr_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_bpl_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_bpl_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_bpl_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_bpl_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_bpl_rku.after_update
426 (
427 p_bnft_prvdd_ldgr_id =>p_rec.bnft_prvdd_ldgr_id
428 ,p_effective_start_date =>p_rec.effective_start_date
429 ,p_effective_end_date =>p_rec.effective_end_date
430 ,p_prtt_ro_of_unusd_amt_flag =>p_rec.prtt_ro_of_unusd_amt_flag
431 ,p_frftd_val =>p_rec.frftd_val
432 ,p_prvdd_val =>p_rec.prvdd_val
433 ,p_used_val =>p_rec.used_val
434 ,p_bnft_prvdr_pool_id =>p_rec.bnft_prvdr_pool_id
435 ,p_acty_base_rt_id =>p_rec.acty_base_rt_id
436 ,p_per_in_ler_id =>p_rec.per_in_ler_id
437 ,p_prtt_enrt_rslt_id =>p_rec.prtt_enrt_rslt_id
438 ,p_business_group_id =>p_rec.business_group_id
439 ,p_bpl_attribute_category =>p_rec.bpl_attribute_category
440 ,p_bpl_attribute1 =>p_rec.bpl_attribute1
441 ,p_bpl_attribute2 =>p_rec.bpl_attribute2
442 ,p_bpl_attribute3 =>p_rec.bpl_attribute3
443 ,p_bpl_attribute4 =>p_rec.bpl_attribute4
444 ,p_bpl_attribute5 =>p_rec.bpl_attribute5
445 ,p_bpl_attribute6 =>p_rec.bpl_attribute6
446 ,p_bpl_attribute7 =>p_rec.bpl_attribute7
447 ,p_bpl_attribute8 =>p_rec.bpl_attribute8
448 ,p_bpl_attribute9 =>p_rec.bpl_attribute9
449 ,p_bpl_attribute10 =>p_rec.bpl_attribute10
450 ,p_bpl_attribute11 =>p_rec.bpl_attribute11
451 ,p_bpl_attribute12 =>p_rec.bpl_attribute12
452 ,p_bpl_attribute13 =>p_rec.bpl_attribute13
453 ,p_bpl_attribute14 =>p_rec.bpl_attribute14
454 ,p_bpl_attribute15 =>p_rec.bpl_attribute15
455 ,p_bpl_attribute16 =>p_rec.bpl_attribute16
456 ,p_bpl_attribute17 =>p_rec.bpl_attribute17
457 ,p_bpl_attribute18 =>p_rec.bpl_attribute18
458 ,p_bpl_attribute19 =>p_rec.bpl_attribute19
459 ,p_bpl_attribute20 =>p_rec.bpl_attribute20
460 ,p_bpl_attribute21 =>p_rec.bpl_attribute21
461 ,p_bpl_attribute22 =>p_rec.bpl_attribute22
462 ,p_bpl_attribute23 =>p_rec.bpl_attribute23
463 ,p_bpl_attribute24 =>p_rec.bpl_attribute24
464 ,p_bpl_attribute25 =>p_rec.bpl_attribute25
465 ,p_bpl_attribute26 =>p_rec.bpl_attribute26
466 ,p_bpl_attribute27 =>p_rec.bpl_attribute27
467 ,p_bpl_attribute28 =>p_rec.bpl_attribute28
468 ,p_bpl_attribute29 =>p_rec.bpl_attribute29
469 ,p_bpl_attribute30 =>p_rec.bpl_attribute30
470 ,p_object_version_number =>p_rec.object_version_number
471 ,p_cash_recd_val =>p_rec.cash_recd_val
472 ,p_rld_up_val =>p_rec.rld_up_val
473 ,p_effective_date =>p_effective_date
474 ,p_datetrack_mode =>p_datetrack_mode
475 ,p_validation_start_date =>p_validation_start_date
476 ,p_validation_end_date =>p_validation_end_date,
477 p_acty_ref_perd_cd => p_rec.acty_ref_perd_cd,
478 p_cmcd_frftd_val => p_rec.cmcd_frftd_val,
479 p_cmcd_prvdd_val => p_rec.cmcd_prvdd_val,
480 p_cmcd_rld_up_val => p_rec.cmcd_rld_up_val,
481 p_cmcd_used_val => p_rec.cmcd_used_val,
482 p_cmcd_cash_recd_val => p_rec.cmcd_cash_recd_val,
483 p_cmcd_ref_perd_cd => p_rec.cmcd_ref_perd_cd,
484 p_ann_frftd_val => p_rec.ann_frftd_val,
485 p_ann_prvdd_val => p_rec.ann_prvdd_val,
486 p_ann_rld_up_val => p_rec.ann_rld_up_val,
487 p_ann_used_val => p_rec.ann_used_val,
488 p_ann_cash_recd_val => p_rec.ann_cash_recd_val
489 ,p_effective_start_date_o =>ben_bpl_shd.g_old_rec.effective_start_date
490 ,p_effective_end_date_o =>ben_bpl_shd.g_old_rec.effective_end_date
491 ,p_prtt_ro_of_unusd_amt_flag_o =>ben_bpl_shd.g_old_rec.prtt_ro_of_unusd_amt_flag
492 ,p_frftd_val_o =>ben_bpl_shd.g_old_rec.frftd_val
493 ,p_prvdd_val_o =>ben_bpl_shd.g_old_rec.prvdd_val
494 ,p_used_val_o =>ben_bpl_shd.g_old_rec.used_val
495 ,p_bnft_prvdr_pool_id_o =>ben_bpl_shd.g_old_rec.bnft_prvdr_pool_id
496 ,p_acty_base_rt_id_o =>ben_bpl_shd.g_old_rec.acty_base_rt_id
497 ,p_per_in_ler_id_o =>ben_bpl_shd.g_old_rec.per_in_ler_id
498 ,p_prtt_enrt_rslt_id_o =>ben_bpl_shd.g_old_rec.prtt_enrt_rslt_id
499 ,p_business_group_id_o =>ben_bpl_shd.g_old_rec.business_group_id
500 ,p_bpl_attribute_category_o =>ben_bpl_shd.g_old_rec.bpl_attribute_category
501 ,p_bpl_attribute1_o =>ben_bpl_shd.g_old_rec.bpl_attribute1
502 ,p_bpl_attribute2_o =>ben_bpl_shd.g_old_rec.bpl_attribute2
503 ,p_bpl_attribute3_o =>ben_bpl_shd.g_old_rec.bpl_attribute3
504 ,p_bpl_attribute4_o =>ben_bpl_shd.g_old_rec.bpl_attribute4
505 ,p_bpl_attribute5_o =>ben_bpl_shd.g_old_rec.bpl_attribute5
506 ,p_bpl_attribute6_o =>ben_bpl_shd.g_old_rec.bpl_attribute6
507 ,p_bpl_attribute7_o =>ben_bpl_shd.g_old_rec.bpl_attribute7
508 ,p_bpl_attribute8_o =>ben_bpl_shd.g_old_rec.bpl_attribute8
509 ,p_bpl_attribute9_o =>ben_bpl_shd.g_old_rec.bpl_attribute9
510 ,p_bpl_attribute10_o =>ben_bpl_shd.g_old_rec.bpl_attribute10
511 ,p_bpl_attribute11_o =>ben_bpl_shd.g_old_rec.bpl_attribute11
512 ,p_bpl_attribute12_o =>ben_bpl_shd.g_old_rec.bpl_attribute12
513 ,p_bpl_attribute13_o =>ben_bpl_shd.g_old_rec.bpl_attribute13
514 ,p_bpl_attribute14_o =>ben_bpl_shd.g_old_rec.bpl_attribute14
515 ,p_bpl_attribute15_o =>ben_bpl_shd.g_old_rec.bpl_attribute15
516 ,p_bpl_attribute16_o =>ben_bpl_shd.g_old_rec.bpl_attribute16
517 ,p_bpl_attribute17_o =>ben_bpl_shd.g_old_rec.bpl_attribute17
518 ,p_bpl_attribute18_o =>ben_bpl_shd.g_old_rec.bpl_attribute18
519 ,p_bpl_attribute19_o =>ben_bpl_shd.g_old_rec.bpl_attribute19
520 ,p_bpl_attribute20_o =>ben_bpl_shd.g_old_rec.bpl_attribute20
521 ,p_bpl_attribute21_o =>ben_bpl_shd.g_old_rec.bpl_attribute21
522 ,p_bpl_attribute22_o =>ben_bpl_shd.g_old_rec.bpl_attribute22
523 ,p_bpl_attribute23_o =>ben_bpl_shd.g_old_rec.bpl_attribute23
524 ,p_bpl_attribute24_o =>ben_bpl_shd.g_old_rec.bpl_attribute24
525 ,p_bpl_attribute25_o =>ben_bpl_shd.g_old_rec.bpl_attribute25
526 ,p_bpl_attribute26_o =>ben_bpl_shd.g_old_rec.bpl_attribute26
527 ,p_bpl_attribute27_o =>ben_bpl_shd.g_old_rec.bpl_attribute27
528 ,p_bpl_attribute28_o =>ben_bpl_shd.g_old_rec.bpl_attribute28
529 ,p_bpl_attribute29_o =>ben_bpl_shd.g_old_rec.bpl_attribute29
530 ,p_bpl_attribute30_o =>ben_bpl_shd.g_old_rec.bpl_attribute30
531 ,p_object_version_number_o =>ben_bpl_shd.g_old_rec.object_version_number
532 ,p_cash_recd_val_o =>ben_bpl_shd.g_old_rec.cash_recd_val
533 ,p_rld_up_val_o =>ben_bpl_shd.g_old_rec.rld_up_val,
534 p_acty_ref_perd_cd_o => ben_bpl_shd.g_old_rec.acty_ref_perd_cd,
535 p_cmcd_frftd_val_o => ben_bpl_shd.g_old_rec.cmcd_frftd_val,
536 p_cmcd_prvdd_val_o => ben_bpl_shd.g_old_rec.cmcd_prvdd_val,
537 p_cmcd_rld_up_val_o => ben_bpl_shd.g_old_rec.cmcd_rld_up_val,
538 p_cmcd_used_val_o => ben_bpl_shd.g_old_rec.cmcd_used_val,
539 p_cmcd_cash_recd_val_o => ben_bpl_shd.g_old_rec.cmcd_cash_recd_val,
540 p_cmcd_ref_perd_cd_o => ben_bpl_shd.g_old_rec.cmcd_ref_perd_cd,
541 p_ann_frftd_val_o => ben_bpl_shd.g_old_rec.ann_frftd_val,
542 p_ann_prvdd_val_o => ben_bpl_shd.g_old_rec.ann_prvdd_val,
543 p_ann_rld_up_val_o => ben_bpl_shd.g_old_rec.ann_rld_up_val,
544 p_ann_used_val_o => ben_bpl_shd.g_old_rec.ann_used_val,
545 p_ann_cash_recd_val_o => ben_bpl_shd.g_old_rec.ann_cash_recd_val
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_bnft_prvdd_ldgr_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_bpl_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.prtt_ro_of_unusd_amt_flag = hr_api.g_varchar2) then
621 p_rec.prtt_ro_of_unusd_amt_flag :=
622 ben_bpl_shd.g_old_rec.prtt_ro_of_unusd_amt_flag;
623 End If;
624 If (p_rec.frftd_val = hr_api.g_number) then
625 p_rec.frftd_val :=
626 ben_bpl_shd.g_old_rec.frftd_val;
627 End If;
628 If (p_rec.prvdd_val = hr_api.g_number) then
629 p_rec.prvdd_val :=
630 ben_bpl_shd.g_old_rec.prvdd_val;
631 End If;
632 If (p_rec.used_val = hr_api.g_number) then
633 p_rec.used_val :=
634 ben_bpl_shd.g_old_rec.used_val;
635 End If;
636 If (p_rec.bnft_prvdr_pool_id = hr_api.g_number) then
637 p_rec.bnft_prvdr_pool_id :=
638 ben_bpl_shd.g_old_rec.bnft_prvdr_pool_id;
639 End If;
640 If (p_rec.acty_base_rt_id = hr_api.g_number) then
641 p_rec.acty_base_rt_id :=
642 ben_bpl_shd.g_old_rec.acty_base_rt_id;
643 End If;
644 If (p_rec.per_in_ler_id = hr_api.g_number) then
645 p_rec.per_in_ler_id :=
646 ben_bpl_shd.g_old_rec.per_in_ler_id;
647 End If;
648 If (p_rec.prtt_enrt_rslt_id = hr_api.g_number) then
649 p_rec.prtt_enrt_rslt_id :=
650 ben_bpl_shd.g_old_rec.prtt_enrt_rslt_id;
651 End If;
652 If (p_rec.business_group_id = hr_api.g_number) then
653 p_rec.business_group_id :=
654 ben_bpl_shd.g_old_rec.business_group_id;
655 End If;
656 If (p_rec.bpl_attribute_category = hr_api.g_varchar2) then
657 p_rec.bpl_attribute_category :=
658 ben_bpl_shd.g_old_rec.bpl_attribute_category;
659 End If;
660 If (p_rec.bpl_attribute1 = hr_api.g_varchar2) then
661 p_rec.bpl_attribute1 :=
662 ben_bpl_shd.g_old_rec.bpl_attribute1;
663 End If;
664 If (p_rec.bpl_attribute2 = hr_api.g_varchar2) then
665 p_rec.bpl_attribute2 :=
666 ben_bpl_shd.g_old_rec.bpl_attribute2;
667 End If;
668 If (p_rec.bpl_attribute3 = hr_api.g_varchar2) then
669 p_rec.bpl_attribute3 :=
670 ben_bpl_shd.g_old_rec.bpl_attribute3;
671 End If;
672 If (p_rec.bpl_attribute4 = hr_api.g_varchar2) then
673 p_rec.bpl_attribute4 :=
674 ben_bpl_shd.g_old_rec.bpl_attribute4;
675 End If;
676 If (p_rec.bpl_attribute5 = hr_api.g_varchar2) then
677 p_rec.bpl_attribute5 :=
678 ben_bpl_shd.g_old_rec.bpl_attribute5;
679 End If;
680 If (p_rec.bpl_attribute6 = hr_api.g_varchar2) then
681 p_rec.bpl_attribute6 :=
682 ben_bpl_shd.g_old_rec.bpl_attribute6;
683 End If;
684 If (p_rec.bpl_attribute7 = hr_api.g_varchar2) then
685 p_rec.bpl_attribute7 :=
686 ben_bpl_shd.g_old_rec.bpl_attribute7;
687 End If;
688 If (p_rec.bpl_attribute8 = hr_api.g_varchar2) then
689 p_rec.bpl_attribute8 :=
690 ben_bpl_shd.g_old_rec.bpl_attribute8;
691 End If;
692 If (p_rec.bpl_attribute9 = hr_api.g_varchar2) then
693 p_rec.bpl_attribute9 :=
694 ben_bpl_shd.g_old_rec.bpl_attribute9;
695 End If;
696 If (p_rec.bpl_attribute10 = hr_api.g_varchar2) then
697 p_rec.bpl_attribute10 :=
698 ben_bpl_shd.g_old_rec.bpl_attribute10;
699 End If;
700 If (p_rec.bpl_attribute11 = hr_api.g_varchar2) then
701 p_rec.bpl_attribute11 :=
702 ben_bpl_shd.g_old_rec.bpl_attribute11;
703 End If;
704 If (p_rec.bpl_attribute12 = hr_api.g_varchar2) then
705 p_rec.bpl_attribute12 :=
706 ben_bpl_shd.g_old_rec.bpl_attribute12;
707 End If;
708 If (p_rec.bpl_attribute13 = hr_api.g_varchar2) then
709 p_rec.bpl_attribute13 :=
710 ben_bpl_shd.g_old_rec.bpl_attribute13;
711 End If;
712 If (p_rec.bpl_attribute14 = hr_api.g_varchar2) then
713 p_rec.bpl_attribute14 :=
714 ben_bpl_shd.g_old_rec.bpl_attribute14;
715 End If;
716 If (p_rec.bpl_attribute15 = hr_api.g_varchar2) then
717 p_rec.bpl_attribute15 :=
718 ben_bpl_shd.g_old_rec.bpl_attribute15;
719 End If;
720 If (p_rec.bpl_attribute16 = hr_api.g_varchar2) then
721 p_rec.bpl_attribute16 :=
722 ben_bpl_shd.g_old_rec.bpl_attribute16;
723 End If;
724 If (p_rec.bpl_attribute17 = hr_api.g_varchar2) then
725 p_rec.bpl_attribute17 :=
726 ben_bpl_shd.g_old_rec.bpl_attribute17;
727 End If;
728 If (p_rec.bpl_attribute18 = hr_api.g_varchar2) then
729 p_rec.bpl_attribute18 :=
730 ben_bpl_shd.g_old_rec.bpl_attribute18;
731 End If;
732 If (p_rec.bpl_attribute19 = hr_api.g_varchar2) then
733 p_rec.bpl_attribute19 :=
734 ben_bpl_shd.g_old_rec.bpl_attribute19;
735 End If;
736 If (p_rec.bpl_attribute20 = hr_api.g_varchar2) then
737 p_rec.bpl_attribute20 :=
738 ben_bpl_shd.g_old_rec.bpl_attribute20;
739 End If;
740 If (p_rec.bpl_attribute21 = hr_api.g_varchar2) then
741 p_rec.bpl_attribute21 :=
742 ben_bpl_shd.g_old_rec.bpl_attribute21;
743 End If;
744 If (p_rec.bpl_attribute22 = hr_api.g_varchar2) then
745 p_rec.bpl_attribute22 :=
746 ben_bpl_shd.g_old_rec.bpl_attribute22;
747 End If;
748 If (p_rec.bpl_attribute23 = hr_api.g_varchar2) then
749 p_rec.bpl_attribute23 :=
750 ben_bpl_shd.g_old_rec.bpl_attribute23;
751 End If;
752 If (p_rec.bpl_attribute24 = hr_api.g_varchar2) then
753 p_rec.bpl_attribute24 :=
754 ben_bpl_shd.g_old_rec.bpl_attribute24;
755 End If;
756 If (p_rec.bpl_attribute25 = hr_api.g_varchar2) then
757 p_rec.bpl_attribute25 :=
758 ben_bpl_shd.g_old_rec.bpl_attribute25;
759 End If;
760 If (p_rec.bpl_attribute26 = hr_api.g_varchar2) then
761 p_rec.bpl_attribute26 :=
762 ben_bpl_shd.g_old_rec.bpl_attribute26;
763 End If;
764 If (p_rec.bpl_attribute27 = hr_api.g_varchar2) then
765 p_rec.bpl_attribute27 :=
766 ben_bpl_shd.g_old_rec.bpl_attribute27;
767 End If;
768 If (p_rec.bpl_attribute28 = hr_api.g_varchar2) then
769 p_rec.bpl_attribute28 :=
770 ben_bpl_shd.g_old_rec.bpl_attribute28;
771 End If;
772 If (p_rec.bpl_attribute29 = hr_api.g_varchar2) then
773 p_rec.bpl_attribute29 :=
774 ben_bpl_shd.g_old_rec.bpl_attribute29;
775 End If;
776 If (p_rec.bpl_attribute30 = hr_api.g_varchar2) then
777 p_rec.bpl_attribute30 :=
778 ben_bpl_shd.g_old_rec.bpl_attribute30;
779 End If;
780 If (p_rec.cash_recd_val = hr_api.g_number) then
781 p_rec.cash_recd_val :=
782 ben_bpl_shd.g_old_rec.cash_recd_val;
783 End If;
784 If (p_rec.rld_up_val = hr_api.g_number) then
785 p_rec.rld_up_val :=
786 ben_bpl_shd.g_old_rec.rld_up_val;
787 End If;
788
789
790 If (p_rec.acty_ref_perd_cd = hr_api.g_varchar2) then
791 p_rec.acty_ref_perd_cd :=
792 ben_bpl_shd.g_old_rec.acty_ref_perd_cd;
793 End If;
794 If (p_rec.cmcd_frftd_val = hr_api.g_number) then
795 p_rec.cmcd_frftd_val :=
796 ben_bpl_shd.g_old_rec.cmcd_frftd_val;
797 End If;
798 If (p_rec.cmcd_prvdd_val = hr_api.g_number) then
799 p_rec.cmcd_prvdd_val :=
800 ben_bpl_shd.g_old_rec.cmcd_prvdd_val;
801 End If;
802 If (p_rec.cmcd_rld_up_val = hr_api.g_number) then
803 p_rec.cmcd_rld_up_val :=
804 ben_bpl_shd.g_old_rec.cmcd_rld_up_val;
805 End If;
806 If (p_rec.cmcd_used_val = hr_api.g_number) then
807 p_rec.cmcd_used_val :=
808 ben_bpl_shd.g_old_rec.cmcd_used_val;
809 End If;
810 If (p_rec.cmcd_cash_recd_val = hr_api.g_number) then
811 p_rec.cmcd_cash_recd_val :=
812 ben_bpl_shd.g_old_rec.cmcd_cash_recd_val;
813 End If;
814 If (p_rec.cmcd_ref_perd_cd = hr_api.g_varchar2) then
815 p_rec.cmcd_ref_perd_cd :=
816 ben_bpl_shd.g_old_rec.cmcd_ref_perd_cd;
817 End If;
818
819 If (p_rec.ann_frftd_val = hr_api.g_number) then
820 p_rec.ann_frftd_val :=
821 ben_bpl_shd.g_old_rec.ann_frftd_val;
822 End If;
823 If (p_rec.ann_prvdd_val = hr_api.g_number) then
824 p_rec.ann_prvdd_val :=
825 ben_bpl_shd.g_old_rec.ann_prvdd_val;
826 End If;
827 If (p_rec.ann_rld_up_val = hr_api.g_number) then
828 p_rec.ann_rld_up_val :=
829 ben_bpl_shd.g_old_rec.ann_rld_up_val;
830 End If;
831 If (p_rec.ann_used_val = hr_api.g_number) then
832 p_rec.ann_used_val :=
833 ben_bpl_shd.g_old_rec.ann_used_val;
834 End If;
835 If (p_rec.ann_cash_recd_val = hr_api.g_number) then
836 p_rec.ann_cash_recd_val :=
837 ben_bpl_shd.g_old_rec.ann_cash_recd_val;
838 End If;
839
840
841 --
842 hr_utility.set_location(' Leaving:'||l_proc, 10);
843 --
844 End convert_defs;
845 --
846 -- ----------------------------------------------------------------------------
847 -- |---------------------------------< upd >----------------------------------|
848 -- ----------------------------------------------------------------------------
849 Procedure upd
850 (
851 p_rec in out nocopy ben_bpl_shd.g_rec_type,
852 p_effective_date in date,
853 p_datetrack_mode in varchar2
854 ) is
855 --
856 l_proc varchar2(72) := g_package||'upd';
857 l_validation_start_date date;
858 l_validation_end_date date;
859 --
860 Begin
861 hr_utility.set_location('Entering:'||l_proc, 5);
862 --
863 -- Ensure that the DateTrack update mode is valid
864 --
865 dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
866 --
867 -- We must lock the row which we need to update.
868 --
869 ben_bpl_shd.lck
870 (p_effective_date => p_effective_date,
871 p_datetrack_mode => p_datetrack_mode,
872 p_bnft_prvdd_ldgr_id => p_rec.bnft_prvdd_ldgr_id,
873 p_object_version_number => p_rec.object_version_number,
874 p_validation_start_date => l_validation_start_date,
875 p_validation_end_date => l_validation_end_date);
876 --
877 -- 1. During an update system defaults are used to determine if
878 -- arguments have been defaulted or not. We must therefore
879 -- derive the full record structure values to be updated.
880 --
881 -- 2. Call the supporting update validate operations.
882 --
883 convert_defs(p_rec);
884 ben_bpl_bus.update_validate
885 (p_rec => p_rec,
886 p_effective_date => p_effective_date,
887 p_datetrack_mode => p_datetrack_mode,
888 p_validation_start_date => l_validation_start_date,
889 p_validation_end_date => l_validation_end_date);
890 --
891 -- Call the supporting pre-update operation
892 --
893 pre_update
894 (p_rec => p_rec,
895 p_effective_date => p_effective_date,
896 p_datetrack_mode => p_datetrack_mode,
897 p_validation_start_date => l_validation_start_date,
898 p_validation_end_date => l_validation_end_date);
899 --
900 -- Update the row.
901 --
902 update_dml
903 (p_rec => p_rec,
904 p_effective_date => p_effective_date,
905 p_datetrack_mode => p_datetrack_mode,
906 p_validation_start_date => l_validation_start_date,
907 p_validation_end_date => l_validation_end_date);
908 --
909 -- Call the supporting post-update operation
910 --
911 post_update
912 (p_rec => p_rec,
913 p_effective_date => p_effective_date,
914 p_datetrack_mode => p_datetrack_mode,
915 p_validation_start_date => l_validation_start_date,
916 p_validation_end_date => l_validation_end_date);
917 End upd;
918 --
919 -- ----------------------------------------------------------------------------
920 -- |---------------------------------< upd >----------------------------------|
921 -- ----------------------------------------------------------------------------
922 Procedure upd
923 (
924 p_bnft_prvdd_ldgr_id in number,
925 p_effective_start_date out nocopy date,
926 p_effective_end_date out nocopy date,
927 p_prtt_ro_of_unusd_amt_flag in varchar2 default hr_api.g_varchar2,
928 p_frftd_val in number default hr_api.g_number,
929 p_prvdd_val in number default hr_api.g_number,
930 p_used_val in number default hr_api.g_number,
931 p_bnft_prvdr_pool_id in number default hr_api.g_number,
932 p_acty_base_rt_id in number default hr_api.g_number,
933 p_per_in_ler_id in number default hr_api.g_number,
934 p_prtt_enrt_rslt_id in number default hr_api.g_number,
935 p_business_group_id in number default hr_api.g_number,
936 p_bpl_attribute_category in varchar2 default hr_api.g_varchar2,
937 p_bpl_attribute1 in varchar2 default hr_api.g_varchar2,
938 p_bpl_attribute2 in varchar2 default hr_api.g_varchar2,
939 p_bpl_attribute3 in varchar2 default hr_api.g_varchar2,
940 p_bpl_attribute4 in varchar2 default hr_api.g_varchar2,
941 p_bpl_attribute5 in varchar2 default hr_api.g_varchar2,
942 p_bpl_attribute6 in varchar2 default hr_api.g_varchar2,
943 p_bpl_attribute7 in varchar2 default hr_api.g_varchar2,
944 p_bpl_attribute8 in varchar2 default hr_api.g_varchar2,
945 p_bpl_attribute9 in varchar2 default hr_api.g_varchar2,
946 p_bpl_attribute10 in varchar2 default hr_api.g_varchar2,
947 p_bpl_attribute11 in varchar2 default hr_api.g_varchar2,
948 p_bpl_attribute12 in varchar2 default hr_api.g_varchar2,
949 p_bpl_attribute13 in varchar2 default hr_api.g_varchar2,
950 p_bpl_attribute14 in varchar2 default hr_api.g_varchar2,
951 p_bpl_attribute15 in varchar2 default hr_api.g_varchar2,
952 p_bpl_attribute16 in varchar2 default hr_api.g_varchar2,
953 p_bpl_attribute17 in varchar2 default hr_api.g_varchar2,
954 p_bpl_attribute18 in varchar2 default hr_api.g_varchar2,
955 p_bpl_attribute19 in varchar2 default hr_api.g_varchar2,
956 p_bpl_attribute20 in varchar2 default hr_api.g_varchar2,
957 p_bpl_attribute21 in varchar2 default hr_api.g_varchar2,
958 p_bpl_attribute22 in varchar2 default hr_api.g_varchar2,
959 p_bpl_attribute23 in varchar2 default hr_api.g_varchar2,
960 p_bpl_attribute24 in varchar2 default hr_api.g_varchar2,
961 p_bpl_attribute25 in varchar2 default hr_api.g_varchar2,
962 p_bpl_attribute26 in varchar2 default hr_api.g_varchar2,
963 p_bpl_attribute27 in varchar2 default hr_api.g_varchar2,
964 p_bpl_attribute28 in varchar2 default hr_api.g_varchar2,
965 p_bpl_attribute29 in varchar2 default hr_api.g_varchar2,
966 p_bpl_attribute30 in varchar2 default hr_api.g_varchar2,
967 p_cash_recd_val in number default hr_api.g_number,
968 p_rld_up_val in number default hr_api.g_number,
969 p_effective_date in date,
970 p_datetrack_mode in varchar2,
971 p_acty_ref_perd_cd in varchar2 default hr_api.g_varchar2,
972 p_cmcd_frftd_val in number default hr_api.g_number,
973 p_cmcd_prvdd_val in number default hr_api.g_number,
974 p_cmcd_rld_up_val in number default hr_api.g_number,
975 p_cmcd_used_val in number default hr_api.g_number,
976 p_cmcd_cash_recd_val in number default hr_api.g_number,
977 p_cmcd_ref_perd_cd in varchar2 default hr_api.g_varchar2,
978 p_ann_frftd_val in number default hr_api.g_number,
979 p_ann_prvdd_val in number default hr_api.g_number,
980 p_ann_rld_up_val in number default hr_api.g_number,
981 p_ann_used_val in number default hr_api.g_number,
982 p_ann_cash_recd_val in number default hr_api.g_number,
983 p_object_version_number in out nocopy number
984 ) is
985 --
986 l_rec ben_bpl_shd.g_rec_type;
987 l_proc varchar2(72) := g_package||'upd';
988 --
989 Begin
990 hr_utility.set_location('Entering:'||l_proc, 5);
991 --
992 -- Call conversion function to turn arguments into the
993 -- l_rec structure.
994 --
995 l_rec :=
996 ben_bpl_shd.convert_args
997 (
998 p_bnft_prvdd_ldgr_id,
999 null,
1000 null,
1001 p_prtt_ro_of_unusd_amt_flag,
1002 p_frftd_val,
1003 p_prvdd_val,
1004 p_used_val,
1005 p_bnft_prvdr_pool_id,
1006 p_acty_base_rt_id,
1007 p_per_in_ler_id,
1008 p_prtt_enrt_rslt_id,
1009 p_business_group_id,
1010 p_bpl_attribute_category,
1011 p_bpl_attribute1,
1012 p_bpl_attribute2,
1013 p_bpl_attribute3,
1014 p_bpl_attribute4,
1015 p_bpl_attribute5,
1016 p_bpl_attribute6,
1017 p_bpl_attribute7,
1018 p_bpl_attribute8,
1019 p_bpl_attribute9,
1020 p_bpl_attribute10,
1021 p_bpl_attribute11,
1022 p_bpl_attribute12,
1023 p_bpl_attribute13,
1024 p_bpl_attribute14,
1025 p_bpl_attribute15,
1026 p_bpl_attribute16,
1027 p_bpl_attribute17,
1028 p_bpl_attribute18,
1029 p_bpl_attribute19,
1030 p_bpl_attribute20,
1031 p_bpl_attribute21,
1032 p_bpl_attribute22,
1033 p_bpl_attribute23,
1034 p_bpl_attribute24,
1035 p_bpl_attribute25,
1036 p_bpl_attribute26,
1037 p_bpl_attribute27,
1038 p_bpl_attribute28,
1039 p_bpl_attribute29,
1040 p_bpl_attribute30,
1041 p_object_version_number,
1042 p_cash_recd_val,
1043 p_rld_up_val,
1044 p_acty_ref_perd_cd,
1045 p_cmcd_frftd_val,
1046 p_cmcd_prvdd_val,
1047 p_cmcd_rld_up_val,
1048 p_cmcd_used_val,
1049 p_cmcd_cash_recd_val,
1050 p_cmcd_ref_perd_cd,
1051 p_ann_frftd_val,
1052 p_ann_prvdd_val,
1053 p_ann_rld_up_val,
1054 p_ann_used_val,
1055 p_ann_cash_recd_val
1056 );
1057 --
1058 -- Having converted the arguments into the
1059 -- plsql record structure we call the corresponding record
1060 -- business process.
1061 --
1062 upd(l_rec, p_effective_date, p_datetrack_mode);
1063 p_object_version_number := l_rec.object_version_number;
1064 p_effective_start_date := l_rec.effective_start_date;
1065 p_effective_end_date := l_rec.effective_end_date;
1066 --
1067 --
1068 hr_utility.set_location(' Leaving:'||l_proc, 10);
1069 End upd;
1070 --
1071 end ben_bpl_upd;