DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_MTR_SHD

Source


4 -- ----------------------------------------------------------------------------
1 Package Body ben_mtr_shd as
2 /* $Header: bemtrrhi.pkb 115.12 2002/12/16 17:39:10 glingapp ship $ */
3 --
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  ben_mtr_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
37     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
34   hr_utility.set_location('Entering:'||l_proc, 5);
35   --
36   If (p_constraint_name = 'BEN_MTCHG_RT_DT2') Then
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_MTCHG_RT_FK1') 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   ElsIf (p_constraint_name = 'BEN_MTCHG_RT_PK') Then
47     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
48     hr_utility.set_message_token('PROCEDURE', l_proc);
49     hr_utility.set_message_token('STEP','15');
50     hr_utility.raise_error;
51   Else
52     hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
53     hr_utility.set_message_token('PROCEDURE', l_proc);
54     hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
55     hr_utility.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_mtchg_rt_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 	mtchg_rt_id,
76 	effective_start_date,
77 	effective_end_date,
78 	acty_base_rt_id,
79 	comp_lvl_fctr_id,
80 	ordr_num,
81 	from_pct_val,
82 	to_pct_val,
83 	pct_val,
84 	mx_amt_of_py_num,
85 	mx_pct_of_py_num,
86 	mx_mtch_amt,
87 	mn_mtch_amt,
88 	mtchg_rt_calc_rl,
89 	no_mx_mtch_amt_flag,
90 	no_mx_pct_of_py_num_flag,
91 	cntnu_mtch_aftr_mx_rl_flag,
92 	no_mx_amt_of_py_num_flag,
93 	business_group_id,
94 	mtr_attribute_category,
95 	mtr_attribute1,
96 	mtr_attribute2,
97 	mtr_attribute3,
98 	mtr_attribute4,
99 	mtr_attribute5,
100 	mtr_attribute6,
101 	mtr_attribute7,
102 	mtr_attribute8,
103 	mtr_attribute9,
104 	mtr_attribute10,
105 	mtr_attribute11,
106 	mtr_attribute12,
107 	mtr_attribute13,
108 	mtr_attribute14,
109 	mtr_attribute15,
110 	mtr_attribute16,
111 	mtr_attribute17,
112 	mtr_attribute18,
113 	mtr_attribute19,
114 	mtr_attribute20,
115 	mtr_attribute21,
116 	mtr_attribute22,
117 	mtr_attribute23,
118 	mtr_attribute24,
119 	mtr_attribute25,
120 	mtr_attribute26,
121 	mtr_attribute27,
122 	mtr_attribute28,
123 	mtr_attribute29,
124 	mtr_attribute30,
125 	object_version_number
126     from	ben_mtchg_rt_f
127     where	mtchg_rt_id = p_mtchg_rt_id
128     and		p_effective_date
129     between	effective_start_date and effective_end_date;
130 --
131   l_proc	varchar2(72)	:= g_package||'api_updating';
132   l_fct_ret	boolean;
133 --
134 Begin
135   hr_utility.set_location('Entering:'||l_proc, 5);
136   --
137   If (p_effective_date is null or
138       p_mtchg_rt_id is null or
139       p_object_version_number is null) Then
140     --
141     -- One of the primary key arguments is null therefore we must
142     -- set the returning function value to false
143     --
144     l_fct_ret := false;
145   Else
146     If (p_mtchg_rt_id = g_old_rec.mtchg_rt_id and
147         p_object_version_number = g_old_rec.object_version_number) Then
148       hr_utility.set_location(l_proc, 10);
149       --
150       -- The g_old_rec is current therefore we must
151       -- set the returning function to true
152       --
153       l_fct_ret := true;
154     Else
155       --
156       -- Select the current row
157       --
158       Open C_Sel1;
159       Fetch C_Sel1 Into g_old_rec;
160       If C_Sel1%notfound Then
161         Close C_Sel1;
162         --
163         -- The primary key is invalid therefore we must error
164         --
165         hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
166         hr_utility.raise_error;
167       End If;
168       Close C_Sel1;
169       If (p_object_version_number <> g_old_rec.object_version_number) Then
170         hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
171         hr_utility.raise_error;
172       End If;
173       hr_utility.set_location(l_proc, 15);
174       l_fct_ret := true;
175     End If;
176   End If;
177   hr_utility.set_location(' Leaving:'||l_proc, 20);
178   Return (l_fct_ret);
179 --
180 End api_updating;
181 --
182 -- ----------------------------------------------------------------------------
183 -- |--------------------------< find_dt_del_modes >---------------------------|
184 -- ----------------------------------------------------------------------------
185 Procedure find_dt_del_modes
186 	(p_effective_date	in  date,
187 	 p_base_key_value	in  number,
188 	 p_zap		 out nocopy boolean,
189 	 p_delete	 out nocopy boolean,
190 	 p_future_change out nocopy boolean,
191 	 p_delete_next_change out nocopy boolean) is
192 --
193   l_proc 		varchar2(72) 	:= g_package||'find_dt_del_modes';
194 --
195   l_parent_key_value1	number;
196   --
200     where   t.mtchg_rt_id = p_base_key_value
197   Cursor C_Sel1 Is
198     select  t.acty_base_rt_id
199     from    ben_mtchg_rt_f t
201     and     p_effective_date
202     between t.effective_start_date and t.effective_end_date;
203 --
204 Begin
205   hr_utility.set_location('Entering:'||l_proc, 5);
206   Open  C_Sel1;
207   Fetch C_Sel1 Into l_parent_key_value1;
208   If C_Sel1%notfound then
209     Close C_Sel1;
210     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
211     hr_utility.set_message_token('PROCEDURE', l_proc);
212     hr_utility.set_message_token('STEP','10');
213     hr_utility.raise_error;
214   End If;
215   Close C_Sel1;
216   --
217   -- Call the corresponding datetrack api
218   --
219   dt_api.find_dt_del_modes
220 	(p_effective_date	=> p_effective_date,
221 	 p_base_table_name	=> 'ben_mtchg_rt_f',
222 	 p_base_key_column	=> 'mtchg_rt_id',
223 	 p_base_key_value	=> p_base_key_value,
224 	 p_parent_table_name1	=> 'ben_acty_base_rt_f',
225 	 p_parent_key_column1	=> 'acty_base_rt_id',
226 	 p_parent_key_value1	=> l_parent_key_value1,
227 	 p_zap			=> p_zap,
228 	 p_delete		=> p_delete,
229 	 p_future_change	=> p_future_change,
230 	 p_delete_next_change	=> p_delete_next_change);
231   --
232   hr_utility.set_location(' Leaving:'||l_proc, 10);
233 End find_dt_del_modes;
234 --
235 -- ----------------------------------------------------------------------------
236 -- |--------------------------< find_dt_upd_modes >---------------------------|
237 -- ----------------------------------------------------------------------------
238 Procedure find_dt_upd_modes
239 	(p_effective_date	in  date,
240 	 p_base_key_value	in  number,
241 	 p_correction	 out nocopy boolean,
242 	 p_update	 out nocopy boolean,
243 	 p_update_override out nocopy boolean,
244 	 p_update_change_insert out nocopy boolean) is
245 --
246   l_proc 	varchar2(72) := g_package||'find_dt_upd_modes';
247 --
248 Begin
249   hr_utility.set_location('Entering:'||l_proc, 5);
250   --
251   -- Call the corresponding datetrack api
252   --
253   dt_api.find_dt_upd_modes
254 	(p_effective_date	=> p_effective_date,
255 	 p_base_table_name	=> 'ben_mtchg_rt_f',
256 	 p_base_key_column	=> 'mtchg_rt_id',
257 	 p_base_key_value	=> p_base_key_value,
258 	 p_correction		=> p_correction,
259 	 p_update		=> p_update,
260 	 p_update_override	=> p_update_override,
261 	 p_update_change_insert	=> p_update_change_insert);
262   --
263   hr_utility.set_location(' Leaving:'||l_proc, 10);
264 End find_dt_upd_modes;
265 --
266 -- ----------------------------------------------------------------------------
267 -- |------------------------< upd_effective_end_date >------------------------|
268 -- ----------------------------------------------------------------------------
269 Procedure upd_effective_end_date
270 	(p_effective_date		in date,
271 	 p_base_key_value		in number,
272 	 p_new_effective_end_date	in date,
273 	 p_validation_start_date	in date,
274 	 p_validation_end_date		in date,
275          p_object_version_number       out nocopy number) is
276 --
277   l_proc 		  varchar2(72) := g_package||'upd_effective_end_date';
278   l_object_version_number number;
279 --
280 Begin
281   hr_utility.set_location('Entering:'||l_proc, 5);
282   --
283   -- Because we are updating a row we must get the next object
284   -- version number.
285   --
286   l_object_version_number :=
287     dt_api.get_object_version_number
288 	(p_base_table_name	=> 'ben_mtchg_rt_f',
289 	 p_base_key_column	=> 'mtchg_rt_id',
290 	 p_base_key_value	=> p_base_key_value);
291   --
292   hr_utility.set_location(l_proc, 10);
293   g_api_dml := true;  -- Set the api dml status
294   --
295   -- Update the specified datetrack row setting the effective
296   -- end date to the specified new effective end date.
297   --
298   update  ben_mtchg_rt_f t
299   set	  t.effective_end_date	  = p_new_effective_end_date,
300 	  t.object_version_number = l_object_version_number
301   where	  t.mtchg_rt_id	  = p_base_key_value
302   and	  p_effective_date
303   between t.effective_start_date and t.effective_end_date;
304   --
305   g_api_dml := false;   -- Unset the api dml status
306   p_object_version_number := l_object_version_number;
307   hr_utility.set_location(' Leaving:'||l_proc, 15);
308 --
309 Exception
310   When Others Then
311     g_api_dml := false;   -- Unset the api dml status
312     Raise;
313 End upd_effective_end_date;
314 --
315 -- ----------------------------------------------------------------------------
316 -- |---------------------------------< lck >----------------------------------|
317 -- ----------------------------------------------------------------------------
318 Procedure lck
319 	(p_effective_date	 in  date,
320 	 p_datetrack_mode	 in  varchar2,
321 	 p_mtchg_rt_id	 in  number,
322 	 p_object_version_number in  number,
323 	 p_validation_start_date out nocopy date,
324 	 p_validation_end_date	 out nocopy date) is
325 --
326   l_proc		  varchar2(72) := g_package||'lck';
327   l_validation_start_date date;
328   l_validation_end_date	  date;
329   l_object_invalid 	  exception;
330   l_argument		  varchar2(30);
331   --
332   -- Cursor C_Sel1 selects the current locked row as of session date
333   -- ensuring that the object version numbers match.
334   --
335   Cursor C_Sel1 is
336     select
337 	mtchg_rt_id,
338 	effective_start_date,
339 	effective_end_date,
340 	acty_base_rt_id,
341 	comp_lvl_fctr_id,
342 	ordr_num,
346 	mx_amt_of_py_num,
343 	from_pct_val,
344 	to_pct_val,
345 	pct_val,
347 	mx_pct_of_py_num,
348 	mx_mtch_amt,
349 	mn_mtch_amt,
350 	mtchg_rt_calc_rl,
351 	no_mx_mtch_amt_flag,
352 	no_mx_pct_of_py_num_flag,
353 	cntnu_mtch_aftr_mx_rl_flag,
354 	no_mx_amt_of_py_num_flag,
355 	business_group_id,
356 	mtr_attribute_category,
357 	mtr_attribute1,
358 	mtr_attribute2,
359 	mtr_attribute3,
360 	mtr_attribute4,
361 	mtr_attribute5,
362 	mtr_attribute6,
363 	mtr_attribute7,
364 	mtr_attribute8,
365 	mtr_attribute9,
366 	mtr_attribute10,
367 	mtr_attribute11,
368 	mtr_attribute12,
369 	mtr_attribute13,
370 	mtr_attribute14,
371 	mtr_attribute15,
372 	mtr_attribute16,
373 	mtr_attribute17,
374 	mtr_attribute18,
375 	mtr_attribute19,
376 	mtr_attribute20,
377 	mtr_attribute21,
378 	mtr_attribute22,
379 	mtr_attribute23,
380 	mtr_attribute24,
381 	mtr_attribute25,
382 	mtr_attribute26,
383 	mtr_attribute27,
384 	mtr_attribute28,
385 	mtr_attribute29,
386 	mtr_attribute30,
387 	object_version_number
388     from    ben_mtchg_rt_f
389     where   mtchg_rt_id         = p_mtchg_rt_id
390     and	    p_effective_date
391     between effective_start_date and effective_end_date
392     for update nowait;
393   --
394   --
395   --
396 Begin
397   hr_utility.set_location('Entering:'||l_proc, 5);
398   --
399   -- Ensure that all the mandatory arguments are not null
400   --
401   hr_api.mandatory_arg_error(p_api_name       => l_proc,
402                              p_argument       => 'effective_date',
403                              p_argument_value => p_effective_date);
404   --
405   hr_api.mandatory_arg_error(p_api_name       => l_proc,
406                              p_argument       => 'datetrack_mode',
407                              p_argument_value => p_datetrack_mode);
408   --
409   hr_api.mandatory_arg_error(p_api_name       => l_proc,
410                              p_argument       => 'mtchg_rt_id',
411                              p_argument_value => p_mtchg_rt_id);
412   --
413   hr_api.mandatory_arg_error(p_api_name       => l_proc,
414                              p_argument       => 'object_version_number',
415                              p_argument_value => p_object_version_number);
416   --
417   -- Check to ensure the datetrack mode is not INSERT.
418   --
419   If (p_datetrack_mode <> 'INSERT') then
420     --
421     -- We must select and lock the current row.
422     --
423     Open  C_Sel1;
424     Fetch C_Sel1 Into g_old_rec;
425     If C_Sel1%notfound then
426       Close C_Sel1;
427       --
428       -- The primary key is invalid therefore we must error
429       --
430       hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
431       hr_utility.raise_error;
432     End If;
433     Close C_Sel1;
434     If (p_object_version_number <> g_old_rec.object_version_number) Then
435         hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
436         hr_utility.raise_error;
437       End If;
438     hr_utility.set_location(l_proc, 15);
439     --
440     --
441     -- Validate the datetrack mode mode getting the validation start
442     -- and end dates for the specified datetrack operation.
443     --
444     dt_api.validate_dt_mode
445 	(p_effective_date	   => p_effective_date,
446 	 p_datetrack_mode	   => p_datetrack_mode,
447 	 p_base_table_name	   => 'ben_mtchg_rt_f',
448 	 p_base_key_column	   => 'mtchg_rt_id',
449 	 p_base_key_value 	   => p_mtchg_rt_id,
450 	 p_parent_table_name1      => 'ben_acty_base_rt_f',
451 	 p_parent_key_column1      => 'acty_base_rt_id',
452 	 p_parent_key_value1       => g_old_rec.acty_base_rt_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     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
463     hr_utility.set_message_token('PROCEDURE', l_proc);
464     hr_utility.set_message_token('STEP','20');
465     hr_utility.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     hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
484     hr_utility.set_message_token('TABLE_NAME', 'ben_mtchg_rt_f');
485     hr_utility.raise_error;
486   When l_object_invalid then
487     --
488     -- The object doesn't exist or is invalid
489     --
490     hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
491     hr_utility.set_message_token('TABLE_NAME', 'ben_mtchg_rt_f');
492     hr_utility.raise_error;
493 End lck;
494 --
495 -- ----------------------------------------------------------------------------
496 -- |-----------------------------< convert_args >-----------------------------|
497 -- ----------------------------------------------------------------------------
498 Function convert_args
499 	(
500 	p_mtchg_rt_id                   in number,
504 	p_comp_lvl_fctr_id              in number,
501 	p_effective_start_date          in date,
502 	p_effective_end_date            in date,
503 	p_acty_base_rt_id               in number,
505 	p_ordr_num                      in number,
506 	p_from_pct_val                  in number,
507 	p_to_pct_val                    in number,
508 	p_pct_val                       in number,
509 	p_mx_amt_of_py_num              in number,
510 	p_mx_pct_of_py_num              in number,
511 	p_mx_mtch_amt                   in number,
512 	p_mn_mtch_amt                   in number,
513 	p_mtchg_rt_calc_rl              in number,
514 	p_no_mx_mtch_amt_flag           in varchar2,
515 	p_no_mx_pct_of_py_num_flag      in varchar2,
516 	p_cntnu_mtch_aftr_mx_rl_flag    in varchar2,
517 	p_no_mx_amt_of_py_num_flag      in varchar2,
518 	p_business_group_id             in number,
519 	p_mtr_attribute_category        in varchar2,
520 	p_mtr_attribute1                in varchar2,
521 	p_mtr_attribute2                in varchar2,
522 	p_mtr_attribute3                in varchar2,
523 	p_mtr_attribute4                in varchar2,
524 	p_mtr_attribute5                in varchar2,
525 	p_mtr_attribute6                in varchar2,
526 	p_mtr_attribute7                in varchar2,
527 	p_mtr_attribute8                in varchar2,
528 	p_mtr_attribute9                in varchar2,
529 	p_mtr_attribute10               in varchar2,
530 	p_mtr_attribute11               in varchar2,
531 	p_mtr_attribute12               in varchar2,
532 	p_mtr_attribute13               in varchar2,
533 	p_mtr_attribute14               in varchar2,
534 	p_mtr_attribute15               in varchar2,
535 	p_mtr_attribute16               in varchar2,
536 	p_mtr_attribute17               in varchar2,
537 	p_mtr_attribute18               in varchar2,
538 	p_mtr_attribute19               in varchar2,
539 	p_mtr_attribute20               in varchar2,
540 	p_mtr_attribute21               in varchar2,
541 	p_mtr_attribute22               in varchar2,
542 	p_mtr_attribute23               in varchar2,
543 	p_mtr_attribute24               in varchar2,
544 	p_mtr_attribute25               in varchar2,
545 	p_mtr_attribute26               in varchar2,
546 	p_mtr_attribute27               in varchar2,
547 	p_mtr_attribute28               in varchar2,
548 	p_mtr_attribute29               in varchar2,
549 	p_mtr_attribute30               in varchar2,
550 	p_object_version_number         in number
551 	)
552 	Return g_rec_type is
553 --
554   l_rec	  g_rec_type;
555   l_proc  varchar2(72) := g_package||'convert_args';
556 --
557 Begin
558   --
559   hr_utility.set_location('Entering:'||l_proc, 5);
560   --
561   -- Convert arguments into local l_rec structure.
562   --
563   l_rec.mtchg_rt_id                      := p_mtchg_rt_id;
564   l_rec.effective_start_date             := p_effective_start_date;
565   l_rec.effective_end_date               := p_effective_end_date;
566   l_rec.acty_base_rt_id                  := p_acty_base_rt_id;
567   l_rec.comp_lvl_fctr_id                 := p_comp_lvl_fctr_id;
568   l_rec.ordr_num                         := p_ordr_num;
569   l_rec.from_pct_val                     := p_from_pct_val;
570   l_rec.to_pct_val                       := p_to_pct_val;
571   l_rec.pct_val                          := p_pct_val;
572   l_rec.mx_amt_of_py_num                 := p_mx_amt_of_py_num;
573   l_rec.mx_pct_of_py_num                 := p_mx_pct_of_py_num;
574   l_rec.mx_mtch_amt                      := p_mx_mtch_amt;
575   l_rec.mn_mtch_amt                      := p_mn_mtch_amt;
576   l_rec.mtchg_rt_calc_rl                 := p_mtchg_rt_calc_rl;
577   l_rec.no_mx_mtch_amt_flag              := p_no_mx_mtch_amt_flag;
578   l_rec.no_mx_pct_of_py_num_flag         := p_no_mx_pct_of_py_num_flag;
579   l_rec.cntnu_mtch_aftr_mx_rl_flag       := p_cntnu_mtch_aftr_mx_rl_flag;
580   l_rec.no_mx_amt_of_py_num_flag         := p_no_mx_amt_of_py_num_flag;
581   l_rec.business_group_id                := p_business_group_id;
582   l_rec.mtr_attribute_category           := p_mtr_attribute_category;
583   l_rec.mtr_attribute1                   := p_mtr_attribute1;
584   l_rec.mtr_attribute2                   := p_mtr_attribute2;
585   l_rec.mtr_attribute3                   := p_mtr_attribute3;
586   l_rec.mtr_attribute4                   := p_mtr_attribute4;
587   l_rec.mtr_attribute5                   := p_mtr_attribute5;
588   l_rec.mtr_attribute6                   := p_mtr_attribute6;
589   l_rec.mtr_attribute7                   := p_mtr_attribute7;
590   l_rec.mtr_attribute8                   := p_mtr_attribute8;
591   l_rec.mtr_attribute9                   := p_mtr_attribute9;
592   l_rec.mtr_attribute10                  := p_mtr_attribute10;
593   l_rec.mtr_attribute11                  := p_mtr_attribute11;
594   l_rec.mtr_attribute12                  := p_mtr_attribute12;
595   l_rec.mtr_attribute13                  := p_mtr_attribute13;
596   l_rec.mtr_attribute14                  := p_mtr_attribute14;
597   l_rec.mtr_attribute15                  := p_mtr_attribute15;
598   l_rec.mtr_attribute16                  := p_mtr_attribute16;
599   l_rec.mtr_attribute17                  := p_mtr_attribute17;
600   l_rec.mtr_attribute18                  := p_mtr_attribute18;
601   l_rec.mtr_attribute19                  := p_mtr_attribute19;
602   l_rec.mtr_attribute20                  := p_mtr_attribute20;
603   l_rec.mtr_attribute21                  := p_mtr_attribute21;
604   l_rec.mtr_attribute22                  := p_mtr_attribute22;
605   l_rec.mtr_attribute23                  := p_mtr_attribute23;
606   l_rec.mtr_attribute24                  := p_mtr_attribute24;
607   l_rec.mtr_attribute25                  := p_mtr_attribute25;
608   l_rec.mtr_attribute26                  := p_mtr_attribute26;
609   l_rec.mtr_attribute27                  := p_mtr_attribute27;
610   l_rec.mtr_attribute28                  := p_mtr_attribute28;
611   l_rec.mtr_attribute29                  := p_mtr_attribute29;
612   l_rec.mtr_attribute30                  := p_mtr_attribute30;
613   l_rec.object_version_number            := p_object_version_number;
614   --
615   -- Return the plsql record structure.
616   --
617   hr_utility.set_location(' Leaving:'||l_proc, 10);
618   Return(l_rec);
619 --
620 End convert_args;
621 --
622 end ben_mtr_shd;