[Home] [Help]
PACKAGE BODY: APPS.BEN_LGE_INS
Source
1 Package Body ben_lge_ins as
2 /* $Header: belgerhi.pkb 120.0 2005/05/28 03:23:02 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_lge_ins.'; -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |----------------------------< dt_insert_dml >-----------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 --
15 -- Description:
16 -- This procedure controls the actual dml insert logic for datetrack. The
17 -- functions of this procedure are as follows:
18 -- 1) Get the object_version_number.
19 -- 2) To set the effective start and end dates to the corresponding
20 -- validation start and end dates. Also, the object version number
21 -- record attribute is set.
22 -- 3) To set and unset the g_api_dml status as required (as we are about to
23 -- perform dml).
24 -- 4) To insert the row into the schema with the derived effective start
25 -- and end dates and the object version number.
26 -- 5) To trap any constraint violations that may have occurred.
27 -- 6) To raise any other errors.
28 --
29 -- Prerequisites:
30 -- This is an internal private procedure which must be called from the
31 -- insert_dml and pre_update (logic permitting) procedure and must have
32 -- all mandatory arguments set.
33 --
34 -- In Parameters:
35 -- A Pl/Sql record structre.
36 --
37 -- Post Success:
38 -- The specified row will be inserted into the schema.
39 --
40 -- Post Failure:
41 -- On the insert 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 -- This is an internal datetrack maintenance procedure which should
50 -- not be modified in anyway.
51 --
52 -- Access Status:
53 -- Internal Row Handler Use Only.
54 --
55 -- {End Of Comments}
56 -- ----------------------------------------------------------------------------
57 Procedure dt_insert_dml
58 (p_rec in out nocopy ben_lge_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 -- Cursor to select 'old' created AOL who column values
65 --
66 Cursor C_Sel1 Is
67 select t.created_by,
68 t.creation_date
69 from ben_ler_chg_pgm_enrt_f t
70 where t.ler_chg_pgm_enrt_id = p_rec.ler_chg_pgm_enrt_id
71 and t.effective_start_date =
72 ben_lge_shd.g_old_rec.effective_start_date
73 and t.effective_end_date = (p_validation_start_date - 1);
74 --
75 l_proc varchar2(72) := g_package||'dt_insert_dml';
76 l_created_by ben_ler_chg_pgm_enrt_f.created_by%TYPE;
77 l_creation_date ben_ler_chg_pgm_enrt_f.creation_date%TYPE;
78 l_last_update_date ben_ler_chg_pgm_enrt_f.last_update_date%TYPE;
79 l_last_updated_by ben_ler_chg_pgm_enrt_f.last_updated_by%TYPE;
80 l_last_update_login ben_ler_chg_pgm_enrt_f.last_update_login%TYPE;
81 --
82 Begin
83 hr_utility.set_location('Entering:'||l_proc, 5);
84 --
85 -- Get the object version number for the insert
86 --
87 p_rec.object_version_number :=
88 dt_api.get_object_version_number
89 (p_base_table_name => 'ben_ler_chg_pgm_enrt_f',
90 p_base_key_column => 'ler_chg_pgm_enrt_id',
91 p_base_key_value => p_rec.ler_chg_pgm_enrt_id);
92 --
93 -- Set the effective start and end dates to the corresponding
94 -- validation start and end dates
95 --
96 p_rec.effective_start_date := p_validation_start_date;
97 p_rec.effective_end_date := p_validation_end_date;
98 --
99 -- If the datetrack_mode is not INSERT then we must populate the WHO
100 -- columns with the 'old' creation values and 'new' updated values.
101 --
102 If (p_datetrack_mode <> 'INSERT') then
103 hr_utility.set_location(l_proc, 10);
104 --
105 -- Select the 'old' created values
106 --
107 Open C_Sel1;
108 Fetch C_Sel1 Into l_created_by, l_creation_date;
109 If C_Sel1%notfound Then
110 --
111 -- The previous 'old' created row has not been found. We need
112 -- to error as an internal datetrack problem exists.
113 --
114 Close C_Sel1;
115 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
116 fnd_message.set_token('PROCEDURE', l_proc);
117 fnd_message.set_token('STEP','10');
118 fnd_message.raise_error;
119 End If;
120 Close C_Sel1;
121 --
122 -- Set the AOL updated WHO values
123 --
124 l_last_update_date := sysdate;
125 l_last_updated_by := fnd_global.user_id;
126 l_last_update_login := fnd_global.login_id;
127 End If;
128 --
129 ben_lge_shd.g_api_dml := true; -- Set the api dml status
130 --
131 -- Insert the row into: ben_ler_chg_pgm_enrt_f
132 --
133 insert into ben_ler_chg_pgm_enrt_f
134 ( ler_chg_pgm_enrt_id,
135 effective_start_date,
136 effective_end_date,
137 auto_enrt_mthd_rl,
138 crnt_enrt_prclds_chg_flag,
139 business_group_id,
140 pgm_id,
141 ler_id,
142 dflt_enrt_cd,
143 dflt_enrt_rl,
144 enrt_cd,
145 enrt_mthd_cd,
146 enrt_rl,
147 stl_elig_cant_chg_flag,
148 lge_attribute_category,
149 lge_attribute1,
150 lge_attribute2,
151 lge_attribute3,
152 lge_attribute4,
153 lge_attribute5,
154 lge_attribute6,
155 lge_attribute7,
156 lge_attribute8,
157 lge_attribute9,
158 lge_attribute10,
159 lge_attribute11,
160 lge_attribute12,
161 lge_attribute13,
162 lge_attribute14,
163 lge_attribute15,
164 lge_attribute16,
165 lge_attribute17,
166 lge_attribute18,
167 lge_attribute19,
168 lge_attribute20,
169 lge_attribute21,
170 lge_attribute22,
171 lge_attribute23,
172 lge_attribute24,
173 lge_attribute25,
174 lge_attribute26,
175 lge_attribute27,
176 lge_attribute28,
177 lge_attribute29,
178 lge_attribute30,
179 object_version_number
180 , created_by,
181 creation_date,
182 last_update_date,
183 last_updated_by,
184 last_update_login
185 )
186 Values
187 ( p_rec.ler_chg_pgm_enrt_id,
188 p_rec.effective_start_date,
189 p_rec.effective_end_date,
190 p_rec.auto_enrt_mthd_rl,
191 p_rec.crnt_enrt_prclds_chg_flag,
192 p_rec.business_group_id,
193 p_rec.pgm_id,
194 p_rec.ler_id,
195 p_rec.dflt_enrt_cd,
196 p_rec.dflt_enrt_rl,
197 p_rec.enrt_cd,
198 p_rec.enrt_mthd_cd,
199 p_rec.enrt_rl,
200 p_rec.stl_elig_cant_chg_flag,
201 p_rec.lge_attribute_category,
202 p_rec.lge_attribute1,
203 p_rec.lge_attribute2,
204 p_rec.lge_attribute3,
205 p_rec.lge_attribute4,
206 p_rec.lge_attribute5,
207 p_rec.lge_attribute6,
208 p_rec.lge_attribute7,
209 p_rec.lge_attribute8,
210 p_rec.lge_attribute9,
211 p_rec.lge_attribute10,
212 p_rec.lge_attribute11,
213 p_rec.lge_attribute12,
214 p_rec.lge_attribute13,
215 p_rec.lge_attribute14,
216 p_rec.lge_attribute15,
217 p_rec.lge_attribute16,
218 p_rec.lge_attribute17,
219 p_rec.lge_attribute18,
220 p_rec.lge_attribute19,
221 p_rec.lge_attribute20,
222 p_rec.lge_attribute21,
223 p_rec.lge_attribute22,
224 p_rec.lge_attribute23,
225 p_rec.lge_attribute24,
226 p_rec.lge_attribute25,
227 p_rec.lge_attribute26,
228 p_rec.lge_attribute27,
229 p_rec.lge_attribute28,
230 p_rec.lge_attribute29,
231 p_rec.lge_attribute30,
232 p_rec.object_version_number
233 , l_created_by,
234 l_creation_date,
235 l_last_update_date,
236 l_last_updated_by,
237 l_last_update_login
238 );
239 --
240 ben_lge_shd.g_api_dml := false; -- Unset the api dml status
241 hr_utility.set_location(' Leaving:'||l_proc, 15);
242 --
243 Exception
244 When hr_api.check_integrity_violated Then
245 -- A check constraint has been violated
246 ben_lge_shd.g_api_dml := false; -- Unset the api dml status
247 ben_lge_shd.constraint_error
248 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
249 When hr_api.unique_integrity_violated Then
250 -- Unique integrity has been violated
251 ben_lge_shd.g_api_dml := false; -- Unset the api dml status
252 ben_lge_shd.constraint_error
253 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
254 When Others Then
255 ben_lge_shd.g_api_dml := false; -- Unset the api dml status
256 Raise;
257 End dt_insert_dml;
258 --
259 -- ----------------------------------------------------------------------------
260 -- |------------------------------< insert_dml >------------------------------|
261 -- ----------------------------------------------------------------------------
262 Procedure insert_dml
263 (p_rec in out nocopy ben_lge_shd.g_rec_type,
264 p_effective_date in date,
265 p_datetrack_mode in varchar2,
266 p_validation_start_date in date,
267 p_validation_end_date in date) is
268 --
269 l_proc varchar2(72) := g_package||'insert_dml';
270 --
271 Begin
272 hr_utility.set_location('Entering:'||l_proc, 5);
273 --
274 dt_insert_dml(p_rec => p_rec,
275 p_effective_date => p_effective_date,
276 p_datetrack_mode => p_datetrack_mode,
277 p_validation_start_date => p_validation_start_date,
278 p_validation_end_date => p_validation_end_date);
279 --
280 hr_utility.set_location(' Leaving:'||l_proc, 10);
281 End insert_dml;
282 --
283 -- ----------------------------------------------------------------------------
284 -- |------------------------------< pre_insert >------------------------------|
285 -- ----------------------------------------------------------------------------
286 -- {Start Of Comments}
287 --
288 -- Description:
289 -- This private procedure contains any processing which is required before
290 -- the insert dml. Presently, if the entity has a corresponding primary
291 -- key which is maintained by an associating sequence, the primary key for
292 -- the entity will be populated with the next sequence value in
293 -- preparation for the insert dml.
294 -- Also, if comments are defined for this entity, the comments insert
295 -- logic will also be called, generating a comment_id if required.
296 --
297 -- Prerequisites:
298 -- This is an internal procedure which is called from the ins procedure.
299 --
300 -- In Parameters:
301 -- A Pl/Sql record structre.
302 --
303 -- Post Success:
304 -- Processing continues.
305 --
306 -- Post Failure:
307 -- If an error has occurred, an error message and exception will be raised
308 -- but not handled.
309 --
310 -- Developer Implementation Notes:
311 -- Any pre-processing required before the insert dml is issued should be
312 -- coded within this procedure. As stated above, a good example is the
313 -- generation of a primary key number via a corresponding sequence.
314 -- It is important to note that any 3rd party maintenance should be reviewed
315 -- before placing in this procedure.
316 --
317 -- Access Status:
318 -- Internal Row Handler Use Only.
319 --
320 -- {End Of Comments}
321 -- ----------------------------------------------------------------------------
322 Procedure pre_insert
323 (p_rec in out nocopy ben_lge_shd.g_rec_type,
324 p_effective_date in date,
325 p_datetrack_mode in varchar2,
326 p_validation_start_date in date,
327 p_validation_end_date in date) is
328 --
329 l_proc varchar2(72) := g_package||'pre_insert';
330 --
331 cursor c1 is
332 select ben_ler_chg_pgm_enrt_f_s.nextval
333 from sys.dual;
334 --
335 Begin
336 hr_utility.set_location('Entering:'||l_proc, 5);
337 --
338 open c1;
339 fetch c1 into p_rec.ler_chg_pgm_enrt_id;
340 close c1;
341 --
342 hr_utility.set_location(' Leaving:'||l_proc, 10);
343 End pre_insert;
344 --
345 -- ----------------------------------------------------------------------------
346 -- |-----------------------------< post_insert >------------------------------|
347 -- ----------------------------------------------------------------------------
348 -- {Start Of Comments}
349 --
350 -- Description:
351 -- This private procedure contains any processing which is required after the
352 -- insert dml.
353 --
354 -- Prerequisites:
355 -- This is an internal procedure which is called from the ins procedure.
356 --
357 -- In Parameters:
358 -- A Pl/Sql record structre.
359 --
360 -- Post Success:
361 -- Processing continues.
362 --
363 -- Post Failure:
364 -- If an error has occurred, an error message and exception will be raised
365 -- but not handled.
366 --
367 -- Developer Implementation Notes:
368 -- Any post-processing required after the insert dml is issued should be
369 -- coded within this procedure. It is important to note that any 3rd party
370 -- maintenance should be reviewed before placing in this procedure.
371 --
372 -- Access Status:
373 -- Internal Row Handler Use Only.
374 --
375 -- {End Of Comments}
376 -- ----------------------------------------------------------------------------
377 Procedure post_insert
378 (p_rec in ben_lge_shd.g_rec_type,
379 p_effective_date in date,
380 p_datetrack_mode in varchar2,
381 p_validation_start_date in date,
382 p_validation_end_date in date) is
383 --
384 l_proc varchar2(72) := g_package||'post_insert';
385 --
386 Begin
387 hr_utility.set_location('Entering:'||l_proc, 5);
388 --
389 --
390 -- Start of API User Hook for post_insert.
391 --
392 begin
393 --
394 ben_lge_rki.after_insert
395 (
396 p_ler_chg_pgm_enrt_id =>p_rec.ler_chg_pgm_enrt_id
397 ,p_effective_start_date =>p_rec.effective_start_date
398 ,p_effective_end_date =>p_rec.effective_end_date
399 ,p_auto_enrt_mthd_rl =>p_rec.auto_enrt_mthd_rl
400 ,p_crnt_enrt_prclds_chg_flag =>p_rec.crnt_enrt_prclds_chg_flag
401 ,p_business_group_id =>p_rec.business_group_id
402 ,p_pgm_id =>p_rec.pgm_id
403 ,p_ler_id =>p_rec.ler_id
404 ,p_dflt_enrt_cd =>p_rec.dflt_enrt_cd
405 ,p_dflt_enrt_rl =>p_rec.dflt_enrt_rl
406 ,p_enrt_cd =>p_rec.enrt_cd
407 ,p_enrt_mthd_cd =>p_rec.enrt_mthd_cd
408 ,p_enrt_rl =>p_rec.enrt_rl
409 ,p_stl_elig_cant_chg_flag =>p_rec.stl_elig_cant_chg_flag
410 ,p_lge_attribute_category =>p_rec.lge_attribute_category
411 ,p_lge_attribute1 =>p_rec.lge_attribute1
412 ,p_lge_attribute2 =>p_rec.lge_attribute2
413 ,p_lge_attribute3 =>p_rec.lge_attribute3
414 ,p_lge_attribute4 =>p_rec.lge_attribute4
415 ,p_lge_attribute5 =>p_rec.lge_attribute5
416 ,p_lge_attribute6 =>p_rec.lge_attribute6
417 ,p_lge_attribute7 =>p_rec.lge_attribute7
418 ,p_lge_attribute8 =>p_rec.lge_attribute8
419 ,p_lge_attribute9 =>p_rec.lge_attribute9
420 ,p_lge_attribute10 =>p_rec.lge_attribute10
421 ,p_lge_attribute11 =>p_rec.lge_attribute11
422 ,p_lge_attribute12 =>p_rec.lge_attribute12
423 ,p_lge_attribute13 =>p_rec.lge_attribute13
424 ,p_lge_attribute14 =>p_rec.lge_attribute14
425 ,p_lge_attribute15 =>p_rec.lge_attribute15
426 ,p_lge_attribute16 =>p_rec.lge_attribute16
427 ,p_lge_attribute17 =>p_rec.lge_attribute17
428 ,p_lge_attribute18 =>p_rec.lge_attribute18
429 ,p_lge_attribute19 =>p_rec.lge_attribute19
430 ,p_lge_attribute20 =>p_rec.lge_attribute20
431 ,p_lge_attribute21 =>p_rec.lge_attribute21
432 ,p_lge_attribute22 =>p_rec.lge_attribute22
433 ,p_lge_attribute23 =>p_rec.lge_attribute23
434 ,p_lge_attribute24 =>p_rec.lge_attribute24
435 ,p_lge_attribute25 =>p_rec.lge_attribute25
436 ,p_lge_attribute26 =>p_rec.lge_attribute26
437 ,p_lge_attribute27 =>p_rec.lge_attribute27
438 ,p_lge_attribute28 =>p_rec.lge_attribute28
439 ,p_lge_attribute29 =>p_rec.lge_attribute29
440 ,p_lge_attribute30 =>p_rec.lge_attribute30
441 ,p_object_version_number =>p_rec.object_version_number
442 ,p_effective_date =>p_effective_date
443 ,p_validation_start_date =>p_validation_start_date
444 ,p_validation_end_date =>p_validation_end_date
445 );
446 --
447 exception
448 --
449 when hr_api.cannot_find_prog_unit then
450 --
451 hr_api.cannot_find_prog_unit_error
452 (p_module_name => 'ben_ler_chg_pgm_enrt_f'
453 ,p_hook_type => 'AI');
454 --
455 end;
456 --
457 -- End of API User Hook for post_insert.
458 --
459 --
460 hr_utility.set_location(' Leaving:'||l_proc, 10);
461 End post_insert;
462 --
463 -- ----------------------------------------------------------------------------
464 -- |-------------------------------< ins_lck >--------------------------------|
465 -- ----------------------------------------------------------------------------
466 -- {Start Of Comments}
467 --
468 -- Description:
469 -- The ins_lck process has one main function to perform. When inserting
470 -- a datetracked row, we must validate the DT mode.
471 -- be manipulated.
472 --
473 -- Prerequisites:
474 -- This procedure can only be called for the datetrack mode of INSERT.
475 --
476 -- In Parameters:
477 --
478 -- Post Success:
479 -- On successful completion of the ins_lck process the parental
480 -- datetracked rows will be locked providing the p_enforce_foreign_locking
481 -- argument value is TRUE.
482 -- If the p_enforce_foreign_locking argument value is FALSE then the
483 -- parential rows are not locked.
484 --
485 -- Post Failure:
486 -- The Lck process can fail for:
487 -- 1) When attempting to lock the row the row could already be locked by
488 -- another user. This will raise the HR_Api.Object_Locked exception.
489 -- 2) When attempting to the lock the parent which doesn't exist.
490 -- For the entity to be locked the parent must exist!
491 --
492 -- Developer Implementation Notes:
493 -- None.
494 --
495 -- Access Status:
496 -- Internal Row Handler Use Only.
497 --
498 -- {End Of Comments}
499 -- ----------------------------------------------------------------------------
500 Procedure ins_lck
501 (p_effective_date in date,
502 p_datetrack_mode in varchar2,
503 p_rec in ben_lge_shd.g_rec_type,
504 p_validation_start_date out nocopy date,
505 p_validation_end_date out nocopy date) is
506 --
507 l_proc varchar2(72) := g_package||'ins_lck';
508 l_validation_start_date date;
509 l_validation_end_date date;
510 --
511 Begin
512 hr_utility.set_location('Entering:'||l_proc, 5);
513 --
514 -- Validate the datetrack mode mode getting the validation start
515 -- and end dates for the specified datetrack operation.
516 --
517 dt_api.validate_dt_mode
518 (p_effective_date => p_effective_date,
519 p_datetrack_mode => p_datetrack_mode,
520 p_base_table_name => 'ben_ler_chg_pgm_enrt_f',
521 p_base_key_column => 'ler_chg_pgm_enrt_id',
522 p_base_key_value => p_rec.ler_chg_pgm_enrt_id,
523 p_parent_table_name1 => 'ben_ler_f',
524 p_parent_key_column1 => 'ler_id',
525 p_parent_key_value1 => p_rec.ler_id,
526 p_parent_table_name2 => 'ben_pgm_f',
527 p_parent_key_column2 => 'pgm_id',
528 p_parent_key_value2 => p_rec.pgm_id,
529 p_enforce_foreign_locking => true,
530 p_validation_start_date => l_validation_start_date,
531 p_validation_end_date => l_validation_end_date);
532 --
533 -- Set the validation start and end date OUT arguments
534 --
535 p_validation_start_date := l_validation_start_date;
536 p_validation_end_date := l_validation_end_date;
537 --
538 hr_utility.set_location(' Leaving:'||l_proc, 10);
539 --
540 End ins_lck;
541 --
542 -- ----------------------------------------------------------------------------
543 -- |---------------------------------< ins >----------------------------------|
544 -- ----------------------------------------------------------------------------
545 Procedure ins
546 (
547 p_rec in out nocopy ben_lge_shd.g_rec_type,
548 p_effective_date in date
549 ) is
550 --
551 l_proc varchar2(72) := g_package||'ins';
552 l_datetrack_mode varchar2(30) := 'INSERT';
553 l_validation_start_date date;
554 l_validation_end_date date;
555 --
556 Begin
557 hr_utility.set_location('Entering:'||l_proc, 5);
558 --
559 -- Call the lock operation
560 --
561 ins_lck
562 (p_effective_date => p_effective_date,
563 p_datetrack_mode => l_datetrack_mode,
564 p_rec => p_rec,
565 p_validation_start_date => l_validation_start_date,
566 p_validation_end_date => l_validation_end_date);
567 --
568 -- Call the supporting insert validate operations
569 --
570 ben_lge_bus.insert_validate
571 (p_rec => p_rec,
572 p_effective_date => p_effective_date,
573 p_datetrack_mode => l_datetrack_mode,
574 p_validation_start_date => l_validation_start_date,
575 p_validation_end_date => l_validation_end_date);
576 --
577 -- Call the supporting pre-insert operation
578 --
579 pre_insert
580 (p_rec => p_rec,
581 p_effective_date => p_effective_date,
582 p_datetrack_mode => l_datetrack_mode,
583 p_validation_start_date => l_validation_start_date,
584 p_validation_end_date => l_validation_end_date);
585 --
586 -- Insert the row
587 --
588 insert_dml
589 (p_rec => p_rec,
590 p_effective_date => p_effective_date,
591 p_datetrack_mode => l_datetrack_mode,
592 p_validation_start_date => l_validation_start_date,
593 p_validation_end_date => l_validation_end_date);
594 --
595 -- Call the supporting post-insert operation
596 --
597 post_insert
598 (p_rec => p_rec,
599 p_effective_date => p_effective_date,
600 p_datetrack_mode => l_datetrack_mode,
601 p_validation_start_date => l_validation_start_date,
602 p_validation_end_date => l_validation_end_date);
603 end ins;
604 --
605 -- ----------------------------------------------------------------------------
606 -- |---------------------------------< ins >----------------------------------|
607 -- ----------------------------------------------------------------------------
608 Procedure ins
609 (
610 p_ler_chg_pgm_enrt_id out nocopy number,
611 p_effective_start_date out nocopy date,
612 p_effective_end_date out nocopy date,
613 p_auto_enrt_mthd_rl in number default null,
614 p_crnt_enrt_prclds_chg_flag in varchar2 default 'N',
615 p_business_group_id in number,
616 p_pgm_id in number,
617 p_ler_id in number,
618 p_dflt_enrt_cd in varchar2 default null,
619 p_dflt_enrt_rl in number default null,
620 p_enrt_cd in varchar2 default null,
621 p_enrt_mthd_cd in varchar2 default null,
622 p_enrt_rl in number default null,
623 p_stl_elig_cant_chg_flag in varchar2 default 'N',
624 p_lge_attribute_category in varchar2 default null,
625 p_lge_attribute1 in varchar2 default null,
626 p_lge_attribute2 in varchar2 default null,
627 p_lge_attribute3 in varchar2 default null,
628 p_lge_attribute4 in varchar2 default null,
629 p_lge_attribute5 in varchar2 default null,
630 p_lge_attribute6 in varchar2 default null,
631 p_lge_attribute7 in varchar2 default null,
632 p_lge_attribute8 in varchar2 default null,
633 p_lge_attribute9 in varchar2 default null,
634 p_lge_attribute10 in varchar2 default null,
635 p_lge_attribute11 in varchar2 default null,
636 p_lge_attribute12 in varchar2 default null,
637 p_lge_attribute13 in varchar2 default null,
638 p_lge_attribute14 in varchar2 default null,
639 p_lge_attribute15 in varchar2 default null,
640 p_lge_attribute16 in varchar2 default null,
641 p_lge_attribute17 in varchar2 default null,
642 p_lge_attribute18 in varchar2 default null,
643 p_lge_attribute19 in varchar2 default null,
644 p_lge_attribute20 in varchar2 default null,
645 p_lge_attribute21 in varchar2 default null,
646 p_lge_attribute22 in varchar2 default null,
647 p_lge_attribute23 in varchar2 default null,
648 p_lge_attribute24 in varchar2 default null,
649 p_lge_attribute25 in varchar2 default null,
650 p_lge_attribute26 in varchar2 default null,
651 p_lge_attribute27 in varchar2 default null,
652 p_lge_attribute28 in varchar2 default null,
653 p_lge_attribute29 in varchar2 default null,
654 p_lge_attribute30 in varchar2 default null,
655 p_object_version_number out nocopy number,
656 p_effective_date in date
657 ) is
658 --
659 l_rec ben_lge_shd.g_rec_type;
660 l_proc varchar2(72) := g_package||'ins';
661 --
662 Begin
663 hr_utility.set_location('Entering:'||l_proc, 5);
664 --
665 -- Call conversion function to turn arguments into the
666 -- p_rec structure.
667 --
668 l_rec :=
669 ben_lge_shd.convert_args
670 (
671 null,
672 null,
673 null,
674 p_auto_enrt_mthd_rl,
675 p_crnt_enrt_prclds_chg_flag,
676 p_business_group_id,
677 p_pgm_id,
678 p_ler_id,
679 p_dflt_enrt_cd,
680 p_dflt_enrt_rl,
681 p_enrt_cd,
682 p_enrt_mthd_cd,
683 p_enrt_rl,
684 p_stl_elig_cant_chg_flag,
685 p_lge_attribute_category,
686 p_lge_attribute1,
687 p_lge_attribute2,
688 p_lge_attribute3,
689 p_lge_attribute4,
690 p_lge_attribute5,
691 p_lge_attribute6,
692 p_lge_attribute7,
693 p_lge_attribute8,
694 p_lge_attribute9,
695 p_lge_attribute10,
696 p_lge_attribute11,
697 p_lge_attribute12,
698 p_lge_attribute13,
699 p_lge_attribute14,
700 p_lge_attribute15,
701 p_lge_attribute16,
702 p_lge_attribute17,
703 p_lge_attribute18,
704 p_lge_attribute19,
705 p_lge_attribute20,
706 p_lge_attribute21,
707 p_lge_attribute22,
708 p_lge_attribute23,
709 p_lge_attribute24,
710 p_lge_attribute25,
711 p_lge_attribute26,
712 p_lge_attribute27,
713 p_lge_attribute28,
714 p_lge_attribute29,
715 p_lge_attribute30,
716 null
717 );
718 --
719 -- Having converted the arguments into the ben_lge_rec
720 -- plsql record structure we call the corresponding record
721 -- business process.
722 --
723 ins(l_rec, p_effective_date);
724 --
725 -- Set the OUT arguments.
726 --
727 p_ler_chg_pgm_enrt_id := l_rec.ler_chg_pgm_enrt_id;
728 p_effective_start_date := l_rec.effective_start_date;
729 p_effective_end_date := l_rec.effective_end_date;
730 p_object_version_number := l_rec.object_version_number;
731 --
732 --
733 hr_utility.set_location(' Leaving:'||l_proc, 10);
734 End ins;
735 --
736 end ben_lge_ins;