[Home] [Help]
PACKAGE BODY: APPS.BEN_PCD_SHD
Source
1 Package Body ben_pcd_shd as
2 /* $Header: bepcdrhi.pkb 115.9 2002/12/16 11:57:29 vsethi ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_pcd_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_PER_CM_PRVDD_F_FK1') Then
37 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
38 fnd_message.set_token('PROCEDURE', l_proc);
39 fnd_message.set_token('STEP','5');
40 fnd_message.raise_error;
41 ElsIf (p_constraint_name = 'BEN_PER_CM_PRVDD_F_FK2') 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_PER_CM_PRVDD_F_PK') 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 Else
52 fnd_message.set_name('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
53 fnd_message.set_token('PROCEDURE', l_proc);
54 fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
55 fnd_message.raise_error;
56 End If;
57 --
58 hr_utility.set_location(' Leaving:'||l_proc, 10);
59 End constraint_error;
60 --
61 -- ----------------------------------------------------------------------------
62 -- |-----------------------------< api_updating >-----------------------------|
63 -- ----------------------------------------------------------------------------
64 Function api_updating
65 (p_effective_date in date,
66 p_per_cm_prvdd_id in number,
67 p_object_version_number in number
68 ) Return Boolean Is
69 --
70 --
71 -- Cursor selects the 'current' row from the HR Schema
72 --
73 Cursor C_Sel1 is
74 select
75 per_cm_prvdd_id,
76 effective_start_date,
77 effective_end_date,
78 rqstd_flag,
79 per_cm_prvdd_stat_cd,
80 cm_dlvry_med_cd,
81 cm_dlvry_mthd_cd,
82 sent_dt,
83 instnc_num,
84 to_be_sent_dt,
85 dlvry_instn_txt,
86 inspn_rqd_flag,
87 resnd_rsn_cd,
88 resnd_cmnt_txt,
89 per_cm_id,
90 address_id,
91 business_group_id,
92 pcd_attribute_category,
93 pcd_attribute1,
94 pcd_attribute2,
95 pcd_attribute3,
96 pcd_attribute4,
97 pcd_attribute5,
98 pcd_attribute6,
99 pcd_attribute7,
100 pcd_attribute8,
101 pcd_attribute9,
102 pcd_attribute10,
103 pcd_attribute11,
104 pcd_attribute12,
105 pcd_attribute13,
106 pcd_attribute14,
107 pcd_attribute15,
108 pcd_attribute16,
109 pcd_attribute17,
110 pcd_attribute18,
111 pcd_attribute19,
112 pcd_attribute20,
113 pcd_attribute21,
114 pcd_attribute22,
115 pcd_attribute23,
116 pcd_attribute24,
117 pcd_attribute25,
118 pcd_attribute26,
119 pcd_attribute27,
120 pcd_attribute28,
121 pcd_attribute29,
122 pcd_attribute30,
123 request_id,
124 program_application_id,
125 program_id,
126 program_update_date,
127 object_version_number
128 from ben_per_cm_prvdd_f
129 where per_cm_prvdd_id = p_per_cm_prvdd_id
130 and p_effective_date
131 between effective_start_date and effective_end_date;
132 --
133 l_proc varchar2(72) := g_package||'api_updating';
134 l_fct_ret boolean;
135 --
136 Begin
137 hr_utility.set_location('Entering:'||l_proc, 5);
138 --
139 If (p_effective_date is null or
140 p_per_cm_prvdd_id is null or
141 p_object_version_number is null) Then
142 --
143 -- One of the primary key arguments is null therefore we must
144 -- set the returning function value to false
145 --
146 l_fct_ret := false;
147 Else
148 If (p_per_cm_prvdd_id = g_old_rec.per_cm_prvdd_id and
149 p_object_version_number = g_old_rec.object_version_number) Then
150 hr_utility.set_location(l_proc, 10);
151 --
152 -- The g_old_rec is current therefore we must
153 -- set the returning function to true
154 --
155 l_fct_ret := true;
156 Else
157 --
158 -- Select the current row
159 --
160 Open C_Sel1;
161 Fetch C_Sel1 Into g_old_rec;
162 If C_Sel1%notfound Then
163 Close C_Sel1;
164 --
165 -- The primary key is invalid therefore we must error
166 --
167 fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
168 fnd_message.raise_error;
169 End If;
170 Close C_Sel1;
171 If (p_object_version_number <> g_old_rec.object_version_number) Then
172 fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
173 fnd_message.raise_error;
174 End If;
175 hr_utility.set_location(l_proc, 15);
176 l_fct_ret := true;
177 End If;
178 End If;
179 hr_utility.set_location(' Leaving:'||l_proc, 20);
180 Return (l_fct_ret);
181 --
182 End api_updating;
183 --
184 -- ----------------------------------------------------------------------------
185 -- |--------------------------< find_dt_del_modes >---------------------------|
186 -- ----------------------------------------------------------------------------
187 Procedure find_dt_del_modes
188 (p_effective_date in date,
189 p_base_key_value in number,
190 p_zap out nocopy boolean,
191 p_delete out nocopy boolean,
192 p_future_change out nocopy boolean,
193 p_delete_next_change out nocopy boolean) is
194 --
195 l_proc varchar2(72) := g_package||'find_dt_del_modes';
196 --
197 l_parent_key_value1 number;
198 --
199 Cursor C_Sel1 Is
200 select t.per_cm_id
201 from ben_per_cm_prvdd_f t
202 where t.per_cm_prvdd_id = p_base_key_value
203 and p_effective_date
204 between t.effective_start_date and t.effective_end_date;
205 --
206 Begin
207 hr_utility.set_location('Entering:'||l_proc, 5);
208 Open C_Sel1;
209 Fetch C_Sel1 Into l_parent_key_value1;
210 If C_Sel1%notfound then
211 Close C_Sel1;
212 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
213 fnd_message.set_token('PROCEDURE', l_proc);
214 fnd_message.set_token('STEP','10');
215 fnd_message.raise_error;
216 End If;
217 Close C_Sel1;
218 --
219 -- Call the corresponding datetrack api
220 --
221 dt_api.find_dt_del_modes
222 (p_effective_date => p_effective_date,
223 p_base_table_name => 'ben_per_cm_prvdd_f',
224 p_base_key_column => 'per_cm_prvdd_id',
225 p_base_key_value => p_base_key_value,
226 p_parent_table_name1 => 'ben_per_cm_f',
227 p_parent_key_column1 => 'per_cm_id',
228 p_parent_key_value1 => l_parent_key_value1,
229 p_zap => p_zap,
230 p_delete => p_delete,
231 p_future_change => p_future_change,
232 p_delete_next_change => p_delete_next_change);
233 --
234 hr_utility.set_location(' Leaving:'||l_proc, 10);
235 End find_dt_del_modes;
236 --
237 -- ----------------------------------------------------------------------------
238 -- |--------------------------< find_dt_upd_modes >---------------------------|
239 -- ----------------------------------------------------------------------------
240 Procedure find_dt_upd_modes
241 (p_effective_date in date,
242 p_base_key_value in number,
243 p_correction out nocopy boolean,
244 p_update out nocopy boolean,
245 p_update_override out nocopy boolean,
246 p_update_change_insert out nocopy boolean) is
247 --
248 l_proc varchar2(72) := g_package||'find_dt_upd_modes';
249 --
250 Begin
251 hr_utility.set_location('Entering:'||l_proc, 5);
252 --
253 -- Call the corresponding datetrack api
254 --
255 dt_api.find_dt_upd_modes
256 (p_effective_date => p_effective_date,
257 p_base_table_name => 'ben_per_cm_prvdd_f',
258 p_base_key_column => 'per_cm_prvdd_id',
259 p_base_key_value => p_base_key_value,
260 p_correction => p_correction,
261 p_update => p_update,
262 p_update_override => p_update_override,
263 p_update_change_insert => p_update_change_insert);
264 --
265 hr_utility.set_location(' Leaving:'||l_proc, 10);
266 End find_dt_upd_modes;
267 --
268 -- ----------------------------------------------------------------------------
269 -- |------------------------< upd_effective_end_date >------------------------|
270 -- ----------------------------------------------------------------------------
271 Procedure upd_effective_end_date
272 (p_effective_date in date,
273 p_base_key_value in number,
274 p_new_effective_end_date in date,
275 p_validation_start_date in date,
276 p_validation_end_date in date,
277 p_object_version_number out nocopy number) is
278 --
279 l_proc varchar2(72) := g_package||'upd_effective_end_date';
280 l_object_version_number number;
281 --
282 Begin
283 hr_utility.set_location('Entering:'||l_proc, 5);
284 --
285 -- Because we are updating a row we must get the next object
286 -- version number.
287 --
288 l_object_version_number :=
289 dt_api.get_object_version_number
290 (p_base_table_name => 'ben_per_cm_prvdd_f',
291 p_base_key_column => 'per_cm_prvdd_id',
292 p_base_key_value => p_base_key_value);
293 --
294 hr_utility.set_location(l_proc, 10);
295 g_api_dml := true; -- Set the api dml status
296 --
297 -- Update the specified datetrack row setting the effective
298 -- end date to the specified new effective end date.
299 --
300 update ben_per_cm_prvdd_f t
301 set t.effective_end_date = p_new_effective_end_date,
302 t.object_version_number = l_object_version_number
303 where t.per_cm_prvdd_id = p_base_key_value
304 and p_effective_date
305 between t.effective_start_date and t.effective_end_date;
306 --
307 g_api_dml := false; -- Unset the api dml status
308 p_object_version_number := l_object_version_number;
309 hr_utility.set_location(' Leaving:'||l_proc, 15);
310 --
311 Exception
312 When Others Then
313 g_api_dml := false; -- Unset the api dml status
314 Raise;
315 End upd_effective_end_date;
316 --
317 -- ----------------------------------------------------------------------------
318 -- |---------------------------------< lck >----------------------------------|
319 -- ----------------------------------------------------------------------------
320 Procedure lck
321 (p_effective_date in date,
322 p_datetrack_mode in varchar2,
323 p_per_cm_prvdd_id in number,
324 p_object_version_number in number,
325 p_validation_start_date out nocopy date,
326 p_validation_end_date out nocopy date) is
327 --
328 l_proc varchar2(72) := g_package||'lck';
329 l_validation_start_date date;
330 l_validation_end_date date;
331 l_object_invalid exception;
332 l_argument varchar2(30);
333 --
334 -- Cursor C_Sel1 selects the current locked row as of session date
335 -- ensuring that the object version numbers match.
336 --
337 Cursor C_Sel1 is
338 select
339 per_cm_prvdd_id,
340 effective_start_date,
341 effective_end_date,
342 rqstd_flag,
343 per_cm_prvdd_stat_cd,
344 cm_dlvry_med_cd,
345 cm_dlvry_mthd_cd,
346 sent_dt,
347 instnc_num,
348 to_be_sent_dt,
349 dlvry_instn_txt,
350 inspn_rqd_flag,
351 resnd_rsn_cd,
352 resnd_cmnt_txt,
353 per_cm_id,
354 address_id,
355 business_group_id,
356 pcd_attribute_category,
357 pcd_attribute1,
358 pcd_attribute2,
359 pcd_attribute3,
360 pcd_attribute4,
361 pcd_attribute5,
362 pcd_attribute6,
363 pcd_attribute7,
364 pcd_attribute8,
365 pcd_attribute9,
366 pcd_attribute10,
367 pcd_attribute11,
368 pcd_attribute12,
369 pcd_attribute13,
370 pcd_attribute14,
371 pcd_attribute15,
372 pcd_attribute16,
373 pcd_attribute17,
374 pcd_attribute18,
375 pcd_attribute19,
376 pcd_attribute20,
377 pcd_attribute21,
378 pcd_attribute22,
379 pcd_attribute23,
380 pcd_attribute24,
381 pcd_attribute25,
382 pcd_attribute26,
383 pcd_attribute27,
384 pcd_attribute28,
385 pcd_attribute29,
386 pcd_attribute30,
387 request_id,
388 program_application_id,
389 program_id,
390 program_update_date,
391 object_version_number
392 from ben_per_cm_prvdd_f
393 where per_cm_prvdd_id = p_per_cm_prvdd_id
394 and p_effective_date
395 between effective_start_date and effective_end_date
396 for update nowait;
397 --
398 --
399 --
400 Begin
401 hr_utility.set_location('Entering:'||l_proc, 5);
402 --
403 -- Ensure that all the mandatory arguments are not null
404 --
405 hr_api.mandatory_arg_error(p_api_name => l_proc,
406 p_argument => 'effective_date',
407 p_argument_value => p_effective_date);
408 --
409 hr_api.mandatory_arg_error(p_api_name => l_proc,
410 p_argument => 'datetrack_mode',
411 p_argument_value => p_datetrack_mode);
412 --
413 hr_api.mandatory_arg_error(p_api_name => l_proc,
414 p_argument => 'per_cm_prvdd_id',
415 p_argument_value => p_per_cm_prvdd_id);
416 --
417 hr_api.mandatory_arg_error(p_api_name => l_proc,
418 p_argument => 'object_version_number',
419 p_argument_value => p_object_version_number);
420 --
421 -- Check to ensure the datetrack mode is not INSERT.
422 --
423 If (p_datetrack_mode <> 'INSERT') then
424 --
425 -- We must select and lock the current row.
426 --
427 Open C_Sel1;
428 Fetch C_Sel1 Into g_old_rec;
429 If C_Sel1%notfound then
430 Close C_Sel1;
431 --
432 -- The primary key is invalid therefore we must error
433 --
434 fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
435 fnd_message.raise_error;
436 End If;
437 Close C_Sel1;
438 If (p_object_version_number <> g_old_rec.object_version_number) Then
439 fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
443 --
440 fnd_message.raise_error;
441 End If;
442 hr_utility.set_location(l_proc, 15);
444 --
445 -- Validate the datetrack mode mode getting the validation start
446 -- and end dates for the specified datetrack operation.
447 --
448 dt_api.validate_dt_mode
449 (p_effective_date => p_effective_date,
450 p_datetrack_mode => p_datetrack_mode,
451 p_base_table_name => 'ben_per_cm_prvdd_f',
452 p_base_key_column => 'per_cm_prvdd_id',
453 p_base_key_value => p_per_cm_prvdd_id,
454 p_parent_table_name1 => 'ben_per_cm_f',
455 p_parent_key_column1 => 'per_cm_id',
456 p_parent_key_value1 => g_old_rec.per_cm_id,
457 p_enforce_foreign_locking => 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 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
467 fnd_message.set_token('PROCEDURE', l_proc);
468 fnd_message.set_token('STEP','20');
469 fnd_message.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 fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
488 fnd_message.set_token('TABLE_NAME', 'ben_per_cm_prvdd_f');
489 fnd_message.raise_error;
490 When l_object_invalid then
491 --
492 -- The object doesn't exist or is invalid
493 --
494 fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
495 fnd_message.set_token('TABLE_NAME', 'ben_per_cm_prvdd_f');
496 fnd_message.raise_error;
497 End lck;
498 --
499 -- ----------------------------------------------------------------------------
500 -- |-----------------------------< convert_args >-----------------------------|
501 -- ----------------------------------------------------------------------------
502 Function convert_args
503 (
504 p_per_cm_prvdd_id in number,
505 p_effective_start_date in date,
506 p_effective_end_date in date,
507 p_rqstd_flag in varchar2,
508 p_per_cm_prvdd_stat_cd in varchar2,
509 p_cm_dlvry_med_cd in varchar2,
510 p_cm_dlvry_mthd_cd in varchar2,
511 p_sent_dt in date,
512 p_instnc_num in number,
513 p_to_be_sent_dt in date,
514 p_dlvry_instn_txt in varchar2,
515 p_inspn_rqd_flag in varchar2,
516 p_resnd_rsn_cd in varchar2,
517 p_resnd_cmnt_txt in varchar2,
518 p_per_cm_id in number,
519 p_address_id in number,
520 p_business_group_id in number,
521 p_pcd_attribute_category in varchar2,
522 p_pcd_attribute1 in varchar2,
523 p_pcd_attribute2 in varchar2,
524 p_pcd_attribute3 in varchar2,
525 p_pcd_attribute4 in varchar2,
526 p_pcd_attribute5 in varchar2,
527 p_pcd_attribute6 in varchar2,
528 p_pcd_attribute7 in varchar2,
529 p_pcd_attribute8 in varchar2,
530 p_pcd_attribute9 in varchar2,
531 p_pcd_attribute10 in varchar2,
532 p_pcd_attribute11 in varchar2,
533 p_pcd_attribute12 in varchar2,
534 p_pcd_attribute13 in varchar2,
535 p_pcd_attribute14 in varchar2,
536 p_pcd_attribute15 in varchar2,
537 p_pcd_attribute16 in varchar2,
538 p_pcd_attribute17 in varchar2,
539 p_pcd_attribute18 in varchar2,
540 p_pcd_attribute19 in varchar2,
541 p_pcd_attribute20 in varchar2,
542 p_pcd_attribute21 in varchar2,
543 p_pcd_attribute22 in varchar2,
544 p_pcd_attribute23 in varchar2,
545 p_pcd_attribute24 in varchar2,
546 p_pcd_attribute25 in varchar2,
547 p_pcd_attribute26 in varchar2,
548 p_pcd_attribute27 in varchar2,
549 p_pcd_attribute28 in varchar2,
550 p_pcd_attribute29 in varchar2,
551 p_pcd_attribute30 in varchar2,
552 p_request_id in number,
553 p_program_application_id in number,
554 p_program_id in number,
555 p_program_update_date in date,
556 p_object_version_number in number
557 )
558 Return g_rec_type is
559 --
560 l_rec g_rec_type;
561 l_proc varchar2(72) := g_package||'convert_args';
562 --
563 Begin
564 --
565 hr_utility.set_location('Entering:'||l_proc, 5);
566 --
567 -- Convert arguments into local l_rec structure.
568 --
569 l_rec.per_cm_prvdd_id := p_per_cm_prvdd_id;
570 l_rec.effective_start_date := p_effective_start_date;
571 l_rec.effective_end_date := p_effective_end_date;
572 l_rec.rqstd_flag := p_rqstd_flag;
573 l_rec.inspn_rqd_flag := p_inspn_rqd_flag;
574 l_rec.resnd_rsn_cd := p_resnd_rsn_cd;
575 l_rec.resnd_cmnt_txt := p_resnd_cmnt_txt;
576 l_rec.per_cm_prvdd_stat_cd := p_per_cm_prvdd_stat_cd;
577 l_rec.cm_dlvry_med_cd := p_cm_dlvry_med_cd;
578 l_rec.cm_dlvry_mthd_cd := p_cm_dlvry_mthd_cd;
579 l_rec.sent_dt := p_sent_dt;
580 l_rec.instnc_num := p_instnc_num;
581 l_rec.to_be_sent_dt := p_to_be_sent_dt;
582 l_rec.dlvry_instn_txt := p_dlvry_instn_txt;
583 l_rec.per_cm_id := p_per_cm_id;
584 l_rec.address_id := p_address_id;
585 l_rec.business_group_id := p_business_group_id;
586 l_rec.pcd_attribute_category := p_pcd_attribute_category;
587 l_rec.pcd_attribute1 := p_pcd_attribute1;
588 l_rec.pcd_attribute2 := p_pcd_attribute2;
589 l_rec.pcd_attribute3 := p_pcd_attribute3;
590 l_rec.pcd_attribute4 := p_pcd_attribute4;
591 l_rec.pcd_attribute5 := p_pcd_attribute5;
592 l_rec.pcd_attribute6 := p_pcd_attribute6;
593 l_rec.pcd_attribute7 := p_pcd_attribute7;
594 l_rec.pcd_attribute8 := p_pcd_attribute8;
595 l_rec.pcd_attribute9 := p_pcd_attribute9;
596 l_rec.pcd_attribute10 := p_pcd_attribute10;
597 l_rec.pcd_attribute11 := p_pcd_attribute11;
598 l_rec.pcd_attribute12 := p_pcd_attribute12;
599 l_rec.pcd_attribute13 := p_pcd_attribute13;
600 l_rec.pcd_attribute14 := p_pcd_attribute14;
601 l_rec.pcd_attribute15 := p_pcd_attribute15;
602 l_rec.pcd_attribute16 := p_pcd_attribute16;
603 l_rec.pcd_attribute17 := p_pcd_attribute17;
604 l_rec.pcd_attribute18 := p_pcd_attribute18;
605 l_rec.pcd_attribute19 := p_pcd_attribute19;
606 l_rec.pcd_attribute20 := p_pcd_attribute20;
607 l_rec.pcd_attribute21 := p_pcd_attribute21;
608 l_rec.pcd_attribute22 := p_pcd_attribute22;
609 l_rec.pcd_attribute23 := p_pcd_attribute23;
610 l_rec.pcd_attribute24 := p_pcd_attribute24;
611 l_rec.pcd_attribute25 := p_pcd_attribute25;
612 l_rec.pcd_attribute26 := p_pcd_attribute26;
613 l_rec.pcd_attribute27 := p_pcd_attribute27;
614 l_rec.pcd_attribute28 := p_pcd_attribute28;
615 l_rec.pcd_attribute29 := p_pcd_attribute29;
616 l_rec.pcd_attribute30 := p_pcd_attribute30;
617 l_rec.request_id := p_request_id;
618 l_rec.program_application_id := p_program_application_id;
619 l_rec.program_id := p_program_id;
620 l_rec.program_update_date := p_program_update_date;
621 l_rec.object_version_number := p_object_version_number;
622 --
623 -- Return the plsql record structure.
624 --
625 hr_utility.set_location(' Leaving:'||l_proc, 10);
626 Return(l_rec);
627 --
628 End convert_args;
629 --
630 end ben_pcd_shd;