DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_PBN_SHD

Source


1 Package Body ben_pbn_shd as
2 /* $Header: bepbnrhi.pkb 120.1.12010000.3 2008/11/19 05:57:39 sagnanas ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  ben_pbn_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_PL_BNF_PK') 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_PL_BNF_FK1') 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   elsif (p_constraint_name = 'BEN_PL_BNF_FK2') Then
47     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
48     fnd_message.set_token('PROCEDURE', l_proc);
49     fnd_message.set_token('STEP','15');
50     fnd_message.raise_error;
51   elsif (p_constraint_name = 'BEN_PL_BNF_FK3') Then
52     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
53     fnd_message.set_token('PROCEDURE', l_proc);
54     fnd_message.set_token('STEP','20');
55     fnd_message.raise_error;
56   Else
57     fnd_message.set_name('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
58     fnd_message.set_token('PROCEDURE', l_proc);
59     fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
60     fnd_message.raise_error;
61   End If;
62   --
63   hr_utility.set_location(' Leaving:'||l_proc, 10);
64 End constraint_error;
65 --
66 -- ----------------------------------------------------------------------------
67 -- |-----------------------------< api_updating >-----------------------------|
68 -- ----------------------------------------------------------------------------
69 Function api_updating
70   (p_effective_date		in date,
71    p_pl_bnf_id		in number,
72    p_object_version_number	in number
73   ) Return Boolean Is
74 --
75   --
76   -- Cursor selects the 'current' row from the HR Schema
77   --
78   Cursor C_Sel1 is
79     select
80 	pl_bnf_id,
81 	effective_start_date,
82 	effective_end_date,
83 	business_group_id,
84 	prtt_enrt_rslt_id,
85 	bnf_person_id,
86 	organization_id,
87 	ttee_person_id,
88 	prmry_cntngnt_cd,
89 	pct_dsgd_num,
90 	amt_dsgd_val,
91 	amt_dsgd_uom,
92         dsgn_strt_dt,
93         dsgn_thru_dt,
94 	addl_instrn_txt,
95 	pbn_attribute_category,
96 	pbn_attribute1,
97 	pbn_attribute2,
98 	pbn_attribute3,
99 	pbn_attribute4,
100 	pbn_attribute5,
101 	pbn_attribute6,
102 	pbn_attribute7,
103 	pbn_attribute8,
104 	pbn_attribute9,
105 	pbn_attribute10,
106 	pbn_attribute11,
107 	pbn_attribute12,
108 	pbn_attribute13,
109 	pbn_attribute14,
110 	pbn_attribute15,
111 	pbn_attribute16,
112 	pbn_attribute17,
113 	pbn_attribute18,
114 	pbn_attribute19,
115 	pbn_attribute20,
116 	pbn_attribute21,
117 	pbn_attribute22,
118 	pbn_attribute23,
119 	pbn_attribute24,
120 	pbn_attribute25,
121 	pbn_attribute26,
122 	pbn_attribute27,
123 	pbn_attribute28,
124 	pbn_attribute29,
125 	pbn_attribute30,
126       request_id,
127       program_application_id,
128       program_id,
129       program_update_date,
130 	object_version_number,
131       per_in_ler_id
132     from	ben_pl_bnf_f
133     where	pl_bnf_id = p_pl_bnf_id
134     and		p_effective_date
135     between	effective_start_date and effective_end_date;
136 --
137   l_proc	varchar2(72)	:= g_package||'api_updating';
138   l_fct_ret	boolean;
139 --
140 Begin
141   hr_utility.set_location('Entering:'||l_proc, 5);
142   --
143   If (p_effective_date is null or
144       p_pl_bnf_id is null or
145       p_object_version_number is null) Then
146     --
147     -- One of the primary key arguments is null therefore we must
148     -- set the returning function value to false
149     --
150     l_fct_ret := false;
151   Else
152     If (p_pl_bnf_id = g_old_rec.pl_bnf_id and
153         p_object_version_number = g_old_rec.object_version_number) Then
154       hr_utility.set_location(l_proc, 10);
155       --
156       -- The g_old_rec is current therefore we must
157       -- set the returning function to true
158       --
159       l_fct_ret := true;
160     Else
161       --
162       -- Select the current row
163       --
164       Open C_Sel1;
165       Fetch C_Sel1 Into g_old_rec;
166       If C_Sel1%notfound Then
167         Close C_Sel1;
168         --
169         -- The primary key is invalid therefore we must error
170         --
171         fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
172         fnd_message.raise_error;
173       End If;
174       Close C_Sel1;
175       If (p_object_version_number <> g_old_rec.object_version_number) Then
176         fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
177         fnd_message.raise_error;
178       End If;
179       hr_utility.set_location(l_proc, 15);
180       l_fct_ret := true;
181     End If;
182   End If;
183   hr_utility.set_location(' Leaving:'||l_proc, 20);
184   Return (l_fct_ret);
185 --
186 End api_updating;
187 --
188 -- ----------------------------------------------------------------------------
189 -- |--------------------------< find_dt_del_modes >---------------------------|
190 -- ----------------------------------------------------------------------------
191 Procedure find_dt_del_modes
192 	(p_effective_date	in  date,
193 	 p_base_key_value	in  number,
194 	 p_zap		 out nocopy boolean,
195 	 p_delete	 out nocopy boolean,
196 	 p_future_change out nocopy boolean,
197 	 p_delete_next_change out nocopy boolean) is
198 --
199   l_proc 		varchar2(72) 	:= g_package||'find_dt_del_modes';
200 --
201   l_parent_key_value1   number;
202   l_parent_key_value2   number;
203   --
204   Cursor C_Sel1 Is
205     select  t.per_in_ler_id,
206             t.prtt_enrt_rslt_id
207     from    ben_pl_bnf_f t
208     where   t.pl_bnf_id = p_base_key_value
209     and     p_effective_date
210     between t.effective_start_date and t.effective_end_date;
211 --
212 Begin
213   hr_utility.set_location('Entering:'||l_proc, 5);
214     --
215   --
216   -- Call the corresponding datetrack api
217   --
218 --  dt_api.find_dt_del_modes
219 --	(p_effective_date	=> p_effective_date,
220 --	 p_base_table_name	=> 'ben_pl_bnf_f',
221 --	 p_base_key_column	=> 'pl_bnf_id',
222 --	 p_base_key_value	=> p_base_key_value,
223 --	 p_zap			=> p_zap,
224 --	 p_delete		=> p_delete,
225 --	 p_future_change	=> p_future_change,
226 --	 p_delete_next_change	=> p_delete_next_change);
227   Open  C_Sel1;
228   Fetch C_Sel1 Into l_parent_key_value1,
229                     l_parent_key_value2;
230   If C_Sel1%notfound then
231     Close C_Sel1;
232     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
233     hr_utility.set_message_token('PROCEDURE', l_proc);
234     hr_utility.set_message_token('STEP','10');
235     hr_utility.raise_error;
236   End If;
237   Close C_Sel1;
238   --
239   -- Call the corresponding datetrack api
240   --
241   dt_api.find_dt_del_modes
242         (p_effective_date       => p_effective_date,
243          p_base_table_name      => 'ben_pl_bnf_f',
244          p_base_key_column      => 'pl_bnf_id',
245          p_base_key_value       => p_base_key_value,
246          p_parent_table_name1   => 'ben_prtt_enrt_rslt_f',
247          p_parent_key_column1   => 'prtt_enrt_rslt_id',
248          p_parent_key_value1    => l_parent_key_value2,
249          p_zap                  => p_zap,
250          p_delete               => p_delete,
251          p_future_change        => p_future_change,
252          p_delete_next_change   => p_delete_next_change);
253   --
254  --
255   hr_utility.set_location(' Leaving:'||l_proc, 10);
256 End find_dt_del_modes;
257 --
258 -- ----------------------------------------------------------------------------
259 -- |--------------------------< find_dt_upd_modes >---------------------------|
260 -- ----------------------------------------------------------------------------
261 Procedure find_dt_upd_modes
262 	(p_effective_date	in  date,
263 	 p_base_key_value	in  number,
264 	 p_correction	 out nocopy boolean,
265 	 p_update	 out nocopy boolean,
266 	 p_update_override out nocopy boolean,
267 	 p_update_change_insert out nocopy boolean) is
268 --
269   l_proc 	varchar2(72) := g_package||'find_dt_upd_modes';
270 --
271 Begin
272   hr_utility.set_location('Entering:'||l_proc, 5);
273   --
274   -- Call the corresponding datetrack api
275   --
276   dt_api.find_dt_upd_modes
277 	(p_effective_date	=> p_effective_date,
278 	 p_base_table_name	=> 'ben_pl_bnf_f',
279 	 p_base_key_column	=> 'pl_bnf_id',
280 	 p_base_key_value	=> p_base_key_value,
281 	 p_correction		=> p_correction,
282 	 p_update		=> p_update,
283 	 p_update_override	=> p_update_override,
284 	 p_update_change_insert	=> p_update_change_insert);
285   --
286   hr_utility.set_location(' Leaving:'||l_proc, 10);
287 End find_dt_upd_modes;
288 --
289 -- ----------------------------------------------------------------------------
290 -- |------------------------< upd_effective_end_date >------------------------|
291 -- ----------------------------------------------------------------------------
292 Procedure upd_effective_end_date
293 	(p_effective_date		in date,
294 	 p_base_key_value		in number,
295 	 p_new_effective_end_date	in date,
296 	 p_validation_start_date	in date,
297 	 p_validation_end_date		in date,
298          p_object_version_number       out nocopy number) is
299 --
300   l_proc 		  varchar2(72) := g_package||'upd_effective_end_date';
301   l_object_version_number number;
302 --
303 Begin
304   hr_utility.set_location('Entering:'||l_proc, 5);
305   --
306   -- Because we are updating a row we must get the next object
307   -- version number.
308   --
309   l_object_version_number :=
310     dt_api.get_object_version_number
311 	(p_base_table_name	=> 'ben_pl_bnf_f',
312 	 p_base_key_column	=> 'pl_bnf_id',
313 	 p_base_key_value	=> p_base_key_value);
314   --
315   hr_utility.set_location(l_proc, 10);
316   g_api_dml := true;  -- Set the api dml status
317   --
318   -- Update the specified datetrack row setting the effective
319   -- end date to the specified new effective end date.
320   --
321   update  ben_pl_bnf_f t
322   set	  t.effective_end_date	  = p_new_effective_end_date,
323 	  t.object_version_number = l_object_version_number
324   where	  t.pl_bnf_id	  = p_base_key_value
325   and	  p_effective_date
326   between t.effective_start_date and t.effective_end_date;
327   --
328   g_api_dml := false;   -- Unset the api dml status
329   p_object_version_number := l_object_version_number;
330   hr_utility.set_location(' Leaving:'||l_proc, 15);
331 --
332 Exception
333   When Others Then
334     g_api_dml := false;   -- Unset the api dml status
335     Raise;
336 End upd_effective_end_date;
337 --
338 -- ----------------------------------------------------------------------------
339 -- |---------------------------------< lck >----------------------------------|
340 -- ----------------------------------------------------------------------------
341 Procedure lck
342 	(p_effective_date	 in  date,
343 	 p_datetrack_mode	 in  varchar2,
344 	 p_pl_bnf_id	 in  number,
345 	 p_object_version_number in  number,
346 	 p_validation_start_date out nocopy date,
347 	 p_validation_end_date	 out nocopy date) is
348 --
349   l_proc		  varchar2(72) := g_package||'lck';
350   l_validation_start_date date;
351   l_validation_end_date	  date;
352   l_object_invalid 	  exception;
353   l_argument		  varchar2(30);
354   --
355   -- Cursor C_Sel1 selects the current locked row as of session date
356   -- ensuring that the object version numbers match.
357   --
358   Cursor C_Sel1 is
359     select
360 	pl_bnf_id,
361 	effective_start_date,
362 	effective_end_date,
363 	business_group_id,
364 	prtt_enrt_rslt_id,
365 	bnf_person_id,
366 	organization_id,
367 	ttee_person_id,
368 	prmry_cntngnt_cd,
369 	pct_dsgd_num,
370 	amt_dsgd_val,
371 	amt_dsgd_uom,
372         dsgn_strt_dt,
373         dsgn_thru_dt,
374 	addl_instrn_txt,
375 	pbn_attribute_category,
376 	pbn_attribute1,
377 	pbn_attribute2,
378 	pbn_attribute3,
379 	pbn_attribute4,
380 	pbn_attribute5,
381 	pbn_attribute6,
382 	pbn_attribute7,
383 	pbn_attribute8,
384 	pbn_attribute9,
385 	pbn_attribute10,
386 	pbn_attribute11,
387 	pbn_attribute12,
388 	pbn_attribute13,
389 	pbn_attribute14,
390 	pbn_attribute15,
391 	pbn_attribute16,
392 	pbn_attribute17,
393 	pbn_attribute18,
394 	pbn_attribute19,
395 	pbn_attribute20,
396 	pbn_attribute21,
397 	pbn_attribute22,
398 	pbn_attribute23,
399 	pbn_attribute24,
400 	pbn_attribute25,
401 	pbn_attribute26,
402 	pbn_attribute27,
403 	pbn_attribute28,
404 	pbn_attribute29,
405 	pbn_attribute30,
406       request_id,
407       program_application_id,
408       program_id,
409       program_update_date,
410 	object_version_number,
411         per_in_ler_id
412     from    ben_pl_bnf_f
413     where   pl_bnf_id         = p_pl_bnf_id
414     and	    p_effective_date
415     between effective_start_date and effective_end_date
416     for update nowait;
417   --
418   --
419   --
420 Begin
421   hr_utility.set_location('Entering:'||l_proc, 5);
422   --
423   -- Ensure that all the mandatory arguments are not null
424   --
425   hr_api.mandatory_arg_error(p_api_name       => l_proc,
426                              p_argument       => 'effective_date',
427                              p_argument_value => p_effective_date);
428   --
429   hr_api.mandatory_arg_error(p_api_name       => l_proc,
430                              p_argument       => 'datetrack_mode',
431                              p_argument_value => p_datetrack_mode);
432   --
433   hr_api.mandatory_arg_error(p_api_name       => l_proc,
434                              p_argument       => 'pl_bnf_id',
435                              p_argument_value => p_pl_bnf_id);
436   --
437   hr_api.mandatory_arg_error(p_api_name       => l_proc,
438                              p_argument       => 'object_version_number',
439                              p_argument_value => p_object_version_number);
440   --
444     --
441   -- Check to ensure the datetrack mode is not INSERT.
442   --
443   If (p_datetrack_mode <> 'INSERT') then
445     -- We must select and lock the current row.
446     --
447     Open  C_Sel1;
448     Fetch C_Sel1 Into g_old_rec;
449     If C_Sel1%notfound then
450       Close C_Sel1;
451       --
452       -- The primary key is invalid therefore we must error
453       --
454       fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
455       fnd_message.raise_error;
456     End If;
457     Close C_Sel1;
458     If (p_object_version_number <> g_old_rec.object_version_number) Then
459         fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
460         fnd_message.raise_error;
461       End If;
462     hr_utility.set_location(l_proc, 15);
463     --
464     --
465     -- Validate the datetrack mode mode getting the validation start
466     -- and end dates for the specified datetrack operation.
467     --
468 --    dt_api.validate_dt_mode
469 --	(p_effective_date	   => p_effective_date,
470 --	 p_datetrack_mode	   => p_datetrack_mode,
471 --	 p_base_table_name	   => 'ben_pl_bnf_f',
472 --	 p_base_key_column	   => 'pl_bnf_id',
473 --	 p_base_key_value 	   => p_pl_bnf_id,
474 --	 p_child_table_name1       => 'ben_pl_bnf_ctfn_prvdd_f',
475 --	 p_child_key_column1       => 'pl_bnf_ctfn_prvdd_id',
476 --      p_enforce_foreign_locking => false,
477 --	 p_validation_start_date   => l_validation_start_date,
478 -- 	 p_validation_end_date	   => l_validation_end_date);
479  hr_utility.set_location(' p_datetrack_mode '||p_datetrack_mode , 122);
480  hr_utility.set_location(' p_effective_date '||p_effective_date , 122);
481  --
482  dt_api.validate_dt_mode
483      (p_effective_date          => p_effective_date,
484       p_datetrack_mode          => p_datetrack_mode,
485       p_base_table_name         => 'ben_pl_bnf_f',
486       p_base_key_column         => 'pl_bnf_id',
487       p_base_key_value          => p_pl_bnf_id,
488       p_parent_table_name1      => 'ben_prtt_enrt_rslt_f',
489       p_parent_key_column1      => 'prtt_enrt_rslt_id',
490       p_parent_key_value1       => g_old_rec.prtt_enrt_rslt_id,
491       p_child_table_name1       => 'ben_pl_bnf_ctfn_prvdd_f',
492       p_child_key_column1       => 'pl_bnf_ctfn_prvdd_id',
493       p_child_table_name2       => 'ben_prtt_enrt_actn_f',
494       p_child_key_column2       => 'prtt_enrt_actn_id',
495       p_enforce_foreign_locking => false, --true   Bug 2381978
496       p_validation_start_date   => l_validation_start_date,
497       p_validation_end_date     => l_validation_end_date);
498 
499   Else
500     --
501     -- We are doing a datetrack 'INSERT' which is illegal within this
502     -- procedure therefore we must error (note: to lck on insert the
503     -- private procedure ins_lck should be called).
504     --
505     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
506     fnd_message.set_token('PROCEDURE', l_proc);
507     fnd_message.set_token('STEP','20');
508     fnd_message.raise_error;
509   End If;
510   --
511   -- Set the validation start and end date OUT arguments
512   --
513   p_validation_start_date := l_validation_start_date;
514   p_validation_end_date   := l_validation_end_date;
515   --
516   hr_utility.set_location(' Leaving:'||l_proc, 30);
517 --
518 -- We need to trap the ORA LOCK exception
519 --
520 Exception
521   When HR_Api.Object_Locked then
522     --
523     -- The object is locked therefore we need to supply a meaningful
524     -- error message.
525     --
526     fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
527     fnd_message.set_token('TABLE_NAME', 'ben_pl_bnf_f');
528     fnd_message.raise_error;
529   When l_object_invalid then
530     --
531     -- The object doesn't exist or is invalid
532     --
533     fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
534     fnd_message.set_token('TABLE_NAME', 'ben_pl_bnf_f');
535     fnd_message.raise_error;
536 End lck;
537 --
538 -- ----------------------------------------------------------------------------
539 -- |-----------------------------< convert_args >-----------------------------|
540 -- ----------------------------------------------------------------------------
541 Function convert_args
542 	(
543 	p_pl_bnf_id                     in number,
544 	p_effective_start_date          in date,
545 	p_effective_end_date            in date,
546 	p_business_group_id             in number,
547 	p_prtt_enrt_rslt_id             in number,
548 	p_bnf_person_id                 in number,
549 	p_organization_id               in number,
550 	p_ttee_person_id                in number,
551 	p_prmry_cntngnt_cd              in varchar2,
552 	p_pct_dsgd_num                  in number,
553 	p_amt_dsgd_val                  in number,
554 	p_amt_dsgd_uom                  in varchar2,
555         p_dsgn_strt_dt                  in date,
556         p_dsgn_thru_dt                  in date,
557 	p_addl_instrn_txt               in varchar2,
558 	p_pbn_attribute_category        in varchar2,
559 	p_pbn_attribute1                in varchar2,
560 	p_pbn_attribute2                in varchar2,
561 	p_pbn_attribute3                in varchar2,
562 	p_pbn_attribute4                in varchar2,
563 	p_pbn_attribute5                in varchar2,
567 	p_pbn_attribute9                in varchar2,
564 	p_pbn_attribute6                in varchar2,
565 	p_pbn_attribute7                in varchar2,
566 	p_pbn_attribute8                in varchar2,
568 	p_pbn_attribute10               in varchar2,
569 	p_pbn_attribute11               in varchar2,
570 	p_pbn_attribute12               in varchar2,
571 	p_pbn_attribute13               in varchar2,
572 	p_pbn_attribute14               in varchar2,
573 	p_pbn_attribute15               in varchar2,
574 	p_pbn_attribute16               in varchar2,
575 	p_pbn_attribute17               in varchar2,
576 	p_pbn_attribute18               in varchar2,
577 	p_pbn_attribute19               in varchar2,
578 	p_pbn_attribute20               in varchar2,
579 	p_pbn_attribute21               in varchar2,
580 	p_pbn_attribute22               in varchar2,
581 	p_pbn_attribute23               in varchar2,
582 	p_pbn_attribute24               in varchar2,
583 	p_pbn_attribute25               in varchar2,
584 	p_pbn_attribute26               in varchar2,
585 	p_pbn_attribute27               in varchar2,
586 	p_pbn_attribute28               in varchar2,
587 	p_pbn_attribute29               in varchar2,
588 	p_pbn_attribute30               in varchar2,
589       p_request_id                    in number,
590       p_program_application_id        in number,
591       p_program_id                    in number,
592       p_program_update_date           in date,
593 	p_object_version_number         in number,
594         p_per_in_ler_id                 in number
595 	)
596 	Return g_rec_type is
597 --
598   l_rec	  g_rec_type;
599   l_proc  varchar2(72) := g_package||'convert_args';
600 --
601 Begin
602   --
603   hr_utility.set_location('Entering:'||l_proc, 5);
604   --
605   -- Convert arguments into local l_rec structure.
606   --
607   l_rec.pl_bnf_id                        := p_pl_bnf_id;
608   l_rec.effective_start_date             := p_effective_start_date;
609   l_rec.effective_end_date               := p_effective_end_date;
610   l_rec.business_group_id                := p_business_group_id;
611   l_rec.prtt_enrt_rslt_id                := p_prtt_enrt_rslt_id;
612   l_rec.bnf_person_id                    := p_bnf_person_id;
613   l_rec.organization_id                  := p_organization_id;
614   l_rec.ttee_person_id                   := p_ttee_person_id;
615   l_rec.prmry_cntngnt_cd                 := p_prmry_cntngnt_cd;
616   l_rec.pct_dsgd_num                     := p_pct_dsgd_num;
617   l_rec.amt_dsgd_val                     := p_amt_dsgd_val;
618   l_rec.amt_dsgd_uom                     := p_amt_dsgd_uom;
619   l_rec.dsgn_strt_dt                     := p_dsgn_strt_dt;
620   l_rec.dsgn_thru_dt                     := p_dsgn_thru_dt;
621   l_rec.addl_instrn_txt                  := p_addl_instrn_txt;
622   l_rec.pbn_attribute_category           := p_pbn_attribute_category;
623   l_rec.pbn_attribute1                   := p_pbn_attribute1;
624   l_rec.pbn_attribute2                   := p_pbn_attribute2;
625   l_rec.pbn_attribute3                   := p_pbn_attribute3;
626   l_rec.pbn_attribute4                   := p_pbn_attribute4;
627   l_rec.pbn_attribute5                   := p_pbn_attribute5;
628   l_rec.pbn_attribute6                   := p_pbn_attribute6;
629   l_rec.pbn_attribute7                   := p_pbn_attribute7;
630   l_rec.pbn_attribute8                   := p_pbn_attribute8;
631   l_rec.pbn_attribute9                   := p_pbn_attribute9;
632   l_rec.pbn_attribute10                  := p_pbn_attribute10;
633   l_rec.pbn_attribute11                  := p_pbn_attribute11;
634   l_rec.pbn_attribute12                  := p_pbn_attribute12;
635   l_rec.pbn_attribute13                  := p_pbn_attribute13;
636   l_rec.pbn_attribute14                  := p_pbn_attribute14;
637   l_rec.pbn_attribute15                  := p_pbn_attribute15;
638   l_rec.pbn_attribute16                  := p_pbn_attribute16;
639   l_rec.pbn_attribute17                  := p_pbn_attribute17;
640   l_rec.pbn_attribute18                  := p_pbn_attribute18;
641   l_rec.pbn_attribute19                  := p_pbn_attribute19;
642   l_rec.pbn_attribute20                  := p_pbn_attribute20;
643   l_rec.pbn_attribute21                  := p_pbn_attribute21;
644   l_rec.pbn_attribute22                  := p_pbn_attribute22;
645   l_rec.pbn_attribute23                  := p_pbn_attribute23;
646   l_rec.pbn_attribute24                  := p_pbn_attribute24;
647   l_rec.pbn_attribute25                  := p_pbn_attribute25;
648   l_rec.pbn_attribute26                  := p_pbn_attribute26;
649   l_rec.pbn_attribute27                  := p_pbn_attribute27;
650   l_rec.pbn_attribute28                  := p_pbn_attribute28;
651   l_rec.pbn_attribute29                  := p_pbn_attribute29;
652   l_rec.pbn_attribute30                  := p_pbn_attribute30;
653   l_rec.request_id                       := p_request_id;
654   l_rec.program_application_id           := p_program_application_id;
655   l_rec.program_id                       := p_program_id;
656   l_rec.program_update_date              := p_program_update_date;
657   l_rec.object_version_number            := p_object_version_number;
658   l_rec.per_in_ler_id                    := p_per_in_ler_id;
659   --
660   -- Return the plsql record structure.
661   --
662   hr_utility.set_location(' Leaving:'||l_proc, 10);
663   Return(l_rec);
664 --
665 End convert_args;
666 --
667 end ben_pbn_shd;