1 Package Body ben_len_upd as
2 /* $Header: belenrhi.pkb 120.1.12000000.2 2007/05/13 22:46:27 rtagarra noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_len_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_len_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_lee_rsn_f',
78 p_base_key_column => 'lee_rsn_id',
79 p_base_key_value => p_rec.lee_rsn_id);
80 --
81 ben_len_shd.g_api_dml := true; -- Set the api dml status
82 --
83 -- Update the ben_lee_rsn_f Row
84 --
85 update ben_lee_rsn_f
86 set
87 lee_rsn_id = p_rec.lee_rsn_id,
88 business_group_id = p_rec.business_group_id,
89 popl_enrt_typ_cycl_id = p_rec.popl_enrt_typ_cycl_id,
90 ler_id = p_rec.ler_id,
91 cls_enrt_dt_to_use_cd = p_rec.cls_enrt_dt_to_use_cd,
92 dys_aftr_end_to_dflt_num = p_rec.dys_aftr_end_to_dflt_num,
93 enrt_cvg_end_dt_cd = p_rec.enrt_cvg_end_dt_cd,
94 enrt_cvg_strt_dt_cd = p_rec.enrt_cvg_strt_dt_cd,
95 enrt_perd_strt_dt_cd = p_rec.enrt_perd_strt_dt_cd,
96 enrt_perd_strt_dt_rl = p_rec.enrt_perd_strt_dt_rl,
97 enrt_perd_end_dt_cd = p_rec.enrt_perd_end_dt_cd,
98 enrt_perd_end_dt_rl = p_rec.enrt_perd_end_dt_rl,
99 addl_procg_dys_num = p_rec.addl_procg_dys_num,
100 dys_no_enrl_not_elig_num = p_rec.dys_no_enrl_not_elig_num,
101 dys_no_enrl_cant_enrl_num = p_rec.dys_no_enrl_cant_enrl_num,
102 rt_end_dt_cd = p_rec.rt_end_dt_cd,
103 rt_end_dt_rl = p_rec.rt_end_dt_rl,
104 rt_strt_dt_cd = p_rec.rt_strt_dt_cd,
105 rt_strt_dt_rl = p_rec.rt_strt_dt_rl,
106 enrt_cvg_end_dt_rl = p_rec.enrt_cvg_end_dt_rl,
107 enrt_cvg_strt_dt_rl = p_rec.enrt_cvg_strt_dt_rl,
108 len_attribute_category = p_rec.len_attribute_category,
109 len_attribute1 = p_rec.len_attribute1,
110 len_attribute2 = p_rec.len_attribute2,
111 len_attribute3 = p_rec.len_attribute3,
112 len_attribute4 = p_rec.len_attribute4,
113 len_attribute5 = p_rec.len_attribute5,
114 len_attribute6 = p_rec.len_attribute6,
115 len_attribute7 = p_rec.len_attribute7,
116 len_attribute8 = p_rec.len_attribute8,
117 len_attribute9 = p_rec.len_attribute9,
118 len_attribute10 = p_rec.len_attribute10,
119 len_attribute11 = p_rec.len_attribute11,
120 len_attribute12 = p_rec.len_attribute12,
121 len_attribute13 = p_rec.len_attribute13,
122 len_attribute14 = p_rec.len_attribute14,
123 len_attribute15 = p_rec.len_attribute15,
124 len_attribute16 = p_rec.len_attribute16,
125 len_attribute17 = p_rec.len_attribute17,
126 len_attribute18 = p_rec.len_attribute18,
127 len_attribute19 = p_rec.len_attribute19,
128 len_attribute20 = p_rec.len_attribute20,
129 len_attribute21 = p_rec.len_attribute21,
130 len_attribute22 = p_rec.len_attribute22,
131 len_attribute23 = p_rec.len_attribute23,
132 len_attribute24 = p_rec.len_attribute24,
133 len_attribute25 = p_rec.len_attribute25,
134 len_attribute26 = p_rec.len_attribute26,
135 len_attribute27 = p_rec.len_attribute27,
136 len_attribute28 = p_rec.len_attribute28,
137 len_attribute29 = p_rec.len_attribute29,
138 len_attribute30 = p_rec.len_attribute30,
139 object_version_number = p_rec.object_version_number ,
140 enrt_perd_det_ovrlp_bckdt_cd = p_rec.enrt_perd_det_ovrlp_bckdt_cd,
141 reinstate_cd = p_rec.reinstate_cd,
142 reinstate_ovrdn_cd = p_rec.reinstate_ovrdn_cd ,
143 ENRT_PERD_STRT_DAYS = p_rec.ENRT_PERD_STRT_DAYS,
144 ENRT_PERD_END_DAYS = p_rec.ENRT_PERD_END_DAYS,
145 defer_deenrol_flag = p_rec.defer_deenrol_flag
146 where lee_rsn_id = p_rec.lee_rsn_id
147 and effective_start_date = p_validation_start_date
148 and effective_end_date = p_validation_end_date;
149 --
150 ben_len_shd.g_api_dml := false; -- Unset the api dml status
151 --
152 -- Set the effective start and end dates
153 --
154 p_rec.effective_start_date := p_validation_start_date;
155 p_rec.effective_end_date := p_validation_end_date;
156 End If;
157 --
158 hr_utility.set_location(' Leaving:'||l_proc, 15);
159 Exception
160 When hr_api.check_integrity_violated Then
161 -- A check constraint has been violated
162 ben_len_shd.g_api_dml := false; -- Unset the api dml status
163 ben_len_shd.constraint_error
164 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
165 When hr_api.unique_integrity_violated Then
166 -- Unique integrity has been violated
167 ben_len_shd.g_api_dml := false; -- Unset the api dml status
168 ben_len_shd.constraint_error
169 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
170 When Others Then
171 ben_len_shd.g_api_dml := false; -- Unset the api dml status
172 Raise;
173 End dt_update_dml;
174 --
175 -- ----------------------------------------------------------------------------
176 -- |------------------------------< update_dml >------------------------------|
177 -- ----------------------------------------------------------------------------
178 -- {Start Of Comments}
179 --
180 -- Description:
181 -- This procedure calls the dt_update_dml control logic which handles
182 -- the actual datetrack dml.
183 --
184 -- Prerequisites:
185 -- This is an internal private procedure which must be called from the upd
186 -- procedure.
187 --
188 -- In Parameters:
189 -- A Pl/Sql record structre.
190 --
191 -- Post Success:
192 -- Processing contines.
193 --
194 -- Post Failure:
195 -- No specific error handling is required within this procedure.
196 --
197 -- Developer Implementation Notes:
198 -- The update 'set' arguments list should be modified if any of your
199 -- attributes are not updateable.
200 --
201 -- Access Status:
202 -- Internal Row Handler Use Only.
203 --
204 -- {End Of Comments}
205 -- ----------------------------------------------------------------------------
206 Procedure update_dml
207 (p_rec in out nocopy ben_len_shd.g_rec_type,
208 p_effective_date in date,
209 p_datetrack_mode in varchar2,
210 p_validation_start_date in date,
211 p_validation_end_date in date) is
212 --
213 l_proc varchar2(72) := g_package||'update_dml';
214 --
215 Begin
216 hr_utility.set_location('Entering:'||l_proc, 5);
217 --
218 dt_update_dml(p_rec => p_rec,
219 p_effective_date => p_effective_date,
220 p_datetrack_mode => p_datetrack_mode,
221 p_validation_start_date => p_validation_start_date,
222 p_validation_end_date => p_validation_end_date);
223 --
224 hr_utility.set_location(' Leaving:'||l_proc, 10);
225 End update_dml;
226 --
227 -- ----------------------------------------------------------------------------
228 -- |----------------------------< dt_pre_update >-----------------------------|
229 -- ----------------------------------------------------------------------------
230 -- {Start Of Comments}
231 --
232 -- Description:
233 -- The dt_pre_update procedure controls the execution
234 -- of dml for the datetrack modes of: UPDATE, UPDATE_OVERRIDE
235 -- and UPDATE_CHANGE_INSERT only. The execution required is as
236 -- follows:
237 --
238 -- 1) Providing the datetrack update mode is not 'CORRECTION'
239 -- then set the effective end date of the current row (this
240 -- will be the validation_start_date - 1).
241 -- 2) If the datetrack mode is 'UPDATE_OVERRIDE' then call the
242 -- corresponding delete_dml process to delete any future rows
243 -- where the effective_start_date is greater than or equal to
244 -- the validation_start_date.
245 -- 3) Call the insert_dml process to insert the new updated row
246 -- details..
247 --
248 -- Prerequisites:
249 -- This is an internal procedure which is called from the
250 -- pre_update procedure.
251 --
252 -- In Parameters:
253 --
254 -- Post Success:
255 -- Processing continues.
256 --
257 -- Post Failure:
258 -- If an error has occurred, an error message and exception will be raised
259 -- but not handled.
260 --
261 -- Developer Implementation Notes:
262 -- This is an internal procedure which is required by Datetrack. Don't
263 -- remove or modify.
264 --
265 -- Access Status:
266 -- Internal Row Handler Use Only.
267 --
268 -- {End Of Comments}
269 -- ----------------------------------------------------------------------------
270 Procedure dt_pre_update
271 (p_rec in out nocopy ben_len_shd.g_rec_type,
272 p_effective_date in date,
273 p_datetrack_mode in varchar2,
274 p_validation_start_date in date,
275 p_validation_end_date in date) is
276 --
277 l_proc varchar2(72) := g_package||'dt_pre_update';
278 l_dummy_version_number number;
279 --
280 Begin
281 hr_utility.set_location('Entering:'||l_proc, 5);
282 If (p_datetrack_mode <> 'CORRECTION') then
283 hr_utility.set_location(l_proc, 10);
284 --
285 -- Update the current effective end date
286 --
287 ben_len_shd.upd_effective_end_date
288 (p_effective_date => p_effective_date,
289 p_base_key_value => p_rec.lee_rsn_id,
290 p_new_effective_end_date => (p_validation_start_date - 1),
291 p_validation_start_date => p_validation_start_date,
292 p_validation_end_date => p_validation_end_date,
293 p_object_version_number => l_dummy_version_number);
294 --
295 If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
296 hr_utility.set_location(l_proc, 15);
297 --
298 -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
299 -- delete any future rows
300 --
301 ben_len_del.delete_dml
302 (p_rec => p_rec,
303 p_effective_date => p_effective_date,
304 p_datetrack_mode => p_datetrack_mode,
305 p_validation_start_date => p_validation_start_date,
306 p_validation_end_date => p_validation_end_date);
307 End If;
308 hr_utility.set_location(l_proc, 20);
309 --
310 -- We must now insert the updated row
311 --
312 ben_len_ins.insert_dml
313 (p_rec => p_rec,
314 p_effective_date => p_effective_date,
315 p_datetrack_mode => p_datetrack_mode,
316 p_validation_start_date => p_validation_start_date,
317 p_validation_end_date => p_validation_end_date);
318 End If;
319 hr_utility.set_location(' Leaving:'||l_proc, 20);
320 End dt_pre_update;
321 --
322 -- ----------------------------------------------------------------------------
323 -- |------------------------------< pre_update >------------------------------|
324 -- ----------------------------------------------------------------------------
325 -- {Start Of Comments}
326 --
327 -- Description:
328 -- This private procedure contains any processing which is required before
329 -- the update dml.
330 --
331 -- Prerequisites:
332 -- This is an internal procedure which is called from the upd procedure.
333 --
334 -- In Parameters:
335 -- A Pl/Sql record structre.
336 --
337 -- Post Success:
338 -- Processing continues.
339 --
340 -- Post Failure:
341 -- If an error has occurred, an error message and exception will be raised
342 -- but not handled.
343 --
344 -- Developer Implementation Notes:
345 -- Any pre-processing required before the update dml is issued should be
346 -- coded within this procedure. It is important to note that any 3rd party
347 -- maintenance should be reviewed before placing in this procedure. The call
348 -- to the dt_update_dml procedure should NOT be removed.
349 --
350 -- Access Status:
351 -- Internal Row Handler Use Only.
352 --
353 -- {End Of Comments}
354 -- ----------------------------------------------------------------------------
355 Procedure pre_update
356 (p_rec in out nocopy ben_len_shd.g_rec_type,
357 p_effective_date in date,
358 p_datetrack_mode in varchar2,
359 p_validation_start_date in date,
360 p_validation_end_date in date) is
361 --
362 l_proc varchar2(72) := g_package||'pre_update';
363 --
364 Begin
365 hr_utility.set_location('Entering:'||l_proc, 5);
366 --
367 --
368 --
369 dt_pre_update
370 (p_rec => p_rec,
371 p_effective_date => p_effective_date,
372 p_datetrack_mode => p_datetrack_mode,
373 p_validation_start_date => p_validation_start_date,
374 p_validation_end_date => p_validation_end_date);
375 --
376 hr_utility.set_location(' Leaving:'||l_proc, 10);
377 End pre_update;
378 --
379 -- ----------------------------------------------------------------------------
380 -- |-----------------------------< post_update >------------------------------|
381 -- ----------------------------------------------------------------------------
382 -- {Start Of Comments}
383 --
384 -- Description:
385 -- This private procedure contains any processing which is required after the
386 -- update dml.
387 --
388 -- Prerequisites:
389 -- This is an internal procedure which is called from the upd procedure.
390 --
391 -- In Parameters:
392 -- A Pl/Sql record structre.
393 --
394 -- Post Success:
395 -- Processing continues.
396 --
397 -- Post Failure:
398 -- If an error has occurred, an error message and exception will be raised
399 -- but not handled.
400 --
401 -- Developer Implementation Notes:
402 -- Any post-processing required after the update dml is issued should be
403 -- coded within this procedure. It is important to note that any 3rd party
404 -- maintenance should be reviewed before placing in this procedure.
405 --
406 -- Access Status:
407 -- Internal Row Handler Use Only.
408 --
409 -- {End Of Comments}
410 -- ----------------------------------------------------------------------------
411 Procedure post_update
412 (p_rec in ben_len_shd.g_rec_type,
413 p_effective_date in date,
414 p_datetrack_mode in varchar2,
415 p_validation_start_date in date,
416 p_validation_end_date in date) is
417 --
418 l_proc varchar2(72) := g_package||'post_update';
419 --
420 Begin
421 hr_utility.set_location('Entering:'||l_proc, 5);
422 --
423 --
424 -- Start of API User Hook for post_update.
425 --
426 begin
427 --
428 ben_len_rku.after_update
429 (
430 p_lee_rsn_id =>p_rec.lee_rsn_id
431 ,p_effective_start_date =>p_rec.effective_start_date
432 ,p_effective_end_date =>p_rec.effective_end_date
433 ,p_business_group_id =>p_rec.business_group_id
434 ,p_popl_enrt_typ_cycl_id =>p_rec.popl_enrt_typ_cycl_id
435 ,p_ler_id =>p_rec.ler_id
436 ,p_cls_enrt_dt_to_use_cd =>p_rec.cls_enrt_dt_to_use_cd
437 ,p_dys_aftr_end_to_dflt_num =>p_rec.dys_aftr_end_to_dflt_num
438 ,p_enrt_cvg_end_dt_cd =>p_rec.enrt_cvg_end_dt_cd
439 ,p_enrt_cvg_strt_dt_cd =>p_rec.enrt_cvg_strt_dt_cd
440 ,p_enrt_perd_strt_dt_cd =>p_rec.enrt_perd_strt_dt_cd
441 ,p_enrt_perd_strt_dt_rl =>p_rec.enrt_perd_strt_dt_rl
442 ,p_enrt_perd_end_dt_cd =>p_rec.enrt_perd_end_dt_cd
443 ,p_enrt_perd_end_dt_rl =>p_rec.enrt_perd_end_dt_rl
444 ,p_addl_procg_dys_num =>p_rec.addl_procg_dys_num
445 ,p_dys_no_enrl_not_elig_num =>p_rec.dys_no_enrl_not_elig_num
446 ,p_dys_no_enrl_cant_enrl_num =>p_rec.dys_no_enrl_cant_enrl_num
447 ,p_rt_end_dt_cd =>p_rec.rt_end_dt_cd
448 ,p_rt_end_dt_rl =>p_rec.rt_end_dt_rl
449 ,p_rt_strt_dt_cd =>p_rec.rt_strt_dt_cd
450 ,p_rt_strt_dt_rl =>p_rec.rt_strt_dt_rl
451 ,p_enrt_cvg_end_dt_rl =>p_rec.enrt_cvg_end_dt_rl
452 ,p_enrt_cvg_strt_dt_rl =>p_rec.enrt_cvg_strt_dt_rl
453 ,p_len_attribute_category =>p_rec.len_attribute_category
454 ,p_len_attribute1 =>p_rec.len_attribute1
455 ,p_len_attribute2 =>p_rec.len_attribute2
456 ,p_len_attribute3 =>p_rec.len_attribute3
457 ,p_len_attribute4 =>p_rec.len_attribute4
458 ,p_len_attribute5 =>p_rec.len_attribute5
459 ,p_len_attribute6 =>p_rec.len_attribute6
460 ,p_len_attribute7 =>p_rec.len_attribute7
461 ,p_len_attribute8 =>p_rec.len_attribute8
462 ,p_len_attribute9 =>p_rec.len_attribute9
463 ,p_len_attribute10 =>p_rec.len_attribute10
464 ,p_len_attribute11 =>p_rec.len_attribute11
465 ,p_len_attribute12 =>p_rec.len_attribute12
466 ,p_len_attribute13 =>p_rec.len_attribute13
467 ,p_len_attribute14 =>p_rec.len_attribute14
468 ,p_len_attribute15 =>p_rec.len_attribute15
469 ,p_len_attribute16 =>p_rec.len_attribute16
470 ,p_len_attribute17 =>p_rec.len_attribute17
471 ,p_len_attribute18 =>p_rec.len_attribute18
472 ,p_len_attribute19 =>p_rec.len_attribute19
473 ,p_len_attribute20 =>p_rec.len_attribute20
474 ,p_len_attribute21 =>p_rec.len_attribute21
475 ,p_len_attribute22 =>p_rec.len_attribute22
476 ,p_len_attribute23 =>p_rec.len_attribute23
477 ,p_len_attribute24 =>p_rec.len_attribute24
478 ,p_len_attribute25 =>p_rec.len_attribute25
479 ,p_len_attribute26 =>p_rec.len_attribute26
480 ,p_len_attribute27 =>p_rec.len_attribute27
481 ,p_len_attribute28 =>p_rec.len_attribute28
482 ,p_len_attribute29 =>p_rec.len_attribute29
483 ,p_len_attribute30 =>p_rec.len_attribute30
484 ,p_object_version_number =>p_rec.object_version_number
485 ,p_enrt_perd_det_ovrlp_bckdt_cd =>p_rec.enrt_perd_det_ovrlp_bckdt_cd
486 ,p_effective_date =>p_effective_date
487 ,p_datetrack_mode =>p_datetrack_mode
488 ,p_validation_start_date =>p_validation_start_date
489 ,p_validation_end_date =>p_validation_end_date
490 ,p_reinstate_cd =>p_rec.reinstate_cd
491 ,p_reinstate_ovrdn_cd =>p_rec.reinstate_ovrdn_cd
492 ,p_ENRT_PERD_STRT_DAYS =>p_rec.ENRT_PERD_STRT_DAYS
493 ,p_ENRT_PERD_END_DAYS =>p_rec.ENRT_PERD_END_DAYS
494 ,p_defer_deenrol_flag =>p_rec.defer_deenrol_flag
495 ,p_effective_start_date_o =>ben_len_shd.g_old_rec.effective_start_date
496 ,p_effective_end_date_o =>ben_len_shd.g_old_rec.effective_end_date
497 ,p_business_group_id_o =>ben_len_shd.g_old_rec.business_group_id
498 ,p_popl_enrt_typ_cycl_id_o =>ben_len_shd.g_old_rec.popl_enrt_typ_cycl_id
499 ,p_ler_id_o =>ben_len_shd.g_old_rec.ler_id
500 ,p_cls_enrt_dt_to_use_cd_o =>ben_len_shd.g_old_rec.cls_enrt_dt_to_use_cd
501 ,p_dys_aftr_end_to_dflt_num_o =>ben_len_shd.g_old_rec.dys_aftr_end_to_dflt_num
502 ,p_enrt_cvg_end_dt_cd_o =>ben_len_shd.g_old_rec.enrt_cvg_end_dt_cd
503 ,p_enrt_cvg_strt_dt_cd_o =>ben_len_shd.g_old_rec.enrt_cvg_strt_dt_cd
504 ,p_enrt_perd_strt_dt_cd_o =>ben_len_shd.g_old_rec.enrt_perd_strt_dt_cd
505 ,p_enrt_perd_strt_dt_rl_o =>ben_len_shd.g_old_rec.enrt_perd_strt_dt_rl
506 ,p_enrt_perd_end_dt_cd_o =>ben_len_shd.g_old_rec.enrt_perd_end_dt_cd
507 ,p_enrt_perd_end_dt_rl_o =>ben_len_shd.g_old_rec.enrt_perd_end_dt_rl
508 ,p_addl_procg_dys_num_o =>ben_len_shd.g_old_rec.addl_procg_dys_num
509 ,p_dys_no_enrl_not_elig_num_o =>ben_len_shd.g_old_rec.dys_no_enrl_not_elig_num
510 ,p_dys_no_enrl_cant_enrl_num_o =>ben_len_shd.g_old_rec.dys_no_enrl_cant_enrl_num
511 ,p_rt_end_dt_cd_o =>ben_len_shd.g_old_rec.rt_end_dt_cd
512 ,p_rt_end_dt_rl_o =>ben_len_shd.g_old_rec.rt_end_dt_rl
513 ,p_rt_strt_dt_cd_o =>ben_len_shd.g_old_rec.rt_strt_dt_cd
514 ,p_rt_strt_dt_rl_o =>ben_len_shd.g_old_rec.rt_strt_dt_rl
515 ,p_enrt_cvg_end_dt_rl_o =>ben_len_shd.g_old_rec.enrt_cvg_end_dt_rl
516 ,p_enrt_cvg_strt_dt_rl_o =>ben_len_shd.g_old_rec.enrt_cvg_strt_dt_rl
517 ,p_len_attribute_category_o =>ben_len_shd.g_old_rec.len_attribute_category
518 ,p_len_attribute1_o =>ben_len_shd.g_old_rec.len_attribute1
519 ,p_len_attribute2_o =>ben_len_shd.g_old_rec.len_attribute2
520 ,p_len_attribute3_o =>ben_len_shd.g_old_rec.len_attribute3
521 ,p_len_attribute4_o =>ben_len_shd.g_old_rec.len_attribute4
522 ,p_len_attribute5_o =>ben_len_shd.g_old_rec.len_attribute5
523 ,p_len_attribute6_o =>ben_len_shd.g_old_rec.len_attribute6
524 ,p_len_attribute7_o =>ben_len_shd.g_old_rec.len_attribute7
525 ,p_len_attribute8_o =>ben_len_shd.g_old_rec.len_attribute8
526 ,p_len_attribute9_o =>ben_len_shd.g_old_rec.len_attribute9
527 ,p_len_attribute10_o =>ben_len_shd.g_old_rec.len_attribute10
528 ,p_len_attribute11_o =>ben_len_shd.g_old_rec.len_attribute11
529 ,p_len_attribute12_o =>ben_len_shd.g_old_rec.len_attribute12
530 ,p_len_attribute13_o =>ben_len_shd.g_old_rec.len_attribute13
531 ,p_len_attribute14_o =>ben_len_shd.g_old_rec.len_attribute14
532 ,p_len_attribute15_o =>ben_len_shd.g_old_rec.len_attribute15
533 ,p_len_attribute16_o =>ben_len_shd.g_old_rec.len_attribute16
534 ,p_len_attribute17_o =>ben_len_shd.g_old_rec.len_attribute17
535 ,p_len_attribute18_o =>ben_len_shd.g_old_rec.len_attribute18
536 ,p_len_attribute19_o =>ben_len_shd.g_old_rec.len_attribute19
537 ,p_len_attribute20_o =>ben_len_shd.g_old_rec.len_attribute20
538 ,p_len_attribute21_o =>ben_len_shd.g_old_rec.len_attribute21
539 ,p_len_attribute22_o =>ben_len_shd.g_old_rec.len_attribute22
540 ,p_len_attribute23_o =>ben_len_shd.g_old_rec.len_attribute23
541 ,p_len_attribute24_o =>ben_len_shd.g_old_rec.len_attribute24
542 ,p_len_attribute25_o =>ben_len_shd.g_old_rec.len_attribute25
543 ,p_len_attribute26_o =>ben_len_shd.g_old_rec.len_attribute26
544 ,p_len_attribute27_o =>ben_len_shd.g_old_rec.len_attribute27
545 ,p_len_attribute28_o =>ben_len_shd.g_old_rec.len_attribute28
546 ,p_len_attribute29_o =>ben_len_shd.g_old_rec.len_attribute29
547 ,p_len_attribute30_o =>ben_len_shd.g_old_rec.len_attribute30
548 ,p_object_version_number_o =>ben_len_shd.g_old_rec.object_version_number
549 --,p_enrt_perd_det_ovrlp_bckdt_cd_o =>ben_len_shd.g_old_rec.enrt_perd_det_ovrlp_bckdt_cd
550 ,p_enrt_perd_det_ovrlp_cd_o =>ben_len_shd.g_old_rec.enrt_perd_det_ovrlp_bckdt_cd
551 ,p_reinstate_cd_o =>ben_len_shd.g_old_rec.reinstate_cd
552 ,p_reinstate_ovrdn_cd_o =>ben_len_shd.g_old_rec.reinstate_ovrdn_cd
553 ,p_ENRT_PERD_STRT_DAYS_o =>ben_len_shd.g_old_rec.ENRT_PERD_STRT_DAYS
554 ,p_ENRT_PERD_END_DAYS_o =>ben_len_shd.g_old_rec.ENRT_PERD_END_DAYS
555 ,p_defer_deenrol_flag_o =>ben_len_shd.g_old_rec.defer_deenrol_flag
556 );
557 --
558 exception
559 --
560 when hr_api.cannot_find_prog_unit then
561 --
562 hr_api.cannot_find_prog_unit_error
563 (p_module_name => 'ben_lee_rsn_f'
564 ,p_hook_type => 'AU');
565 --
566 end;
567 --
568 -- End of API User Hook for post_update.
569 --
570 --
571 hr_utility.set_location(' Leaving:'||l_proc, 10);
572 End post_update;
573 --
574 -- ----------------------------------------------------------------------------
575 -- |-----------------------------< convert_defs >-----------------------------|
576 -- ----------------------------------------------------------------------------
577 -- {Start Of Comments}
578 --
579 -- Description:
580 -- The Convert_Defs procedure has one very important function:
581 -- It must return the record structure for the row with all system defaulted
582 -- values converted into its corresponding parameter value for update. When
583 -- we attempt to update a row through the Upd process , certain
584 -- parameters can be defaulted which enables flexibility in the calling of
585 -- the upd process (e.g. only attributes which need to be updated need to be
586 -- specified). For the upd process to determine which attributes
587 -- have NOT been specified we need to check if the parameter has a reserved
588 -- system default value. Therefore, for all parameters which have a
589 -- corresponding reserved system default mechanism specified we need to
590 -- check if a system default is being used. If a system default is being
591 -- used then we convert the defaulted value into its corresponding attribute
592 -- value held in the g_old_rec data structure.
593 --
594 -- Prerequisites:
595 -- This private function can only be called from the upd process.
596 --
597 -- In Parameters:
598 -- A Pl/Sql record structre.
599 --
600 -- Post Success:
601 -- The record structure will be returned with all system defaulted parameter
602 -- values converted into its current row attribute value.
603 --
604 -- Post Failure:
605 -- No direct error handling is required within this function. Any possible
606 -- errors within this procedure will be a PL/SQL value error due to conversion
607 -- of datatypes or data lengths.
608 --
609 -- Developer Implementation Notes:
610 -- None.
611 --
612 -- Access Status:
613 -- Internal Row Handler Use Only.
614 --
615 -- {End Of Comments}
616 -- ----------------------------------------------------------------------------
617 Procedure convert_defs(p_rec in out nocopy ben_len_shd.g_rec_type) is
618 --
619 l_proc varchar2(72) := g_package||'convert_defs';
620 --
621 Begin
622 --
623 hr_utility.set_location('Entering:'||l_proc, 5);
624 --
625 -- We must now examine each argument value in the
626 -- p_rec plsql record structure
627 -- to see if a system default is being used. If a system default
628 -- is being used then we must set to the 'current' argument value.
629 --
630 If (p_rec.business_group_id = hr_api.g_number) then
631 p_rec.business_group_id :=
632 ben_len_shd.g_old_rec.business_group_id;
633 End If;
634 If (p_rec.popl_enrt_typ_cycl_id = hr_api.g_number) then
635 p_rec.popl_enrt_typ_cycl_id :=
636 ben_len_shd.g_old_rec.popl_enrt_typ_cycl_id;
637 End If;
638 If (p_rec.ler_id = hr_api.g_number) then
639 p_rec.ler_id :=
640 ben_len_shd.g_old_rec.ler_id;
641 End If;
642 If (p_rec.cls_enrt_dt_to_use_cd = hr_api.g_varchar2) then
643 p_rec.cls_enrt_dt_to_use_cd :=
644 ben_len_shd.g_old_rec.cls_enrt_dt_to_use_cd;
645 End If;
646 If (p_rec.dys_aftr_end_to_dflt_num = hr_api.g_number) then
647 p_rec.dys_aftr_end_to_dflt_num :=
648 ben_len_shd.g_old_rec.dys_aftr_end_to_dflt_num;
649 End If;
650 If (p_rec.enrt_cvg_end_dt_cd = hr_api.g_varchar2) then
651 p_rec.enrt_cvg_end_dt_cd :=
652 ben_len_shd.g_old_rec.enrt_cvg_end_dt_cd;
653 End If;
654 If (p_rec.enrt_cvg_strt_dt_cd = hr_api.g_varchar2) then
655 p_rec.enrt_cvg_strt_dt_cd :=
656 ben_len_shd.g_old_rec.enrt_cvg_strt_dt_cd;
657 End If;
658 If (p_rec.enrt_perd_strt_dt_cd = hr_api.g_varchar2) then
659 p_rec.enrt_perd_strt_dt_cd :=
660 ben_len_shd.g_old_rec.enrt_perd_strt_dt_cd;
661 End If;
662 If (p_rec.enrt_perd_strt_dt_rl = hr_api.g_number) then
663 p_rec.enrt_perd_strt_dt_rl :=
664 ben_len_shd.g_old_rec.enrt_perd_strt_dt_rl;
665 End If;
666 If (p_rec.enrt_perd_end_dt_cd = hr_api.g_varchar2) then
667 p_rec.enrt_perd_end_dt_cd :=
668 ben_len_shd.g_old_rec.enrt_perd_end_dt_cd;
669 End If;
670 If (p_rec.enrt_perd_end_dt_rl = hr_api.g_number) then
671 p_rec.enrt_perd_end_dt_rl :=
672 ben_len_shd.g_old_rec.enrt_perd_end_dt_rl;
673 End If;
674 If (p_rec.addl_procg_dys_num = hr_api.g_number) then
675 p_rec.addl_procg_dys_num :=
676 ben_len_shd.g_old_rec.addl_procg_dys_num;
677 End If;
678 If (p_rec.dys_no_enrl_not_elig_num = hr_api.g_number) then
679 p_rec.dys_no_enrl_not_elig_num :=
680 ben_len_shd.g_old_rec.dys_no_enrl_not_elig_num;
681 End If;
682 If (p_rec.dys_no_enrl_cant_enrl_num = hr_api.g_number) then
683 p_rec.dys_no_enrl_cant_enrl_num :=
684 ben_len_shd.g_old_rec.dys_no_enrl_cant_enrl_num;
685 End If;
686 If (p_rec.rt_end_dt_cd = hr_api.g_varchar2) then
687 p_rec.rt_end_dt_cd :=
688 ben_len_shd.g_old_rec.rt_end_dt_cd;
689 End If;
690 If (p_rec.rt_end_dt_rl = hr_api.g_number) then
691 p_rec.rt_end_dt_rl :=
692 ben_len_shd.g_old_rec.rt_end_dt_rl;
693 End If;
694 If (p_rec.rt_strt_dt_cd = hr_api.g_varchar2) then
695 p_rec.rt_strt_dt_cd :=
696 ben_len_shd.g_old_rec.rt_strt_dt_cd;
697 End If;
698 If (p_rec.rt_strt_dt_rl = hr_api.g_number) then
699 p_rec.rt_strt_dt_rl :=
700 ben_len_shd.g_old_rec.rt_strt_dt_rl;
701 End If;
702 If (p_rec.enrt_cvg_end_dt_rl = hr_api.g_number) then
703 p_rec.enrt_cvg_end_dt_rl :=
704 ben_len_shd.g_old_rec.enrt_cvg_end_dt_rl;
705 End If;
706 If (p_rec.enrt_cvg_strt_dt_rl = hr_api.g_number) then
707 p_rec.enrt_cvg_strt_dt_rl :=
708 ben_len_shd.g_old_rec.enrt_cvg_strt_dt_rl;
709 End If;
710 If (p_rec.len_attribute_category = hr_api.g_varchar2) then
711 p_rec.len_attribute_category :=
712 ben_len_shd.g_old_rec.len_attribute_category;
713 End If;
714 If (p_rec.len_attribute1 = hr_api.g_varchar2) then
715 p_rec.len_attribute1 :=
716 ben_len_shd.g_old_rec.len_attribute1;
717 End If;
718 If (p_rec.len_attribute2 = hr_api.g_varchar2) then
719 p_rec.len_attribute2 :=
720 ben_len_shd.g_old_rec.len_attribute2;
721 End If;
722 If (p_rec.len_attribute3 = hr_api.g_varchar2) then
723 p_rec.len_attribute3 :=
724 ben_len_shd.g_old_rec.len_attribute3;
725 End If;
726 If (p_rec.len_attribute4 = hr_api.g_varchar2) then
727 p_rec.len_attribute4 :=
728 ben_len_shd.g_old_rec.len_attribute4;
729 End If;
730 If (p_rec.len_attribute5 = hr_api.g_varchar2) then
731 p_rec.len_attribute5 :=
732 ben_len_shd.g_old_rec.len_attribute5;
733 End If;
734 If (p_rec.len_attribute6 = hr_api.g_varchar2) then
735 p_rec.len_attribute6 :=
736 ben_len_shd.g_old_rec.len_attribute6;
737 End If;
738 If (p_rec.len_attribute7 = hr_api.g_varchar2) then
739 p_rec.len_attribute7 :=
740 ben_len_shd.g_old_rec.len_attribute7;
741 End If;
742 If (p_rec.len_attribute8 = hr_api.g_varchar2) then
743 p_rec.len_attribute8 :=
744 ben_len_shd.g_old_rec.len_attribute8;
745 End If;
746 If (p_rec.len_attribute9 = hr_api.g_varchar2) then
747 p_rec.len_attribute9 :=
748 ben_len_shd.g_old_rec.len_attribute9;
749 End If;
750 If (p_rec.len_attribute10 = hr_api.g_varchar2) then
751 p_rec.len_attribute10 :=
752 ben_len_shd.g_old_rec.len_attribute10;
753 End If;
754 If (p_rec.len_attribute11 = hr_api.g_varchar2) then
755 p_rec.len_attribute11 :=
756 ben_len_shd.g_old_rec.len_attribute11;
757 End If;
758 If (p_rec.len_attribute12 = hr_api.g_varchar2) then
759 p_rec.len_attribute12 :=
760 ben_len_shd.g_old_rec.len_attribute12;
761 End If;
762 If (p_rec.len_attribute13 = hr_api.g_varchar2) then
763 p_rec.len_attribute13 :=
764 ben_len_shd.g_old_rec.len_attribute13;
765 End If;
766 If (p_rec.len_attribute14 = hr_api.g_varchar2) then
767 p_rec.len_attribute14 :=
768 ben_len_shd.g_old_rec.len_attribute14;
769 End If;
770 If (p_rec.len_attribute15 = hr_api.g_varchar2) then
771 p_rec.len_attribute15 :=
772 ben_len_shd.g_old_rec.len_attribute15;
773 End If;
774 If (p_rec.len_attribute16 = hr_api.g_varchar2) then
775 p_rec.len_attribute16 :=
776 ben_len_shd.g_old_rec.len_attribute16;
777 End If;
778 If (p_rec.len_attribute17 = hr_api.g_varchar2) then
779 p_rec.len_attribute17 :=
780 ben_len_shd.g_old_rec.len_attribute17;
781 End If;
782 If (p_rec.len_attribute18 = hr_api.g_varchar2) then
783 p_rec.len_attribute18 :=
784 ben_len_shd.g_old_rec.len_attribute18;
785 End If;
786 If (p_rec.len_attribute19 = hr_api.g_varchar2) then
787 p_rec.len_attribute19 :=
788 ben_len_shd.g_old_rec.len_attribute19;
789 End If;
790 If (p_rec.len_attribute20 = hr_api.g_varchar2) then
791 p_rec.len_attribute20 :=
792 ben_len_shd.g_old_rec.len_attribute20;
793 End If;
794 If (p_rec.len_attribute21 = hr_api.g_varchar2) then
795 p_rec.len_attribute21 :=
796 ben_len_shd.g_old_rec.len_attribute21;
797 End If;
798 If (p_rec.len_attribute22 = hr_api.g_varchar2) then
799 p_rec.len_attribute22 :=
800 ben_len_shd.g_old_rec.len_attribute22;
801 End If;
802 If (p_rec.len_attribute23 = hr_api.g_varchar2) then
803 p_rec.len_attribute23 :=
804 ben_len_shd.g_old_rec.len_attribute23;
805 End If;
806 If (p_rec.len_attribute24 = hr_api.g_varchar2) then
807 p_rec.len_attribute24 :=
808 ben_len_shd.g_old_rec.len_attribute24;
809 End If;
810 If (p_rec.len_attribute25 = hr_api.g_varchar2) then
811 p_rec.len_attribute25 :=
812 ben_len_shd.g_old_rec.len_attribute25;
813 End If;
814 If (p_rec.len_attribute26 = hr_api.g_varchar2) then
815 p_rec.len_attribute26 :=
816 ben_len_shd.g_old_rec.len_attribute26;
817 End If;
818 If (p_rec.len_attribute27 = hr_api.g_varchar2) then
819 p_rec.len_attribute27 :=
820 ben_len_shd.g_old_rec.len_attribute27;
821 End If;
822 If (p_rec.len_attribute28 = hr_api.g_varchar2) then
823 p_rec.len_attribute28 :=
824 ben_len_shd.g_old_rec.len_attribute28;
825 End If;
826 If (p_rec.len_attribute29 = hr_api.g_varchar2) then
827 p_rec.len_attribute29 :=
828 ben_len_shd.g_old_rec.len_attribute29;
829 End If;
830 If (p_rec.len_attribute30 = hr_api.g_varchar2) then
831 p_rec.len_attribute30 :=
832 ben_len_shd.g_old_rec.len_attribute30;
833 End If;
834 If (p_rec.reinstate_cd = hr_api.g_varchar2) then
835 p_rec.reinstate_cd := ben_len_shd.g_old_rec.reinstate_cd;
836 End If;
837
838 If (p_rec.reinstate_ovrdn_cd = hr_api.g_varchar2) then
839 p_rec.reinstate_ovrdn_cd := ben_len_shd.g_old_rec.reinstate_ovrdn_cd;
840 End If;
841
842 If (p_rec.ENRT_PERD_STRT_DAYS = hr_api.g_number) then
843 p_rec.ENRT_PERD_STRT_DAYS := ben_len_shd.g_old_rec.ENRT_PERD_STRT_DAYS;
844 End If;
845 If (p_rec.ENRT_PERD_END_DAYS = hr_api.g_number) then
846 p_rec.ENRT_PERD_END_DAYS := ben_len_shd.g_old_rec.ENRT_PERD_END_DAYS;
847 End If;
848 If (p_rec.defer_deenrol_flag = hr_api.g_varchar2) then
849 p_rec.defer_deenrol_flag := ben_len_shd.g_old_rec.defer_deenrol_flag;
850 End If;
851 --
852 hr_utility.set_location(' Leaving:'||l_proc, 10);
853 --
854 End convert_defs;
855 --
856 -- ----------------------------------------------------------------------------
857 -- |---------------------------------< upd >----------------------------------|
858 -- ----------------------------------------------------------------------------
859 Procedure upd
860 (
861 p_rec in out nocopy ben_len_shd.g_rec_type,
862 p_effective_date in date,
863 p_datetrack_mode in varchar2
864 ) is
865 --
866 l_proc varchar2(72) := g_package||'upd';
867 l_validation_start_date date;
868 l_validation_end_date date;
869 --
870 Begin
871 hr_utility.set_location('Entering:'||l_proc, 5);
872 --
873 -- Ensure that the DateTrack update mode is valid
874 --
875 dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
876 --
877 -- We must lock the row which we need to update.
878 --
879 ben_len_shd.lck
880 (p_effective_date => p_effective_date,
881 p_datetrack_mode => p_datetrack_mode,
882 p_lee_rsn_id => p_rec.lee_rsn_id,
883 p_object_version_number => p_rec.object_version_number,
884 p_validation_start_date => l_validation_start_date,
885 p_validation_end_date => l_validation_end_date);
886 --
887 -- 1. During an update system defaults are used to determine if
888 -- arguments have been defaulted or not. We must therefore
889 -- derive the full record structure values to be updated.
890 --
891 -- 2. Call the supporting update validate operations.
892 --
893 convert_defs(p_rec);
894 ben_len_bus.update_validate
895 (p_rec => p_rec,
896 p_effective_date => p_effective_date,
897 p_datetrack_mode => p_datetrack_mode,
898 p_validation_start_date => l_validation_start_date,
899 p_validation_end_date => l_validation_end_date);
900 --
901 -- Call the supporting pre-update operation
902 --
903 pre_update
904 (p_rec => p_rec,
905 p_effective_date => p_effective_date,
906 p_datetrack_mode => p_datetrack_mode,
907 p_validation_start_date => l_validation_start_date,
908 p_validation_end_date => l_validation_end_date);
909 --
910 -- Update the row.
911 --
912 update_dml
913 (p_rec => p_rec,
914 p_effective_date => p_effective_date,
915 p_datetrack_mode => p_datetrack_mode,
916 p_validation_start_date => l_validation_start_date,
917 p_validation_end_date => l_validation_end_date);
918 --
919 -- Call the supporting post-update operation
920 --
921 post_update
922 (p_rec => p_rec,
923 p_effective_date => p_effective_date,
924 p_datetrack_mode => p_datetrack_mode,
925 p_validation_start_date => l_validation_start_date,
926 p_validation_end_date => l_validation_end_date);
927 End upd;
928 --
929 -- ----------------------------------------------------------------------------
930 -- |---------------------------------< upd >----------------------------------|
931 -- ----------------------------------------------------------------------------
932 Procedure upd
933 (
934 p_lee_rsn_id in number,
935 p_effective_start_date out nocopy date,
936 p_effective_end_date out nocopy date,
937 p_business_group_id in number default hr_api.g_number,
938 p_popl_enrt_typ_cycl_id in number default hr_api.g_number,
939 p_ler_id in number default hr_api.g_number,
940 p_cls_enrt_dt_to_use_cd in varchar2 default hr_api.g_varchar2,
941 p_dys_aftr_end_to_dflt_num in number default hr_api.g_number,
942 p_enrt_cvg_end_dt_cd in varchar2 default hr_api.g_varchar2,
943 p_enrt_cvg_strt_dt_cd in varchar2 default hr_api.g_varchar2,
944 p_enrt_perd_strt_dt_cd in varchar2 default hr_api.g_varchar2,
945 p_enrt_perd_strt_dt_rl in number default hr_api.g_number,
946 p_enrt_perd_end_dt_cd in varchar2 default hr_api.g_varchar2,
947 p_enrt_perd_end_dt_rl in number default hr_api.g_number,
948 p_addl_procg_dys_num in number default hr_api.g_number,
949 p_dys_no_enrl_not_elig_num in number default hr_api.g_number,
950 p_dys_no_enrl_cant_enrl_num in number default hr_api.g_number,
951 p_rt_end_dt_cd in varchar2 default hr_api.g_varchar2,
952 p_rt_end_dt_rl in number default hr_api.g_number,
953 p_rt_strt_dt_cd in varchar2 default hr_api.g_varchar2,
954 p_rt_strt_dt_rl in number default hr_api.g_number,
955 p_enrt_cvg_end_dt_rl in number default hr_api.g_number,
956 p_enrt_cvg_strt_dt_rl in number default hr_api.g_number,
957 p_len_attribute_category in varchar2 default hr_api.g_varchar2,
958 p_len_attribute1 in varchar2 default hr_api.g_varchar2,
959 p_len_attribute2 in varchar2 default hr_api.g_varchar2,
960 p_len_attribute3 in varchar2 default hr_api.g_varchar2,
961 p_len_attribute4 in varchar2 default hr_api.g_varchar2,
962 p_len_attribute5 in varchar2 default hr_api.g_varchar2,
963 p_len_attribute6 in varchar2 default hr_api.g_varchar2,
964 p_len_attribute7 in varchar2 default hr_api.g_varchar2,
965 p_len_attribute8 in varchar2 default hr_api.g_varchar2,
966 p_len_attribute9 in varchar2 default hr_api.g_varchar2,
967 p_len_attribute10 in varchar2 default hr_api.g_varchar2,
968 p_len_attribute11 in varchar2 default hr_api.g_varchar2,
969 p_len_attribute12 in varchar2 default hr_api.g_varchar2,
970 p_len_attribute13 in varchar2 default hr_api.g_varchar2,
971 p_len_attribute14 in varchar2 default hr_api.g_varchar2,
972 p_len_attribute15 in varchar2 default hr_api.g_varchar2,
973 p_len_attribute16 in varchar2 default hr_api.g_varchar2,
974 p_len_attribute17 in varchar2 default hr_api.g_varchar2,
975 p_len_attribute18 in varchar2 default hr_api.g_varchar2,
976 p_len_attribute19 in varchar2 default hr_api.g_varchar2,
977 p_len_attribute20 in varchar2 default hr_api.g_varchar2,
978 p_len_attribute21 in varchar2 default hr_api.g_varchar2,
979 p_len_attribute22 in varchar2 default hr_api.g_varchar2,
980 p_len_attribute23 in varchar2 default hr_api.g_varchar2,
981 p_len_attribute24 in varchar2 default hr_api.g_varchar2,
982 p_len_attribute25 in varchar2 default hr_api.g_varchar2,
983 p_len_attribute26 in varchar2 default hr_api.g_varchar2,
984 p_len_attribute27 in varchar2 default hr_api.g_varchar2,
985 p_len_attribute28 in varchar2 default hr_api.g_varchar2,
986 p_len_attribute29 in varchar2 default hr_api.g_varchar2,
987 p_len_attribute30 in varchar2 default hr_api.g_varchar2,
988 p_object_version_number in out nocopy number,
989 p_enrt_perd_det_ovrlp_bckdt_cd in varchar2 default hr_api.g_varchar2,
990 p_effective_date in date,
991 p_datetrack_mode in varchar2,
992 p_reinstate_cd in varchar2 default hr_api.g_varchar2,
993 p_reinstate_ovrdn_cd in varchar2 default hr_api.g_varchar2 ,
994 p_ENRT_PERD_STRT_DAYS in number default hr_api.g_number ,
995 p_ENRT_PERD_END_DAYS in number default hr_api.g_number ,
996 p_defer_deenrol_flag in varchar2 default hr_api.g_varchar2
997 ) is
998 --
999 l_rec ben_len_shd.g_rec_type;
1000 l_proc varchar2(72) := g_package||'upd';
1001 --
1002 Begin
1003 hr_utility.set_location('Entering:'||l_proc, 5);
1004 --
1005 -- Call conversion function to turn arguments into the
1006 -- l_rec structure.
1007 --
1008 l_rec :=
1009 ben_len_shd.convert_args
1010 (
1011 p_lee_rsn_id,
1012 null,
1013 null,
1014 p_business_group_id,
1015 p_popl_enrt_typ_cycl_id,
1016 p_ler_id,
1017 p_cls_enrt_dt_to_use_cd,
1018 p_dys_aftr_end_to_dflt_num,
1019 p_enrt_cvg_end_dt_cd,
1020 p_enrt_cvg_strt_dt_cd,
1021 p_enrt_perd_strt_dt_cd,
1022 p_enrt_perd_strt_dt_rl,
1023 p_enrt_perd_end_dt_cd,
1024 p_enrt_perd_end_dt_rl,
1025 p_addl_procg_dys_num,
1026 p_dys_no_enrl_not_elig_num,
1027 p_dys_no_enrl_cant_enrl_num,
1028 p_rt_end_dt_cd,
1029 p_rt_end_dt_rl,
1030 p_rt_strt_dt_cd,
1031 p_rt_strt_dt_rl,
1032 p_enrt_cvg_end_dt_rl,
1033 p_enrt_cvg_strt_dt_rl,
1034 p_len_attribute_category,
1035 p_len_attribute1,
1036 p_len_attribute2,
1037 p_len_attribute3,
1038 p_len_attribute4,
1039 p_len_attribute5,
1040 p_len_attribute6,
1041 p_len_attribute7,
1042 p_len_attribute8,
1043 p_len_attribute9,
1044 p_len_attribute10,
1045 p_len_attribute11,
1046 p_len_attribute12,
1047 p_len_attribute13,
1048 p_len_attribute14,
1049 p_len_attribute15,
1050 p_len_attribute16,
1051 p_len_attribute17,
1052 p_len_attribute18,
1053 p_len_attribute19,
1054 p_len_attribute20,
1055 p_len_attribute21,
1056 p_len_attribute22,
1057 p_len_attribute23,
1058 p_len_attribute24,
1059 p_len_attribute25,
1060 p_len_attribute26,
1061 p_len_attribute27,
1062 p_len_attribute28,
1063 p_len_attribute29,
1064 p_len_attribute30,
1065 p_object_version_number ,
1066 p_enrt_perd_det_ovrlp_bckdt_cd,
1067 p_reinstate_cd,
1068 p_reinstate_ovrdn_cd ,
1069 p_ENRT_PERD_STRT_DAYS ,
1070 p_ENRT_PERD_END_DAYS ,
1071 p_defer_deenrol_flag
1072 );
1073 --
1074 -- Having converted the arguments into the
1075 -- plsql record structure we call the corresponding record
1076 -- business process.
1077 --
1078 upd(l_rec, p_effective_date, p_datetrack_mode);
1079 p_object_version_number := l_rec.object_version_number;
1080 p_effective_start_date := l_rec.effective_start_date;
1081 p_effective_end_date := l_rec.effective_end_date;
1082 --
1083 --
1084 hr_utility.set_location(' Leaving:'||l_proc, 10);
1085 End upd;
1086 --
1087 end ben_len_upd;