DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_EPA_SHD

Source


4 -- ----------------------------------------------------------------------------
1 Package Body ben_epa_shd as
2 /* $Header: beeparhi.pkb 120.0 2005/05/28 02:35:20 appldev noship $ */
3 --
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)    := '  ben_epa_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_PRTN_ELIG_FK1') Then
37     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
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_PRTN_ELIG_PK') 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   Else
47     hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
48     hr_utility.set_message_token('PROCEDURE', l_proc);
49     hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
50     hr_utility.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_prtn_elig_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     prtn_elig_id,
71     effective_start_date,
72     effective_end_date,
73     business_group_id,
74     pgm_id,
75     pl_id,
76     oipl_id,
77     ptip_id,
78     plip_id,
79     trk_scr_for_inelg_flag,
80     prtn_eff_strt_dt_cd,
81     prtn_eff_end_dt_cd,
82     prtn_eff_strt_dt_rl,
83     prtn_eff_end_dt_rl,
84     wait_perd_dt_to_use_cd,
85     wait_perd_dt_to_use_rl,
86     wait_perd_val,
87     wait_perd_uom,
88     wait_perd_rl,
89     mx_poe_det_dt_cd,
90     mx_poe_det_dt_rl,
91     mx_poe_val,
92     mx_poe_uom,
93     mx_poe_rl,
94     mx_poe_apls_cd,
95     epa_attribute_category,
96     epa_attribute1,
97     epa_attribute2,
98     epa_attribute3,
99     epa_attribute4,
100     epa_attribute5,
101     epa_attribute6,
102     epa_attribute7,
103     epa_attribute8,
104     epa_attribute9,
105     epa_attribute10,
106     epa_attribute11,
107     epa_attribute12,
108     epa_attribute13,
109     epa_attribute14,
110     epa_attribute15,
111     epa_attribute16,
112     epa_attribute17,
113     epa_attribute18,
114     epa_attribute19,
115     epa_attribute20,
116     epa_attribute21,
117     epa_attribute22,
118     epa_attribute23,
119     epa_attribute24,
120     epa_attribute25,
121     epa_attribute26,
122     epa_attribute27,
123     epa_attribute28,
124     epa_attribute29,
125     epa_attribute30,
126     object_version_number
127     from    ben_prtn_elig_f
128     where    prtn_elig_id = p_prtn_elig_id
129     and        p_effective_date
130     between    effective_start_date and effective_end_date;
131 --
132   l_proc    varchar2(72)    := g_package||'api_updating';
133   l_fct_ret    boolean;
134 --
135 Begin
136   hr_utility.set_location('Entering:'||l_proc, 5);
137   --
138   If (p_effective_date is null or
139       p_prtn_elig_id is null or
140       p_object_version_number is null) Then
141     --
142     -- One of the primary key arguments is null therefore we must
143     -- set the returning function value to false
144     --
145     l_fct_ret := false;
149       hr_utility.set_location(l_proc, 10);
146   Else
147     If (p_prtn_elig_id = g_old_rec.prtn_elig_id and
148         p_object_version_number = g_old_rec.object_version_number) Then
150       --
151       -- The g_old_rec is current therefore we must
152       -- set the returning function to true
153       --
154       l_fct_ret := true;
155     Else
156       --
157       -- Select the current row
158       --
159       Open C_Sel1;
160       Fetch C_Sel1 Into g_old_rec;
161       If C_Sel1%notfound Then
162         Close C_Sel1;
163         --
164         -- The primary key is invalid therefore we must error
165         --
166         hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
167         hr_utility.raise_error;
168       End If;
169       Close C_Sel1;
170       If (p_object_version_number <> g_old_rec.object_version_number) Then
171         hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
172         hr_utility.raise_error;
173       End If;
174       hr_utility.set_location(l_proc, 15);
175       l_fct_ret := true;
176     End If;
177   End If;
178   hr_utility.set_location(' Leaving:'||l_proc, 20);
179   Return (l_fct_ret);
180 --
181 End api_updating;
182 --
183 -- ----------------------------------------------------------------------------
184 -- |--------------------------< find_dt_del_modes >---------------------------|
185 -- ----------------------------------------------------------------------------
186 Procedure find_dt_del_modes
190      p_delete        out nocopy boolean,
187     (p_effective_date    in  date,
188      p_base_key_value    in  number,
189      p_zap            out nocopy boolean,
191      p_future_change    out nocopy boolean,
192      p_delete_next_change    out nocopy boolean) is
193 --
194   l_proc         varchar2(72)     := g_package||'find_dt_del_modes';
195 --
196   l_parent_key_value1    number;
197   l_parent_key_value2    number;
198   l_parent_key_value3    number;
199   l_parent_key_value4    number;
200   l_parent_key_value5    number;
201   l_parent_key_value6    number;
202   --
203   Cursor C_Sel1 Is
204     select  t.prtn_eff_end_dt_rl,
205             t.oipl_id,
206             t.pl_id,
207             t.pgm_id,
208             t.ptip_id,
209             t.plip_id
210     from    ben_prtn_elig_f t
211     where   t.prtn_elig_id = p_base_key_value
212     and     p_effective_date
213     between t.effective_start_date and t.effective_end_date;
214 --
215 Begin
216   hr_utility.set_location('Entering:'||l_proc, 5);
217   Open  C_Sel1;
218   Fetch C_Sel1 Into l_parent_key_value1,
219                     l_parent_key_value2,
220                     l_parent_key_value3,
221                     l_parent_key_value4,
222                     l_parent_key_value5,
223                     l_parent_key_value6;
224   If C_Sel1%notfound then
225     Close C_Sel1;
226     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
227     hr_utility.set_message_token('PROCEDURE', l_proc);
228     hr_utility.set_message_token('STEP','10');
229     hr_utility.raise_error;
230   End If;
231   Close C_Sel1;
232   --
233   -- Call the corresponding datetrack api
234   --
235   dt_api.find_dt_del_modes
236     (p_effective_date    => p_effective_date,
237      p_base_table_name    => 'ben_prtn_elig_f',
238      p_base_key_column    => 'prtn_elig_id',
239      p_base_key_value    => p_base_key_value,
240      p_parent_table_name1    => 'ff_formulas_f',
241      p_parent_key_column1    => 'formula_id',
242      p_parent_key_value1    => l_parent_key_value1,
243      p_parent_table_name2    => 'ben_oipl_f',
244      p_parent_key_column2    => 'oipl_id',
245      p_parent_key_value2    => l_parent_key_value2,
246      p_parent_table_name3    => 'ben_pl_f',
247      p_parent_key_column3    => 'pl_id',
248      p_parent_key_value3    => l_parent_key_value3,
249      p_parent_table_name4    => 'ben_pgm_f',
250      p_parent_key_column4    => 'pgm_id',
251      p_parent_key_value4    => l_parent_key_value4,
252      p_parent_table_name5    => 'ben_ptip_f',
253      p_parent_key_column5    => 'ptip_id',
254      p_parent_key_value5    => l_parent_key_value5,
255      p_parent_table_name6    => 'ben_plip_f',
256      p_parent_key_column6    => 'plip_id',
257      p_parent_key_value6    => l_parent_key_value6,
258      p_zap            => p_zap,
259      p_delete        => p_delete,
260      p_future_change    => p_future_change,
261      p_delete_next_change    => p_delete_next_change);
262   --
263   hr_utility.set_location(' Leaving:'||l_proc, 10);
264 End find_dt_del_modes;
265 --
269 Procedure find_dt_upd_modes
266 -- ----------------------------------------------------------------------------
267 -- |--------------------------< find_dt_upd_modes >---------------------------|
268 -- ----------------------------------------------------------------------------
270     (p_effective_date       in     date,
271      p_base_key_value       in     number,
272      p_correction              out nocopy boolean,
273      p_update                  out nocopy boolean,
274      p_update_override         out nocopy boolean,
275      p_update_change_insert    out nocopy boolean) is
276 --
277   l_proc     varchar2(72) := g_package||'find_dt_upd_modes';
278 --
279 Begin
280   hr_utility.set_location('Entering:'||l_proc, 5);
281   --
282   -- Call the corresponding datetrack api
283   --
284   dt_api.find_dt_upd_modes
285     (p_effective_date    => p_effective_date,
286      p_base_table_name    => 'ben_prtn_elig_f',
287      p_base_key_column    => 'prtn_elig_id',
288      p_base_key_value    => p_base_key_value,
289      p_correction        => p_correction,
290      p_update        => p_update,
291      p_update_override    => p_update_override,
292      p_update_change_insert    => p_update_change_insert);
293   --
294   hr_utility.set_location(' Leaving:'||l_proc, 10);
295 End find_dt_upd_modes;
296 --
297 -- ----------------------------------------------------------------------------
298 -- |------------------------< upd_effective_end_date >------------------------|
299 -- ----------------------------------------------------------------------------
300 Procedure upd_effective_end_date
301     (p_effective_date         in     date,
302      p_base_key_value         in     number,
303      p_new_effective_end_date in     date,
304      p_validation_start_date  in     date,
305      p_validation_end_date    in     date,
306      p_object_version_number     out nocopy number) is
307 --
308   l_proc           varchar2(72) := g_package||'upd_effective_end_date';
309   l_object_version_number number;
310 --
311 Begin
312   hr_utility.set_location('Entering:'||l_proc, 5);
313   --
314   -- Because we are updating a row we must get the next object
315   -- version number.
316   --
317   l_object_version_number :=
318     dt_api.get_object_version_number
319     (p_base_table_name    => 'ben_prtn_elig_f',
320      p_base_key_column    => 'prtn_elig_id',
321      p_base_key_value    => p_base_key_value);
322   --
323   hr_utility.set_location(l_proc, 10);
324   g_api_dml := true;  -- Set the api dml status
325   --
326   -- Update the specified datetrack row setting the effective
327   -- end date to the specified new effective end date.
328   --
329   update  ben_prtn_elig_f t
330   set      t.effective_end_date      = p_new_effective_end_date,
331       t.object_version_number = l_object_version_number
332   where      t.prtn_elig_id      = p_base_key_value
333   and      p_effective_date
334   between t.effective_start_date and t.effective_end_date;
335   --
336   g_api_dml := false;   -- Unset the api dml status
337   p_object_version_number := l_object_version_number;
338   hr_utility.set_location(' Leaving:'||l_proc, 15);
339 --
340 Exception
341   When Others Then
342     g_api_dml := false;   -- Unset the api dml status
343     Raise;
344 End upd_effective_end_date;
345 --
346 -- ----------------------------------------------------------------------------
347 -- |---------------------------------< lck >----------------------------------|
351      p_datetrack_mode        in  varchar2,
348 -- ----------------------------------------------------------------------------
349 Procedure lck
350     (p_effective_date        in  date,
352      p_prtn_elig_id          in  number,
353      p_object_version_number in  number,
354      p_validation_start_date out nocopy date,
355      p_validation_end_date   out nocopy date) is
356 --
357   l_proc          varchar2(72) := g_package||'lck';
358   l_validation_start_date date;
359   l_validation_end_date      date;
360   l_object_invalid       exception;
361   l_argument          varchar2(30);
362   --
363   -- Cursor C_Sel1 selects the current locked row as of session date
364   -- ensuring that the object version numbers match.
365   --
366   Cursor C_Sel1 is
367     select
368     prtn_elig_id,
369     effective_start_date,
370     effective_end_date,
371     business_group_id,
372     pgm_id,
373     pl_id,
374     oipl_id,
375     ptip_id,
376     plip_id,
377     trk_scr_for_inelg_flag,
378     prtn_eff_strt_dt_cd,
379     prtn_eff_end_dt_cd,
380     prtn_eff_strt_dt_rl,
381     prtn_eff_end_dt_rl,
382     wait_perd_dt_to_use_cd,
383     wait_perd_dt_to_use_rl,
384     wait_perd_val,
385     wait_perd_uom,
386     wait_perd_rl,
387     mx_poe_det_dt_cd,
388     mx_poe_det_dt_rl,
389     mx_poe_val,
390     mx_poe_uom,
391     mx_poe_rl,
392     mx_poe_apls_cd,
393     epa_attribute_category,
394     epa_attribute1,
395     epa_attribute2,
396     epa_attribute3,
397     epa_attribute4,
398     epa_attribute5,
399     epa_attribute6,
400     epa_attribute7,
401     epa_attribute8,
402     epa_attribute9,
403     epa_attribute10,
404     epa_attribute11,
405     epa_attribute12,
406     epa_attribute13,
407     epa_attribute14,
408     epa_attribute15,
409     epa_attribute16,
410     epa_attribute17,
411     epa_attribute18,
412     epa_attribute19,
413     epa_attribute20,
414     epa_attribute21,
415     epa_attribute22,
416     epa_attribute23,
417     epa_attribute24,
418     epa_attribute25,
419     epa_attribute26,
420     epa_attribute27,
421     epa_attribute28,
422     epa_attribute29,
423     epa_attribute30,
424     object_version_number
425     from    ben_prtn_elig_f
426     where   prtn_elig_id         = p_prtn_elig_id
427     and        p_effective_date
428     between effective_start_date and effective_end_date
429     for update nowait;
430   --
431   --
432   --
433 Begin
434   hr_utility.set_location('Entering:'||l_proc, 5);
435   --
436   -- Ensure that all the mandatory arguments are not null
437   --
438   hr_api.mandatory_arg_error(p_api_name       => l_proc,
439                              p_argument       => 'effective_date',
440                              p_argument_value => p_effective_date);
441   --
442   hr_api.mandatory_arg_error(p_api_name       => l_proc,
443                              p_argument       => 'datetrack_mode',
444                              p_argument_value => p_datetrack_mode);
445   --
446   hr_api.mandatory_arg_error(p_api_name       => l_proc,
447                              p_argument       => 'prtn_elig_id',
448                              p_argument_value => p_prtn_elig_id);
449   --
450   hr_api.mandatory_arg_error(p_api_name       => l_proc,
451                              p_argument       => 'object_version_number',
452                              p_argument_value => p_object_version_number);
453   --
454   -- Check to ensure the datetrack mode is not INSERT.
455   --
456   If (p_datetrack_mode <> 'INSERT') then
457     --
458     -- We must select and lock the current row.
459     --
460     Open  C_Sel1;
461     Fetch C_Sel1 Into g_old_rec;
462     If C_Sel1%notfound then
463       Close C_Sel1;
464       --
465       -- The primary key is invalid therefore we must error
466       --
467       hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
468       hr_utility.raise_error;
469     End If;
470     Close C_Sel1;
471     If (p_object_version_number <> g_old_rec.object_version_number) Then
472         hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
473         hr_utility.raise_error;
474       End If;
475     hr_utility.set_location(l_proc, 15);
476     --
477     --
478     -- Validate the datetrack mode mode getting the validation start
479     -- and end dates for the specified datetrack operation.
480     --
481     dt_api.validate_dt_mode
482     (p_effective_date          => p_effective_date,
486      p_base_key_value          => p_prtn_elig_id,
483      p_datetrack_mode          => p_datetrack_mode,
484      p_base_table_name         => 'ben_prtn_elig_f',
485      p_base_key_column         => 'prtn_elig_id',
487      p_parent_table_name1      => 'ff_formulas_f',
488      p_parent_key_column1      => 'formula_id',
489      p_parent_key_value1       => g_old_rec.prtn_eff_end_dt_rl,
490      p_parent_table_name2      => 'ben_oipl_f',
491      p_parent_key_column2      => 'oipl_id',
492      p_parent_key_value2       => g_old_rec.oipl_id,
493      p_parent_table_name3      => 'ben_pl_f',
494      p_parent_key_column3      => 'pl_id',
495      p_parent_key_value3       => g_old_rec.pl_id,
496      p_parent_table_name4      => 'ben_pgm_f',
497      p_parent_key_column4      => 'pgm_id',
498      p_parent_key_value4       => g_old_rec.pgm_id,
499      p_parent_table_name5      => 'ben_ptip_f',
500      p_parent_key_column5      => 'ptip_id',
501      p_parent_key_value5       => g_old_rec.ptip_id,
502      p_parent_table_name6      => 'ben_plip_f',
503      p_parent_key_column6      => 'plip_id',
504      p_parent_key_value6       => g_old_rec.plip_id,
505      p_child_table_name1       => 'ben_prtn_eligy_rl_f',
506      p_child_key_column1       => 'prtn_eligy_rl_id',
507      p_child_table_name2       => 'ben_prtn_elig_prfl_f',
508      p_child_key_column2       => 'prtn_elig_prfl_id',
509      p_enforce_foreign_locking => false,  -- true, 3014342
510      p_validation_start_date   => l_validation_start_date,
511       p_validation_end_date    => l_validation_end_date);
512   Else
513     --
514     -- We are doing a datetrack 'INSERT' which is illegal within this
515     -- procedure therefore we must error (note: to lck on insert the
516     -- private procedure ins_lck should be called).
517     --
518     hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
519     hr_utility.set_message_token('PROCEDURE', l_proc);
520     hr_utility.set_message_token('STEP','20');
521     hr_utility.raise_error;
522   End If;
523   --
524   -- Set the validation start and end date OUT arguments
525   --
529   hr_utility.set_location(' Leaving:'||l_proc, 30);
526   p_validation_start_date := l_validation_start_date;
527   p_validation_end_date   := l_validation_end_date;
528   --
530 --
531 -- We need to trap the ORA LOCK exception
532 --
533 Exception
534   When HR_Api.Object_Locked then
535     --
536     -- The object is locked therefore we need to supply a meaningful
537     -- error message.
538     --
539     hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
540     hr_utility.set_message_token('TABLE_NAME', 'ben_prtn_elig_f');
541     hr_utility.raise_error;
542   When l_object_invalid then
543     --
544     -- The object doesn't exist or is invalid
545     --
546     hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
547     hr_utility.set_message_token('TABLE_NAME', 'ben_prtn_elig_f');
548     hr_utility.raise_error;
549 End lck;
550 --
551 -- ----------------------------------------------------------------------------
552 -- |-----------------------------< convert_args >-----------------------------|
553 -- ----------------------------------------------------------------------------
554 Function convert_args
555     (
556     p_prtn_elig_id                  in number,
557     p_effective_start_date          in date,
558     p_effective_end_date            in date,
559     p_business_group_id             in number,
560     p_pgm_id                        in number,
561     p_pl_id                         in number,
562     p_oipl_id                       in number,
563     p_ptip_id                       in number,
564     p_plip_id                       in number,
565     p_trk_scr_for_inelg_flag        in varchar2,
566     p_prtn_eff_strt_dt_cd           in varchar2,
570     p_wait_perd_dt_to_use_cd        in varchar2,
567     p_prtn_eff_end_dt_cd            in varchar2,
568     p_prtn_eff_strt_dt_rl           in number,
569     p_prtn_eff_end_dt_rl            in number,
571     p_wait_perd_dt_to_use_rl        in number,
572     p_wait_perd_val                 in number,
573     p_wait_perd_uom                 in varchar2,
574     p_wait_perd_rl                  in number,
575     p_mx_poe_det_dt_cd              in varchar2,
576     p_mx_poe_det_dt_rl              in number,
577     p_mx_poe_val                    in number,
578     p_mx_poe_uom                    in varchar2,
579     p_mx_poe_rl                     in number,
580     p_mx_poe_apls_cd                in varchar2,
581     p_epa_attribute_category        in varchar2,
582     p_epa_attribute1                in varchar2,
583     p_epa_attribute2                in varchar2,
584     p_epa_attribute3                in varchar2,
585     p_epa_attribute4                in varchar2,
586     p_epa_attribute5                in varchar2,
587     p_epa_attribute6                in varchar2,
588     p_epa_attribute7                in varchar2,
589     p_epa_attribute8                in varchar2,
590     p_epa_attribute9                in varchar2,
591     p_epa_attribute10               in varchar2,
592     p_epa_attribute11               in varchar2,
593     p_epa_attribute12               in varchar2,
594     p_epa_attribute13               in varchar2,
595     p_epa_attribute14               in varchar2,
596     p_epa_attribute15               in varchar2,
597     p_epa_attribute16               in varchar2,
598     p_epa_attribute17               in varchar2,
599     p_epa_attribute18               in varchar2,
600     p_epa_attribute19               in varchar2,
601     p_epa_attribute20               in varchar2,
602     p_epa_attribute21               in varchar2,
603     p_epa_attribute22               in varchar2,
604     p_epa_attribute23               in varchar2,
605     p_epa_attribute24               in varchar2,
606     p_epa_attribute25               in varchar2,
607     p_epa_attribute26               in varchar2,
608     p_epa_attribute27               in varchar2,
609     p_epa_attribute28               in varchar2,
610     p_epa_attribute29               in varchar2,
611     p_epa_attribute30               in varchar2,
612     p_object_version_number         in number
613     )
614     Return g_rec_type is
615 --
616   l_rec      g_rec_type;
617   l_proc  varchar2(72) := g_package||'convert_args';
618 --
619 Begin
620   --
621   hr_utility.set_location('Entering:'||l_proc, 5);
622   --
623   -- Convert arguments into local l_rec structure.
624   --
625   l_rec.prtn_elig_id                     := p_prtn_elig_id;
626   l_rec.effective_start_date             := p_effective_start_date;
627   l_rec.effective_end_date               := p_effective_end_date;
628   l_rec.business_group_id                := p_business_group_id;
629   l_rec.pgm_id                           := p_pgm_id;
630   l_rec.pl_id                            := p_pl_id;
631   l_rec.oipl_id                          := p_oipl_id;
632   l_rec.ptip_id                          := p_ptip_id;
633   l_rec.plip_id                          := p_plip_id;
634   l_rec.trk_scr_for_inelg_flag           := p_trk_scr_for_inelg_flag;
635   l_rec.prtn_eff_strt_dt_cd              := p_prtn_eff_strt_dt_cd;
636   l_rec.prtn_eff_end_dt_cd               := p_prtn_eff_end_dt_cd;
637   l_rec.prtn_eff_strt_dt_rl              := p_prtn_eff_strt_dt_rl;
638   l_rec.prtn_eff_end_dt_rl               := p_prtn_eff_end_dt_rl;
639   l_rec.wait_perd_dt_to_use_cd           := p_wait_perd_dt_to_use_cd;
640   l_rec.wait_perd_dt_to_use_rl           := p_wait_perd_dt_to_use_rl;
641   l_rec.wait_perd_val                    := p_wait_perd_val;
642   l_rec.wait_perd_uom                    := p_wait_perd_uom;
643   l_rec.wait_perd_rl                     := p_wait_perd_rl;
644   l_rec.mx_poe_det_dt_cd                 := p_mx_poe_det_dt_cd;
645   l_rec.mx_poe_det_dt_rl                 := p_mx_poe_det_dt_rl;
646   l_rec.mx_poe_val                       := p_mx_poe_val;
647   l_rec.mx_poe_uom                       := p_mx_poe_uom;
648   l_rec.mx_poe_rl                        := p_mx_poe_rl;
649   l_rec.mx_poe_apls_cd                   := p_mx_poe_apls_cd;
650   l_rec.epa_attribute_category           := p_epa_attribute_category;
651   l_rec.epa_attribute1                   := p_epa_attribute1;
652   l_rec.epa_attribute2                   := p_epa_attribute2;
653   l_rec.epa_attribute3                   := p_epa_attribute3;
654   l_rec.epa_attribute4                   := p_epa_attribute4;
655   l_rec.epa_attribute5                   := p_epa_attribute5;
656   l_rec.epa_attribute6                   := p_epa_attribute6;
657   l_rec.epa_attribute7                   := p_epa_attribute7;
658   l_rec.epa_attribute8                   := p_epa_attribute8;
659   l_rec.epa_attribute9                   := p_epa_attribute9;
660   l_rec.epa_attribute10                  := p_epa_attribute10;
664   l_rec.epa_attribute14                  := p_epa_attribute14;
661   l_rec.epa_attribute11                  := p_epa_attribute11;
662   l_rec.epa_attribute12                  := p_epa_attribute12;
663   l_rec.epa_attribute13                  := p_epa_attribute13;
665   l_rec.epa_attribute15                  := p_epa_attribute15;
666   l_rec.epa_attribute16                  := p_epa_attribute16;
667   l_rec.epa_attribute17                  := p_epa_attribute17;
668   l_rec.epa_attribute18                  := p_epa_attribute18;
669   l_rec.epa_attribute19                  := p_epa_attribute19;
670   l_rec.epa_attribute20                  := p_epa_attribute20;
671   l_rec.epa_attribute21                  := p_epa_attribute21;
672   l_rec.epa_attribute22                  := p_epa_attribute22;
673   l_rec.epa_attribute23                  := p_epa_attribute23;
674   l_rec.epa_attribute24                  := p_epa_attribute24;
675   l_rec.epa_attribute25                  := p_epa_attribute25;
676   l_rec.epa_attribute26                  := p_epa_attribute26;
677   l_rec.epa_attribute27                  := p_epa_attribute27;
678   l_rec.epa_attribute28                  := p_epa_attribute28;
679   l_rec.epa_attribute29                  := p_epa_attribute29;
680   l_rec.epa_attribute30                  := p_epa_attribute30;
681   l_rec.object_version_number            := p_object_version_number;
682   --
683   -- Return the plsql record structure.
684   --
685   hr_utility.set_location(' Leaving:'||l_proc, 10);
686   Return(l_rec);
687 --
688 End convert_args;
689 --
690 end ben_epa_shd;