DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_EPA_UPD

Source


1 Package Body ben_epa_upd as
2 /* $Header: beeparhi.pkb 120.0 2005/05/28 02:35:20 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)    := '  ben_epa_upd.';  -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |----------------------------< dt_update_dml >-----------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 --
15 -- Description:
16 --   This procedure controls the execution of dml from the datetrack mode
17 --   of CORRECTION only. It is important to note that the object version
18 --   number is only increment by 1 because the datetrack correction is
19 --   soley for one datetracked row.
20 --   This procedure controls the actual dml update logic. The functions of this
21 --   procedure are as follows:
22 --   1) Get the next object_version_number.
23 --   2) To set and unset the g_api_dml status as required (as we are about to
24 --      perform dml).
25 --   3) To update the specified row in the schema using the primary key in
26 --      the predicates.
27 --   4) To trap any constraint violations that may have occurred.
28 --   5) To raise any other errors.
29 --
30 -- Prerequisites:
31 --   This is an internal private procedure which must be called from the
32 --   update_dml procedure.
33 --
34 -- In Parameters:
35 --   A Pl/Sql record structre.
36 --
37 -- Post Success:
38 --   The specified row will be updated in the schema.
39 --
40 -- Post Failure:
41 --   On the update dml failure it is important to note that we always reset the
42 --   g_api_dml status to false.
43 --   If a check or unique integrity constraint violation is raised the
44 --   constraint_error procedure will be called.
45 --   If any other error is reported, the error will be raised after the
46 --   g_api_dml status is reset.
47 --
48 -- Developer Implementation Notes:
49 --   The update 'set' arguments list should be modified if any of your
50 --   attributes are not updateable.
51 --
52 -- Access Status:
53 --   Internal Row Handler Use Only.
54 --
55 -- {End Of Comments}
56 -- ----------------------------------------------------------------------------
57 Procedure dt_update_dml
58     (p_rec              in out nocopy ben_epa_shd.g_rec_type,
59      p_effective_date     in    date,
60      p_datetrack_mode     in    varchar2,
61      p_validation_start_date in    date,
62      p_validation_end_date     in    date) is
63 --
64   l_proc    varchar2(72) := g_package||'dt_update_dml';
65 --
66 Begin
67   hr_utility.set_location('Entering:'||l_proc, 5);
68   --
69   If (p_datetrack_mode = 'CORRECTION') then
70     hr_utility.set_location(l_proc, 10);
71     --
72     -- Because we are updating a row we must get the next object
73     -- version number.
74     --
75     p_rec.object_version_number :=
76       dt_api.get_object_version_number
77       (p_base_table_name    => 'ben_prtn_elig_f',
78        p_base_key_column    => 'prtn_elig_id',
79        p_base_key_value    => p_rec.prtn_elig_id);
80     --
81     ben_epa_shd.g_api_dml := true;  -- Set the api dml status
82     --
83     -- Update the ben_prtn_elig_f Row
84     --
85     update  ben_prtn_elig_f
86     set
87         prtn_elig_id                    = p_rec.prtn_elig_id,
88     business_group_id               = p_rec.business_group_id,
89     pgm_id                          = p_rec.pgm_id,
90     pl_id                           = p_rec.pl_id,
91     oipl_id                         = p_rec.oipl_id,
92     ptip_id                         = p_rec.ptip_id,
93     plip_id                         = p_rec.plip_id,
94     trk_scr_for_inelg_flag          = nvl(p_rec.trk_scr_for_inelg_flag,'N'),
95     prtn_eff_strt_dt_cd             = p_rec.prtn_eff_strt_dt_cd,
96     prtn_eff_end_dt_cd              = p_rec.prtn_eff_end_dt_cd,
97     prtn_eff_strt_dt_rl             = p_rec.prtn_eff_strt_dt_rl,
98     prtn_eff_end_dt_rl              = p_rec.prtn_eff_end_dt_rl,
99     wait_perd_dt_to_use_cd          = p_rec.wait_perd_dt_to_use_cd,
100     wait_perd_dt_to_use_rl          = p_rec.wait_perd_dt_to_use_rl,
101     wait_perd_val                   = p_rec.wait_perd_val,
102     wait_perd_uom                   = p_rec.wait_perd_uom,
103     wait_perd_rl                    = p_rec.wait_perd_rl,
104     mx_poe_det_dt_cd                = p_rec.mx_poe_det_dt_cd,
105     mx_poe_det_dt_rl                = p_rec.mx_poe_det_dt_rl,
106     mx_poe_val                      = p_rec.mx_poe_val,
107     mx_poe_uom                      = p_rec.mx_poe_uom,
108     mx_poe_rl                       = p_rec.mx_poe_rl,
109     mx_poe_apls_cd                  = p_rec.mx_poe_apls_cd,
110     epa_attribute_category          = p_rec.epa_attribute_category,
111     epa_attribute1                  = p_rec.epa_attribute1,
112     epa_attribute2                  = p_rec.epa_attribute2,
113     epa_attribute3                  = p_rec.epa_attribute3,
114     epa_attribute4                  = p_rec.epa_attribute4,
115     epa_attribute5                  = p_rec.epa_attribute5,
116     epa_attribute6                  = p_rec.epa_attribute6,
117     epa_attribute7                  = p_rec.epa_attribute7,
118     epa_attribute8                  = p_rec.epa_attribute8,
119     epa_attribute9                  = p_rec.epa_attribute9,
120     epa_attribute10                 = p_rec.epa_attribute10,
121     epa_attribute11                 = p_rec.epa_attribute11,
122     epa_attribute12                 = p_rec.epa_attribute12,
123     epa_attribute13                 = p_rec.epa_attribute13,
124     epa_attribute14                 = p_rec.epa_attribute14,
125     epa_attribute15                 = p_rec.epa_attribute15,
126     epa_attribute16                 = p_rec.epa_attribute16,
127     epa_attribute17                 = p_rec.epa_attribute17,
128     epa_attribute18                 = p_rec.epa_attribute18,
129     epa_attribute19                 = p_rec.epa_attribute19,
130     epa_attribute20                 = p_rec.epa_attribute20,
131     epa_attribute21                 = p_rec.epa_attribute21,
132     epa_attribute22                 = p_rec.epa_attribute22,
133     epa_attribute23                 = p_rec.epa_attribute23,
134     epa_attribute24                 = p_rec.epa_attribute24,
135     epa_attribute25                 = p_rec.epa_attribute25,
136     epa_attribute26                 = p_rec.epa_attribute26,
137     epa_attribute27                 = p_rec.epa_attribute27,
138     epa_attribute28                 = p_rec.epa_attribute28,
139     epa_attribute29                 = p_rec.epa_attribute29,
140     epa_attribute30                 = p_rec.epa_attribute30,
141     object_version_number           = p_rec.object_version_number
142     where   prtn_elig_id = p_rec.prtn_elig_id
143     and     effective_start_date = p_validation_start_date
144     and     effective_end_date   = p_validation_end_date;
145     --
146     ben_epa_shd.g_api_dml := false;   -- Unset the api dml status
147     --
148     -- Set the effective start and end dates
149     --
150     p_rec.effective_start_date := p_validation_start_date;
151     p_rec.effective_end_date   := p_validation_end_date;
152   End If;
153 --
154 hr_utility.set_location(' Leaving:'||l_proc, 15);
155 Exception
156   When hr_api.check_integrity_violated Then
157     -- A check constraint has been violated
158     ben_epa_shd.g_api_dml := false;   -- Unset the api dml status
159     ben_epa_shd.constraint_error
160       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
161   When hr_api.unique_integrity_violated Then
162     -- Unique integrity has been violated
163     ben_epa_shd.g_api_dml := false;   -- Unset the api dml status
164     ben_epa_shd.constraint_error
165       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
166   When Others Then
167     ben_epa_shd.g_api_dml := false;   -- Unset the api dml status
168     Raise;
169 End dt_update_dml;
170 --
171 -- ----------------------------------------------------------------------------
172 -- |------------------------------< update_dml >------------------------------|
173 -- ----------------------------------------------------------------------------
174 -- {Start Of Comments}
175 --
176 -- Description:
177 --   This procedure calls the dt_update_dml control logic which handles
178 --   the actual datetrack dml.
179 --
180 -- Prerequisites:
181 --   This is an internal private procedure which must be called from the upd
182 --   procedure.
183 --
184 -- In Parameters:
185 --   A Pl/Sql record structre.
186 --
187 -- Post Success:
188 --   Processing contines.
189 --
190 -- Post Failure:
191 --   No specific error handling is required within this procedure.
192 --
193 -- Developer Implementation Notes:
194 --   The update 'set' arguments list should be modified if any of your
195 --   attributes are not updateable.
196 --
197 -- Access Status:
198 --   Internal Row Handler Use Only.
199 --
200 -- {End Of Comments}
201 -- ----------------------------------------------------------------------------
202 Procedure update_dml
203     (p_rec              in out nocopy ben_epa_shd.g_rec_type,
204      p_effective_date     in    date,
205      p_datetrack_mode     in    varchar2,
206      p_validation_start_date in    date,
207      p_validation_end_date     in    date) is
208 --
209   l_proc    varchar2(72) := g_package||'update_dml';
210 --
211 Begin
212   hr_utility.set_location('Entering:'||l_proc, 5);
213   --
214   dt_update_dml(p_rec            => p_rec,
215         p_effective_date    => p_effective_date,
216         p_datetrack_mode    => p_datetrack_mode,
217                p_validation_start_date    => p_validation_start_date,
218         p_validation_end_date    => p_validation_end_date);
219   --
220   hr_utility.set_location(' Leaving:'||l_proc, 10);
221 End update_dml;
222 --
223 -- ----------------------------------------------------------------------------
224 -- |----------------------------< dt_pre_update >-----------------------------|
225 -- ----------------------------------------------------------------------------
226 -- {Start Of Comments}
227 --
228 -- Description:
229 --   The dt_pre_update procedure controls the execution
230 --   of dml for the datetrack modes of: UPDATE, UPDATE_OVERRIDE
231 --   and UPDATE_CHANGE_INSERT only. The execution required is as
232 --   follows:
233 --
234 --   1) Providing the datetrack update mode is not 'CORRECTION'
235 --      then set the effective end date of the current row (this
236 --      will be the validation_start_date - 1).
237 --   2) If the datetrack mode is 'UPDATE_OVERRIDE' then call the
238 --      corresponding delete_dml process to delete any future rows
239 --      where the effective_start_date is greater than or equal to
240 --    the validation_start_date.
241 --   3) Call the insert_dml process to insert the new updated row
242 --      details..
243 --
244 -- Prerequisites:
245 --   This is an internal procedure which is called from the
246 --   pre_update procedure.
247 --
248 -- In Parameters:
249 --
250 -- Post Success:
251 --   Processing continues.
252 --
253 -- Post Failure:
254 --   If an error has occurred, an error message and exception will be raised
255 --   but not handled.
256 --
257 -- Developer Implementation Notes:
258 --   This is an internal procedure which is required by Datetrack. Don't
259 --   remove or modify.
260 --
261 -- Access Status:
262 --   Internal Row Handler Use Only.
263 --
264 -- {End Of Comments}
265 -- ----------------------------------------------------------------------------
266 Procedure dt_pre_update
267     (p_rec              in out nocopy    ben_epa_shd.g_rec_type,
268      p_effective_date     in    date,
269      p_datetrack_mode     in    varchar2,
270      p_validation_start_date in    date,
271      p_validation_end_date     in    date) is
272 --
273   l_proc             varchar2(72) := g_package||'dt_pre_update';
274   l_dummy_version_number number;
275 --
276 Begin
277   hr_utility.set_location('Entering:'||l_proc, 5);
278   If (p_datetrack_mode <> 'CORRECTION') then
279     hr_utility.set_location(l_proc, 10);
280     --
281     -- Update the current effective end date
282     --
283     ben_epa_shd.upd_effective_end_date
284      (p_effective_date           => p_effective_date,
285       p_base_key_value           => p_rec.prtn_elig_id,
286       p_new_effective_end_date => (p_validation_start_date - 1),
287       p_validation_start_date  => p_validation_start_date,
288       p_validation_end_date    => p_validation_end_date,
289       p_object_version_number  => l_dummy_version_number);
290     --
291     If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
292       hr_utility.set_location(l_proc, 15);
293       --
294       -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
295       -- delete any future rows
296       --
297       ben_epa_del.delete_dml
298         (p_rec             => p_rec,
299      p_effective_date     => p_effective_date,
300      p_datetrack_mode     => p_datetrack_mode,
301      p_validation_start_date => p_validation_start_date,
302      p_validation_end_date   => p_validation_end_date);
303     End If;
304     hr_utility.set_location(l_proc, 20);
305     --
306     -- We must now insert the updated row
307     --
308     ben_epa_ins.insert_dml
309       (p_rec            => p_rec,
310        p_effective_date        => p_effective_date,
311        p_datetrack_mode        => p_datetrack_mode,
312        p_validation_start_date    => p_validation_start_date,
313        p_validation_end_date    => p_validation_end_date);
314   End If;
315   hr_utility.set_location(' Leaving:'||l_proc, 20);
316 End dt_pre_update;
317 --
318 -- ----------------------------------------------------------------------------
319 -- |------------------------------< pre_update >------------------------------|
320 -- ----------------------------------------------------------------------------
321 -- {Start Of Comments}
322 --
323 -- Description:
324 --   This private procedure contains any processing which is required before
325 --   the update dml.
326 --
327 -- Prerequisites:
328 --   This is an internal procedure which is called from the upd procedure.
329 --
330 -- In Parameters:
331 --   A Pl/Sql record structre.
332 --
333 -- Post Success:
334 --   Processing continues.
335 --
336 -- Post Failure:
337 --   If an error has occurred, an error message and exception will be raised
338 --   but not handled.
339 --
340 -- Developer Implementation Notes:
341 --   Any pre-processing required before the update dml is issued should be
342 --   coded within this procedure. It is important to note that any 3rd party
343 --   maintenance should be reviewed before placing in this procedure. The call
344 --   to the dt_update_dml procedure should NOT be removed.
345 --
346 -- Access Status:
347 --   Internal Row Handler Use Only.
348 --
349 -- {End Of Comments}
350 -- ----------------------------------------------------------------------------
351 Procedure pre_update
352     (p_rec              in out nocopy    ben_epa_shd.g_rec_type,
353      p_effective_date     in    date,
354      p_datetrack_mode     in    varchar2,
355      p_validation_start_date in    date,
356      p_validation_end_date     in    date) is
357 --
358   l_proc    varchar2(72) := g_package||'pre_update';
359 --
360 Begin
361   hr_utility.set_location('Entering:'||l_proc, 5);
362   --
363   --
364   --
365   dt_pre_update
366     (p_rec              => p_rec,
367      p_effective_date         => p_effective_date,
368      p_datetrack_mode         => p_datetrack_mode,
369      p_validation_start_date => p_validation_start_date,
370      p_validation_end_date   => p_validation_end_date);
371   --
372   hr_utility.set_location(' Leaving:'||l_proc, 10);
373 End pre_update;
374 --
375 -- ----------------------------------------------------------------------------
376 -- |-----------------------------< post_update >------------------------------|
377 -- ----------------------------------------------------------------------------
378 -- {Start Of Comments}
379 --
380 -- Description:
381 --   This private procedure contains any processing which is required after the
382 --   update dml.
383 --
384 -- Prerequisites:
385 --   This is an internal procedure which is called from the upd procedure.
386 --
387 -- In Parameters:
388 --   A Pl/Sql record structre.
389 --
390 -- Post Success:
391 --   Processing continues.
392 --
393 -- Post Failure:
394 --   If an error has occurred, an error message and exception will be raised
395 --   but not handled.
396 --
397 -- Developer Implementation Notes:
398 --   Any post-processing required after the update dml is issued should be
399 --   coded within this procedure. It is important to note that any 3rd party
400 --   maintenance should be reviewed before placing in this procedure.
401 --
402 -- Access Status:
403 --   Internal Row Handler Use Only.
404 --
405 -- {End Of Comments}
406 -- ----------------------------------------------------------------------------
407 Procedure post_update
408     (p_rec              in ben_epa_shd.g_rec_type,
409      p_effective_date     in date,
410      p_datetrack_mode     in varchar2,
411      p_validation_start_date in date,
412      p_validation_end_date     in date) is
413 --
414   l_proc    varchar2(72) := g_package||'post_update';
415 --
416 Begin
417   hr_utility.set_location('Entering:'||l_proc, 5);
418 --
419   --
420   -- Start of API User Hook for post_update.
421   --
422   begin
423     --
424     ben_epa_rku.after_update
425       (
426        p_prtn_elig_id                  =>p_rec.prtn_elig_id
427       ,p_effective_start_date          =>p_rec.effective_start_date
428       ,p_effective_end_date            =>p_rec.effective_end_date
429       ,p_business_group_id             =>p_rec.business_group_id
430       ,p_pgm_id                        =>p_rec.pgm_id
431       ,p_pl_id                         =>p_rec.pl_id
432       ,p_oipl_id                       =>p_rec.oipl_id
433       ,p_ptip_id                       =>p_rec.ptip_id
434       ,p_plip_id                       =>p_rec.plip_id
435       ,p_trk_scr_for_inelg_flag        =>p_rec.trk_scr_for_inelg_flag
436       ,p_prtn_eff_strt_dt_cd           =>p_rec.prtn_eff_strt_dt_cd
437       ,p_prtn_eff_end_dt_cd            =>p_rec.prtn_eff_end_dt_cd
438       ,p_prtn_eff_strt_dt_rl           =>p_rec.prtn_eff_strt_dt_rl
439       ,p_prtn_eff_end_dt_rl            =>p_rec.prtn_eff_end_dt_rl
440       ,p_wait_perd_dt_to_use_cd        =>p_rec.wait_perd_dt_to_use_cd
441       ,p_wait_perd_dt_to_use_rl        =>p_rec.wait_perd_dt_to_use_rl
442       ,p_wait_perd_val                 =>p_rec.wait_perd_val
443       ,p_wait_perd_uom                 =>p_rec.wait_perd_uom
444       ,p_wait_perd_rl                  =>p_rec.wait_perd_rl
445       ,p_mx_poe_det_dt_cd              =>p_rec.mx_poe_det_dt_cd
446       ,p_mx_poe_det_dt_rl              =>p_rec.mx_poe_det_dt_rl
447       ,p_mx_poe_val                    =>p_rec.mx_poe_val
448       ,p_mx_poe_uom                    =>p_rec.mx_poe_uom
449       ,p_mx_poe_rl                     =>p_rec.mx_poe_rl
450       ,p_mx_poe_apls_cd                =>p_rec.mx_poe_apls_cd
451       ,p_epa_attribute_category        =>p_rec.epa_attribute_category
452       ,p_epa_attribute1                =>p_rec.epa_attribute1
453       ,p_epa_attribute2                =>p_rec.epa_attribute2
454       ,p_epa_attribute3                =>p_rec.epa_attribute3
455       ,p_epa_attribute4                =>p_rec.epa_attribute4
456       ,p_epa_attribute5                =>p_rec.epa_attribute5
457       ,p_epa_attribute6                =>p_rec.epa_attribute6
458       ,p_epa_attribute7                =>p_rec.epa_attribute7
459       ,p_epa_attribute8                =>p_rec.epa_attribute8
460       ,p_epa_attribute9                =>p_rec.epa_attribute9
461       ,p_epa_attribute10               =>p_rec.epa_attribute10
462       ,p_epa_attribute11               =>p_rec.epa_attribute11
463       ,p_epa_attribute12               =>p_rec.epa_attribute12
464       ,p_epa_attribute13               =>p_rec.epa_attribute13
465       ,p_epa_attribute14               =>p_rec.epa_attribute14
466       ,p_epa_attribute15               =>p_rec.epa_attribute15
467       ,p_epa_attribute16               =>p_rec.epa_attribute16
468       ,p_epa_attribute17               =>p_rec.epa_attribute17
469       ,p_epa_attribute18               =>p_rec.epa_attribute18
470       ,p_epa_attribute19               =>p_rec.epa_attribute19
471       ,p_epa_attribute20               =>p_rec.epa_attribute20
472       ,p_epa_attribute21               =>p_rec.epa_attribute21
473       ,p_epa_attribute22               =>p_rec.epa_attribute22
474       ,p_epa_attribute23               =>p_rec.epa_attribute23
475       ,p_epa_attribute24               =>p_rec.epa_attribute24
476       ,p_epa_attribute25               =>p_rec.epa_attribute25
477       ,p_epa_attribute26               =>p_rec.epa_attribute26
478       ,p_epa_attribute27               =>p_rec.epa_attribute27
479       ,p_epa_attribute28               =>p_rec.epa_attribute28
480       ,p_epa_attribute29               =>p_rec.epa_attribute29
481       ,p_epa_attribute30               =>p_rec.epa_attribute30
482       ,p_object_version_number         =>p_rec.object_version_number
483       ,p_effective_date                =>p_effective_date
484       ,p_datetrack_mode                =>p_datetrack_mode
485       ,p_validation_start_date         =>p_validation_start_date
486       ,p_validation_end_date           =>p_validation_end_date
487       ,p_effective_start_date_o        =>ben_epa_shd.g_old_rec.effective_start_date
488       ,p_effective_end_date_o          =>ben_epa_shd.g_old_rec.effective_end_date
489       ,p_business_group_id_o           =>ben_epa_shd.g_old_rec.business_group_id
490       ,p_pgm_id_o                      =>ben_epa_shd.g_old_rec.pgm_id
491       ,p_pl_id_o                       =>ben_epa_shd.g_old_rec.pl_id
492       ,p_oipl_id_o                     =>ben_epa_shd.g_old_rec.oipl_id
493       ,p_ptip_id_o                     =>ben_epa_shd.g_old_rec.ptip_id
494       ,p_plip_id_o                     =>ben_epa_shd.g_old_rec.plip_id
495       ,p_trk_scr_for_inelg_flag_o      =>ben_epa_shd.g_old_rec.trk_scr_for_inelg_flag
496       ,p_prtn_eff_strt_dt_cd_o         =>ben_epa_shd.g_old_rec.prtn_eff_strt_dt_cd
497       ,p_prtn_eff_end_dt_cd_o          =>ben_epa_shd.g_old_rec.prtn_eff_end_dt_cd
498       ,p_prtn_eff_strt_dt_rl_o         =>ben_epa_shd.g_old_rec.prtn_eff_strt_dt_rl
499       ,p_prtn_eff_end_dt_rl_o          =>ben_epa_shd.g_old_rec.prtn_eff_end_dt_rl
500       ,p_wait_perd_dt_to_use_cd_o      =>ben_epa_shd.g_old_rec.wait_perd_dt_to_use_cd
501       ,p_wait_perd_dt_to_use_rl_o      =>ben_epa_shd.g_old_rec.wait_perd_dt_to_use_rl
502       ,p_wait_perd_val_o               =>ben_epa_shd.g_old_rec.wait_perd_val
503       ,p_wait_perd_uom_o               =>ben_epa_shd.g_old_rec.wait_perd_uom
504       ,p_wait_perd_rl_o                =>ben_epa_shd.g_old_rec.wait_perd_rl
505       ,p_mx_poe_det_dt_cd_o            =>ben_epa_shd.g_old_rec.mx_poe_det_dt_cd
506       ,p_mx_poe_det_dt_rl_o            =>ben_epa_shd.g_old_rec.mx_poe_det_dt_rl
507       ,p_mx_poe_val_o                  =>ben_epa_shd.g_old_rec.mx_poe_val
508       ,p_mx_poe_uom_o                  =>ben_epa_shd.g_old_rec.mx_poe_uom
509       ,p_mx_poe_rl_o                   =>ben_epa_shd.g_old_rec.mx_poe_rl
510       ,p_mx_poe_apls_cd_o              =>ben_epa_shd.g_old_rec.mx_poe_apls_cd
511       ,p_epa_attribute_category_o      =>ben_epa_shd.g_old_rec.epa_attribute_category
512       ,p_epa_attribute1_o              =>ben_epa_shd.g_old_rec.epa_attribute1
513       ,p_epa_attribute2_o              =>ben_epa_shd.g_old_rec.epa_attribute2
514       ,p_epa_attribute3_o              =>ben_epa_shd.g_old_rec.epa_attribute3
515       ,p_epa_attribute4_o              =>ben_epa_shd.g_old_rec.epa_attribute4
516       ,p_epa_attribute5_o              =>ben_epa_shd.g_old_rec.epa_attribute5
517       ,p_epa_attribute6_o              =>ben_epa_shd.g_old_rec.epa_attribute6
518       ,p_epa_attribute7_o              =>ben_epa_shd.g_old_rec.epa_attribute7
519       ,p_epa_attribute8_o              =>ben_epa_shd.g_old_rec.epa_attribute8
520       ,p_epa_attribute9_o              =>ben_epa_shd.g_old_rec.epa_attribute9
521       ,p_epa_attribute10_o             =>ben_epa_shd.g_old_rec.epa_attribute10
522       ,p_epa_attribute11_o             =>ben_epa_shd.g_old_rec.epa_attribute11
523       ,p_epa_attribute12_o             =>ben_epa_shd.g_old_rec.epa_attribute12
524       ,p_epa_attribute13_o             =>ben_epa_shd.g_old_rec.epa_attribute13
525       ,p_epa_attribute14_o             =>ben_epa_shd.g_old_rec.epa_attribute14
526       ,p_epa_attribute15_o             =>ben_epa_shd.g_old_rec.epa_attribute15
527       ,p_epa_attribute16_o             =>ben_epa_shd.g_old_rec.epa_attribute16
528       ,p_epa_attribute17_o             =>ben_epa_shd.g_old_rec.epa_attribute17
529       ,p_epa_attribute18_o             =>ben_epa_shd.g_old_rec.epa_attribute18
530       ,p_epa_attribute19_o             =>ben_epa_shd.g_old_rec.epa_attribute19
531       ,p_epa_attribute20_o             =>ben_epa_shd.g_old_rec.epa_attribute20
532       ,p_epa_attribute21_o             =>ben_epa_shd.g_old_rec.epa_attribute21
533       ,p_epa_attribute22_o             =>ben_epa_shd.g_old_rec.epa_attribute22
534       ,p_epa_attribute23_o             =>ben_epa_shd.g_old_rec.epa_attribute23
535       ,p_epa_attribute24_o             =>ben_epa_shd.g_old_rec.epa_attribute24
536       ,p_epa_attribute25_o             =>ben_epa_shd.g_old_rec.epa_attribute25
537       ,p_epa_attribute26_o             =>ben_epa_shd.g_old_rec.epa_attribute26
538       ,p_epa_attribute27_o             =>ben_epa_shd.g_old_rec.epa_attribute27
539       ,p_epa_attribute28_o             =>ben_epa_shd.g_old_rec.epa_attribute28
540       ,p_epa_attribute29_o             =>ben_epa_shd.g_old_rec.epa_attribute29
541       ,p_epa_attribute30_o             =>ben_epa_shd.g_old_rec.epa_attribute30
542       ,p_object_version_number_o       =>ben_epa_shd.g_old_rec.object_version_number
543       );
544     --
545   exception
546     --
547     when hr_api.cannot_find_prog_unit then
548       --
549       hr_api.cannot_find_prog_unit_error
550         (p_module_name => 'ben_prtn_elig_f'
551         ,p_hook_type   => 'AU');
552       --
553   end;
554   --
555   -- End of API User Hook for post_update.
556   --
557   hr_utility.set_location(' Leaving:'||l_proc, 10);
558 End post_update;
559 --
560 -- ----------------------------------------------------------------------------
561 -- |-----------------------------< convert_defs >-----------------------------|
562 -- ----------------------------------------------------------------------------
563 -- {Start Of Comments}
564 --
565 -- Description:
566 --   The Convert_Defs procedure has one very important function:
567 --   It must return the record structure for the row with all system defaulted
568 --   values converted into its corresponding parameter value for update. When
569 --   we attempt to update a row through the Upd process , certain
570 --   parameters can be defaulted which enables flexibility in the calling of
571 --   the upd process (e.g. only attributes which need to be updated need to be
572 --   specified). For the upd process to determine which attributes
573 --   have NOT been specified we need to check if the parameter has a reserved
574 --   system default value. Therefore, for all parameters which have a
575 --   corresponding reserved system default mechanism specified we need to
576 --   check if a system default is being used. If a system default is being
577 --   used then we convert the defaulted value into its corresponding attribute
578 --   value held in the g_old_rec data structure.
579 --
580 -- Prerequisites:
581 --   This private function can only be called from the upd process.
582 --
583 -- In Parameters:
584 --   A Pl/Sql record structre.
585 --
586 -- Post Success:
587 --   The record structure will be returned with all system defaulted parameter
588 --   values converted into its current row attribute value.
589 --
590 -- Post Failure:
591 --   No direct error handling is required within this function. Any possible
592 --   errors within this procedure will be a PL/SQL value error due to conversion
593 --   of datatypes or data lengths.
594 --
595 -- Developer Implementation Notes:
596 --   None.
597 --
598 -- Access Status:
599 --   Internal Row Handler Use Only.
600 --
601 -- {End Of Comments}
602 -- ----------------------------------------------------------------------------
603 Procedure convert_defs(p_rec in out nocopy ben_epa_shd.g_rec_type) is
604 --
605   l_proc  varchar2(72) := g_package||'convert_defs';
606 --
607 Begin
608   --
609   hr_utility.set_location('Entering:'||l_proc, 5);
610   --
611   -- We must now examine each argument value in the
612   -- p_rec plsql record structure
613   -- to see if a system default is being used. If a system default
614   -- is being used then we must set to the 'current' argument value.
615   --
616   If (p_rec.business_group_id = hr_api.g_number) then
617     p_rec.business_group_id :=
618     ben_epa_shd.g_old_rec.business_group_id;
619   End If;
620   If (p_rec.pgm_id = hr_api.g_number) then
621     p_rec.pgm_id :=
622     ben_epa_shd.g_old_rec.pgm_id;
623   End If;
624   If (p_rec.pl_id = hr_api.g_number) then
625     p_rec.pl_id :=
626     ben_epa_shd.g_old_rec.pl_id;
627   End If;
628   If (p_rec.oipl_id = hr_api.g_number) then
629     p_rec.oipl_id :=
630     ben_epa_shd.g_old_rec.oipl_id;
631   End If;
632   If (p_rec.ptip_id = hr_api.g_number) then
633     p_rec.ptip_id :=
634     ben_epa_shd.g_old_rec.ptip_id;
635   End If;
636   If (p_rec.plip_id = hr_api.g_number) then
637     p_rec.plip_id :=
638     ben_epa_shd.g_old_rec.plip_id;
639   End If;
640   If (p_rec.prtn_eff_strt_dt_cd = hr_api.g_varchar2) then
641     p_rec.prtn_eff_strt_dt_cd :=
642     ben_epa_shd.g_old_rec.prtn_eff_strt_dt_cd;
643   End If;
644   If (p_rec.trk_scr_for_inelg_flag = hr_api.g_varchar2) then
645     p_rec.trk_scr_for_inelg_flag :=
646     ben_epa_shd.g_old_rec.trk_scr_for_inelg_flag;
647   End If;
648   If (p_rec.prtn_eff_end_dt_cd = hr_api.g_varchar2) then
649     p_rec.prtn_eff_end_dt_cd :=
650     ben_epa_shd.g_old_rec.prtn_eff_end_dt_cd;
651   End If;
652   If (p_rec.prtn_eff_strt_dt_rl = hr_api.g_number) then
653     p_rec.prtn_eff_strt_dt_rl :=
654     ben_epa_shd.g_old_rec.prtn_eff_strt_dt_rl;
655   End If;
656   If (p_rec.prtn_eff_end_dt_rl = hr_api.g_number) then
657     p_rec.prtn_eff_end_dt_rl :=
658     ben_epa_shd.g_old_rec.prtn_eff_end_dt_rl;
659   End If;
660   If (p_rec.wait_perd_dt_to_use_cd = hr_api.g_varchar2) then
661     p_rec.wait_perd_dt_to_use_cd :=
662     ben_epa_shd.g_old_rec.wait_perd_dt_to_use_cd;
663   End If;
664   If (p_rec.wait_perd_dt_to_use_rl = hr_api.g_number) then
665     p_rec.wait_perd_dt_to_use_rl :=
666     ben_epa_shd.g_old_rec.wait_perd_dt_to_use_rl;
667   End If;
668   If (p_rec.wait_perd_val = hr_api.g_number) then
669     p_rec.wait_perd_val :=
670     ben_epa_shd.g_old_rec.wait_perd_val;
671   End If;
672   If (p_rec.wait_perd_uom = hr_api.g_varchar2) then
673     p_rec.wait_perd_uom :=
674     ben_epa_shd.g_old_rec.wait_perd_uom;
675   End If;
676   If (p_rec.wait_perd_rl = hr_api.g_number) then
677     p_rec.wait_perd_rl :=
678     ben_epa_shd.g_old_rec.wait_perd_rl;
679   End If;
680   If (p_rec.mx_poe_det_dt_cd = hr_api.g_varchar2) then
681     p_rec.mx_poe_det_dt_cd :=
682     ben_epa_shd.g_old_rec.mx_poe_det_dt_cd;
683   End If;
684   If (p_rec.mx_poe_det_dt_rl = hr_api.g_number) then
685     p_rec.mx_poe_det_dt_rl :=
686     ben_epa_shd.g_old_rec.mx_poe_det_dt_rl;
687   End If;
688   If (p_rec.mx_poe_val = hr_api.g_number) then
689     p_rec.mx_poe_val :=
690     ben_epa_shd.g_old_rec.mx_poe_val;
691   End If;
692   If (p_rec.mx_poe_uom = hr_api.g_varchar2) then
693     p_rec.mx_poe_uom :=
694     ben_epa_shd.g_old_rec.mx_poe_uom;
695   End If;
696   If (p_rec.mx_poe_rl = hr_api.g_number) then
697     p_rec.mx_poe_rl :=
698     ben_epa_shd.g_old_rec.mx_poe_rl;
699   End If;
700   If (p_rec.mx_poe_apls_cd = hr_api.g_varchar2) then
701     p_rec.mx_poe_apls_cd :=
702     ben_epa_shd.g_old_rec.mx_poe_apls_cd;
703   End If;
704   If (p_rec.epa_attribute_category = hr_api.g_varchar2) then
705     p_rec.epa_attribute_category :=
706     ben_epa_shd.g_old_rec.epa_attribute_category;
707   End If;
708   If (p_rec.epa_attribute1 = hr_api.g_varchar2) then
709     p_rec.epa_attribute1 :=
710     ben_epa_shd.g_old_rec.epa_attribute1;
711   End If;
712   If (p_rec.epa_attribute2 = hr_api.g_varchar2) then
713     p_rec.epa_attribute2 :=
714     ben_epa_shd.g_old_rec.epa_attribute2;
715   End If;
716   If (p_rec.epa_attribute3 = hr_api.g_varchar2) then
717     p_rec.epa_attribute3 :=
718     ben_epa_shd.g_old_rec.epa_attribute3;
719   End If;
720   If (p_rec.epa_attribute4 = hr_api.g_varchar2) then
721     p_rec.epa_attribute4 :=
722     ben_epa_shd.g_old_rec.epa_attribute4;
723   End If;
724   If (p_rec.epa_attribute5 = hr_api.g_varchar2) then
725     p_rec.epa_attribute5 :=
726     ben_epa_shd.g_old_rec.epa_attribute5;
727   End If;
728   If (p_rec.epa_attribute6 = hr_api.g_varchar2) then
729     p_rec.epa_attribute6 :=
730     ben_epa_shd.g_old_rec.epa_attribute6;
731   End If;
732   If (p_rec.epa_attribute7 = hr_api.g_varchar2) then
733     p_rec.epa_attribute7 :=
734     ben_epa_shd.g_old_rec.epa_attribute7;
735   End If;
736   If (p_rec.epa_attribute8 = hr_api.g_varchar2) then
737     p_rec.epa_attribute8 :=
738     ben_epa_shd.g_old_rec.epa_attribute8;
739   End If;
740   If (p_rec.epa_attribute9 = hr_api.g_varchar2) then
741     p_rec.epa_attribute9 :=
742     ben_epa_shd.g_old_rec.epa_attribute9;
743   End If;
744   If (p_rec.epa_attribute10 = hr_api.g_varchar2) then
745     p_rec.epa_attribute10 :=
746     ben_epa_shd.g_old_rec.epa_attribute10;
747   End If;
748   If (p_rec.epa_attribute11 = hr_api.g_varchar2) then
749     p_rec.epa_attribute11 :=
750     ben_epa_shd.g_old_rec.epa_attribute11;
751   End If;
752   If (p_rec.epa_attribute12 = hr_api.g_varchar2) then
753     p_rec.epa_attribute12 :=
754     ben_epa_shd.g_old_rec.epa_attribute12;
755   End If;
756   If (p_rec.epa_attribute13 = hr_api.g_varchar2) then
757     p_rec.epa_attribute13 :=
758     ben_epa_shd.g_old_rec.epa_attribute13;
759   End If;
760   If (p_rec.epa_attribute14 = hr_api.g_varchar2) then
761     p_rec.epa_attribute14 :=
762     ben_epa_shd.g_old_rec.epa_attribute14;
763   End If;
764   If (p_rec.epa_attribute15 = hr_api.g_varchar2) then
765     p_rec.epa_attribute15 :=
766     ben_epa_shd.g_old_rec.epa_attribute15;
767   End If;
768   If (p_rec.epa_attribute16 = hr_api.g_varchar2) then
769     p_rec.epa_attribute16 :=
770     ben_epa_shd.g_old_rec.epa_attribute16;
771   End If;
772   If (p_rec.epa_attribute17 = hr_api.g_varchar2) then
773     p_rec.epa_attribute17 :=
774     ben_epa_shd.g_old_rec.epa_attribute17;
775   End If;
776   If (p_rec.epa_attribute18 = hr_api.g_varchar2) then
777     p_rec.epa_attribute18 :=
778     ben_epa_shd.g_old_rec.epa_attribute18;
779   End If;
780   If (p_rec.epa_attribute19 = hr_api.g_varchar2) then
781     p_rec.epa_attribute19 :=
782     ben_epa_shd.g_old_rec.epa_attribute19;
783   End If;
784   If (p_rec.epa_attribute20 = hr_api.g_varchar2) then
785     p_rec.epa_attribute20 :=
786     ben_epa_shd.g_old_rec.epa_attribute20;
787   End If;
788   If (p_rec.epa_attribute21 = hr_api.g_varchar2) then
789     p_rec.epa_attribute21 :=
790     ben_epa_shd.g_old_rec.epa_attribute21;
791   End If;
792   If (p_rec.epa_attribute22 = hr_api.g_varchar2) then
793     p_rec.epa_attribute22 :=
794     ben_epa_shd.g_old_rec.epa_attribute22;
795   End If;
796   If (p_rec.epa_attribute23 = hr_api.g_varchar2) then
797     p_rec.epa_attribute23 :=
798     ben_epa_shd.g_old_rec.epa_attribute23;
799   End If;
800   If (p_rec.epa_attribute24 = hr_api.g_varchar2) then
801     p_rec.epa_attribute24 :=
802     ben_epa_shd.g_old_rec.epa_attribute24;
803   End If;
804   If (p_rec.epa_attribute25 = hr_api.g_varchar2) then
805     p_rec.epa_attribute25 :=
806     ben_epa_shd.g_old_rec.epa_attribute25;
807   End If;
808   If (p_rec.epa_attribute26 = hr_api.g_varchar2) then
809     p_rec.epa_attribute26 :=
810     ben_epa_shd.g_old_rec.epa_attribute26;
811   End If;
812   If (p_rec.epa_attribute27 = hr_api.g_varchar2) then
813     p_rec.epa_attribute27 :=
814     ben_epa_shd.g_old_rec.epa_attribute27;
815   End If;
816   If (p_rec.epa_attribute28 = hr_api.g_varchar2) then
817     p_rec.epa_attribute28 :=
818     ben_epa_shd.g_old_rec.epa_attribute28;
819   End If;
820   If (p_rec.epa_attribute29 = hr_api.g_varchar2) then
821     p_rec.epa_attribute29 :=
822     ben_epa_shd.g_old_rec.epa_attribute29;
823   End If;
824   If (p_rec.epa_attribute30 = hr_api.g_varchar2) then
825     p_rec.epa_attribute30 :=
826     ben_epa_shd.g_old_rec.epa_attribute30;
827   End If;
828 
829   --
830   hr_utility.set_location(' Leaving:'||l_proc, 10);
831 --
832 End convert_defs;
833 --
834 -- ----------------------------------------------------------------------------
835 -- |---------------------------------< upd >----------------------------------|
836 -- ----------------------------------------------------------------------------
837 Procedure upd
838   (
839   p_rec            in out nocopy     ben_epa_shd.g_rec_type,
840   p_effective_date    in     date,
841   p_datetrack_mode    in     varchar2
842   ) is
843 --
844   l_proc            varchar2(72) := g_package||'upd';
845   l_validation_start_date    date;
846   l_validation_end_date        date;
847 --
848 Begin
849   hr_utility.set_location('Entering:'||l_proc, 5);
850   --
851   -- Ensure that the DateTrack update mode is valid
852   --
853   dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
854   --
855   -- We must lock the row which we need to update.
856   --
857   ben_epa_shd.lck
858     (p_effective_date     => p_effective_date,
859            p_datetrack_mode     => p_datetrack_mode,
860            p_prtn_elig_id     => p_rec.prtn_elig_id,
861            p_object_version_number => p_rec.object_version_number,
862            p_validation_start_date => l_validation_start_date,
863            p_validation_end_date     => l_validation_end_date);
864   --
865   -- 1. During an update system defaults are used to determine if
866   --    arguments have been defaulted or not. We must therefore
867   --    derive the full record structure values to be updated.
868   --
869   -- 2. Call the supporting update validate operations.
870   --
871   convert_defs(p_rec);
872   ben_epa_bus.update_validate
873     (p_rec             => p_rec,
874      p_effective_date     => p_effective_date,
875      p_datetrack_mode       => p_datetrack_mode,
876      p_validation_start_date => l_validation_start_date,
877      p_validation_end_date     => l_validation_end_date);
878   --
879   -- Call the supporting pre-update operation
880   --
881   pre_update
882     (p_rec             => p_rec,
883      p_effective_date     => p_effective_date,
884      p_datetrack_mode     => p_datetrack_mode,
885      p_validation_start_date => l_validation_start_date,
886      p_validation_end_date     => l_validation_end_date);
887   --
888   -- Update the row.
889   --
890   update_dml
891     (p_rec             => p_rec,
892      p_effective_date     => p_effective_date,
893      p_datetrack_mode     => p_datetrack_mode,
894      p_validation_start_date => l_validation_start_date,
895      p_validation_end_date     => l_validation_end_date);
896   --
897   -- Call the supporting post-update operation
898   --
899   post_update
900     (p_rec             => p_rec,
901      p_effective_date     => p_effective_date,
902      p_datetrack_mode     => p_datetrack_mode,
903      p_validation_start_date => l_validation_start_date,
904      p_validation_end_date     => l_validation_end_date);
905 End upd;
906 --
907 -- ----------------------------------------------------------------------------
908 -- |---------------------------------< upd >----------------------------------|
909 -- ----------------------------------------------------------------------------
910 Procedure upd
911   (
912   p_prtn_elig_id                 in number,
913   p_effective_start_date         out nocopy date,
914   p_effective_end_date           out nocopy date,
915   p_business_group_id            in number           default hr_api.g_number,
916   p_pgm_id                       in number           default hr_api.g_number,
917   p_pl_id                        in number           default hr_api.g_number,
918   p_oipl_id                      in number           default hr_api.g_number,
919   p_ptip_id                      in number           default hr_api.g_number,
920   p_plip_id                      in number           default hr_api.g_number,
921   p_trk_scr_for_inelg_flag       in varchar2         default hr_api.g_varchar2,
922   p_prtn_eff_strt_dt_cd          in varchar2         default hr_api.g_varchar2,
923   p_prtn_eff_end_dt_cd           in varchar2         default hr_api.g_varchar2,
924   p_prtn_eff_strt_dt_rl          in number           default hr_api.g_number,
925   p_prtn_eff_end_dt_rl           in number           default hr_api.g_number,
926   p_wait_perd_dt_to_use_cd       in varchar2         default hr_api.g_varchar2,
927   p_wait_perd_dt_to_use_rl       in number           default hr_api.g_number,
928   p_wait_perd_val                in number           default hr_api.g_number,
929   p_wait_perd_uom                in varchar2         default hr_api.g_varchar2,
930   p_wait_perd_rl                 in number           default hr_api.g_number,
931   p_mx_poe_det_dt_cd             in varchar2         default hr_api.g_varchar2,
932   p_mx_poe_det_dt_rl             in number           default hr_api.g_number,
933   p_mx_poe_val                   in number           default hr_api.g_number,
934   p_mx_poe_uom                   in varchar2         default hr_api.g_varchar2,
935   p_mx_poe_rl                    in number           default hr_api.g_number,
936   p_mx_poe_apls_cd               in varchar2         default hr_api.g_varchar2,
937   p_epa_attribute_category       in varchar2         default hr_api.g_varchar2,
938   p_epa_attribute1               in varchar2         default hr_api.g_varchar2,
939   p_epa_attribute2               in varchar2         default hr_api.g_varchar2,
940   p_epa_attribute3               in varchar2         default hr_api.g_varchar2,
941   p_epa_attribute4               in varchar2         default hr_api.g_varchar2,
942   p_epa_attribute5               in varchar2         default hr_api.g_varchar2,
943   p_epa_attribute6               in varchar2         default hr_api.g_varchar2,
944   p_epa_attribute7               in varchar2         default hr_api.g_varchar2,
945   p_epa_attribute8               in varchar2         default hr_api.g_varchar2,
946   p_epa_attribute9               in varchar2         default hr_api.g_varchar2,
947   p_epa_attribute10              in varchar2         default hr_api.g_varchar2,
948   p_epa_attribute11              in varchar2         default hr_api.g_varchar2,
949   p_epa_attribute12              in varchar2         default hr_api.g_varchar2,
950   p_epa_attribute13              in varchar2         default hr_api.g_varchar2,
951   p_epa_attribute14              in varchar2         default hr_api.g_varchar2,
952   p_epa_attribute15              in varchar2         default hr_api.g_varchar2,
953   p_epa_attribute16              in varchar2         default hr_api.g_varchar2,
954   p_epa_attribute17              in varchar2         default hr_api.g_varchar2,
955   p_epa_attribute18              in varchar2         default hr_api.g_varchar2,
956   p_epa_attribute19              in varchar2         default hr_api.g_varchar2,
957   p_epa_attribute20              in varchar2         default hr_api.g_varchar2,
958   p_epa_attribute21              in varchar2         default hr_api.g_varchar2,
959   p_epa_attribute22              in varchar2         default hr_api.g_varchar2,
960   p_epa_attribute23              in varchar2         default hr_api.g_varchar2,
961   p_epa_attribute24              in varchar2         default hr_api.g_varchar2,
962   p_epa_attribute25              in varchar2         default hr_api.g_varchar2,
963   p_epa_attribute26              in varchar2         default hr_api.g_varchar2,
964   p_epa_attribute27              in varchar2         default hr_api.g_varchar2,
965   p_epa_attribute28              in varchar2         default hr_api.g_varchar2,
966   p_epa_attribute29              in varchar2         default hr_api.g_varchar2,
967   p_epa_attribute30              in varchar2         default hr_api.g_varchar2,
968   p_object_version_number        in out nocopy number,
969   p_effective_date         in date,
970   p_datetrack_mode         in varchar2
971   ) is
972 --
973   l_rec        ben_epa_shd.g_rec_type;
974   l_proc    varchar2(72) := g_package||'upd';
975 --
976 Begin
977   hr_utility.set_location('Entering:'||l_proc, 5);
978   --
979   -- Call conversion function to turn arguments into the
980   -- l_rec structure.
981   --
982   l_rec :=
983   ben_epa_shd.convert_args
984   (
985   p_prtn_elig_id,
986   null,
987   null,
988   p_business_group_id,
989   p_pgm_id,
990   p_pl_id,
991   p_oipl_id,
992   p_ptip_id,
993   p_plip_id,
994   p_trk_scr_for_inelg_flag,
995   p_prtn_eff_strt_dt_cd,
996   p_prtn_eff_end_dt_cd,
997   p_prtn_eff_strt_dt_rl,
998   p_prtn_eff_end_dt_rl,
999   p_wait_perd_dt_to_use_cd,
1000   p_wait_perd_dt_to_use_rl,
1001   p_wait_perd_val,
1002   p_wait_perd_uom,
1003   p_wait_perd_rl,
1004   p_mx_poe_det_dt_cd,
1005   p_mx_poe_det_dt_rl,
1006   p_mx_poe_val,
1007   p_mx_poe_uom,
1008   p_mx_poe_rl,
1009   p_mx_poe_apls_cd,
1010   p_epa_attribute_category,
1011   p_epa_attribute1,
1012   p_epa_attribute2,
1013   p_epa_attribute3,
1014   p_epa_attribute4,
1015   p_epa_attribute5,
1016   p_epa_attribute6,
1017   p_epa_attribute7,
1018   p_epa_attribute8,
1019   p_epa_attribute9,
1020   p_epa_attribute10,
1021   p_epa_attribute11,
1022   p_epa_attribute12,
1023   p_epa_attribute13,
1024   p_epa_attribute14,
1025   p_epa_attribute15,
1026   p_epa_attribute16,
1027   p_epa_attribute17,
1028   p_epa_attribute18,
1029   p_epa_attribute19,
1030   p_epa_attribute20,
1031   p_epa_attribute21,
1032   p_epa_attribute22,
1033   p_epa_attribute23,
1034   p_epa_attribute24,
1035   p_epa_attribute25,
1036   p_epa_attribute26,
1037   p_epa_attribute27,
1038   p_epa_attribute28,
1039   p_epa_attribute29,
1040   p_epa_attribute30,
1041   p_object_version_number
1042   );
1043   --
1044   -- Having converted the arguments into the
1045   -- plsql record structure we call the corresponding record
1046   -- business process.
1047   --
1048   upd(l_rec, p_effective_date, p_datetrack_mode);
1049   p_object_version_number       := l_rec.object_version_number;
1050   p_effective_start_date        := l_rec.effective_start_date;
1051   p_effective_end_date          := l_rec.effective_end_date;
1052   --
1053   --
1054   hr_utility.set_location(' Leaving:'||l_proc, 10);
1055 End upd;
1056 --
1057 end ben_epa_upd;