1 Package Body ben_bpr_upd as
2 /* $Header: bebprrhi.pkb 120.0.12010000.2 2008/08/05 14:12:50 ubhat ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_bpr_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_bpr_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_pool_rlovr_rqmt_f',
78 p_base_key_column => 'bnft_pool_rlovr_rqmt_id',
79 p_base_key_value => p_rec.bnft_pool_rlovr_rqmt_id);
80 --
81 ben_bpr_shd.g_api_dml := true; -- Set the api dml status
82 --
83 -- Update the ben_bnft_pool_rlovr_rqmt_f Row
84 --
85 update ben_bnft_pool_rlovr_rqmt_f
86 set
87 bnft_pool_rlovr_rqmt_id = p_rec.bnft_pool_rlovr_rqmt_id,
88 no_mn_rlovr_pct_dfnd_flag = p_rec.no_mn_rlovr_pct_dfnd_flag,
89 no_mx_rlovr_pct_dfnd_flag = p_rec.no_mx_rlovr_pct_dfnd_flag,
90 no_mn_rlovr_val_dfnd_flag = p_rec.no_mn_rlovr_val_dfnd_flag,
91 no_mx_rlovr_val_dfnd_flag = p_rec.no_mx_rlovr_val_dfnd_flag,
92 rlovr_val_incrmt_num = p_rec.rlovr_val_incrmt_num,
93 rlovr_val_rl = p_rec.rlovr_val_rl,
94 mn_rlovr_val = p_rec.mn_rlovr_val,
95 mx_rlovr_val = p_rec.mx_rlovr_val,
96 val_rndg_cd = p_rec.val_rndg_cd,
97 val_rndg_rl = p_rec.val_rndg_rl,
98 pct_rndg_cd = p_rec.pct_rndg_cd,
99 pct_rndg_rl = p_rec.pct_rndg_rl,
100 prtt_elig_rlovr_rl = p_rec.prtt_elig_rlovr_rl,
101 mx_rchd_dflt_ordr_num = p_rec.mx_rchd_dflt_ordr_num,
102 pct_rlovr_incrmt_num = p_rec.pct_rlovr_incrmt_num,
103 mn_rlovr_pct_num = p_rec.mn_rlovr_pct_num,
104 mx_rlovr_pct_num = p_rec.mx_rlovr_pct_num,
105 crs_rlovr_procg_cd = p_rec.crs_rlovr_procg_cd,
106 mx_pct_ttl_crs_cn_roll_num = p_rec.mx_pct_ttl_crs_cn_roll_num,
107 bnft_prvdr_pool_id = p_rec.bnft_prvdr_pool_id,
108 acty_base_rt_id = p_rec.acty_base_rt_id,
109 business_group_id = p_rec.business_group_id,
110 bpr_attribute_category = p_rec.bpr_attribute_category,
111 bpr_attribute1 = p_rec.bpr_attribute1,
112 bpr_attribute2 = p_rec.bpr_attribute2,
113 bpr_attribute3 = p_rec.bpr_attribute3,
114 bpr_attribute4 = p_rec.bpr_attribute4,
115 bpr_attribute5 = p_rec.bpr_attribute5,
116 bpr_attribute6 = p_rec.bpr_attribute6,
117 bpr_attribute7 = p_rec.bpr_attribute7,
118 bpr_attribute8 = p_rec.bpr_attribute8,
119 bpr_attribute9 = p_rec.bpr_attribute9,
120 bpr_attribute10 = p_rec.bpr_attribute10,
121 bpr_attribute11 = p_rec.bpr_attribute11,
122 bpr_attribute12 = p_rec.bpr_attribute12,
123 bpr_attribute13 = p_rec.bpr_attribute13,
124 bpr_attribute14 = p_rec.bpr_attribute14,
125 bpr_attribute15 = p_rec.bpr_attribute15,
126 bpr_attribute16 = p_rec.bpr_attribute16,
127 bpr_attribute17 = p_rec.bpr_attribute17,
128 bpr_attribute18 = p_rec.bpr_attribute18,
129 bpr_attribute19 = p_rec.bpr_attribute19,
130 bpr_attribute20 = p_rec.bpr_attribute20,
131 bpr_attribute21 = p_rec.bpr_attribute21,
132 bpr_attribute22 = p_rec.bpr_attribute22,
133 bpr_attribute23 = p_rec.bpr_attribute23,
134 bpr_attribute24 = p_rec.bpr_attribute24,
135 bpr_attribute25 = p_rec.bpr_attribute25,
136 bpr_attribute26 = p_rec.bpr_attribute26,
137 bpr_attribute27 = p_rec.bpr_attribute27,
138 bpr_attribute28 = p_rec.bpr_attribute28,
139 bpr_attribute29 = p_rec.bpr_attribute29,
140 bpr_attribute30 = p_rec.bpr_attribute30,
141 object_version_number = p_rec.object_version_number
142 where bnft_pool_rlovr_rqmt_id = p_rec.bnft_pool_rlovr_rqmt_id
143 and effective_start_date = p_validation_start_date
144 and effective_end_date = p_validation_end_date;
145 --
146 ben_bpr_shd.g_api_dml := false; -- Unset the api dml status
147 --
148 -- Set the effective start and end dates
149 --
150 p_rec.effective_start_date := p_validation_start_date;
151 p_rec.effective_end_date := p_validation_end_date;
152 End If;
153 --
154 hr_utility.set_location(' Leaving:'||l_proc, 15);
155 Exception
156 When hr_api.check_integrity_violated Then
157 -- A check constraint has been violated
158 ben_bpr_shd.g_api_dml := false; -- Unset the api dml status
159 ben_bpr_shd.constraint_error
160 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
161 When hr_api.unique_integrity_violated Then
162 -- Unique integrity has been violated
163 ben_bpr_shd.g_api_dml := false; -- Unset the api dml status
164 ben_bpr_shd.constraint_error
165 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
166 When Others Then
167 ben_bpr_shd.g_api_dml := false; -- Unset the api dml status
168 Raise;
169 End dt_update_dml;
170 --
171 -- ----------------------------------------------------------------------------
172 -- |------------------------------< update_dml >------------------------------|
173 -- ----------------------------------------------------------------------------
174 -- {Start Of Comments}
175 --
176 -- Description:
177 -- This procedure calls the dt_update_dml control logic which handles
178 -- the actual datetrack dml.
179 --
180 -- Prerequisites:
181 -- This is an internal private procedure which must be called from the upd
182 -- procedure.
183 --
184 -- In Parameters:
185 -- A Pl/Sql record structre.
186 --
187 -- Post Success:
188 -- Processing contines.
189 --
190 -- Post Failure:
191 -- No specific error handling is required within this procedure.
192 --
193 -- Developer Implementation Notes:
194 -- The update 'set' arguments list should be modified if any of your
195 -- attributes are not updateable.
196 --
197 -- Access Status:
198 -- Internal Row Handler Use Only.
199 --
200 -- {End Of Comments}
201 -- ----------------------------------------------------------------------------
202 Procedure update_dml
203 (p_rec in out nocopy ben_bpr_shd.g_rec_type,
204 p_effective_date in date,
205 p_datetrack_mode in varchar2,
206 p_validation_start_date in date,
207 p_validation_end_date in date) is
208 --
209 l_proc varchar2(72) := g_package||'update_dml';
210 --
211 Begin
212 hr_utility.set_location('Entering:'||l_proc, 5);
213 --
214 dt_update_dml(p_rec => p_rec,
215 p_effective_date => p_effective_date,
216 p_datetrack_mode => p_datetrack_mode,
217 p_validation_start_date => p_validation_start_date,
218 p_validation_end_date => p_validation_end_date);
219 --
220 hr_utility.set_location(' Leaving:'||l_proc, 10);
221 End update_dml;
222 --
223 -- ----------------------------------------------------------------------------
224 -- |----------------------------< dt_pre_update >-----------------------------|
225 -- ----------------------------------------------------------------------------
226 -- {Start Of Comments}
227 --
228 -- Description:
229 -- The dt_pre_update procedure controls the execution
230 -- of dml for the datetrack modes of: UPDATE, UPDATE_OVERRIDE
231 -- and UPDATE_CHANGE_INSERT only. The execution required is as
232 -- follows:
233 --
234 -- 1) Providing the datetrack update mode is not 'CORRECTION'
235 -- then set the effective end date of the current row (this
236 -- will be the validation_start_date - 1).
237 -- 2) If the datetrack mode is 'UPDATE_OVERRIDE' then call the
238 -- corresponding delete_dml process to delete any future rows
239 -- where the effective_start_date is greater than or equal to
240 -- the validation_start_date.
241 -- 3) Call the insert_dml process to insert the new updated row
242 -- details..
243 --
244 -- Prerequisites:
245 -- This is an internal procedure which is called from the
246 -- pre_update procedure.
247 --
248 -- In Parameters:
249 --
250 -- Post Success:
251 -- Processing continues.
252 --
253 -- Post Failure:
254 -- If an error has occurred, an error message and exception will be raised
255 -- but not handled.
256 --
257 -- Developer Implementation Notes:
258 -- This is an internal procedure which is required by Datetrack. Don't
259 -- remove or modify.
260 --
261 -- Access Status:
262 -- Internal Row Handler Use Only.
263 --
264 -- {End Of Comments}
265 -- ----------------------------------------------------------------------------
266 Procedure dt_pre_update
267 (p_rec in out nocopy ben_bpr_shd.g_rec_type,
268 p_effective_date in date,
269 p_datetrack_mode in varchar2,
270 p_validation_start_date in date,
271 p_validation_end_date in date) is
272 --
273 l_proc varchar2(72) := g_package||'dt_pre_update';
274 l_dummy_version_number number;
275 --
276 Begin
277 hr_utility.set_location('Entering:'||l_proc, 5);
278 If (p_datetrack_mode <> 'CORRECTION') then
279 hr_utility.set_location(l_proc, 10);
280 --
281 -- Update the current effective end date
282 --
283 ben_bpr_shd.upd_effective_end_date
284 (p_effective_date => p_effective_date,
285 p_base_key_value => p_rec.bnft_pool_rlovr_rqmt_id,
286 p_new_effective_end_date => (p_validation_start_date - 1),
287 p_validation_start_date => p_validation_start_date,
288 p_validation_end_date => p_validation_end_date,
289 p_object_version_number => l_dummy_version_number);
290 --
291 If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
292 hr_utility.set_location(l_proc, 15);
293 --
294 -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
295 -- delete any future rows
296 --
297 ben_bpr_del.delete_dml
298 (p_rec => p_rec,
299 p_effective_date => p_effective_date,
300 p_datetrack_mode => p_datetrack_mode,
301 p_validation_start_date => p_validation_start_date,
302 p_validation_end_date => p_validation_end_date);
303 End If;
304 hr_utility.set_location(l_proc, 20);
305 --
306 -- We must now insert the updated row
307 --
308 ben_bpr_ins.insert_dml
309 (p_rec => p_rec,
310 p_effective_date => p_effective_date,
311 p_datetrack_mode => p_datetrack_mode,
312 p_validation_start_date => p_validation_start_date,
313 p_validation_end_date => p_validation_end_date);
314 End If;
315 hr_utility.set_location(' Leaving:'||l_proc, 20);
316 End dt_pre_update;
317 --
318 -- ----------------------------------------------------------------------------
319 -- |------------------------------< pre_update >------------------------------|
320 -- ----------------------------------------------------------------------------
321 -- {Start Of Comments}
322 --
323 -- Description:
324 -- This private procedure contains any processing which is required before
325 -- the update dml.
326 --
327 -- Prerequisites:
328 -- This is an internal procedure which is called from the upd procedure.
329 --
330 -- In Parameters:
331 -- A Pl/Sql record structre.
332 --
333 -- Post Success:
334 -- Processing continues.
335 --
336 -- Post Failure:
337 -- If an error has occurred, an error message and exception will be raised
338 -- but not handled.
339 --
340 -- Developer Implementation Notes:
341 -- Any pre-processing required before the update dml is issued should be
342 -- coded within this procedure. It is important to note that any 3rd party
343 -- maintenance should be reviewed before placing in this procedure. The call
344 -- to the dt_update_dml procedure should NOT be removed.
345 --
346 -- Access Status:
347 -- Internal Row Handler Use Only.
348 --
349 -- {End Of Comments}
350 -- ----------------------------------------------------------------------------
351 Procedure pre_update
352 (p_rec in out nocopy ben_bpr_shd.g_rec_type,
353 p_effective_date in date,
354 p_datetrack_mode in varchar2,
355 p_validation_start_date in date,
356 p_validation_end_date in date) is
357 --
358 l_proc varchar2(72) := g_package||'pre_update';
359 --
360 Begin
361 hr_utility.set_location('Entering:'||l_proc, 5);
362 --
363 --
364 --
365 dt_pre_update
366 (p_rec => p_rec,
367 p_effective_date => p_effective_date,
368 p_datetrack_mode => p_datetrack_mode,
369 p_validation_start_date => p_validation_start_date,
370 p_validation_end_date => p_validation_end_date);
371 --
372 hr_utility.set_location(' Leaving:'||l_proc, 10);
373 End pre_update;
374 --
375 -- ----------------------------------------------------------------------------
376 -- |-----------------------------< post_update >------------------------------|
377 -- ----------------------------------------------------------------------------
378 -- {Start Of Comments}
379 --
380 -- Description:
381 -- This private procedure contains any processing which is required after the
382 -- update dml.
383 --
384 -- Prerequisites:
385 -- This is an internal procedure which is called from the upd procedure.
386 --
387 -- In Parameters:
388 -- A Pl/Sql record structre.
389 --
390 -- Post Success:
391 -- Processing continues.
392 --
393 -- Post Failure:
394 -- If an error has occurred, an error message and exception will be raised
395 -- but not handled.
396 --
397 -- Developer Implementation Notes:
398 -- Any post-processing required after the update dml is issued should be
399 -- coded within this procedure. It is important to note that any 3rd party
400 -- maintenance should be reviewed before placing in this procedure.
401 --
402 -- Access Status:
403 -- Internal Row Handler Use Only.
404 --
405 -- {End Of Comments}
406 -- ----------------------------------------------------------------------------
407 Procedure post_update
408 (p_rec in ben_bpr_shd.g_rec_type,
409 p_effective_date in date,
410 p_datetrack_mode in varchar2,
411 p_validation_start_date in date,
412 p_validation_end_date in date) is
413 --
414 l_proc varchar2(72) := g_package||'post_update';
415 --
416 Begin
417 hr_utility.set_location('Entering:'||l_proc, 5);
418 --
419 --
420 -- Start of API User Hook for post_update.
421 --
422 begin
423 --
424 ben_bpr_rku.after_update
425 (
426 p_bnft_pool_rlovr_rqmt_id =>p_rec.bnft_pool_rlovr_rqmt_id
427 ,p_effective_start_date =>p_rec.effective_start_date
428 ,p_effective_end_date =>p_rec.effective_end_date
429 ,p_no_mn_rlovr_pct_dfnd_flag =>p_rec.no_mn_rlovr_pct_dfnd_flag
430 ,p_no_mx_rlovr_pct_dfnd_flag =>p_rec.no_mx_rlovr_pct_dfnd_flag
431 ,p_no_mn_rlovr_val_dfnd_flag =>p_rec.no_mn_rlovr_val_dfnd_flag
432 ,p_no_mx_rlovr_val_dfnd_flag =>p_rec.no_mx_rlovr_val_dfnd_flag
433 ,p_rlovr_val_incrmt_num =>p_rec.rlovr_val_incrmt_num
434 ,p_rlovr_val_rl =>p_rec.rlovr_val_rl
435 ,p_mn_rlovr_val =>p_rec.mn_rlovr_val
436 ,p_mx_rlovr_val =>p_rec.mx_rlovr_val
437 ,p_val_rndg_cd =>p_rec.val_rndg_cd
438 ,p_val_rndg_rl =>p_rec.val_rndg_rl
439 ,p_pct_rndg_cd =>p_rec.pct_rndg_cd
440 ,p_pct_rndg_rl =>p_rec.pct_rndg_rl
441 ,p_prtt_elig_rlovr_rl =>p_rec.prtt_elig_rlovr_rl
442 ,p_mx_rchd_dflt_ordr_num =>p_rec.mx_rchd_dflt_ordr_num
443 ,p_pct_rlovr_incrmt_num =>p_rec.pct_rlovr_incrmt_num
444 ,p_mn_rlovr_pct_num =>p_rec.mn_rlovr_pct_num
445 ,p_mx_rlovr_pct_num =>p_rec.mx_rlovr_pct_num
446 ,p_crs_rlovr_procg_cd =>p_rec.crs_rlovr_procg_cd
447 ,p_mx_pct_ttl_crs_cn_roll_num =>p_rec.mx_pct_ttl_crs_cn_roll_num
448 ,p_bnft_prvdr_pool_id =>p_rec.bnft_prvdr_pool_id
449 ,p_acty_base_rt_id =>p_rec.acty_base_rt_id
450 ,p_business_group_id =>p_rec.business_group_id
451 ,p_bpr_attribute_category =>p_rec.bpr_attribute_category
452 ,p_bpr_attribute1 =>p_rec.bpr_attribute1
453 ,p_bpr_attribute2 =>p_rec.bpr_attribute2
454 ,p_bpr_attribute3 =>p_rec.bpr_attribute3
455 ,p_bpr_attribute4 =>p_rec.bpr_attribute4
456 ,p_bpr_attribute5 =>p_rec.bpr_attribute5
457 ,p_bpr_attribute6 =>p_rec.bpr_attribute6
458 ,p_bpr_attribute7 =>p_rec.bpr_attribute7
459 ,p_bpr_attribute8 =>p_rec.bpr_attribute8
460 ,p_bpr_attribute9 =>p_rec.bpr_attribute9
461 ,p_bpr_attribute10 =>p_rec.bpr_attribute10
462 ,p_bpr_attribute11 =>p_rec.bpr_attribute11
463 ,p_bpr_attribute12 =>p_rec.bpr_attribute12
464 ,p_bpr_attribute13 =>p_rec.bpr_attribute13
465 ,p_bpr_attribute14 =>p_rec.bpr_attribute14
466 ,p_bpr_attribute15 =>p_rec.bpr_attribute15
467 ,p_bpr_attribute16 =>p_rec.bpr_attribute16
468 ,p_bpr_attribute17 =>p_rec.bpr_attribute17
469 ,p_bpr_attribute18 =>p_rec.bpr_attribute18
470 ,p_bpr_attribute19 =>p_rec.bpr_attribute19
471 ,p_bpr_attribute20 =>p_rec.bpr_attribute20
472 ,p_bpr_attribute21 =>p_rec.bpr_attribute21
473 ,p_bpr_attribute22 =>p_rec.bpr_attribute22
474 ,p_bpr_attribute23 =>p_rec.bpr_attribute23
475 ,p_bpr_attribute24 =>p_rec.bpr_attribute24
476 ,p_bpr_attribute25 =>p_rec.bpr_attribute25
477 ,p_bpr_attribute26 =>p_rec.bpr_attribute26
478 ,p_bpr_attribute27 =>p_rec.bpr_attribute27
479 ,p_bpr_attribute28 =>p_rec.bpr_attribute28
480 ,p_bpr_attribute29 =>p_rec.bpr_attribute29
481 ,p_bpr_attribute30 =>p_rec.bpr_attribute30
482 ,p_object_version_number =>p_rec.object_version_number
483 ,p_effective_date =>p_effective_date
484 ,p_datetrack_mode =>p_datetrack_mode
485 ,p_validation_start_date =>p_validation_start_date
486 ,p_validation_end_date =>p_validation_end_date
487 ,p_effective_start_date_o =>ben_bpr_shd.g_old_rec.effective_start_date
488 ,p_effective_end_date_o =>ben_bpr_shd.g_old_rec.effective_end_date
489 ,p_no_mn_rlovr_pct_dfnd_flag_o =>ben_bpr_shd.g_old_rec.no_mn_rlovr_pct_dfnd_flag
490 ,p_no_mx_rlovr_pct_dfnd_flag_o =>ben_bpr_shd.g_old_rec.no_mx_rlovr_pct_dfnd_flag
491 ,p_no_mn_rlovr_val_dfnd_flag_o =>ben_bpr_shd.g_old_rec.no_mn_rlovr_val_dfnd_flag
492 ,p_no_mx_rlovr_val_dfnd_flag_o =>ben_bpr_shd.g_old_rec.no_mx_rlovr_val_dfnd_flag
493 ,p_rlovr_val_incrmt_num_o =>ben_bpr_shd.g_old_rec.rlovr_val_incrmt_num
494 ,p_rlovr_val_rl_o =>ben_bpr_shd.g_old_rec.rlovr_val_rl
495 ,p_mn_rlovr_val_o =>ben_bpr_shd.g_old_rec.mn_rlovr_val
496 ,p_mx_rlovr_val_o =>ben_bpr_shd.g_old_rec.mx_rlovr_val
497 ,p_val_rndg_cd_o =>ben_bpr_shd.g_old_rec.val_rndg_cd
498 ,p_val_rndg_rl_o =>ben_bpr_shd.g_old_rec.val_rndg_rl
499 ,p_pct_rndg_cd_o =>ben_bpr_shd.g_old_rec.pct_rndg_cd
500 ,p_pct_rndg_rl_o =>ben_bpr_shd.g_old_rec.pct_rndg_rl
501 ,p_prtt_elig_rlovr_rl_o =>ben_bpr_shd.g_old_rec.prtt_elig_rlovr_rl
502 ,p_mx_rchd_dflt_ordr_num_o =>ben_bpr_shd.g_old_rec.mx_rchd_dflt_ordr_num
503 ,p_pct_rlovr_incrmt_num_o =>ben_bpr_shd.g_old_rec.pct_rlovr_incrmt_num
504 ,p_mn_rlovr_pct_num_o =>ben_bpr_shd.g_old_rec.mn_rlovr_pct_num
505 ,p_mx_rlovr_pct_num_o =>ben_bpr_shd.g_old_rec.mx_rlovr_pct_num
506 ,p_crs_rlovr_procg_cd_o =>ben_bpr_shd.g_old_rec.crs_rlovr_procg_cd
507 ,p_mx_pct_ttl_crs_cn_roll_num_o =>ben_bpr_shd.g_old_rec.mx_pct_ttl_crs_cn_roll_num
508 ,p_bnft_prvdr_pool_id_o =>ben_bpr_shd.g_old_rec.bnft_prvdr_pool_id
509 ,p_acty_base_rt_id_o =>ben_bpr_shd.g_old_rec.acty_base_rt_id
510 ,p_business_group_id_o =>ben_bpr_shd.g_old_rec.business_group_id
511 ,p_bpr_attribute_category_o =>ben_bpr_shd.g_old_rec.bpr_attribute_category
512 ,p_bpr_attribute1_o =>ben_bpr_shd.g_old_rec.bpr_attribute1
513 ,p_bpr_attribute2_o =>ben_bpr_shd.g_old_rec.bpr_attribute2
514 ,p_bpr_attribute3_o =>ben_bpr_shd.g_old_rec.bpr_attribute3
515 ,p_bpr_attribute4_o =>ben_bpr_shd.g_old_rec.bpr_attribute4
516 ,p_bpr_attribute5_o =>ben_bpr_shd.g_old_rec.bpr_attribute5
517 ,p_bpr_attribute6_o =>ben_bpr_shd.g_old_rec.bpr_attribute6
518 ,p_bpr_attribute7_o =>ben_bpr_shd.g_old_rec.bpr_attribute7
519 ,p_bpr_attribute8_o =>ben_bpr_shd.g_old_rec.bpr_attribute8
520 ,p_bpr_attribute9_o =>ben_bpr_shd.g_old_rec.bpr_attribute9
521 ,p_bpr_attribute10_o =>ben_bpr_shd.g_old_rec.bpr_attribute10
522 ,p_bpr_attribute11_o =>ben_bpr_shd.g_old_rec.bpr_attribute11
523 ,p_bpr_attribute12_o =>ben_bpr_shd.g_old_rec.bpr_attribute12
524 ,p_bpr_attribute13_o =>ben_bpr_shd.g_old_rec.bpr_attribute13
525 ,p_bpr_attribute14_o =>ben_bpr_shd.g_old_rec.bpr_attribute14
526 ,p_bpr_attribute15_o =>ben_bpr_shd.g_old_rec.bpr_attribute15
527 ,p_bpr_attribute16_o =>ben_bpr_shd.g_old_rec.bpr_attribute16
528 ,p_bpr_attribute17_o =>ben_bpr_shd.g_old_rec.bpr_attribute17
529 ,p_bpr_attribute18_o =>ben_bpr_shd.g_old_rec.bpr_attribute18
530 ,p_bpr_attribute19_o =>ben_bpr_shd.g_old_rec.bpr_attribute19
531 ,p_bpr_attribute20_o =>ben_bpr_shd.g_old_rec.bpr_attribute20
532 ,p_bpr_attribute21_o =>ben_bpr_shd.g_old_rec.bpr_attribute21
533 ,p_bpr_attribute22_o =>ben_bpr_shd.g_old_rec.bpr_attribute22
534 ,p_bpr_attribute23_o =>ben_bpr_shd.g_old_rec.bpr_attribute23
535 ,p_bpr_attribute24_o =>ben_bpr_shd.g_old_rec.bpr_attribute24
536 ,p_bpr_attribute25_o =>ben_bpr_shd.g_old_rec.bpr_attribute25
537 ,p_bpr_attribute26_o =>ben_bpr_shd.g_old_rec.bpr_attribute26
538 ,p_bpr_attribute27_o =>ben_bpr_shd.g_old_rec.bpr_attribute27
539 ,p_bpr_attribute28_o =>ben_bpr_shd.g_old_rec.bpr_attribute28
540 ,p_bpr_attribute29_o =>ben_bpr_shd.g_old_rec.bpr_attribute29
541 ,p_bpr_attribute30_o =>ben_bpr_shd.g_old_rec.bpr_attribute30
542 ,p_object_version_number_o =>ben_bpr_shd.g_old_rec.object_version_number
543 );
544 --
545 exception
546 --
547 when hr_api.cannot_find_prog_unit then
548 --
549 hr_api.cannot_find_prog_unit_error
550 (p_module_name => 'ben_bnft_pool_rlovr_rqmt_f'
551 ,p_hook_type => 'AU');
552 --
553 end;
554 --
555 -- End of API User Hook for post_update.
556 --
557 --
558 hr_utility.set_location(' Leaving:'||l_proc, 10);
559 End post_update;
560 --
561 -- ----------------------------------------------------------------------------
562 -- |-----------------------------< convert_defs >-----------------------------|
563 -- ----------------------------------------------------------------------------
564 -- {Start Of Comments}
565 --
566 -- Description:
567 -- The Convert_Defs procedure has one very important function:
568 -- It must return the record structure for the row with all system defaulted
569 -- values converted into its corresponding parameter value for update. When
570 -- we attempt to update a row through the Upd process , certain
571 -- parameters can be defaulted which enables flexibility in the calling of
572 -- the upd process (e.g. only attributes which need to be updated need to be
573 -- specified). For the upd process to determine which attributes
574 -- have NOT been specified we need to check if the parameter has a reserved
575 -- system default value. Therefore, for all parameters which have a
576 -- corresponding reserved system default mechanism specified we need to
577 -- check if a system default is being used. If a system default is being
578 -- used then we convert the defaulted value into its corresponding attribute
579 -- value held in the g_old_rec data structure.
580 --
581 -- Prerequisites:
582 -- This private function can only be called from the upd process.
583 --
584 -- In Parameters:
585 -- A Pl/Sql record structre.
586 --
587 -- Post Success:
588 -- The record structure will be returned with all system defaulted parameter
589 -- values converted into its current row attribute value.
590 --
591 -- Post Failure:
592 -- No direct error handling is required within this function. Any possible
593 -- errors within this procedure will be a PL/SQL value error due to conversion
594 -- of datatypes or data lengths.
595 --
596 -- Developer Implementation Notes:
597 -- None.
598 --
599 -- Access Status:
600 -- Internal Row Handler Use Only.
601 --
602 -- {End Of Comments}
603 -- ----------------------------------------------------------------------------
604 Procedure convert_defs(p_rec in out nocopy ben_bpr_shd.g_rec_type) is
605 --
606 l_proc varchar2(72) := g_package||'convert_defs';
607 --
608 Begin
609 --
610 hr_utility.set_location('Entering:'||l_proc, 5);
611 --
612 -- We must now examine each argument value in the
613 -- p_rec plsql record structure
614 -- to see if a system default is being used. If a system default
615 -- is being used then we must set to the 'current' argument value.
616 --
617 If (p_rec.no_mn_rlovr_pct_dfnd_flag = hr_api.g_varchar2) then
618 p_rec.no_mn_rlovr_pct_dfnd_flag :=
619 ben_bpr_shd.g_old_rec.no_mn_rlovr_pct_dfnd_flag;
620 End If;
621 If (p_rec.no_mx_rlovr_pct_dfnd_flag = hr_api.g_varchar2) then
622 p_rec.no_mx_rlovr_pct_dfnd_flag :=
623 ben_bpr_shd.g_old_rec.no_mx_rlovr_pct_dfnd_flag;
624 End If;
625 If (p_rec.no_mn_rlovr_val_dfnd_flag = hr_api.g_varchar2) then
626 p_rec.no_mn_rlovr_val_dfnd_flag :=
627 ben_bpr_shd.g_old_rec.no_mn_rlovr_val_dfnd_flag;
628 End If;
629 If (p_rec.no_mx_rlovr_val_dfnd_flag = hr_api.g_varchar2) then
630 p_rec.no_mx_rlovr_val_dfnd_flag :=
631 ben_bpr_shd.g_old_rec.no_mx_rlovr_val_dfnd_flag;
632 End If;
633 If (p_rec.rlovr_val_incrmt_num = hr_api.g_number) then
634 p_rec.rlovr_val_incrmt_num :=
635 ben_bpr_shd.g_old_rec.rlovr_val_incrmt_num;
636 End If;
637 If (p_rec.rlovr_val_rl = hr_api.g_number) then
638 p_rec.rlovr_val_rl :=
639 ben_bpr_shd.g_old_rec.rlovr_val_rl;
640 End If;
641 If (p_rec.mn_rlovr_val = hr_api.g_number) then
642 p_rec.mn_rlovr_val :=
643 ben_bpr_shd.g_old_rec.mn_rlovr_val;
644 End If;
645 If (p_rec.mx_rlovr_val = hr_api.g_number) then
646 p_rec.mx_rlovr_val :=
647 ben_bpr_shd.g_old_rec.mx_rlovr_val;
648 End If;
649 If (p_rec.val_rndg_cd = hr_api.g_varchar2) then
650 p_rec.val_rndg_cd :=
651 ben_bpr_shd.g_old_rec.val_rndg_cd;
652 End If;
653 If (p_rec.val_rndg_rl = hr_api.g_number) then
654 p_rec.val_rndg_rl :=
655 ben_bpr_shd.g_old_rec.val_rndg_rl;
656 End If;
657 If (p_rec.pct_rndg_cd = hr_api.g_varchar2) then
658 p_rec.pct_rndg_cd :=
659 ben_bpr_shd.g_old_rec.pct_rndg_cd;
660 End If;
661 If (p_rec.pct_rndg_rl = hr_api.g_number) then
662 p_rec.pct_rndg_rl :=
663 ben_bpr_shd.g_old_rec.pct_rndg_rl;
664 End If;
665 If (p_rec.prtt_elig_rlovr_rl = hr_api.g_number) then
666 p_rec.prtt_elig_rlovr_rl :=
667 ben_bpr_shd.g_old_rec.prtt_elig_rlovr_rl;
668 End If;
669 If (p_rec.mx_rchd_dflt_ordr_num = hr_api.g_number) then
670 p_rec.mx_rchd_dflt_ordr_num :=
671 ben_bpr_shd.g_old_rec.mx_rchd_dflt_ordr_num;
672 End If;
673 If (p_rec.pct_rlovr_incrmt_num = hr_api.g_number) then
674 p_rec.pct_rlovr_incrmt_num :=
675 ben_bpr_shd.g_old_rec.pct_rlovr_incrmt_num;
676 End If;
677 If (p_rec.mn_rlovr_pct_num = hr_api.g_number) then
678 p_rec.mn_rlovr_pct_num :=
679 ben_bpr_shd.g_old_rec.mn_rlovr_pct_num;
680 End If;
681 If (p_rec.mx_rlovr_pct_num = hr_api.g_number) then
682 p_rec.mx_rlovr_pct_num :=
683 ben_bpr_shd.g_old_rec.mx_rlovr_pct_num;
684 End If;
685 If (p_rec.crs_rlovr_procg_cd = hr_api.g_varchar2) then
686 p_rec.crs_rlovr_procg_cd :=
687 ben_bpr_shd.g_old_rec.crs_rlovr_procg_cd;
688 End If;
689 If (p_rec.mx_pct_ttl_crs_cn_roll_num = hr_api.g_number) then
690 p_rec.mx_pct_ttl_crs_cn_roll_num :=
691 ben_bpr_shd.g_old_rec.mx_pct_ttl_crs_cn_roll_num;
692 End If;
693 If (p_rec.bnft_prvdr_pool_id = hr_api.g_number) then
694 p_rec.bnft_prvdr_pool_id :=
695 ben_bpr_shd.g_old_rec.bnft_prvdr_pool_id;
696 End If;
697 If (p_rec.acty_base_rt_id = hr_api.g_number) then
698 p_rec.acty_base_rt_id :=
699 ben_bpr_shd.g_old_rec.acty_base_rt_id;
700 End If;
701 If (p_rec.business_group_id = hr_api.g_number) then
702 p_rec.business_group_id :=
703 ben_bpr_shd.g_old_rec.business_group_id;
704 End If;
705 If (p_rec.bpr_attribute_category = hr_api.g_varchar2) then
706 p_rec.bpr_attribute_category :=
707 ben_bpr_shd.g_old_rec.bpr_attribute_category;
708 End If;
709 If (p_rec.bpr_attribute1 = hr_api.g_varchar2) then
710 p_rec.bpr_attribute1 :=
711 ben_bpr_shd.g_old_rec.bpr_attribute1;
712 End If;
713 If (p_rec.bpr_attribute2 = hr_api.g_varchar2) then
714 p_rec.bpr_attribute2 :=
715 ben_bpr_shd.g_old_rec.bpr_attribute2;
716 End If;
717 If (p_rec.bpr_attribute3 = hr_api.g_varchar2) then
718 p_rec.bpr_attribute3 :=
719 ben_bpr_shd.g_old_rec.bpr_attribute3;
720 End If;
721 If (p_rec.bpr_attribute4 = hr_api.g_varchar2) then
722 p_rec.bpr_attribute4 :=
723 ben_bpr_shd.g_old_rec.bpr_attribute4;
724 End If;
725 If (p_rec.bpr_attribute5 = hr_api.g_varchar2) then
726 p_rec.bpr_attribute5 :=
727 ben_bpr_shd.g_old_rec.bpr_attribute5;
728 End If;
729 If (p_rec.bpr_attribute6 = hr_api.g_varchar2) then
730 p_rec.bpr_attribute6 :=
731 ben_bpr_shd.g_old_rec.bpr_attribute6;
732 End If;
733 If (p_rec.bpr_attribute7 = hr_api.g_varchar2) then
734 p_rec.bpr_attribute7 :=
735 ben_bpr_shd.g_old_rec.bpr_attribute7;
736 End If;
737 If (p_rec.bpr_attribute8 = hr_api.g_varchar2) then
738 p_rec.bpr_attribute8 :=
739 ben_bpr_shd.g_old_rec.bpr_attribute8;
740 End If;
741 If (p_rec.bpr_attribute9 = hr_api.g_varchar2) then
742 p_rec.bpr_attribute9 :=
743 ben_bpr_shd.g_old_rec.bpr_attribute9;
744 End If;
745 If (p_rec.bpr_attribute10 = hr_api.g_varchar2) then
746 p_rec.bpr_attribute10 :=
747 ben_bpr_shd.g_old_rec.bpr_attribute10;
748 End If;
749 If (p_rec.bpr_attribute11 = hr_api.g_varchar2) then
750 p_rec.bpr_attribute11 :=
751 ben_bpr_shd.g_old_rec.bpr_attribute11;
752 End If;
753 If (p_rec.bpr_attribute12 = hr_api.g_varchar2) then
754 p_rec.bpr_attribute12 :=
755 ben_bpr_shd.g_old_rec.bpr_attribute12;
756 End If;
757 If (p_rec.bpr_attribute13 = hr_api.g_varchar2) then
758 p_rec.bpr_attribute13 :=
759 ben_bpr_shd.g_old_rec.bpr_attribute13;
760 End If;
761 If (p_rec.bpr_attribute14 = hr_api.g_varchar2) then
762 p_rec.bpr_attribute14 :=
763 ben_bpr_shd.g_old_rec.bpr_attribute14;
764 End If;
765 If (p_rec.bpr_attribute15 = hr_api.g_varchar2) then
766 p_rec.bpr_attribute15 :=
767 ben_bpr_shd.g_old_rec.bpr_attribute15;
768 End If;
769 If (p_rec.bpr_attribute16 = hr_api.g_varchar2) then
770 p_rec.bpr_attribute16 :=
771 ben_bpr_shd.g_old_rec.bpr_attribute16;
772 End If;
773 If (p_rec.bpr_attribute17 = hr_api.g_varchar2) then
774 p_rec.bpr_attribute17 :=
775 ben_bpr_shd.g_old_rec.bpr_attribute17;
776 End If;
777 If (p_rec.bpr_attribute18 = hr_api.g_varchar2) then
778 p_rec.bpr_attribute18 :=
779 ben_bpr_shd.g_old_rec.bpr_attribute18;
780 End If;
781 If (p_rec.bpr_attribute19 = hr_api.g_varchar2) then
782 p_rec.bpr_attribute19 :=
783 ben_bpr_shd.g_old_rec.bpr_attribute19;
784 End If;
785 If (p_rec.bpr_attribute20 = hr_api.g_varchar2) then
786 p_rec.bpr_attribute20 :=
787 ben_bpr_shd.g_old_rec.bpr_attribute20;
788 End If;
789 If (p_rec.bpr_attribute21 = hr_api.g_varchar2) then
790 p_rec.bpr_attribute21 :=
791 ben_bpr_shd.g_old_rec.bpr_attribute21;
792 End If;
793 If (p_rec.bpr_attribute22 = hr_api.g_varchar2) then
794 p_rec.bpr_attribute22 :=
795 ben_bpr_shd.g_old_rec.bpr_attribute22;
796 End If;
797 If (p_rec.bpr_attribute23 = hr_api.g_varchar2) then
798 p_rec.bpr_attribute23 :=
799 ben_bpr_shd.g_old_rec.bpr_attribute23;
800 End If;
801 If (p_rec.bpr_attribute24 = hr_api.g_varchar2) then
802 p_rec.bpr_attribute24 :=
803 ben_bpr_shd.g_old_rec.bpr_attribute24;
804 End If;
805 If (p_rec.bpr_attribute25 = hr_api.g_varchar2) then
806 p_rec.bpr_attribute25 :=
807 ben_bpr_shd.g_old_rec.bpr_attribute25;
808 End If;
809 If (p_rec.bpr_attribute26 = hr_api.g_varchar2) then
810 p_rec.bpr_attribute26 :=
811 ben_bpr_shd.g_old_rec.bpr_attribute26;
812 End If;
813 If (p_rec.bpr_attribute27 = hr_api.g_varchar2) then
814 p_rec.bpr_attribute27 :=
815 ben_bpr_shd.g_old_rec.bpr_attribute27;
816 End If;
817 If (p_rec.bpr_attribute28 = hr_api.g_varchar2) then
818 p_rec.bpr_attribute28 :=
819 ben_bpr_shd.g_old_rec.bpr_attribute28;
820 End If;
821 If (p_rec.bpr_attribute29 = hr_api.g_varchar2) then
822 p_rec.bpr_attribute29 :=
823 ben_bpr_shd.g_old_rec.bpr_attribute29;
824 End If;
825 If (p_rec.bpr_attribute30 = hr_api.g_varchar2) then
826 p_rec.bpr_attribute30 :=
827 ben_bpr_shd.g_old_rec.bpr_attribute30;
828 End If;
829
830 --
831 hr_utility.set_location(' Leaving:'||l_proc, 10);
832 --
833 End convert_defs;
834 --
835 -- ----------------------------------------------------------------------------
836 -- |---------------------------------< upd >----------------------------------|
837 -- ----------------------------------------------------------------------------
838 Procedure upd
839 (
840 p_rec in out nocopy ben_bpr_shd.g_rec_type,
841 p_effective_date in date,
842 p_datetrack_mode in varchar2
843 ) is
844 --
845 l_proc varchar2(72) := g_package||'upd';
846 l_validation_start_date date;
847 l_validation_end_date date;
848 --
849 Begin
850 hr_utility.set_location('Entering:'||l_proc, 5);
851 --
852 -- Ensure that the DateTrack update mode is valid
853 --
854 dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
855 --
856 -- We must lock the row which we need to update.
857 --
858 ben_bpr_shd.lck
859 (p_effective_date => p_effective_date,
860 p_datetrack_mode => p_datetrack_mode,
861 p_bnft_pool_rlovr_rqmt_id => p_rec.bnft_pool_rlovr_rqmt_id,
862 p_object_version_number => p_rec.object_version_number,
863 p_validation_start_date => l_validation_start_date,
864 p_validation_end_date => l_validation_end_date);
865 --
866 -- 1. During an update system defaults are used to determine if
867 -- arguments have been defaulted or not. We must therefore
868 -- derive the full record structure values to be updated.
869 --
870 -- 2. Call the supporting update validate operations.
871 --
872 convert_defs(p_rec);
873 ben_bpr_bus.update_validate
874 (p_rec => p_rec,
875 p_effective_date => p_effective_date,
876 p_datetrack_mode => p_datetrack_mode,
877 p_validation_start_date => l_validation_start_date,
878 p_validation_end_date => l_validation_end_date);
879 --
880 -- Call the supporting pre-update operation
881 --
882 pre_update
883 (p_rec => p_rec,
884 p_effective_date => p_effective_date,
885 p_datetrack_mode => p_datetrack_mode,
886 p_validation_start_date => l_validation_start_date,
887 p_validation_end_date => l_validation_end_date);
888 --
889 -- Update the row.
890 --
891 update_dml
892 (p_rec => p_rec,
893 p_effective_date => p_effective_date,
894 p_datetrack_mode => p_datetrack_mode,
895 p_validation_start_date => l_validation_start_date,
896 p_validation_end_date => l_validation_end_date);
897 --
898 -- Call the supporting post-update operation
899 --
900 post_update
901 (p_rec => p_rec,
902 p_effective_date => p_effective_date,
903 p_datetrack_mode => p_datetrack_mode,
904 p_validation_start_date => l_validation_start_date,
905 p_validation_end_date => l_validation_end_date);
906 End upd;
907 --
908 -- ----------------------------------------------------------------------------
909 -- |---------------------------------< upd >----------------------------------|
910 -- ----------------------------------------------------------------------------
911 Procedure upd
912 (
913 p_bnft_pool_rlovr_rqmt_id in number,
914 p_effective_start_date out nocopy date,
915 p_effective_end_date out nocopy date,
916 p_no_mn_rlovr_pct_dfnd_flag in varchar2 default hr_api.g_varchar2,
917 p_no_mx_rlovr_pct_dfnd_flag in varchar2 default hr_api.g_varchar2,
918 p_no_mn_rlovr_val_dfnd_flag in varchar2 default hr_api.g_varchar2,
919 p_no_mx_rlovr_val_dfnd_flag in varchar2 default hr_api.g_varchar2,
920 p_rlovr_val_incrmt_num in number default hr_api.g_number,
921 p_rlovr_val_rl in number default hr_api.g_number,
922 p_mn_rlovr_val in number default hr_api.g_number,
923 p_mx_rlovr_val in number default hr_api.g_number,
924 p_val_rndg_cd in varchar2 default hr_api.g_varchar2,
925 p_val_rndg_rl in number default hr_api.g_number,
926 p_pct_rndg_cd in varchar2 default hr_api.g_varchar2,
927 p_pct_rndg_rl in number default hr_api.g_number,
928 p_prtt_elig_rlovr_rl in number default hr_api.g_number,
929 p_mx_rchd_dflt_ordr_num in number default hr_api.g_number,
930 p_pct_rlovr_incrmt_num in number default hr_api.g_number,
931 p_mn_rlovr_pct_num in number default hr_api.g_number,
932 p_mx_rlovr_pct_num in number default hr_api.g_number,
933 p_crs_rlovr_procg_cd in varchar2 default hr_api.g_varchar2,
934 p_mx_pct_ttl_crs_cn_roll_num in number default hr_api.g_number,
935 p_bnft_prvdr_pool_id in number default hr_api.g_number,
936 p_acty_base_rt_id in number default hr_api.g_number,
937 p_business_group_id in number default hr_api.g_number,
938 p_bpr_attribute_category in varchar2 default hr_api.g_varchar2,
939 p_bpr_attribute1 in varchar2 default hr_api.g_varchar2,
940 p_bpr_attribute2 in varchar2 default hr_api.g_varchar2,
941 p_bpr_attribute3 in varchar2 default hr_api.g_varchar2,
942 p_bpr_attribute4 in varchar2 default hr_api.g_varchar2,
943 p_bpr_attribute5 in varchar2 default hr_api.g_varchar2,
944 p_bpr_attribute6 in varchar2 default hr_api.g_varchar2,
945 p_bpr_attribute7 in varchar2 default hr_api.g_varchar2,
946 p_bpr_attribute8 in varchar2 default hr_api.g_varchar2,
947 p_bpr_attribute9 in varchar2 default hr_api.g_varchar2,
948 p_bpr_attribute10 in varchar2 default hr_api.g_varchar2,
949 p_bpr_attribute11 in varchar2 default hr_api.g_varchar2,
950 p_bpr_attribute12 in varchar2 default hr_api.g_varchar2,
951 p_bpr_attribute13 in varchar2 default hr_api.g_varchar2,
952 p_bpr_attribute14 in varchar2 default hr_api.g_varchar2,
953 p_bpr_attribute15 in varchar2 default hr_api.g_varchar2,
954 p_bpr_attribute16 in varchar2 default hr_api.g_varchar2,
955 p_bpr_attribute17 in varchar2 default hr_api.g_varchar2,
956 p_bpr_attribute18 in varchar2 default hr_api.g_varchar2,
957 p_bpr_attribute19 in varchar2 default hr_api.g_varchar2,
958 p_bpr_attribute20 in varchar2 default hr_api.g_varchar2,
959 p_bpr_attribute21 in varchar2 default hr_api.g_varchar2,
960 p_bpr_attribute22 in varchar2 default hr_api.g_varchar2,
961 p_bpr_attribute23 in varchar2 default hr_api.g_varchar2,
962 p_bpr_attribute24 in varchar2 default hr_api.g_varchar2,
963 p_bpr_attribute25 in varchar2 default hr_api.g_varchar2,
964 p_bpr_attribute26 in varchar2 default hr_api.g_varchar2,
965 p_bpr_attribute27 in varchar2 default hr_api.g_varchar2,
966 p_bpr_attribute28 in varchar2 default hr_api.g_varchar2,
967 p_bpr_attribute29 in varchar2 default hr_api.g_varchar2,
968 p_bpr_attribute30 in varchar2 default hr_api.g_varchar2,
969 p_object_version_number in out nocopy number,
970 p_effective_date in date,
971 p_datetrack_mode in varchar2
972 ) is
973 --
974 l_rec ben_bpr_shd.g_rec_type;
975 l_proc varchar2(72) := g_package||'upd';
976 --
977 Begin
978 hr_utility.set_location('Entering:'||l_proc, 5);
979 --
980 -- Call conversion function to turn arguments into the
981 -- l_rec structure.
982 --
983 l_rec :=
984 ben_bpr_shd.convert_args
985 (
986 p_bnft_pool_rlovr_rqmt_id,
987 null,
988 null,
989 p_no_mn_rlovr_pct_dfnd_flag,
990 p_no_mx_rlovr_pct_dfnd_flag,
991 p_no_mn_rlovr_val_dfnd_flag,
992 p_no_mx_rlovr_val_dfnd_flag,
993 p_rlovr_val_incrmt_num,
994 p_rlovr_val_rl,
995 p_mn_rlovr_val,
996 p_mx_rlovr_val,
997 p_val_rndg_cd,
998 p_val_rndg_rl,
999 p_pct_rndg_cd,
1000 p_pct_rndg_rl,
1001 p_prtt_elig_rlovr_rl,
1002 p_mx_rchd_dflt_ordr_num,
1003 p_pct_rlovr_incrmt_num,
1004 p_mn_rlovr_pct_num,
1005 p_mx_rlovr_pct_num,
1006 p_crs_rlovr_procg_cd,
1007 p_mx_pct_ttl_crs_cn_roll_num,
1008 p_bnft_prvdr_pool_id,
1009 p_acty_base_rt_id,
1010 p_business_group_id,
1011 p_bpr_attribute_category,
1012 p_bpr_attribute1,
1013 p_bpr_attribute2,
1014 p_bpr_attribute3,
1015 p_bpr_attribute4,
1016 p_bpr_attribute5,
1017 p_bpr_attribute6,
1018 p_bpr_attribute7,
1019 p_bpr_attribute8,
1020 p_bpr_attribute9,
1021 p_bpr_attribute10,
1022 p_bpr_attribute11,
1023 p_bpr_attribute12,
1024 p_bpr_attribute13,
1025 p_bpr_attribute14,
1026 p_bpr_attribute15,
1027 p_bpr_attribute16,
1028 p_bpr_attribute17,
1029 p_bpr_attribute18,
1030 p_bpr_attribute19,
1031 p_bpr_attribute20,
1032 p_bpr_attribute21,
1033 p_bpr_attribute22,
1034 p_bpr_attribute23,
1035 p_bpr_attribute24,
1036 p_bpr_attribute25,
1037 p_bpr_attribute26,
1038 p_bpr_attribute27,
1039 p_bpr_attribute28,
1040 p_bpr_attribute29,
1041 p_bpr_attribute30,
1042 p_object_version_number
1043 );
1044 --
1045 -- Having converted the arguments into the
1046 -- plsql record structure we call the corresponding record
1047 -- business process.
1048 --
1049 upd(l_rec, p_effective_date, p_datetrack_mode);
1050 p_object_version_number := l_rec.object_version_number;
1051 p_effective_start_date := l_rec.effective_start_date;
1052 p_effective_end_date := l_rec.effective_end_date;
1053 --
1054 --
1055 hr_utility.set_location(' Leaving:'||l_proc, 10);
1056 End upd;
1057 --
1058 end ben_bpr_upd;