[Home] [Help]
PACKAGE BODY: APPS.BEN_LPR_SHD
Source
1 Package Body ben_lpr_shd as
2 /* $Header: belprrhi.pkb 115.11 2004/01/18 23:15:35 abparekh ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_lpr_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_PLIP_ENRT_FK2') 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_PLIP_EN_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_ler_chg_plip_enrt_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_plip_enrt_id,
71 effective_start_date,
72 effective_end_date,
73 business_group_id,
74 auto_enrt_mthd_rl,
75 plip_id,
76 ler_id,
77 tco_chg_enrt_cd,
78 crnt_enrt_prclds_chg_flag,
79 dflt_flag,
80 dflt_enrt_rl,
81 enrt_rl,
82 dflt_enrt_cd,
83 enrt_mthd_cd,
84 stl_elig_cant_chg_flag,
85 enrt_cd,
86 lpr_attribute_category,
87 lpr_attribute1,
88 lpr_attribute2,
89 lpr_attribute3,
90 lpr_attribute4,
91 lpr_attribute5,
92 lpr_attribute6,
93 lpr_attribute7,
94 lpr_attribute8,
95 lpr_attribute9,
96 lpr_attribute10,
97 lpr_attribute11,
98 lpr_attribute12,
99 lpr_attribute13,
100 lpr_attribute14,
101 lpr_attribute15,
102 lpr_attribute16,
103 lpr_attribute17,
104 lpr_attribute18,
105 lpr_attribute19,
106 lpr_attribute20,
107 lpr_attribute21,
108 lpr_attribute22,
109 lpr_attribute23,
110 lpr_attribute24,
111 lpr_attribute25,
112 lpr_attribute26,
113 lpr_attribute27,
114 lpr_attribute28,
115 lpr_attribute29,
116 lpr_attribute30,
117 object_version_number
118 from ben_ler_chg_plip_enrt_f
119 where ler_chg_plip_enrt_id = p_ler_chg_plip_enrt_id
120 and p_effective_date
121 between effective_start_date and effective_end_date;
122 --
123 l_proc varchar2(72) := g_package||'api_updating';
124 l_fct_ret boolean;
125 --
126 Begin
127 hr_utility.set_location('Entering:'||l_proc, 5);
128 --
129 If (p_effective_date is null or
130 p_ler_chg_plip_enrt_id is null or
131 p_object_version_number is null) Then
132 --
133 -- One of the primary key arguments is null therefore we must
134 -- set the returning function value to false
135 --
136 l_fct_ret := false;
137 Else
138 If (p_ler_chg_plip_enrt_id = g_old_rec.ler_chg_plip_enrt_id and
139 p_object_version_number = g_old_rec.object_version_number) Then
140 hr_utility.set_location(l_proc, 10);
141 --
142 -- The g_old_rec is current therefore we must
143 -- set the returning function to true
144 --
145 l_fct_ret := true;
146 Else
147 --
148 -- Select the current row
149 --
150 Open C_Sel1;
151 Fetch C_Sel1 Into g_old_rec;
152 If C_Sel1%notfound Then
153 Close C_Sel1;
154 --
155 -- The primary key is invalid therefore we must error
156 --
157 fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
158 fnd_message.raise_error;
159 End If;
160 Close C_Sel1;
161 If (p_object_version_number <> g_old_rec.object_version_number) Then
162 fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
163 fnd_message.raise_error;
164 End If;
165 hr_utility.set_location(l_proc, 15);
166 l_fct_ret := true;
167 End If;
168 End If;
169 hr_utility.set_location(' Leaving:'||l_proc, 20);
170 Return (l_fct_ret);
171 --
172 End api_updating;
173 --
174 -- ----------------------------------------------------------------------------
175 -- |--------------------------< find_dt_del_modes >---------------------------|
176 -- ----------------------------------------------------------------------------
177 Procedure find_dt_del_modes
178 (p_effective_date in date,
179 p_base_key_value in number,
180 p_zap out nocopy boolean,
181 p_delete out nocopy boolean,
182 p_future_change out nocopy boolean,
183 p_delete_next_change out nocopy boolean) is
184 --
185 l_proc varchar2(72) := g_package||'find_dt_del_modes';
186 --
187 l_parent_key_value1 number;
188 l_parent_key_value2 number;
189 --
190 Cursor C_Sel1 Is
191 select t.plip_id,
192 t.ler_id
193 from ben_ler_chg_plip_enrt_f t
194 where t.ler_chg_plip_enrt_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 If C_Sel1%notfound then
204 Close C_Sel1;
205 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
206 fnd_message.set_token('PROCEDURE', l_proc);
207 fnd_message.set_token('STEP','10');
208 fnd_message.raise_error;
209 End If;
210 Close C_Sel1;
211 --
212 -- Call the corresponding datetrack api
213 --
214 dt_api.find_dt_del_modes
215 (p_effective_date => p_effective_date,
216 p_base_table_name => 'ben_ler_chg_plip_enrt_f',
217 p_base_key_column => 'ler_chg_plip_enrt_id',
218 p_base_key_value => p_base_key_value,
219 p_parent_table_name1 => 'ben_plip_f',
220 p_parent_key_column1 => 'plip_id',
221 p_parent_key_value1 => l_parent_key_value1,
222 p_parent_table_name2 => 'ben_ler_f',
223 p_parent_key_column2 => 'ler_id',
224 p_parent_key_value2 => l_parent_key_value2,
225 p_zap => p_zap,
226 p_delete => p_delete,
227 p_future_change => p_future_change,
228 p_delete_next_change => p_delete_next_change);
229 --
230 hr_utility.set_location(' Leaving:'||l_proc, 10);
231 End find_dt_del_modes;
232 --
233 -- ----------------------------------------------------------------------------
234 -- |--------------------------< find_dt_upd_modes >---------------------------|
235 -- ----------------------------------------------------------------------------
236 Procedure find_dt_upd_modes
237 (p_effective_date in date,
238 p_base_key_value in number,
239 p_correction out nocopy boolean,
240 p_update out nocopy boolean,
241 p_update_override out nocopy boolean,
242 p_update_change_insert out nocopy boolean) is
243 --
244 l_proc varchar2(72) := g_package||'find_dt_upd_modes';
245 --
246 Begin
247 hr_utility.set_location('Entering:'||l_proc, 5);
248 --
249 -- Call the corresponding datetrack api
250 --
251 dt_api.find_dt_upd_modes
252 (p_effective_date => p_effective_date,
253 p_base_table_name => 'ben_ler_chg_plip_enrt_f',
254 p_base_key_column => 'ler_chg_plip_enrt_id',
255 p_base_key_value => p_base_key_value,
256 p_correction => p_correction,
257 p_update => p_update,
258 p_update_override => p_update_override,
259 p_update_change_insert => p_update_change_insert);
260 --
261 hr_utility.set_location(' Leaving:'||l_proc, 10);
262 End find_dt_upd_modes;
263 --
264 -- ----------------------------------------------------------------------------
265 -- |------------------------< upd_effective_end_date >------------------------|
266 -- ----------------------------------------------------------------------------
267 Procedure upd_effective_end_date
268 (p_effective_date in date,
269 p_base_key_value in number,
270 p_new_effective_end_date in date,
271 p_validation_start_date in date,
272 p_validation_end_date in date,
273 p_object_version_number out nocopy number) is
274 --
275 l_proc varchar2(72) := g_package||'upd_effective_end_date';
276 l_object_version_number number;
277 --
278 Begin
279 hr_utility.set_location('Entering:'||l_proc, 5);
280 --
281 -- Because we are updating a row we must get the next object
282 -- version number.
283 --
284 l_object_version_number :=
285 dt_api.get_object_version_number
286 (p_base_table_name => 'ben_ler_chg_plip_enrt_f',
287 p_base_key_column => 'ler_chg_plip_enrt_id',
288 p_base_key_value => p_base_key_value);
289 --
290 hr_utility.set_location(l_proc, 10);
291 g_api_dml := true; -- Set the api dml status
292 --
293 -- Update the specified datetrack row setting the effective
294 -- end date to the specified new effective end date.
295 --
296 update ben_ler_chg_plip_enrt_f t
297 set t.effective_end_date = p_new_effective_end_date,
298 t.object_version_number = l_object_version_number
299 where t.ler_chg_plip_enrt_id = p_base_key_value
300 and p_effective_date
301 between t.effective_start_date and t.effective_end_date;
302 --
303 g_api_dml := false; -- Unset the api dml status
304 p_object_version_number := l_object_version_number;
305 hr_utility.set_location(' Leaving:'||l_proc, 15);
306 --
307 Exception
308 When Others Then
309 g_api_dml := false; -- Unset the api dml status
310 Raise;
311 End upd_effective_end_date;
312 --
313 -- ----------------------------------------------------------------------------
314 -- |---------------------------------< lck >----------------------------------|
315 -- ----------------------------------------------------------------------------
316 Procedure lck
317 (p_effective_date in date,
318 p_datetrack_mode in varchar2,
319 p_ler_chg_plip_enrt_id in number,
320 p_object_version_number in number,
321 p_validation_start_date out nocopy date,
322 p_validation_end_date out nocopy date) is
323 --
324 l_proc varchar2(72) := g_package||'lck';
325 l_validation_start_date date;
326 l_validation_end_date date;
327 l_object_invalid exception;
328 l_argument varchar2(30);
329 --
330 -- Cursor C_Sel1 selects the current locked row as of session date
331 -- ensuring that the object version numbers match.
332 --
333 Cursor C_Sel1 is
334 select
335 ler_chg_plip_enrt_id,
336 effective_start_date,
337 effective_end_date,
338 business_group_id,
339 auto_enrt_mthd_rl,
340 plip_id,
341 ler_id,
342 tco_chg_enrt_cd,
343 crnt_enrt_prclds_chg_flag,
344 dflt_flag,
345 dflt_enrt_rl,
346 enrt_rl,
347 dflt_enrt_cd,
348 enrt_mthd_cd,
349 stl_elig_cant_chg_flag,
350 enrt_cd,
351 lpr_attribute_category,
352 lpr_attribute1,
353 lpr_attribute2,
354 lpr_attribute3,
355 lpr_attribute4,
356 lpr_attribute5,
357 lpr_attribute6,
358 lpr_attribute7,
359 lpr_attribute8,
360 lpr_attribute9,
361 lpr_attribute10,
362 lpr_attribute11,
363 lpr_attribute12,
364 lpr_attribute13,
365 lpr_attribute14,
366 lpr_attribute15,
367 lpr_attribute16,
368 lpr_attribute17,
369 lpr_attribute18,
370 lpr_attribute19,
371 lpr_attribute20,
372 lpr_attribute21,
373 lpr_attribute22,
374 lpr_attribute23,
375 lpr_attribute24,
376 lpr_attribute25,
377 lpr_attribute26,
378 lpr_attribute27,
379 lpr_attribute28,
380 lpr_attribute29,
381 lpr_attribute30,
382 object_version_number
383 from ben_ler_chg_plip_enrt_f
384 where ler_chg_plip_enrt_id = p_ler_chg_plip_enrt_id
385 and p_effective_date
386 between effective_start_date and effective_end_date
387 for update nowait;
388 --
389 --
390 --
391 Begin
392 hr_utility.set_location('Entering:'||l_proc, 5);
393 --
394 -- Ensure that all the mandatory arguments are not null
395 --
396 hr_api.mandatory_arg_error(p_api_name => l_proc,
397 p_argument => 'effective_date',
398 p_argument_value => p_effective_date);
399 --
400 hr_api.mandatory_arg_error(p_api_name => l_proc,
401 p_argument => 'datetrack_mode',
402 p_argument_value => p_datetrack_mode);
403 --
404 hr_api.mandatory_arg_error(p_api_name => l_proc,
405 p_argument => 'ler_chg_plip_enrt_id',
406 p_argument_value => p_ler_chg_plip_enrt_id);
407 --
408 hr_api.mandatory_arg_error(p_api_name => l_proc,
409 p_argument => 'object_version_number',
410 p_argument_value => p_object_version_number);
411 --
412 -- Check to ensure the datetrack mode is not INSERT.
413 --
414 If (p_datetrack_mode <> 'INSERT') then
415 --
416 -- We must select and lock the current row.
417 --
418 Open C_Sel1;
419 Fetch C_Sel1 Into g_old_rec;
420 If C_Sel1%notfound then
421 Close C_Sel1;
422 --
423 -- The primary key is invalid therefore we must error
424 --
425 fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
426 fnd_message.raise_error;
427 End If;
428 Close C_Sel1;
429 If (p_object_version_number <> g_old_rec.object_version_number) Then
430 fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
431 fnd_message.raise_error;
432 End If;
433 hr_utility.set_location(l_proc, 15);
434 --
435 --
436 -- Validate the datetrack mode mode getting the validation start
437 -- and end dates for the specified datetrack operation.
438 --
442 p_base_table_name => 'ben_ler_chg_plip_enrt_f',
439 dt_api.validate_dt_mode
440 (p_effective_date => p_effective_date,
441 p_datetrack_mode => p_datetrack_mode,
443 p_base_key_column => 'ler_chg_plip_enrt_id',
444 p_base_key_value => p_ler_chg_plip_enrt_id,
445 p_parent_table_name1 => 'ben_plip_f',
446 p_parent_key_column1 => 'plip_id',
447 p_parent_key_value1 => g_old_rec.plip_id,
448 p_parent_table_name2 => 'ben_ler_f',
449 p_parent_key_column2 => 'ler_id',
450 p_parent_key_value2 => g_old_rec.ler_id,
451 p_child_table_name1 => 'ben_ler_chg_plip_enrt_rl_f',
452 p_child_key_column1 => 'ler_chg_plip_enrt_rl_id',
453 p_enforce_foreign_locking => true,
454 p_validation_start_date => l_validation_start_date,
455 p_validation_end_date => l_validation_end_date);
456 Else
457 --
458 -- We are doing a datetrack 'INSERT' which is illegal within this
459 -- procedure therefore we must error (note: to lck on insert the
460 -- private procedure ins_lck should be called).
461 --
462 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
463 fnd_message.set_token('PROCEDURE', l_proc);
464 fnd_message.set_token('STEP','20');
465 fnd_message.raise_error;
466 End If;
467 --
468 -- Set the validation start and end date OUT arguments
469 --
470 p_validation_start_date := l_validation_start_date;
471 p_validation_end_date := l_validation_end_date;
472 --
473 hr_utility.set_location(' Leaving:'||l_proc, 30);
474 --
475 -- We need to trap the ORA LOCK exception
476 --
477 Exception
478 When HR_Api.Object_Locked then
479 --
480 -- The object is locked therefore we need to supply a meaningful
481 -- error message.
482 --
483 fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
484 fnd_message.set_token('TABLE_NAME', 'ben_ler_chg_plip_enrt_f');
485 fnd_message.raise_error;
486 When l_object_invalid then
487 --
488 -- The object doesn't exist or is invalid
489 --
490 fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
491 fnd_message.set_token('TABLE_NAME', 'ben_ler_chg_plip_enrt_f');
492 fnd_message.raise_error;
493 End lck;
494 --
495 -- ----------------------------------------------------------------------------
496 -- |-----------------------------< convert_args >-----------------------------|
497 -- ----------------------------------------------------------------------------
498 Function convert_args
499 (
500 p_ler_chg_plip_enrt_id in number,
501 p_effective_start_date in date,
502 p_effective_end_date in date,
503 p_business_group_id in number,
504 p_auto_enrt_mthd_rl in number,
505 p_plip_id in number,
506 p_ler_id in number,
507 p_tco_chg_enrt_cd in varchar2,
508 p_crnt_enrt_prclds_chg_flag in varchar2,
509 p_dflt_flag in varchar2,
510 p_dflt_enrt_rl in number,
511 p_enrt_rl in number,
512 p_dflt_enrt_cd in varchar2,
513 p_enrt_mthd_cd in varchar2,
514 p_stl_elig_cant_chg_flag in varchar2,
515 p_enrt_cd in varchar2,
516 p_lpr_attribute_category in varchar2,
517 p_lpr_attribute1 in varchar2,
518 p_lpr_attribute2 in varchar2,
519 p_lpr_attribute3 in varchar2,
520 p_lpr_attribute4 in varchar2,
521 p_lpr_attribute5 in varchar2,
522 p_lpr_attribute6 in varchar2,
523 p_lpr_attribute7 in varchar2,
524 p_lpr_attribute8 in varchar2,
525 p_lpr_attribute9 in varchar2,
526 p_lpr_attribute10 in varchar2,
527 p_lpr_attribute11 in varchar2,
528 p_lpr_attribute12 in varchar2,
529 p_lpr_attribute13 in varchar2,
530 p_lpr_attribute14 in varchar2,
531 p_lpr_attribute15 in varchar2,
532 p_lpr_attribute16 in varchar2,
533 p_lpr_attribute17 in varchar2,
534 p_lpr_attribute18 in varchar2,
535 p_lpr_attribute19 in varchar2,
536 p_lpr_attribute20 in varchar2,
537 p_lpr_attribute21 in varchar2,
538 p_lpr_attribute22 in varchar2,
539 p_lpr_attribute23 in varchar2,
540 p_lpr_attribute24 in varchar2,
541 p_lpr_attribute25 in varchar2,
542 p_lpr_attribute26 in varchar2,
543 p_lpr_attribute27 in varchar2,
544 p_lpr_attribute28 in varchar2,
545 p_lpr_attribute29 in varchar2,
546 p_lpr_attribute30 in varchar2,
547 p_object_version_number in number
548 )
549 Return g_rec_type is
550 --
551 l_rec g_rec_type;
552 l_proc varchar2(72) := g_package||'convert_args';
553 --
554 Begin
555 --
556 hr_utility.set_location('Entering:'||l_proc, 5);
557 --
558 -- Convert arguments into local l_rec structure.
559 --
560 l_rec.ler_chg_plip_enrt_id := p_ler_chg_plip_enrt_id;
561 l_rec.effective_start_date := p_effective_start_date;
562 l_rec.effective_end_date := p_effective_end_date;
563 l_rec.business_group_id := p_business_group_id;
564 l_rec.auto_enrt_mthd_rl := p_auto_enrt_mthd_rl;
565 l_rec.plip_id := p_plip_id;
566 l_rec.ler_id := p_ler_id;
567 l_rec.tco_chg_enrt_cd := p_tco_chg_enrt_cd;
568 l_rec.crnt_enrt_prclds_chg_flag := p_crnt_enrt_prclds_chg_flag;
569 l_rec.dflt_flag := p_dflt_flag;
570 l_rec.dflt_enrt_rl := p_dflt_enrt_rl;
571 l_rec.enrt_rl := p_enrt_rl;
572 l_rec.dflt_enrt_cd := p_dflt_enrt_cd;
573 l_rec.enrt_mthd_cd := p_enrt_mthd_cd;
574 l_rec.stl_elig_cant_chg_flag := p_stl_elig_cant_chg_flag;
575 l_rec.enrt_cd := p_enrt_cd;
576 l_rec.lpr_attribute_category := p_lpr_attribute_category;
577 l_rec.lpr_attribute1 := p_lpr_attribute1;
578 l_rec.lpr_attribute2 := p_lpr_attribute2;
579 l_rec.lpr_attribute3 := p_lpr_attribute3;
580 l_rec.lpr_attribute4 := p_lpr_attribute4;
581 l_rec.lpr_attribute5 := p_lpr_attribute5;
582 l_rec.lpr_attribute6 := p_lpr_attribute6;
583 l_rec.lpr_attribute7 := p_lpr_attribute7;
584 l_rec.lpr_attribute8 := p_lpr_attribute8;
585 l_rec.lpr_attribute9 := p_lpr_attribute9;
586 l_rec.lpr_attribute10 := p_lpr_attribute10;
587 l_rec.lpr_attribute11 := p_lpr_attribute11;
588 l_rec.lpr_attribute12 := p_lpr_attribute12;
589 l_rec.lpr_attribute13 := p_lpr_attribute13;
590 l_rec.lpr_attribute14 := p_lpr_attribute14;
591 l_rec.lpr_attribute15 := p_lpr_attribute15;
592 l_rec.lpr_attribute16 := p_lpr_attribute16;
593 l_rec.lpr_attribute17 := p_lpr_attribute17;
594 l_rec.lpr_attribute18 := p_lpr_attribute18;
595 l_rec.lpr_attribute19 := p_lpr_attribute19;
596 l_rec.lpr_attribute20 := p_lpr_attribute20;
597 l_rec.lpr_attribute21 := p_lpr_attribute21;
598 l_rec.lpr_attribute22 := p_lpr_attribute22;
599 l_rec.lpr_attribute23 := p_lpr_attribute23;
600 l_rec.lpr_attribute24 := p_lpr_attribute24;
601 l_rec.lpr_attribute25 := p_lpr_attribute25;
602 l_rec.lpr_attribute26 := p_lpr_attribute26;
603 l_rec.lpr_attribute27 := p_lpr_attribute27;
604 l_rec.lpr_attribute28 := p_lpr_attribute28;
605 l_rec.lpr_attribute29 := p_lpr_attribute29;
606 l_rec.lpr_attribute30 := p_lpr_attribute30;
607 l_rec.object_version_number := p_object_version_number;
608 --
609 -- Return the plsql record structure.
610 --
611 hr_utility.set_location(' Leaving:'||l_proc, 10);
612 Return(l_rec);
613 --
614 End convert_args;
615 --
616 end ben_lpr_shd;