DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_PRD_SHD

Source


1 Package Body ben_prd_shd as
2 /* $Header: beprdrhi.pkb 120.0.12010000.2 2008/08/05 15:20:11 ubhat ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  ben_prd_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_PAIRD_RT_FK1') Then
37     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38     hr_utility.set_message_token('PROCEDURE', l_proc);
39     hr_utility.set_message_token('STEP','5');
40     hr_utility.raise_error;
41   ElsIf (p_constraint_name = 'BEN_PAIRD_RT_PK') Then
42     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
43     hr_utility.set_message_token('PROCEDURE', l_proc);
44     hr_utility.set_message_token('STEP','10');
45     hr_utility.raise_error;
46   Else
47     hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
48     hr_utility.set_message_token('PROCEDURE', l_proc);
49     hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
50     hr_utility.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_paird_rt_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 	paird_rt_id,
71 	effective_start_date,
72 	effective_end_date,
73 	use_parnt_ded_sched_flag,
74 	asn_on_chc_of_parnt_flag,
75 	use_parnt_prtl_mo_cd_flag,
76 	alloc_sme_as_parnt_flag,
77 	use_parnt_pymt_sched_flag,
78 	no_cmbnd_mx_amt_dfnd_flag,
79 	cmbnd_mx_amt,
80 	cmbnd_mn_amt,
81 	cmbnd_mx_pct_num,
82 	cmbnd_mn_pct_num,
83 	no_cmbnd_mn_amt_dfnd_flag,
84 	no_cmbnd_mn_pct_dfnd_flag,
85 	no_cmbnd_mx_pct_dfnd_flag,
86 	parnt_acty_base_rt_id,
87 	chld_acty_base_rt_id,
88 	business_group_id,
89 	prd_attribute_category,
90 	prd_attribute1,
91 	prd_attribute2,
92 	prd_attribute3,
93 	prd_attribute4,
94 	prd_attribute5,
95 	prd_attribute6,
96 	prd_attribute7,
97 	prd_attribute8,
98 	prd_attribute9,
99 	prd_attribute10,
100 	prd_attribute11,
101 	prd_attribute12,
102 	prd_attribute13,
103 	prd_attribute14,
104 	prd_attribute15,
105 	prd_attribute16,
106 	prd_attribute17,
107 	prd_attribute18,
108 	prd_attribute19,
109 	prd_attribute20,
110 	prd_attribute21,
111 	prd_attribute22,
112 	prd_attribute23,
113 	prd_attribute24,
114 	prd_attribute25,
115 	prd_attribute26,
116 	prd_attribute27,
117 	prd_attribute28,
118 	prd_attribute29,
119 	prd_attribute30,
120 	object_version_number
121     from	ben_paird_rt_f
122     where	paird_rt_id = p_paird_rt_id
123     and		p_effective_date
124     between	effective_start_date and effective_end_date;
125 --
126   l_proc	varchar2(72)	:= g_package||'api_updating';
127   l_fct_ret	boolean;
128 --
129 Begin
130   hr_utility.set_location('Entering:'||l_proc, 5);
131   --
132   If (p_effective_date is null or
133       p_paird_rt_id is null or
134       p_object_version_number is null) Then
135     --
136     -- One of the primary key arguments is null therefore we must
137     -- set the returning function value to false
138     --
139     l_fct_ret := false;
140   Else
141     If (p_paird_rt_id = g_old_rec.paird_rt_id and
142         p_object_version_number = g_old_rec.object_version_number) Then
143       hr_utility.set_location(l_proc, 10);
144       --
145       -- The g_old_rec is current therefore we must
146       -- set the returning function to true
147       --
148       l_fct_ret := true;
149     Else
150       --
151       -- Select the current row
152       --
153       Open C_Sel1;
154       Fetch C_Sel1 Into g_old_rec;
155       If C_Sel1%notfound Then
156         Close C_Sel1;
157         --
158         -- The primary key is invalid therefore we must error
159         --
160         hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
161         hr_utility.raise_error;
162       End If;
163       Close C_Sel1;
164       If (p_object_version_number <> g_old_rec.object_version_number) Then
165         hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
166         hr_utility.raise_error;
167       End If;
168       hr_utility.set_location(l_proc, 15);
169       l_fct_ret := true;
170     End If;
171   End If;
172   hr_utility.set_location(' Leaving:'||l_proc, 20);
173   Return (l_fct_ret);
174 --
175 End api_updating;
176 --
177 -- ----------------------------------------------------------------------------
178 -- |--------------------------< find_dt_del_modes >---------------------------|
179 -- ----------------------------------------------------------------------------
180 Procedure find_dt_del_modes
181 	(p_effective_date	in  date,
182 	 p_base_key_value	in  number,
183 	 p_zap		 out nocopy boolean,
184 	 p_delete	 out nocopy boolean,
185 	 p_future_change out nocopy boolean,
186 	 p_delete_next_change out nocopy boolean) is
187 --
188   l_proc 		varchar2(72) 	:= g_package||'find_dt_del_modes';
189 --
190   l_parent_key_value1	number;
191   l_parent_key_value2	number;
192   --
193   Cursor C_Sel1 Is
194     select  t.parnt_acty_base_rt_id,
195 	    t.chld_acty_base_rt_id
196     from    ben_paird_rt_f t
197     where   t.paird_rt_id = p_base_key_value
198     and     p_effective_date
199     between t.effective_start_date and t.effective_end_date;
200 --
201 Begin
202   hr_utility.set_location('Entering:'||l_proc, 5);
203   Open  C_Sel1;
204   Fetch C_Sel1 Into l_parent_key_value1,
205 		    l_parent_key_value2;
206   If C_Sel1%notfound then
207     Close C_Sel1;
208     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
209     hr_utility.set_message_token('PROCEDURE', l_proc);
210     hr_utility.set_message_token('STEP','10');
211     hr_utility.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_paird_rt_f',
220 	 p_base_key_column	=> 'paird_rt_id',
221 	 p_base_key_value	=> p_base_key_value,
222 	 p_parent_table_name1	=> 'ben_acty_base_rt_f',
223 	 p_parent_key_column1	=> 'acty_base_rt_id',
224 	 p_parent_key_value1	=> l_parent_key_value1,
225 	 p_parent_table_name2	=> 'ben_acty_base_rt_f',
226 	 p_parent_key_column2	=> 'acty_base_rt_id',
227 	 p_parent_key_value2	=> l_parent_key_value2,
228 	 p_zap			=> p_zap,
229 	 p_delete		=> p_delete,
230 	 p_future_change	=> p_future_change,
231 	 p_delete_next_change	=> p_delete_next_change);
232   --
233   hr_utility.set_location(' Leaving:'||l_proc, 10);
234 End find_dt_del_modes;
235 --
236 -- ----------------------------------------------------------------------------
237 -- |--------------------------< find_dt_upd_modes >---------------------------|
238 -- ----------------------------------------------------------------------------
239 Procedure find_dt_upd_modes
240 	(p_effective_date	in  date,
241 	 p_base_key_value	in  number,
242 	 p_correction	 out nocopy boolean,
243 	 p_update	 out nocopy boolean,
244 	 p_update_override out nocopy boolean,
245 	 p_update_change_insert out nocopy boolean) is
246 --
247   l_proc 	varchar2(72) := g_package||'find_dt_upd_modes';
248 --
249 Begin
250   hr_utility.set_location('Entering:'||l_proc, 5);
251   --
252   -- Call the corresponding datetrack api
253   --
254   dt_api.find_dt_upd_modes
255 	(p_effective_date	=> p_effective_date,
256 	 p_base_table_name	=> 'ben_paird_rt_f',
257 	 p_base_key_column	=> 'paird_rt_id',
258 	 p_base_key_value	=> p_base_key_value,
259 	 p_correction		=> p_correction,
260 	 p_update		=> p_update,
261 	 p_update_override	=> p_update_override,
262 	 p_update_change_insert	=> p_update_change_insert);
263   --
264   hr_utility.set_location(' Leaving:'||l_proc, 10);
265 End find_dt_upd_modes;
266 --
267 -- ----------------------------------------------------------------------------
268 -- |------------------------< upd_effective_end_date >------------------------|
269 -- ----------------------------------------------------------------------------
270 Procedure upd_effective_end_date
271 	(p_effective_date		in date,
272 	 p_base_key_value		in number,
273 	 p_new_effective_end_date	in date,
274 	 p_validation_start_date	in date,
275 	 p_validation_end_date		in date,
276          p_object_version_number       out nocopy number) is
277 --
278   l_proc 		  varchar2(72) := g_package||'upd_effective_end_date';
279   l_object_version_number number;
280 --
281 Begin
282   hr_utility.set_location('Entering:'||l_proc, 5);
283   --
284   -- Because we are updating a row we must get the next object
285   -- version number.
286   --
287   l_object_version_number :=
288     dt_api.get_object_version_number
289 	(p_base_table_name	=> 'ben_paird_rt_f',
290 	 p_base_key_column	=> 'paird_rt_id',
291 	 p_base_key_value	=> p_base_key_value);
292   --
293   hr_utility.set_location(l_proc, 10);
294   g_api_dml := true;  -- Set the api dml status
295   --
296   -- Update the specified datetrack row setting the effective
297   -- end date to the specified new effective end date.
298   --
299   update  ben_paird_rt_f t
300   set	  t.effective_end_date	  = p_new_effective_end_date,
301 	  t.object_version_number = l_object_version_number
302   where	  t.paird_rt_id	  = p_base_key_value
303   and	  p_effective_date
304   between t.effective_start_date and t.effective_end_date;
305   --
306   g_api_dml := false;   -- Unset the api dml status
307   p_object_version_number := l_object_version_number;
308   hr_utility.set_location(' Leaving:'||l_proc, 15);
309 --
310 Exception
311   When Others Then
312     g_api_dml := false;   -- Unset the api dml status
313     Raise;
314 End upd_effective_end_date;
315 --
316 -- ----------------------------------------------------------------------------
317 -- |---------------------------------< lck >----------------------------------|
318 -- ----------------------------------------------------------------------------
319 Procedure lck
320 	(p_effective_date	 in  date,
321 	 p_datetrack_mode	 in  varchar2,
322 	 p_paird_rt_id	 in  number,
323 	 p_object_version_number in  number,
324 	 p_validation_start_date out nocopy date,
325 	 p_validation_end_date	 out nocopy date) is
326 --
327   l_proc		  varchar2(72) := g_package||'lck';
328   l_validation_start_date date;
329   l_validation_end_date	  date;
330   l_object_invalid 	  exception;
331   l_argument		  varchar2(30);
332   --
333   -- Cursor C_Sel1 selects the current locked row as of session date
334   -- ensuring that the object version numbers match.
335   --
336   Cursor C_Sel1 is
337     select
338 	paird_rt_id,
339 	effective_start_date,
340 	effective_end_date,
341 	use_parnt_ded_sched_flag,
342 	asn_on_chc_of_parnt_flag,
343 	use_parnt_prtl_mo_cd_flag,
344 	alloc_sme_as_parnt_flag,
345 	use_parnt_pymt_sched_flag,
346 	no_cmbnd_mx_amt_dfnd_flag,
347 	cmbnd_mx_amt,
348 	cmbnd_mn_amt,
349 	cmbnd_mx_pct_num,
350 	cmbnd_mn_pct_num,
351 	no_cmbnd_mn_amt_dfnd_flag,
352 	no_cmbnd_mn_pct_dfnd_flag,
353 	no_cmbnd_mx_pct_dfnd_flag,
354 	parnt_acty_base_rt_id,
355 	chld_acty_base_rt_id,
356 	business_group_id,
357 	prd_attribute_category,
358 	prd_attribute1,
359 	prd_attribute2,
360 	prd_attribute3,
361 	prd_attribute4,
362 	prd_attribute5,
363 	prd_attribute6,
364 	prd_attribute7,
365 	prd_attribute8,
366 	prd_attribute9,
367 	prd_attribute10,
368 	prd_attribute11,
369 	prd_attribute12,
370 	prd_attribute13,
371 	prd_attribute14,
372 	prd_attribute15,
373 	prd_attribute16,
374 	prd_attribute17,
375 	prd_attribute18,
376 	prd_attribute19,
377 	prd_attribute20,
378 	prd_attribute21,
379 	prd_attribute22,
380 	prd_attribute23,
381 	prd_attribute24,
382 	prd_attribute25,
383 	prd_attribute26,
384 	prd_attribute27,
385 	prd_attribute28,
386 	prd_attribute29,
387 	prd_attribute30,
388 	object_version_number
389     from    ben_paird_rt_f
390     where   paird_rt_id         = p_paird_rt_id
391     and	    p_effective_date
395   --
392     between effective_start_date and effective_end_date
393     for update nowait;
394   --
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       => 'paird_rt_id',
412                              p_argument_value => p_paird_rt_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       hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
432       hr_utility.raise_error;
433     End If;
434     Close C_Sel1;
435     If (p_object_version_number <> g_old_rec.object_version_number) Then
436         hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
437         hr_utility.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_paird_rt_f',
449 	 p_base_key_column	   => 'paird_rt_id',
450 	 p_base_key_value 	   => p_paird_rt_id,
451 	 p_parent_table_name1      => 'ben_acty_base_rt_f',
452 	 p_parent_key_column1      => 'acty_base_rt_id',
453 	 p_parent_key_value1       => g_old_rec.parnt_acty_base_rt_id,
454 	 p_parent_table_name2      => 'ben_acty_base_rt_f',
455 	 p_parent_key_column2      => 'acty_base_rt_id',
456 	 p_parent_key_value2       => g_old_rec.chld_acty_base_rt_id,
457          p_enforce_foreign_locking => false , --true,
458 	 p_validation_start_date   => l_validation_start_date,
459  	 p_validation_end_date	   => l_validation_end_date);
460   Else
461     --
462     -- We are doing a datetrack 'INSERT' which is illegal within this
463     -- procedure therefore we must error (note: to lck on insert the
464     -- private procedure ins_lck should be called).
465     --
466     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
467     hr_utility.set_message_token('PROCEDURE', l_proc);
468     hr_utility.set_message_token('STEP','20');
469     hr_utility.raise_error;
470   End If;
471   --
472   -- Set the validation start and end date OUT arguments
473   --
474   p_validation_start_date := l_validation_start_date;
475   p_validation_end_date   := l_validation_end_date;
476   --
477   hr_utility.set_location(' Leaving:'||l_proc, 30);
478 --
479 -- We need to trap the ORA LOCK exception
480 --
481 Exception
482   When HR_Api.Object_Locked then
483     --
484     -- The object is locked therefore we need to supply a meaningful
485     -- error message.
486     --
487     hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
488     hr_utility.set_message_token('TABLE_NAME', 'ben_paird_rt_f');
489     hr_utility.raise_error;
490   When l_object_invalid then
491     --
492     -- The object doesn't exist or is invalid
493     --
494     hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
495     hr_utility.set_message_token('TABLE_NAME', 'ben_paird_rt_f');
496     hr_utility.raise_error;
497 End lck;
498 --
499 -- ----------------------------------------------------------------------------
500 -- |-----------------------------< convert_args >-----------------------------|
501 -- ----------------------------------------------------------------------------
502 Function convert_args
503 	(
504 	p_paird_rt_id                   in number,
505 	p_effective_start_date          in date,
506 	p_effective_end_date            in date,
507 	p_use_parnt_ded_sched_flag      in varchar2,
508 	p_asn_on_chc_of_parnt_flag      in varchar2,
509 	p_use_parnt_prtl_mo_cd_flag     in varchar2,
510 	p_alloc_sme_as_parnt_flag       in varchar2,
511 	p_use_parnt_pymt_sched_flag     in varchar2,
512 	p_no_cmbnd_mx_amt_dfnd_flag     in varchar2,
513 	p_cmbnd_mx_amt                  in number,
514 	p_cmbnd_mn_amt                  in number,
515 	p_cmbnd_mx_pct_num              in number,
516 	p_cmbnd_mn_pct_num              in number,
517 	p_no_cmbnd_mn_amt_dfnd_flag     in varchar2,
521 	p_chld_acty_base_rt_id          in number,
518 	p_no_cmbnd_mn_pct_dfnd_flag     in varchar2,
519 	p_no_cmbnd_mx_pct_dfnd_flag     in varchar2,
520 	p_parnt_acty_base_rt_id         in number,
522 	p_business_group_id             in number,
523 	p_prd_attribute_category        in varchar2,
524 	p_prd_attribute1                in varchar2,
525 	p_prd_attribute2                in varchar2,
526 	p_prd_attribute3                in varchar2,
527 	p_prd_attribute4                in varchar2,
528 	p_prd_attribute5                in varchar2,
529 	p_prd_attribute6                in varchar2,
530 	p_prd_attribute7                in varchar2,
531 	p_prd_attribute8                in varchar2,
532 	p_prd_attribute9                in varchar2,
533 	p_prd_attribute10               in varchar2,
534 	p_prd_attribute11               in varchar2,
535 	p_prd_attribute12               in varchar2,
536 	p_prd_attribute13               in varchar2,
537 	p_prd_attribute14               in varchar2,
538 	p_prd_attribute15               in varchar2,
539 	p_prd_attribute16               in varchar2,
540 	p_prd_attribute17               in varchar2,
541 	p_prd_attribute18               in varchar2,
542 	p_prd_attribute19               in varchar2,
543 	p_prd_attribute20               in varchar2,
544 	p_prd_attribute21               in varchar2,
545 	p_prd_attribute22               in varchar2,
546 	p_prd_attribute23               in varchar2,
547 	p_prd_attribute24               in varchar2,
548 	p_prd_attribute25               in varchar2,
549 	p_prd_attribute26               in varchar2,
550 	p_prd_attribute27               in varchar2,
551 	p_prd_attribute28               in varchar2,
552 	p_prd_attribute29               in varchar2,
553 	p_prd_attribute30               in varchar2,
554 	p_object_version_number         in number
555 	)
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.paird_rt_id                      := p_paird_rt_id;
568   l_rec.effective_start_date             := p_effective_start_date;
569   l_rec.effective_end_date               := p_effective_end_date;
570   l_rec.use_parnt_ded_sched_flag         := p_use_parnt_ded_sched_flag;
571   l_rec.asn_on_chc_of_parnt_flag         := p_asn_on_chc_of_parnt_flag;
572   l_rec.use_parnt_prtl_mo_cd_flag        := p_use_parnt_prtl_mo_cd_flag;
573   l_rec.alloc_sme_as_parnt_flag          := p_alloc_sme_as_parnt_flag;
574   l_rec.use_parnt_pymt_sched_flag        := p_use_parnt_pymt_sched_flag;
575   l_rec.no_cmbnd_mx_amt_dfnd_flag        := p_no_cmbnd_mx_amt_dfnd_flag;
576   l_rec.cmbnd_mx_amt                     := p_cmbnd_mx_amt;
577   l_rec.cmbnd_mn_amt                     := p_cmbnd_mn_amt;
578   l_rec.cmbnd_mx_pct_num                 := p_cmbnd_mx_pct_num;
579   l_rec.cmbnd_mn_pct_num                 := p_cmbnd_mn_pct_num;
580   l_rec.no_cmbnd_mn_amt_dfnd_flag        := p_no_cmbnd_mn_amt_dfnd_flag;
581   l_rec.no_cmbnd_mn_pct_dfnd_flag        := p_no_cmbnd_mn_pct_dfnd_flag;
582   l_rec.no_cmbnd_mx_pct_dfnd_flag        := p_no_cmbnd_mx_pct_dfnd_flag;
583   l_rec.parnt_acty_base_rt_id            := p_parnt_acty_base_rt_id;
584   l_rec.chld_acty_base_rt_id             := p_chld_acty_base_rt_id;
585   l_rec.business_group_id                := p_business_group_id;
586   l_rec.prd_attribute_category           := p_prd_attribute_category;
587   l_rec.prd_attribute1                   := p_prd_attribute1;
588   l_rec.prd_attribute2                   := p_prd_attribute2;
589   l_rec.prd_attribute3                   := p_prd_attribute3;
590   l_rec.prd_attribute4                   := p_prd_attribute4;
591   l_rec.prd_attribute5                   := p_prd_attribute5;
592   l_rec.prd_attribute6                   := p_prd_attribute6;
593   l_rec.prd_attribute7                   := p_prd_attribute7;
594   l_rec.prd_attribute8                   := p_prd_attribute8;
595   l_rec.prd_attribute9                   := p_prd_attribute9;
596   l_rec.prd_attribute10                  := p_prd_attribute10;
597   l_rec.prd_attribute11                  := p_prd_attribute11;
598   l_rec.prd_attribute12                  := p_prd_attribute12;
599   l_rec.prd_attribute13                  := p_prd_attribute13;
600   l_rec.prd_attribute14                  := p_prd_attribute14;
601   l_rec.prd_attribute15                  := p_prd_attribute15;
602   l_rec.prd_attribute16                  := p_prd_attribute16;
603   l_rec.prd_attribute17                  := p_prd_attribute17;
604   l_rec.prd_attribute18                  := p_prd_attribute18;
605   l_rec.prd_attribute19                  := p_prd_attribute19;
606   l_rec.prd_attribute20                  := p_prd_attribute20;
607   l_rec.prd_attribute21                  := p_prd_attribute21;
608   l_rec.prd_attribute22                  := p_prd_attribute22;
609   l_rec.prd_attribute23                  := p_prd_attribute23;
610   l_rec.prd_attribute24                  := p_prd_attribute24;
611   l_rec.prd_attribute25                  := p_prd_attribute25;
612   l_rec.prd_attribute26                  := p_prd_attribute26;
613   l_rec.prd_attribute27                  := p_prd_attribute27;
614   l_rec.prd_attribute28                  := p_prd_attribute28;
615   l_rec.prd_attribute29                  := p_prd_attribute29;
616   l_rec.prd_attribute30                  := p_prd_attribute30;
617   l_rec.object_version_number            := p_object_version_number;
618   --
619   -- Return the plsql record structure.
620   --
621   hr_utility.set_location(' Leaving:'||l_proc, 10);
622   Return(l_rec);
623 --
624 End convert_args;
625 --
626 end ben_prd_shd;