DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ADE_SHD

Source


1 Package Body ben_ade_shd as
2 /* $Header: beaderhi.pkb 120.2.12010000.3 2008/08/05 13:56:21 ubhat ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  ben_ade_shd.';  -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------< return_api_dml_status >-------------------------|
12 -- ----------------------------------------------------------------------------
13 Function return_api_dml_status Return Boolean Is
14 --
15   l_proc 	varchar2(72) := g_package||'return_api_dml_status';
16 --
17 Begin
18   hr_utility.set_location('Entering:'||l_proc, 5);
19   --
20   Return (nvl(g_api_dml, false));
21   --
22   hr_utility.set_location(' Leaving:'||l_proc, 10);
23 End return_api_dml_status;
24 --
25 -- ----------------------------------------------------------------------------
26 -- |---------------------------< constraint_error >---------------------------|
27 -- ----------------------------------------------------------------------------
28 Procedure constraint_error
29             (p_constraint_name in all_constraints.constraint_name%TYPE) Is
30 --
31   l_proc 	varchar2(72) := g_package||'constraint_error';
32 --
33 Begin
34   hr_utility.set_location('Entering:'||l_proc, 5);
35   --
36   If (p_constraint_name = 'BEN_APLD_DPNT_CVG_ELG_P_FK1') Then
37     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
38     fnd_message.set_token('PROCEDURE', l_proc);
39     fnd_message.set_token('STEP','5');
40     fnd_message.raise_error;
41   ElsIf (p_constraint_name = 'BEN_APLD_DPNT_CVG_ELG_P_PK') Then
42     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
43     fnd_message.set_token('PROCEDURE', l_proc);
44     fnd_message.set_token('STEP','10');
45     fnd_message.raise_error;
46   Else
47     fnd_message.set_name('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
48     fnd_message.set_token('PROCEDURE', l_proc);
49     fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
50     fnd_message.raise_error;
51   End If;
52   --
53   hr_utility.set_location(' Leaving:'||l_proc, 10);
54 End constraint_error;
55 --
56 -- ----------------------------------------------------------------------------
57 -- |-----------------------------< api_updating >-----------------------------|
58 -- ----------------------------------------------------------------------------
59 Function api_updating
60   (p_effective_date		in date,
61    p_apld_dpnt_cvg_elig_prfl_id		in number,
62    p_object_version_number	in number
63   ) Return Boolean Is
64 --
65   --
66   -- Cursor selects the 'current' row from the HR Schema
67   --
68   Cursor C_Sel1 is
69     select
70 	apld_dpnt_cvg_elig_prfl_id,
71 	effective_start_date,
72 	effective_end_date,
73 	business_group_id,
74 	apld_dpnt_cvg_elig_rl,
75 	mndtry_flag,
76 	dpnt_cvg_eligy_prfl_id,
77 	pgm_id,
78 	pl_id,
79 	ptip_id,
80 	ade_attribute_category,
81 	ade_attribute1,
82 	ade_attribute2,
83 	ade_attribute3,
84 	ade_attribute4,
85 	ade_attribute5,
86 	ade_attribute6,
87 	ade_attribute7,
88 	ade_attribute8,
89 	ade_attribute9,
90 	ade_attribute10,
91 	ade_attribute11,
92 	ade_attribute12,
93 	ade_attribute13,
94 	ade_attribute14,
95 	ade_attribute15,
96 	ade_attribute16,
97 	ade_attribute17,
98 	ade_attribute18,
99 	ade_attribute19,
100 	ade_attribute20,
101 	ade_attribute21,
102 	ade_attribute22,
103 	ade_attribute23,
104 	ade_attribute24,
105 	ade_attribute25,
106 	ade_attribute26,
107 	ade_attribute27,
108 	ade_attribute28,
109 	ade_attribute29,
110 	ade_attribute30,
111 	object_version_number
112     from	ben_apld_dpnt_cvg_elig_prfl_f
113     where	apld_dpnt_cvg_elig_prfl_id = p_apld_dpnt_cvg_elig_prfl_id
114     and		p_effective_date
115     between	effective_start_date and effective_end_date;
116 --
117   l_proc	varchar2(72)	:= g_package||'api_updating';
118   l_fct_ret	boolean;
119 --
120 Begin
121   hr_utility.set_location('Entering:'||l_proc, 5);
122   --
123   If (p_effective_date is null or
124       p_apld_dpnt_cvg_elig_prfl_id is null or
125       p_object_version_number is null) Then
126     --
127     -- One of the primary key arguments is null therefore we must
128     -- set the returning function value to false
129     --
130     l_fct_ret := false;
131   Else
132     If (p_apld_dpnt_cvg_elig_prfl_id = g_old_rec.apld_dpnt_cvg_elig_prfl_id and
133         p_object_version_number = g_old_rec.object_version_number) Then
134       hr_utility.set_location(l_proc, 10);
135       --
136       -- The g_old_rec is current therefore we must
137       -- set the returning function to true
138       --
139       l_fct_ret := true;
140     Else
141       --
142       -- Select the current row
143       --
144       Open C_Sel1;
145       Fetch C_Sel1 Into g_old_rec;
146       If C_Sel1%notfound Then
147         Close C_Sel1;
148         --
149         -- The primary key is invalid therefore we must error
150         --
151         fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
152         fnd_message.raise_error;
153       End If;
154       Close C_Sel1;
155       If (p_object_version_number <> g_old_rec.object_version_number) Then
156         fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
157         fnd_message.raise_error;
158       End If;
159       hr_utility.set_location(l_proc, 15);
160       l_fct_ret := true;
161     End If;
162   End If;
163   hr_utility.set_location(' Leaving:'||l_proc, 20);
164   Return (l_fct_ret);
165 --
166 End api_updating;
167 --
168 -- ----------------------------------------------------------------------------
169 -- |--------------------------< find_dt_del_modes >---------------------------|
170 -- ----------------------------------------------------------------------------
171 Procedure find_dt_del_modes
172 	(p_effective_date	in  date,
173 	 p_base_key_value	in  number,
174 	 p_zap		 out nocopy boolean,
175 	 p_delete	 out nocopy boolean,
176 	 p_future_change out nocopy boolean,
177 	 p_delete_next_change out nocopy boolean) is
178 --
179   l_proc 		varchar2(72) 	:= g_package||'find_dt_del_modes';
180 --
181   l_parent_key_value1	number;
182   l_parent_key_value2	number;
183   l_parent_key_value3	number;
184   l_parent_key_value4	number;
185   l_parent_key_value5	number;
186   --
187   Cursor C_Sel1 Is
188     select  t.apld_dpnt_cvg_elig_rl,
189 	    t.pgm_id,
190 	    t.ptip_id,
191 	    t.dpnt_cvg_eligy_prfl_id,
192 	    t.pl_id
193     from    ben_apld_dpnt_cvg_elig_prfl_f t
194     where   t.apld_dpnt_cvg_elig_prfl_id = p_base_key_value
195     and     p_effective_date
196     between t.effective_start_date and t.effective_end_date;
197 --
198 Begin
199   hr_utility.set_location('Entering:'||l_proc, 5);
200   Open  C_Sel1;
201   Fetch C_Sel1 Into l_parent_key_value1,
202 		    l_parent_key_value2,
203 		    l_parent_key_value3,
204 		    l_parent_key_value4,
205 		    l_parent_key_value5;
206   If C_Sel1%notfound then
207     Close C_Sel1;
208     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
209     fnd_message.set_token('PROCEDURE', l_proc);
210     fnd_message.set_token('STEP','10');
211     fnd_message.raise_error;
212   End If;
213   Close C_Sel1;
214   --
215   -- Call the corresponding datetrack api
216   --
217   dt_api.find_dt_del_modes
218 	(p_effective_date	=> p_effective_date,
219 	 p_base_table_name	=> 'ben_apld_dpnt_cvg_elig_prfl_f',
220 	 p_base_key_column	=> 'apld_dpnt_cvg_elig_prfl_id',
221 	 p_base_key_value	=> p_base_key_value,
222 	 p_parent_table_name1	=> 'ff_formulas_f',
223 	 p_parent_key_column1	=> 'formula_id',
224 	 p_parent_key_value1	=> l_parent_key_value1,
225 	 p_parent_table_name2	=> 'ben_pgm_f',
226 	 p_parent_key_column2	=> 'pgm_id',
227 	 p_parent_key_value2	=> l_parent_key_value2,
228 	 p_parent_table_name3	=> 'ben_ptip_f',
229 	 p_parent_key_column3	=> 'ptip_id',
230 	 p_parent_key_value3	=> l_parent_key_value3,
231 	 p_parent_table_name4	=> 'ben_dpnt_cvg_eligy_prfl_f',
232 	 p_parent_key_column4	=> 'dpnt_cvg_eligy_prfl_id',
233 	 p_parent_key_value4	=> l_parent_key_value4,
234 	 p_parent_table_name5	=> 'ben_pl_f',
235 	 p_parent_key_column5	=> 'pl_id',
236 	 p_parent_key_value5	=> l_parent_key_value5,
237 	 p_zap			=> p_zap,
238 	 p_delete		=> p_delete,
239 	 p_future_change	=> p_future_change,
240 	 p_delete_next_change	=> p_delete_next_change);
241   --
242   hr_utility.set_location(' Leaving:'||l_proc, 10);
243 End find_dt_del_modes;
244 --
245 -- ----------------------------------------------------------------------------
246 -- |--------------------------< find_dt_upd_modes >---------------------------|
247 -- ----------------------------------------------------------------------------
248 Procedure find_dt_upd_modes
249 	(p_effective_date	in  date,
250 	 p_base_key_value	in  number,
251 	 p_correction	 out nocopy boolean,
252 	 p_update	 out nocopy boolean,
253 	 p_update_override out nocopy boolean,
254 	 p_update_change_insert out nocopy boolean) is
255 --
256   l_proc 	varchar2(72) := g_package||'find_dt_upd_modes';
257 --
258 Begin
259   hr_utility.set_location('Entering:'||l_proc, 5);
260   --
261   -- Call the corresponding datetrack api
262   --
263   dt_api.find_dt_upd_modes
264 	(p_effective_date	=> p_effective_date,
265 	 p_base_table_name	=> 'ben_apld_dpnt_cvg_elig_prfl_f',
266 	 p_base_key_column	=> 'apld_dpnt_cvg_elig_prfl_id',
267 	 p_base_key_value	=> p_base_key_value,
268 	 p_correction		=> p_correction,
269 	 p_update		=> p_update,
270 	 p_update_override	=> p_update_override,
271 	 p_update_change_insert	=> p_update_change_insert);
272   --
273   hr_utility.set_location(' Leaving:'||l_proc, 10);
274 End find_dt_upd_modes;
275 --
276 -- ----------------------------------------------------------------------------
277 -- |------------------------< upd_effective_end_date >------------------------|
278 -- ----------------------------------------------------------------------------
279 Procedure upd_effective_end_date
280 	(p_effective_date		in date,
281 	 p_base_key_value		in number,
282 	 p_new_effective_end_date	in date,
283 	 p_validation_start_date	in date,
284 	 p_validation_end_date		in date,
285          p_object_version_number       out nocopy number) is
286 --
287   l_proc 		  varchar2(72) := g_package||'upd_effective_end_date';
288   l_object_version_number number;
289 --
290 Begin
291   hr_utility.set_location('Entering:'||l_proc, 5);
292   --
293   -- Because we are updating a row we must get the next object
294   -- version number.
295   --
296   l_object_version_number :=
297     dt_api.get_object_version_number
298 	(p_base_table_name	=> 'ben_apld_dpnt_cvg_elig_prfl_f',
299 	 p_base_key_column	=> 'apld_dpnt_cvg_elig_prfl_id',
300 	 p_base_key_value	=> p_base_key_value);
301   --
302   hr_utility.set_location(l_proc, 10);
303   g_api_dml := true;  -- Set the api dml status
304   --
305   -- Update the specified datetrack row setting the effective
306   -- end date to the specified new effective end date.
307   --
308   update  ben_apld_dpnt_cvg_elig_prfl_f t
309   set	  t.effective_end_date	  = p_new_effective_end_date,
310 	  t.object_version_number = l_object_version_number
311   where	  t.apld_dpnt_cvg_elig_prfl_id	  = p_base_key_value
312   and	  p_effective_date
313   between t.effective_start_date and t.effective_end_date;
314   --
315   g_api_dml := false;   -- Unset the api dml status
316   p_object_version_number := l_object_version_number;
317   hr_utility.set_location(' Leaving:'||l_proc, 15);
318 --
319 Exception
320   When Others Then
321     g_api_dml := false;   -- Unset the api dml status
322     Raise;
323 End upd_effective_end_date;
324 --
325 -- ----------------------------------------------------------------------------
326 -- |---------------------------------< lck >----------------------------------|
327 -- ----------------------------------------------------------------------------
328 Procedure lck
329 	(p_effective_date	 in  date,
330 	 p_datetrack_mode	 in  varchar2,
331 	 p_apld_dpnt_cvg_elig_prfl_id	 in  number,
332 	 p_object_version_number in  number,
333 	 p_validation_start_date out nocopy date,
334 	 p_validation_end_date	 out nocopy date) is
335 --
336   l_proc		  varchar2(72) := g_package||'lck';
337   l_validation_start_date date;
338   l_validation_end_date	  date;
339   l_object_invalid 	  exception;
340   l_argument		  varchar2(30);
341   --
342   -- Cursor C_Sel1 selects the current locked row as of session date
343   -- ensuring that the object version numbers match.
344   --
345   Cursor C_Sel1 is
346     select
347 	apld_dpnt_cvg_elig_prfl_id,
348 	effective_start_date,
349 	effective_end_date,
350 	business_group_id,
351 	apld_dpnt_cvg_elig_rl,
352 	mndtry_flag,
353 	dpnt_cvg_eligy_prfl_id,
354 	pgm_id,
355 	pl_id,
356 	ptip_id,
357 	ade_attribute_category,
358 	ade_attribute1,
359 	ade_attribute2,
360 	ade_attribute3,
361 	ade_attribute4,
362 	ade_attribute5,
363 	ade_attribute6,
364 	ade_attribute7,
365 	ade_attribute8,
366 	ade_attribute9,
367 	ade_attribute10,
368 	ade_attribute11,
369 	ade_attribute12,
370 	ade_attribute13,
371 	ade_attribute14,
372 	ade_attribute15,
373 	ade_attribute16,
374 	ade_attribute17,
375 	ade_attribute18,
376 	ade_attribute19,
377 	ade_attribute20,
378 	ade_attribute21,
379 	ade_attribute22,
380 	ade_attribute23,
381 	ade_attribute24,
382 	ade_attribute25,
383 	ade_attribute26,
384 	ade_attribute27,
385 	ade_attribute28,
386 	ade_attribute29,
387 	ade_attribute30,
388 	object_version_number
389     from    ben_apld_dpnt_cvg_elig_prfl_f
390     where   apld_dpnt_cvg_elig_prfl_id         = p_apld_dpnt_cvg_elig_prfl_id
391     and	    p_effective_date
392     between effective_start_date and effective_end_date
393     for update nowait;
394   --
395   --
396   --
397 Begin
398   hr_utility.set_location('Entering:'||l_proc, 5);
399   --
400   -- Ensure that all the mandatory arguments are not null
401   --
402   hr_api.mandatory_arg_error(p_api_name       => l_proc,
403                              p_argument       => 'effective_date',
404                              p_argument_value => p_effective_date);
405   --
406   hr_api.mandatory_arg_error(p_api_name       => l_proc,
407                              p_argument       => 'datetrack_mode',
408                              p_argument_value => p_datetrack_mode);
409   --
410   hr_api.mandatory_arg_error(p_api_name       => l_proc,
411                              p_argument       => 'apld_dpnt_cvg_elig_prfl_id',
412                              p_argument_value => p_apld_dpnt_cvg_elig_prfl_id);
413   --
414   hr_api.mandatory_arg_error(p_api_name       => l_proc,
415                              p_argument       => 'object_version_number',
416                              p_argument_value => p_object_version_number);
417   --
418   -- Check to ensure the datetrack mode is not INSERT.
419   --
420   If (p_datetrack_mode <> 'INSERT') then
421     --
422     -- We must select and lock the current row.
423     --
424     Open  C_Sel1;
425     Fetch C_Sel1 Into g_old_rec;
426     If C_Sel1%notfound then
427       Close C_Sel1;
428       --
429       -- The primary key is invalid therefore we must error
430       --
431       fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
432       fnd_message.raise_error;
436         fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
433     End If;
434     Close C_Sel1;
435     If (p_object_version_number <> g_old_rec.object_version_number) Then
437         fnd_message.raise_error;
438       End If;
439     hr_utility.set_location(l_proc, 15);
440     --
441     --
442     -- Validate the datetrack mode mode getting the validation start
443     -- and end dates for the specified datetrack operation.
444     --
445     dt_api.validate_dt_mode
446 	(p_effective_date	   => p_effective_date,
447 	 p_datetrack_mode	   => p_datetrack_mode,
448 	 p_base_table_name	   => 'ben_apld_dpnt_cvg_elig_prfl_f',
449 	 p_base_key_column	   => 'apld_dpnt_cvg_elig_prfl_id',
450 	 p_base_key_value 	   => p_apld_dpnt_cvg_elig_prfl_id,
451 	 p_parent_table_name1      => 'ff_formulas_f',
452 	 p_parent_key_column1      => 'formula_id',
453 	 p_parent_key_value1       => g_old_rec.apld_dpnt_cvg_elig_rl,
454 	 p_parent_table_name2      => 'ben_pgm_f',
455 	 p_parent_key_column2      => 'pgm_id',
456 	 p_parent_key_value2       => g_old_rec.pgm_id,
457 	 p_parent_table_name3      => 'ben_ptip_f',
458 	 p_parent_key_column3      => 'ptip_id',
459 	 p_parent_key_value3       => g_old_rec.ptip_id,
460 	 p_parent_table_name4      => 'ben_dpnt_cvg_eligy_prfl_f',
461 	 p_parent_key_column4      => 'dpnt_cvg_eligy_prfl_id',
462 	 p_parent_key_value4       => g_old_rec.dpnt_cvg_eligy_prfl_id,
463 	 p_parent_table_name5      => 'ben_pl_f',
464 	 p_parent_key_column5      => 'pl_id',
465 	 p_parent_key_value5       => g_old_rec.pl_id,
466          p_enforce_foreign_locking => false, --true,
467 	 p_validation_start_date   => l_validation_start_date,
468  	 p_validation_end_date	   => l_validation_end_date);
469   Else
470     --
471     -- We are doing a datetrack 'INSERT' which is illegal within this
472     -- procedure therefore we must error (note: to lck on insert the
473     -- private procedure ins_lck should be called).
474     --
475     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
476     fnd_message.set_token('PROCEDURE', l_proc);
477     fnd_message.set_token('STEP','20');
478     fnd_message.raise_error;
479   End If;
480   --
481   -- Set the validation start and end date OUT arguments
482   --
483   p_validation_start_date := l_validation_start_date;
484   p_validation_end_date   := l_validation_end_date;
485   --
486   hr_utility.set_location(' Leaving:'||l_proc, 30);
487 --
488 -- We need to trap the ORA LOCK exception
489 --
490 Exception
491   When HR_Api.Object_Locked then
492     --
493     -- The object is locked therefore we need to supply a meaningful
494     -- error message.
495     --
496     fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
497     fnd_message.set_token('TABLE_NAME', 'ben_apld_dpnt_cvg_elig_prfl_f');
498     fnd_message.raise_error;
499   When l_object_invalid then
500     --
501     -- The object doesn't exist or is invalid
502     --
503     fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
504     fnd_message.set_token('TABLE_NAME', 'ben_apld_dpnt_cvg_elig_prfl_f');
505     fnd_message.raise_error;
506 End lck;
507 --
508 -- ----------------------------------------------------------------------------
509 -- |-----------------------------< convert_args >-----------------------------|
510 -- ----------------------------------------------------------------------------
511 Function convert_args
512 	(
513 	p_apld_dpnt_cvg_elig_prfl_id    in number,
514 	p_effective_start_date          in date,
515 	p_effective_end_date            in date,
516 	p_business_group_id             in number,
517 	p_apld_dpnt_cvg_elig_rl         in number,
518 	p_mndtry_flag                   in varchar2,
519 	p_dpnt_cvg_eligy_prfl_id        in number,
520 	p_pgm_id                        in number,
521 	p_pl_id                         in number,
522 	p_ptip_id                       in number,
523 	p_ade_attribute_category        in varchar2,
524 	p_ade_attribute1                in varchar2,
525 	p_ade_attribute2                in varchar2,
526 	p_ade_attribute3                in varchar2,
527 	p_ade_attribute4                in varchar2,
528 	p_ade_attribute5                in varchar2,
529 	p_ade_attribute6                in varchar2,
530 	p_ade_attribute7                in varchar2,
531 	p_ade_attribute8                in varchar2,
532 	p_ade_attribute9                in varchar2,
533 	p_ade_attribute10               in varchar2,
534 	p_ade_attribute11               in varchar2,
535 	p_ade_attribute12               in varchar2,
536 	p_ade_attribute13               in varchar2,
537 	p_ade_attribute14               in varchar2,
538 	p_ade_attribute15               in varchar2,
539 	p_ade_attribute16               in varchar2,
540 	p_ade_attribute17               in varchar2,
541 	p_ade_attribute18               in varchar2,
542 	p_ade_attribute19               in varchar2,
543 	p_ade_attribute20               in varchar2,
544 	p_ade_attribute21               in varchar2,
545 	p_ade_attribute22               in varchar2,
546 	p_ade_attribute23               in varchar2,
547 	p_ade_attribute24               in varchar2,
548 	p_ade_attribute25               in varchar2,
549 	p_ade_attribute26               in varchar2,
550 	p_ade_attribute27               in varchar2,
551 	p_ade_attribute28               in varchar2,
555 	)
552 	p_ade_attribute29               in varchar2,
553 	p_ade_attribute30               in varchar2,
554 	p_object_version_number         in number
556 	Return g_rec_type is
557 --
558   l_rec	  g_rec_type;
559   l_proc  varchar2(72) := g_package||'convert_args';
560 --
561 Begin
562   --
563   hr_utility.set_location('Entering:'||l_proc, 5);
564   --
565   -- Convert arguments into local l_rec structure.
566   --
567   l_rec.apld_dpnt_cvg_elig_prfl_id       := p_apld_dpnt_cvg_elig_prfl_id;
568   l_rec.effective_start_date             := p_effective_start_date;
569   l_rec.effective_end_date               := p_effective_end_date;
570   l_rec.business_group_id                := p_business_group_id;
571   l_rec.apld_dpnt_cvg_elig_rl            := p_apld_dpnt_cvg_elig_rl;
572   l_rec.mndtry_flag                      := p_mndtry_flag;
573   l_rec.dpnt_cvg_eligy_prfl_id           := p_dpnt_cvg_eligy_prfl_id;
574   l_rec.pgm_id                           := p_pgm_id;
575   l_rec.pl_id                            := p_pl_id;
576   l_rec.ptip_id                          := p_ptip_id;
577   l_rec.ade_attribute_category           := p_ade_attribute_category;
578   l_rec.ade_attribute1                   := p_ade_attribute1;
579   l_rec.ade_attribute2                   := p_ade_attribute2;
580   l_rec.ade_attribute3                   := p_ade_attribute3;
581   l_rec.ade_attribute4                   := p_ade_attribute4;
582   l_rec.ade_attribute5                   := p_ade_attribute5;
583   l_rec.ade_attribute6                   := p_ade_attribute6;
584   l_rec.ade_attribute7                   := p_ade_attribute7;
585   l_rec.ade_attribute8                   := p_ade_attribute8;
586   l_rec.ade_attribute9                   := p_ade_attribute9;
587   l_rec.ade_attribute10                  := p_ade_attribute10;
588   l_rec.ade_attribute11                  := p_ade_attribute11;
589   l_rec.ade_attribute12                  := p_ade_attribute12;
590   l_rec.ade_attribute13                  := p_ade_attribute13;
591   l_rec.ade_attribute14                  := p_ade_attribute14;
592   l_rec.ade_attribute15                  := p_ade_attribute15;
593   l_rec.ade_attribute16                  := p_ade_attribute16;
594   l_rec.ade_attribute17                  := p_ade_attribute17;
595   l_rec.ade_attribute18                  := p_ade_attribute18;
596   l_rec.ade_attribute19                  := p_ade_attribute19;
597   l_rec.ade_attribute20                  := p_ade_attribute20;
598   l_rec.ade_attribute21                  := p_ade_attribute21;
599   l_rec.ade_attribute22                  := p_ade_attribute22;
600   l_rec.ade_attribute23                  := p_ade_attribute23;
601   l_rec.ade_attribute24                  := p_ade_attribute24;
602   l_rec.ade_attribute25                  := p_ade_attribute25;
603   l_rec.ade_attribute26                  := p_ade_attribute26;
604   l_rec.ade_attribute27                  := p_ade_attribute27;
605   l_rec.ade_attribute28                  := p_ade_attribute28;
606   l_rec.ade_attribute29                  := p_ade_attribute29;
607   l_rec.ade_attribute30                  := p_ade_attribute30;
608   l_rec.object_version_number            := p_object_version_number;
609   --
610   -- Return the plsql record structure.
611   --
612   hr_utility.set_location(' Leaving:'||l_proc, 10);
613   Return(l_rec);
614 --
615 End convert_args;
616 --
617 end ben_ade_shd;