[Home] [Help]
PACKAGE BODY: APPS.BEN_ETC_INS
Source
1 Package Body ben_etc_ins as
2 /* $Header: beetcrhi.pkb 120.0 2005/05/28 03:00:47 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_etc_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_etc_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_elig_ttl_cvg_vol_prte_f t
70 where t.elig_ttl_cvg_vol_prte_id = p_rec.elig_ttl_cvg_vol_prte_id
71 and t.effective_start_date =
72 ben_etc_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_elig_ttl_cvg_vol_prte_f.created_by%TYPE;
77 l_creation_date ben_elig_ttl_cvg_vol_prte_f.creation_date%TYPE;
78 l_last_update_date ben_elig_ttl_cvg_vol_prte_f.last_update_date%TYPE;
79 l_last_updated_by ben_elig_ttl_cvg_vol_prte_f.last_updated_by%TYPE;
80 l_last_update_login ben_elig_ttl_cvg_vol_prte_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_elig_ttl_cvg_vol_prte_f',
90 p_base_key_column => 'elig_ttl_cvg_vol_prte_id',
91 p_base_key_value => p_rec.elig_ttl_cvg_vol_prte_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_etc_shd.g_api_dml := true; -- Set the api dml status
130 --
131 -- Insert the row into: ben_elig_ttl_cvg_vol_prte_f
132 --
133 insert into ben_elig_ttl_cvg_vol_prte_f
134 ( elig_ttl_cvg_vol_prte_id,
135 effective_start_date,
136 effective_end_date,
137 business_group_id,
138 excld_flag,
139 no_mn_cvg_vol_amt_apls_flag,
140 no_mx_cvg_vol_amt_apls_flag,
141 ordr_num,
142 mn_cvg_vol_amt,
143 mx_cvg_vol_amt,
144 cvg_vol_det_cd,
145 cvg_vol_det_rl,
146 eligy_prfl_id,
147 etc_attribute_category,
148 etc_attribute1,
149 etc_attribute2,
150 etc_attribute3,
151 etc_attribute4,
152 etc_attribute5,
153 etc_attribute6,
154 etc_attribute7,
155 etc_attribute8,
156 etc_attribute9,
157 etc_attribute10,
158 etc_attribute11,
159 etc_attribute12,
160 etc_attribute13,
161 etc_attribute14,
162 etc_attribute15,
163 etc_attribute16,
164 etc_attribute17,
165 etc_attribute18,
166 etc_attribute19,
167 etc_attribute20,
168 etc_attribute21,
169 etc_attribute22,
170 etc_attribute23,
171 etc_attribute24,
172 etc_attribute25,
173 etc_attribute26,
174 etc_attribute27,
175 etc_attribute28,
176 etc_attribute29,
177 etc_attribute30,
178 object_version_number
179 , created_by,
180 creation_date,
181 last_update_date,
182 last_updated_by,
183 last_update_login
184 )
185 Values
186 ( p_rec.elig_ttl_cvg_vol_prte_id,
187 p_rec.effective_start_date,
188 p_rec.effective_end_date,
189 p_rec.business_group_id,
190 p_rec.excld_flag,
191 p_rec.no_mn_cvg_vol_amt_apls_flag,
192 p_rec.no_mx_cvg_vol_amt_apls_flag,
193 p_rec.ordr_num,
194 p_rec.mn_cvg_vol_amt,
195 p_rec.mx_cvg_vol_amt,
196 p_rec.cvg_vol_det_cd,
197 p_rec.cvg_vol_det_rl,
198 p_rec.eligy_prfl_id,
199 p_rec.etc_attribute_category,
200 p_rec.etc_attribute1,
201 p_rec.etc_attribute2,
202 p_rec.etc_attribute3,
203 p_rec.etc_attribute4,
204 p_rec.etc_attribute5,
205 p_rec.etc_attribute6,
206 p_rec.etc_attribute7,
207 p_rec.etc_attribute8,
208 p_rec.etc_attribute9,
209 p_rec.etc_attribute10,
210 p_rec.etc_attribute11,
211 p_rec.etc_attribute12,
212 p_rec.etc_attribute13,
213 p_rec.etc_attribute14,
214 p_rec.etc_attribute15,
215 p_rec.etc_attribute16,
216 p_rec.etc_attribute17,
217 p_rec.etc_attribute18,
218 p_rec.etc_attribute19,
219 p_rec.etc_attribute20,
220 p_rec.etc_attribute21,
221 p_rec.etc_attribute22,
222 p_rec.etc_attribute23,
223 p_rec.etc_attribute24,
224 p_rec.etc_attribute25,
225 p_rec.etc_attribute26,
226 p_rec.etc_attribute27,
227 p_rec.etc_attribute28,
228 p_rec.etc_attribute29,
229 p_rec.etc_attribute30,
230 p_rec.object_version_number
231 , l_created_by,
232 l_creation_date,
233 l_last_update_date,
234 l_last_updated_by,
235 l_last_update_login
236 );
237 --
238 ben_etc_shd.g_api_dml := false; -- Unset the api dml status
239 hr_utility.set_location(' Leaving:'||l_proc, 15);
240 --
241 Exception
242 When hr_api.check_integrity_violated Then
243 -- A check constraint has been violated
244 ben_etc_shd.g_api_dml := false; -- Unset the api dml status
245 ben_etc_shd.constraint_error
246 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
247 When hr_api.unique_integrity_violated Then
248 -- Unique integrity has been violated
249 ben_etc_shd.g_api_dml := false; -- Unset the api dml status
250 ben_etc_shd.constraint_error
251 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
252 When Others Then
253 ben_etc_shd.g_api_dml := false; -- Unset the api dml status
254 Raise;
255 End dt_insert_dml;
256 --
257 -- ----------------------------------------------------------------------------
258 -- |------------------------------< insert_dml >------------------------------|
259 -- ----------------------------------------------------------------------------
260 Procedure insert_dml
261 (p_rec in out nocopy ben_etc_shd.g_rec_type,
262 p_effective_date in date,
263 p_datetrack_mode in varchar2,
264 p_validation_start_date in date,
265 p_validation_end_date in date) is
266 --
267 l_proc varchar2(72) := g_package||'insert_dml';
268 --
269 Begin
270 hr_utility.set_location('Entering:'||l_proc, 5);
271 --
272 dt_insert_dml(p_rec => p_rec,
273 p_effective_date => p_effective_date,
274 p_datetrack_mode => p_datetrack_mode,
275 p_validation_start_date => p_validation_start_date,
276 p_validation_end_date => p_validation_end_date);
277 --
278 hr_utility.set_location(' Leaving:'||l_proc, 10);
279 End insert_dml;
280 --
281 -- ----------------------------------------------------------------------------
282 -- |------------------------------< pre_insert >------------------------------|
283 -- ----------------------------------------------------------------------------
284 -- {Start Of Comments}
285 --
286 -- Description:
287 -- This private procedure contains any processing which is required before
288 -- the insert dml. Presently, if the entity has a corresponding primary
289 -- key which is maintained by an associating sequence, the primary key for
290 -- the entity will be populated with the next sequence value in
291 -- preparation for the insert dml.
292 -- Also, if comments are defined for this entity, the comments insert
293 -- logic will also be called, generating a comment_id if required.
294 --
295 -- Prerequisites:
296 -- This is an internal procedure which is called from the ins procedure.
297 --
298 -- In Parameters:
299 -- A Pl/Sql record structre.
300 --
301 -- Post Success:
302 -- Processing continues.
303 --
304 -- Post Failure:
305 -- If an error has occurred, an error message and exception will be raised
306 -- but not handled.
307 --
308 -- Developer Implementation Notes:
309 -- Any pre-processing required before the insert dml is issued should be
310 -- coded within this procedure. As stated above, a good example is the
311 -- generation of a primary key number via a corresponding sequence.
312 -- It is important to note that any 3rd party maintenance should be reviewed
313 -- before placing in this procedure.
314 --
315 -- Access Status:
316 -- Internal Row Handler Use Only.
317 --
318 -- {End Of Comments}
319 -- ----------------------------------------------------------------------------
320 Procedure pre_insert
321 (p_rec in out nocopy ben_etc_shd.g_rec_type,
322 p_effective_date in date,
323 p_datetrack_mode in varchar2,
324 p_validation_start_date in date,
325 p_validation_end_date in date) is
326 --
327 l_proc varchar2(72) := g_package||'pre_insert';
328 --
329 Cursor C_Sel1 is select ben_elig_ttl_cvg_vol_prte_f_s.nextval from sys.dual;
330 --
331 --
332 Begin
333 hr_utility.set_location('Entering:'||l_proc, 5);
334 --
335 --
336 --
337 -- Select the next sequence number
338 --
339 Open C_Sel1;
340 Fetch C_Sel1 Into p_rec.elig_ttl_cvg_vol_prte_id;
341 Close C_Sel1;
342 --
343 hr_utility.set_location(' Leaving:'||l_proc, 10);
344 End pre_insert;
345 --
346 -- ----------------------------------------------------------------------------
347 -- |-----------------------------< post_insert >------------------------------|
348 -- ----------------------------------------------------------------------------
349 -- {Start Of Comments}
350 --
351 -- Description:
352 -- This private procedure contains any processing which is required after the
353 -- insert dml.
354 --
355 -- Prerequisites:
356 -- This is an internal procedure which is called from the ins procedure.
357 --
358 -- In Parameters:
359 -- A Pl/Sql record structre.
360 --
361 -- Post Success:
362 -- Processing continues.
363 --
364 -- Post Failure:
365 -- If an error has occurred, an error message and exception will be raised
366 -- but not handled.
367 --
368 -- Developer Implementation Notes:
369 -- Any post-processing required after the insert dml is issued should be
370 -- coded within this procedure. It is important to note that any 3rd party
371 -- maintenance should be reviewed before placing in this procedure.
372 --
373 -- Access Status:
374 -- Internal Row Handler Use Only.
375 --
376 -- {End Of Comments}
377 -- ----------------------------------------------------------------------------
378 Procedure post_insert
379 (p_rec in ben_etc_shd.g_rec_type,
380 p_effective_date in date,
381 p_datetrack_mode in varchar2,
382 p_validation_start_date in date,
383 p_validation_end_date in date) is
384 --
385 l_proc varchar2(72) := g_package||'post_insert';
386 --
387 Begin
388 hr_utility.set_location('Entering:'||l_proc, 5);
389 --
390 --
391 -- Start of API User Hook for post_insert.
392 --
393 begin
394 --
395 ben_etc_rki.after_insert
396 (
397 p_elig_ttl_cvg_vol_prte_id =>p_rec.elig_ttl_cvg_vol_prte_id
398 ,p_effective_start_date =>p_rec.effective_start_date
399 ,p_effective_end_date =>p_rec.effective_end_date
400 ,p_business_group_id =>p_rec.business_group_id
401 ,p_excld_flag =>p_rec.excld_flag
402 ,p_no_mn_cvg_vol_amt_apls_flag =>p_rec.no_mn_cvg_vol_amt_apls_flag
403 ,p_no_mx_cvg_vol_amt_apls_flag =>p_rec.no_mx_cvg_vol_amt_apls_flag
404 ,p_ordr_num =>p_rec.ordr_num
405 ,p_mn_cvg_vol_amt =>p_rec.mn_cvg_vol_amt
406 ,p_mx_cvg_vol_amt =>p_rec.mx_cvg_vol_amt
407 ,p_cvg_vol_det_cd =>p_rec.cvg_vol_det_cd
408 ,p_cvg_vol_det_rl =>p_rec.cvg_vol_det_rl
409 ,p_eligy_prfl_id =>p_rec.eligy_prfl_id
410 ,p_etc_attribute_category =>p_rec.etc_attribute_category
411 ,p_etc_attribute1 =>p_rec.etc_attribute1
412 ,p_etc_attribute2 =>p_rec.etc_attribute2
413 ,p_etc_attribute3 =>p_rec.etc_attribute3
414 ,p_etc_attribute4 =>p_rec.etc_attribute4
415 ,p_etc_attribute5 =>p_rec.etc_attribute5
416 ,p_etc_attribute6 =>p_rec.etc_attribute6
417 ,p_etc_attribute7 =>p_rec.etc_attribute7
418 ,p_etc_attribute8 =>p_rec.etc_attribute8
419 ,p_etc_attribute9 =>p_rec.etc_attribute9
420 ,p_etc_attribute10 =>p_rec.etc_attribute10
421 ,p_etc_attribute11 =>p_rec.etc_attribute11
422 ,p_etc_attribute12 =>p_rec.etc_attribute12
423 ,p_etc_attribute13 =>p_rec.etc_attribute13
424 ,p_etc_attribute14 =>p_rec.etc_attribute14
425 ,p_etc_attribute15 =>p_rec.etc_attribute15
426 ,p_etc_attribute16 =>p_rec.etc_attribute16
427 ,p_etc_attribute17 =>p_rec.etc_attribute17
428 ,p_etc_attribute18 =>p_rec.etc_attribute18
429 ,p_etc_attribute19 =>p_rec.etc_attribute19
430 ,p_etc_attribute20 =>p_rec.etc_attribute20
431 ,p_etc_attribute21 =>p_rec.etc_attribute21
432 ,p_etc_attribute22 =>p_rec.etc_attribute22
433 ,p_etc_attribute23 =>p_rec.etc_attribute23
434 ,p_etc_attribute24 =>p_rec.etc_attribute24
435 ,p_etc_attribute25 =>p_rec.etc_attribute25
436 ,p_etc_attribute26 =>p_rec.etc_attribute26
437 ,p_etc_attribute27 =>p_rec.etc_attribute27
438 ,p_etc_attribute28 =>p_rec.etc_attribute28
439 ,p_etc_attribute29 =>p_rec.etc_attribute29
440 ,p_etc_attribute30 =>p_rec.etc_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_elig_ttl_cvg_vol_prte_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_etc_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_elig_ttl_cvg_vol_prte_f',
521 p_base_key_column => 'elig_ttl_cvg_vol_prte_id',
522 p_base_key_value => p_rec.elig_ttl_cvg_vol_prte_id,
523 p_parent_table_name1 => 'ben_eligy_prfl_f',
524 p_parent_key_column1 => 'eligy_prfl_id',
525 p_parent_key_value1 => p_rec.eligy_prfl_id,
526 p_enforce_foreign_locking => true,
527 p_validation_start_date => l_validation_start_date,
528 p_validation_end_date => l_validation_end_date);
529 --
530 -- Set the validation start and end date OUT arguments
531 --
532 p_validation_start_date := l_validation_start_date;
533 p_validation_end_date := l_validation_end_date;
534 --
535 hr_utility.set_location(' Leaving:'||l_proc, 10);
536 --
537 End ins_lck;
538 --
539 -- ----------------------------------------------------------------------------
540 -- |---------------------------------< ins >----------------------------------|
541 -- ----------------------------------------------------------------------------
542 Procedure ins
543 (
544 p_rec in out nocopy ben_etc_shd.g_rec_type,
545 p_effective_date in date
546 ) is
547 --
548 l_proc varchar2(72) := g_package||'ins';
549 l_datetrack_mode varchar2(30) := 'INSERT';
550 l_validation_start_date date;
551 l_validation_end_date date;
552 --
553 Begin
554 hr_utility.set_location('Entering:'||l_proc, 5);
555 --
556 -- Call the lock operation
557 --
558 ins_lck
559 (p_effective_date => p_effective_date,
560 p_datetrack_mode => l_datetrack_mode,
561 p_rec => p_rec,
562 p_validation_start_date => l_validation_start_date,
563 p_validation_end_date => l_validation_end_date);
564 --
565 -- Call the supporting insert validate operations
566 --
567 ben_etc_bus.insert_validate
568 (p_rec => p_rec,
569 p_effective_date => p_effective_date,
570 p_datetrack_mode => l_datetrack_mode,
571 p_validation_start_date => l_validation_start_date,
572 p_validation_end_date => l_validation_end_date);
573 --
574 -- Call the supporting pre-insert operation
575 --
576 pre_insert
577 (p_rec => p_rec,
578 p_effective_date => p_effective_date,
579 p_datetrack_mode => l_datetrack_mode,
580 p_validation_start_date => l_validation_start_date,
581 p_validation_end_date => l_validation_end_date);
582 --
583 -- Insert the row
584 --
585 insert_dml
586 (p_rec => p_rec,
587 p_effective_date => p_effective_date,
588 p_datetrack_mode => l_datetrack_mode,
589 p_validation_start_date => l_validation_start_date,
590 p_validation_end_date => l_validation_end_date);
591 --
592 -- Call the supporting post-insert operation
593 --
594 post_insert
595 (p_rec => p_rec,
596 p_effective_date => p_effective_date,
597 p_datetrack_mode => l_datetrack_mode,
598 p_validation_start_date => l_validation_start_date,
599 p_validation_end_date => l_validation_end_date);
600 end ins;
601 --
602 -- ----------------------------------------------------------------------------
603 -- |---------------------------------< ins >----------------------------------|
604 -- ----------------------------------------------------------------------------
605 Procedure ins
606 (
607 p_elig_ttl_cvg_vol_prte_id out nocopy number,
608 p_effective_start_date out nocopy date,
609 p_effective_end_date out nocopy date,
610 p_business_group_id in number,
611 p_excld_flag in varchar2,
612 p_no_mn_cvg_vol_amt_apls_flag in varchar2,
613 p_no_mx_cvg_vol_amt_apls_flag in varchar2,
614 p_ordr_num in number default null,
615 p_mn_cvg_vol_amt in number default null,
616 p_mx_cvg_vol_amt in number default null,
617 p_cvg_vol_det_cd in varchar2 default null,
618 p_cvg_vol_det_rl in number default null,
619 p_eligy_prfl_id in number,
620 p_etc_attribute_category in varchar2 default null,
621 p_etc_attribute1 in varchar2 default null,
622 p_etc_attribute2 in varchar2 default null,
623 p_etc_attribute3 in varchar2 default null,
624 p_etc_attribute4 in varchar2 default null,
625 p_etc_attribute5 in varchar2 default null,
626 p_etc_attribute6 in varchar2 default null,
627 p_etc_attribute7 in varchar2 default null,
628 p_etc_attribute8 in varchar2 default null,
629 p_etc_attribute9 in varchar2 default null,
630 p_etc_attribute10 in varchar2 default null,
631 p_etc_attribute11 in varchar2 default null,
632 p_etc_attribute12 in varchar2 default null,
633 p_etc_attribute13 in varchar2 default null,
634 p_etc_attribute14 in varchar2 default null,
635 p_etc_attribute15 in varchar2 default null,
636 p_etc_attribute16 in varchar2 default null,
637 p_etc_attribute17 in varchar2 default null,
638 p_etc_attribute18 in varchar2 default null,
639 p_etc_attribute19 in varchar2 default null,
640 p_etc_attribute20 in varchar2 default null,
641 p_etc_attribute21 in varchar2 default null,
642 p_etc_attribute22 in varchar2 default null,
643 p_etc_attribute23 in varchar2 default null,
644 p_etc_attribute24 in varchar2 default null,
645 p_etc_attribute25 in varchar2 default null,
646 p_etc_attribute26 in varchar2 default null,
647 p_etc_attribute27 in varchar2 default null,
648 p_etc_attribute28 in varchar2 default null,
649 p_etc_attribute29 in varchar2 default null,
650 p_etc_attribute30 in varchar2 default null,
651 p_object_version_number out nocopy number,
652 p_effective_date in date
653 ) is
654 --
655 l_rec ben_etc_shd.g_rec_type;
656 l_proc varchar2(72) := g_package||'ins';
657 --
658 Begin
659 hr_utility.set_location('Entering:'||l_proc, 5);
660 --
661 -- Call conversion function to turn arguments into the
662 -- p_rec structure.
663 --
664 l_rec :=
665 ben_etc_shd.convert_args
666 (
667 null,
668 null,
669 null,
670 p_business_group_id,
671 p_excld_flag,
672 p_no_mn_cvg_vol_amt_apls_flag,
673 p_no_mx_cvg_vol_amt_apls_flag,
674 p_ordr_num,
675 p_mn_cvg_vol_amt,
676 p_mx_cvg_vol_amt,
677 p_cvg_vol_det_cd,
678 p_cvg_vol_det_rl,
679 p_eligy_prfl_id,
680 p_etc_attribute_category,
681 p_etc_attribute1,
682 p_etc_attribute2,
683 p_etc_attribute3,
684 p_etc_attribute4,
685 p_etc_attribute5,
686 p_etc_attribute6,
687 p_etc_attribute7,
688 p_etc_attribute8,
689 p_etc_attribute9,
690 p_etc_attribute10,
691 p_etc_attribute11,
692 p_etc_attribute12,
693 p_etc_attribute13,
694 p_etc_attribute14,
695 p_etc_attribute15,
696 p_etc_attribute16,
697 p_etc_attribute17,
698 p_etc_attribute18,
699 p_etc_attribute19,
700 p_etc_attribute20,
701 p_etc_attribute21,
702 p_etc_attribute22,
703 p_etc_attribute23,
704 p_etc_attribute24,
705 p_etc_attribute25,
706 p_etc_attribute26,
707 p_etc_attribute27,
708 p_etc_attribute28,
709 p_etc_attribute29,
710 p_etc_attribute30,
711 null
712 );
713 --
714 -- Having converted the arguments into the ben_etc_rec
715 -- plsql record structure we call the corresponding record
716 -- business process.
717 --
718 ins(l_rec, p_effective_date);
719 --
720 -- Set the OUT arguments.
721 --
722 p_elig_ttl_cvg_vol_prte_id := l_rec.elig_ttl_cvg_vol_prte_id;
723 p_effective_start_date := l_rec.effective_start_date;
724 p_effective_end_date := l_rec.effective_end_date;
725 p_object_version_number := l_rec.object_version_number;
726 --
727 --
728 hr_utility.set_location(' Leaving:'||l_proc, 10);
729 End ins;
730 --
731 end ben_etc_ins;