DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_LCC_SHD

Source


1 Package Body ben_lcc_shd as
2 /* $Header: belccrhi.pkb 115.14 2002/12/31 23:59:19 mmudigon ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  ben_lcc_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_LER_CHG_DPNT_CTFN_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_LER_CHG_DPNT_CVG_CTFN_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   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_ler_chg_dpnt_cvg_ctfn_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 	ler_chg_dpnt_cvg_ctfn_id,
71 	effective_start_date,
72 	effective_end_date,
73 	dpnt_cvg_ctfn_typ_cd,
74 	rlshp_typ_cd,
75 	ctfn_rqd_when_rl,
76 	lack_ctfn_sspnd_enrt_flag,
77 	rqd_flag,
78 	ler_chg_dpnt_cvg_id,
79 	business_group_id,
80 	lcc_attribute_category,
81 	lcc_attribute1,
82 	lcc_attribute2,
83 	lcc_attribute3,
84 	lcc_attribute4,
85 	lcc_attribute5,
86 	lcc_attribute6,
87 	lcc_attribute7,
88 	lcc_attribute8,
89 	lcc_attribute9,
90 	lcc_attribute10,
91 	lcc_attribute11,
92 	lcc_attribute12,
93 	lcc_attribute13,
94 	lcc_attribute14,
95 	lcc_attribute15,
96 	lcc_attribute16,
97 	lcc_attribute17,
98 	lcc_attribute18,
99 	lcc_attribute19,
100 	lcc_attribute20,
101 	lcc_attribute21,
102 	lcc_attribute22,
103 	lcc_attribute23,
104 	lcc_attribute24,
105 	lcc_attribute25,
106 	lcc_attribute26,
107 	lcc_attribute27,
108 	lcc_attribute28,
109 	lcc_attribute29,
110 	lcc_attribute30,
111 	object_version_number
112     from	ben_ler_chg_dpnt_cvg_ctfn_f
113     where	ler_chg_dpnt_cvg_ctfn_id = p_ler_chg_dpnt_cvg_ctfn_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_ler_chg_dpnt_cvg_ctfn_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
135       --
132     If (p_ler_chg_dpnt_cvg_ctfn_id = g_old_rec.ler_chg_dpnt_cvg_ctfn_id and
133         p_object_version_number = g_old_rec.object_version_number) Then
134       hr_utility.set_location(l_proc, 10);
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   --
183   Cursor C_Sel1 Is
184     select  t.ler_chg_dpnt_cvg_id
185     from    ben_ler_chg_dpnt_cvg_ctfn_f t
186     where   t.ler_chg_dpnt_cvg_ctfn_id = p_base_key_value
187     and     p_effective_date
188     between t.effective_start_date and t.effective_end_date;
189 --
190 Begin
191   hr_utility.set_location('Entering:'||l_proc, 5);
192   Open  C_Sel1;
193   Fetch C_Sel1 Into l_parent_key_value1;
194   If C_Sel1%notfound then
195     Close C_Sel1;
196     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
197     fnd_message.set_token('PROCEDURE', l_proc);
198     fnd_message.set_token('STEP','10');
199     fnd_message.raise_error;
200   End If;
201   Close C_Sel1;
202   --
203   -- Call the corresponding datetrack api
204   --
205   dt_api.find_dt_del_modes
206 	(p_effective_date	=> p_effective_date,
207 	 p_base_table_name	=> 'ben_ler_chg_dpnt_cvg_ctfn_f',
208 	 p_base_key_column	=> 'ler_chg_dpnt_cvg_ctfn_id',
209 	 p_base_key_value	=> p_base_key_value,
210 	 p_parent_table_name1	=> 'ben_ler_chg_dpnt_cvg_f',
211 	 p_parent_key_column1	=> 'ler_chg_dpnt_cvg_id',
212 	 p_parent_key_value1	=> l_parent_key_value1,
213 	 p_zap			=> p_zap,
214 	 p_delete		=> p_delete,
215 	 p_future_change	=> p_future_change,
216 	 p_delete_next_change	=> p_delete_next_change);
217   --
218   hr_utility.set_location(' Leaving:'||l_proc, 10);
219 End find_dt_del_modes;
220 --
221 -- ----------------------------------------------------------------------------
222 -- |--------------------------< find_dt_upd_modes >---------------------------|
223 -- ----------------------------------------------------------------------------
224 Procedure find_dt_upd_modes
225 	(p_effective_date	in  date,
226 	 p_base_key_value	in  number,
227 	 p_correction	 out nocopy boolean,
228 	 p_update	 out nocopy boolean,
229 	 p_update_override out nocopy boolean,
230 	 p_update_change_insert out nocopy boolean) is
231 --
232   l_proc 	varchar2(72) := g_package||'find_dt_upd_modes';
233 --
234 Begin
235   hr_utility.set_location('Entering:'||l_proc, 5);
236   --
237   -- Call the corresponding datetrack api
238   --
239   dt_api.find_dt_upd_modes
240 	(p_effective_date	=> p_effective_date,
241 	 p_base_table_name	=> 'ben_ler_chg_dpnt_cvg_ctfn_f',
242 	 p_base_key_column	=> 'ler_chg_dpnt_cvg_ctfn_id',
243 	 p_base_key_value	=> p_base_key_value,
244 	 p_correction		=> p_correction,
245 	 p_update		=> p_update,
246 	 p_update_override	=> p_update_override,
247 	 p_update_change_insert	=> p_update_change_insert);
248   --
249   hr_utility.set_location(' Leaving:'||l_proc, 10);
250 End find_dt_upd_modes;
251 --
252 -- ----------------------------------------------------------------------------
253 -- |------------------------< upd_effective_end_date >------------------------|
254 -- ----------------------------------------------------------------------------
255 Procedure upd_effective_end_date
256 	(p_effective_date		in date,
257 	 p_base_key_value		in number,
258 	 p_new_effective_end_date	in date,
259 	 p_validation_start_date	in date,
260 	 p_validation_end_date		in date,
261          p_object_version_number       out nocopy number) is
262 --
263   l_proc 		  varchar2(72) := g_package||'upd_effective_end_date';
264   l_object_version_number number;
265 --
266 Begin
267   hr_utility.set_location('Entering:'||l_proc, 5);
268   --
269   -- Because we are updating a row we must get the next object
270   -- version number.
271   --
272   l_object_version_number :=
273     dt_api.get_object_version_number
274 	(p_base_table_name	=> 'ben_ler_chg_dpnt_cvg_ctfn_f',
275 	 p_base_key_column	=> 'ler_chg_dpnt_cvg_ctfn_id',
276 	 p_base_key_value	=> p_base_key_value);
277   --
278   hr_utility.set_location(l_proc, 10);
282   -- end date to the specified new effective end date.
279   g_api_dml := true;  -- Set the api dml status
280   --
281   -- Update the specified datetrack row setting the effective
283   --
284   update  ben_ler_chg_dpnt_cvg_ctfn_f t
285   set	  t.effective_end_date	  = p_new_effective_end_date,
286 	  t.object_version_number = l_object_version_number
287   where	  t.ler_chg_dpnt_cvg_ctfn_id	  = p_base_key_value
288   and	  p_effective_date
289   between t.effective_start_date and t.effective_end_date;
290   --
291   g_api_dml := false;   -- Unset the api dml status
292   p_object_version_number := l_object_version_number;
293   hr_utility.set_location(' Leaving:'||l_proc, 15);
294 --
295 Exception
296   When Others Then
297     g_api_dml := false;   -- Unset the api dml status
298     Raise;
299 End upd_effective_end_date;
300 --
301 -- ----------------------------------------------------------------------------
302 -- |---------------------------------< lck >----------------------------------|
303 -- ----------------------------------------------------------------------------
304 Procedure lck
305 	(p_effective_date	 in  date,
306 	 p_datetrack_mode	 in  varchar2,
307 	 p_ler_chg_dpnt_cvg_ctfn_id	 in  number,
308 	 p_object_version_number in  number,
309 	 p_validation_start_date out nocopy date,
310 	 p_validation_end_date	 out nocopy date) is
311 --
312   l_proc		  varchar2(72) := g_package||'lck';
313   l_validation_start_date date;
314   l_validation_end_date	  date;
315   l_object_invalid 	  exception;
316   l_argument		  varchar2(30);
317   --
318   -- Cursor C_Sel1 selects the current locked row as of session date
319   -- ensuring that the object version numbers match.
320   --
321   Cursor C_Sel1 is
322     select
323 	ler_chg_dpnt_cvg_ctfn_id,
324 	effective_start_date,
325 	effective_end_date,
326 	dpnt_cvg_ctfn_typ_cd,
327 	rlshp_typ_cd,
328 	ctfn_rqd_when_rl,
329 	lack_ctfn_sspnd_enrt_flag,
330 	rqd_flag,
331 	ler_chg_dpnt_cvg_id,
332 	business_group_id,
333 	lcc_attribute_category,
334 	lcc_attribute1,
335 	lcc_attribute2,
336 	lcc_attribute3,
337 	lcc_attribute4,
338 	lcc_attribute5,
339 	lcc_attribute6,
340 	lcc_attribute7,
341 	lcc_attribute8,
342 	lcc_attribute9,
343 	lcc_attribute10,
344 	lcc_attribute11,
345 	lcc_attribute12,
346 	lcc_attribute13,
347 	lcc_attribute14,
348 	lcc_attribute15,
349 	lcc_attribute16,
350 	lcc_attribute17,
351 	lcc_attribute18,
352 	lcc_attribute19,
353 	lcc_attribute20,
354 	lcc_attribute21,
355 	lcc_attribute22,
356 	lcc_attribute23,
357 	lcc_attribute24,
358 	lcc_attribute25,
359 	lcc_attribute26,
360 	lcc_attribute27,
361 	lcc_attribute28,
362 	lcc_attribute29,
363 	lcc_attribute30,
364 	object_version_number
365     from    ben_ler_chg_dpnt_cvg_ctfn_f
366     where   ler_chg_dpnt_cvg_ctfn_id         = p_ler_chg_dpnt_cvg_ctfn_id
367     and	    p_effective_date
368     between effective_start_date and effective_end_date
369     for update nowait;
370   --
371   --
372   --
373 Begin
374   hr_utility.set_location('Entering:'||l_proc, 5);
375   --
376   -- Ensure that all the mandatory arguments are not null
377   --
378   hr_api.mandatory_arg_error(p_api_name       => l_proc,
379                              p_argument       => 'effective_date',
380                              p_argument_value => p_effective_date);
381   --
382   hr_api.mandatory_arg_error(p_api_name       => l_proc,
383                              p_argument       => 'datetrack_mode',
384                              p_argument_value => p_datetrack_mode);
385   --
386   hr_api.mandatory_arg_error(p_api_name       => l_proc,
387                              p_argument       => 'ler_chg_dpnt_cvg_ctfn_id',
388                              p_argument_value => p_ler_chg_dpnt_cvg_ctfn_id);
389   --
390   hr_api.mandatory_arg_error(p_api_name       => l_proc,
391                              p_argument       => 'object_version_number',
392                              p_argument_value => p_object_version_number);
393   --
394   -- Check to ensure the datetrack mode is not INSERT.
395   --
396   If (p_datetrack_mode <> 'INSERT') then
397     --
398     -- We must select and lock the current row.
399     --
400     Open  C_Sel1;
401     Fetch C_Sel1 Into g_old_rec;
402     If C_Sel1%notfound then
403       Close C_Sel1;
404       --
405       -- The primary key is invalid therefore we must error
406       --
407       fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
408       fnd_message.raise_error;
409     End If;
410     Close C_Sel1;
411     If (p_object_version_number <> g_old_rec.object_version_number) Then
412         fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
413         fnd_message.raise_error;
414       End If;
415     hr_utility.set_location(l_proc, 15);
416     --
417     --
418     -- Validate the datetrack mode mode getting the validation start
419     -- and end dates for the specified datetrack operation.
420     --
421     dt_api.validate_dt_mode
422 	(p_effective_date	   => p_effective_date,
423 	 p_datetrack_mode	   => p_datetrack_mode,
424 	 p_base_table_name	   => 'ben_ler_chg_dpnt_cvg_ctfn_f',
425 	 p_base_key_column	   => 'ler_chg_dpnt_cvg_ctfn_id',
426 	 p_base_key_value 	   => p_ler_chg_dpnt_cvg_ctfn_id,
427 	 p_parent_table_name1      => 'ben_ler_chg_dpnt_cvg_f',
428 	 p_parent_key_column1      => 'ler_chg_dpnt_cvg_id',
429 	 p_parent_key_value1       => g_old_rec.ler_chg_dpnt_cvg_id,
430          p_enforce_foreign_locking => true,
434     --
431 	 p_validation_start_date   => l_validation_start_date,
432  	 p_validation_end_date	   => l_validation_end_date);
433   Else
435     -- We are doing a datetrack 'INSERT' which is illegal within this
436     -- procedure therefore we must error (note: to lck on insert the
437     -- private procedure ins_lck should be called).
438     --
439     fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
440     fnd_message.set_token('PROCEDURE', l_proc);
441     fnd_message.set_token('STEP','20');
442     fnd_message.raise_error;
443   End If;
444   --
445   -- Set the validation start and end date OUT arguments
446   --
447   p_validation_start_date := l_validation_start_date;
448   p_validation_end_date   := l_validation_end_date;
449   --
450   hr_utility.set_location(' Leaving:'||l_proc, 30);
451 --
452 -- We need to trap the ORA LOCK exception
453 --
454 Exception
455   When HR_Api.Object_Locked then
456     --
457     -- The object is locked therefore we need to supply a meaningful
458     -- error message.
459     --
460     fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
461     fnd_message.set_token('TABLE_NAME', 'ben_ler_chg_dpnt_cvg_ctfn_f');
462     fnd_message.raise_error;
463   When l_object_invalid then
464     --
465     -- The object doesn't exist or is invalid
466     --
467     fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
468     fnd_message.set_token('TABLE_NAME', 'ben_ler_chg_dpnt_cvg_ctfn_f');
469     fnd_message.raise_error;
470 End lck;
471 --
472 -- ----------------------------------------------------------------------------
473 -- |-----------------------------< convert_args >-----------------------------|
474 -- ----------------------------------------------------------------------------
475 Function convert_args
476 	(
477 	p_ler_chg_dpnt_cvg_ctfn_id      in number,
478 	p_effective_start_date          in date,
479 	p_effective_end_date            in date,
480 	p_dpnt_cvg_ctfn_typ_cd          in varchar2,
481         p_rlshp_typ_cd                    in varchar2,
482         p_ctfn_rqd_when_rl                in number,
483         p_lack_ctfn_sspnd_enrt_flag       in varchar2,
484 	p_rqd_flag                        in varchar2,
485 	p_ler_chg_dpnt_cvg_id           in number,
486 	p_business_group_id             in number,
487 	p_lcc_attribute_category        in varchar2,
488 	p_lcc_attribute1                in varchar2,
489 	p_lcc_attribute2                in varchar2,
490 	p_lcc_attribute3                in varchar2,
491 	p_lcc_attribute4                in varchar2,
492 	p_lcc_attribute5                in varchar2,
493 	p_lcc_attribute6                in varchar2,
494 	p_lcc_attribute7                in varchar2,
495 	p_lcc_attribute8                in varchar2,
496 	p_lcc_attribute9                in varchar2,
497 	p_lcc_attribute10               in varchar2,
498 	p_lcc_attribute11               in varchar2,
499 	p_lcc_attribute12               in varchar2,
500 	p_lcc_attribute13               in varchar2,
501 	p_lcc_attribute14               in varchar2,
502 	p_lcc_attribute15               in varchar2,
503 	p_lcc_attribute16               in varchar2,
504 	p_lcc_attribute17               in varchar2,
505 	p_lcc_attribute18               in varchar2,
506 	p_lcc_attribute19               in varchar2,
507 	p_lcc_attribute20               in varchar2,
508 	p_lcc_attribute21               in varchar2,
509 	p_lcc_attribute22               in varchar2,
510 	p_lcc_attribute23               in varchar2,
511 	p_lcc_attribute24               in varchar2,
512 	p_lcc_attribute25               in varchar2,
513 	p_lcc_attribute26               in varchar2,
514 	p_lcc_attribute27               in varchar2,
515 	p_lcc_attribute28               in varchar2,
516 	p_lcc_attribute29               in varchar2,
517 	p_lcc_attribute30               in varchar2,
518 	p_object_version_number         in number
519 	)
520 	Return g_rec_type is
521 --
522   l_rec	  g_rec_type;
523   l_proc  varchar2(72) := g_package||'convert_args';
524 --
525 Begin
526   --
527   hr_utility.set_location('Entering:'||l_proc, 5);
528   --
529   -- Convert arguments into local l_rec structure.
530   --
531   l_rec.ler_chg_dpnt_cvg_ctfn_id         := p_ler_chg_dpnt_cvg_ctfn_id;
532   l_rec.effective_start_date             := p_effective_start_date;
533   l_rec.effective_end_date               := p_effective_end_date;
534   l_rec.dpnt_cvg_ctfn_typ_cd             := p_dpnt_cvg_ctfn_typ_cd;
535   l_rec.rlshp_typ_cd                     := p_rlshp_typ_cd;
536   l_rec.ctfn_rqd_when_rl                 := p_ctfn_rqd_when_rl;
537   l_rec.lack_ctfn_sspnd_enrt_flag        := p_lack_ctfn_sspnd_enrt_flag;
538   l_rec.rqd_flag                         := p_rqd_flag;
539   l_rec.ler_chg_dpnt_cvg_id              := p_ler_chg_dpnt_cvg_id;
540   l_rec.business_group_id                := p_business_group_id;
541   l_rec.lcc_attribute_category           := p_lcc_attribute_category;
542   l_rec.lcc_attribute1                   := p_lcc_attribute1;
543   l_rec.lcc_attribute2                   := p_lcc_attribute2;
544   l_rec.lcc_attribute3                   := p_lcc_attribute3;
545   l_rec.lcc_attribute4                   := p_lcc_attribute4;
546   l_rec.lcc_attribute5                   := p_lcc_attribute5;
547   l_rec.lcc_attribute6                   := p_lcc_attribute6;
548   l_rec.lcc_attribute7                   := p_lcc_attribute7;
549   l_rec.lcc_attribute8                   := p_lcc_attribute8;
550   l_rec.lcc_attribute9                   := p_lcc_attribute9;
551   l_rec.lcc_attribute10                  := p_lcc_attribute10;
552   l_rec.lcc_attribute11                  := p_lcc_attribute11;
553   l_rec.lcc_attribute12                  := p_lcc_attribute12;
557   l_rec.lcc_attribute16                  := p_lcc_attribute16;
554   l_rec.lcc_attribute13                  := p_lcc_attribute13;
555   l_rec.lcc_attribute14                  := p_lcc_attribute14;
556   l_rec.lcc_attribute15                  := p_lcc_attribute15;
558   l_rec.lcc_attribute17                  := p_lcc_attribute17;
559   l_rec.lcc_attribute18                  := p_lcc_attribute18;
560   l_rec.lcc_attribute19                  := p_lcc_attribute19;
561   l_rec.lcc_attribute20                  := p_lcc_attribute20;
562   l_rec.lcc_attribute21                  := p_lcc_attribute21;
563   l_rec.lcc_attribute22                  := p_lcc_attribute22;
564   l_rec.lcc_attribute23                  := p_lcc_attribute23;
565   l_rec.lcc_attribute24                  := p_lcc_attribute24;
566   l_rec.lcc_attribute25                  := p_lcc_attribute25;
567   l_rec.lcc_attribute26                  := p_lcc_attribute26;
568   l_rec.lcc_attribute27                  := p_lcc_attribute27;
569   l_rec.lcc_attribute28                  := p_lcc_attribute28;
570   l_rec.lcc_attribute29                  := p_lcc_attribute29;
571   l_rec.lcc_attribute30                  := p_lcc_attribute30;
572   l_rec.object_version_number            := p_object_version_number;
573   --
574   -- Return the plsql record structure.
575   --
576   hr_utility.set_location(' Leaving:'||l_proc, 10);
577   Return(l_rec);
578 --
579 End convert_args;
580 --
581 end ben_lcc_shd;