DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_PRD_UPD

Source


1 Package Body ben_prd_upd as
2 /* $Header: beprdrhi.pkb 120.0.12010000.2 2008/08/05 15:20:11 ubhat ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33)	:= '  ben_prd_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_prd_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_paird_rt_f',
78 	   p_base_key_column	=> 'paird_rt_id',
79 	   p_base_key_value	=> p_rec.paird_rt_id);
80     --
81     ben_prd_shd.g_api_dml := true;  -- Set the api dml status
82     --
83     -- Update the ben_paird_rt_f Row
84     --
85     update  ben_paird_rt_f
86     set
87         paird_rt_id                     = p_rec.paird_rt_id,
88     use_parnt_ded_sched_flag        = p_rec.use_parnt_ded_sched_flag,
89     asn_on_chc_of_parnt_flag        = p_rec.asn_on_chc_of_parnt_flag,
90     use_parnt_prtl_mo_cd_flag       = p_rec.use_parnt_prtl_mo_cd_flag,
91     alloc_sme_as_parnt_flag         = p_rec.alloc_sme_as_parnt_flag,
92     use_parnt_pymt_sched_flag       = p_rec.use_parnt_pymt_sched_flag,
93     no_cmbnd_mx_amt_dfnd_flag       = p_rec.no_cmbnd_mx_amt_dfnd_flag,
94     cmbnd_mx_amt                    = p_rec.cmbnd_mx_amt,
95     cmbnd_mn_amt                    = p_rec.cmbnd_mn_amt,
96     cmbnd_mx_pct_num                = p_rec.cmbnd_mx_pct_num,
97     cmbnd_mn_pct_num                = p_rec.cmbnd_mn_pct_num,
98     no_cmbnd_mn_amt_dfnd_flag       = p_rec.no_cmbnd_mn_amt_dfnd_flag,
99     no_cmbnd_mn_pct_dfnd_flag       = p_rec.no_cmbnd_mn_pct_dfnd_flag,
100     no_cmbnd_mx_pct_dfnd_flag       = p_rec.no_cmbnd_mx_pct_dfnd_flag,
101     parnt_acty_base_rt_id           = p_rec.parnt_acty_base_rt_id,
102     chld_acty_base_rt_id            = p_rec.chld_acty_base_rt_id,
103     business_group_id               = p_rec.business_group_id,
104     prd_attribute_category          = p_rec.prd_attribute_category,
105     prd_attribute1                  = p_rec.prd_attribute1,
106     prd_attribute2                  = p_rec.prd_attribute2,
107     prd_attribute3                  = p_rec.prd_attribute3,
108     prd_attribute4                  = p_rec.prd_attribute4,
109     prd_attribute5                  = p_rec.prd_attribute5,
110     prd_attribute6                  = p_rec.prd_attribute6,
111     prd_attribute7                  = p_rec.prd_attribute7,
112     prd_attribute8                  = p_rec.prd_attribute8,
113     prd_attribute9                  = p_rec.prd_attribute9,
114     prd_attribute10                 = p_rec.prd_attribute10,
115     prd_attribute11                 = p_rec.prd_attribute11,
116     prd_attribute12                 = p_rec.prd_attribute12,
117     prd_attribute13                 = p_rec.prd_attribute13,
118     prd_attribute14                 = p_rec.prd_attribute14,
119     prd_attribute15                 = p_rec.prd_attribute15,
120     prd_attribute16                 = p_rec.prd_attribute16,
121     prd_attribute17                 = p_rec.prd_attribute17,
122     prd_attribute18                 = p_rec.prd_attribute18,
123     prd_attribute19                 = p_rec.prd_attribute19,
124     prd_attribute20                 = p_rec.prd_attribute20,
125     prd_attribute21                 = p_rec.prd_attribute21,
126     prd_attribute22                 = p_rec.prd_attribute22,
127     prd_attribute23                 = p_rec.prd_attribute23,
128     prd_attribute24                 = p_rec.prd_attribute24,
129     prd_attribute25                 = p_rec.prd_attribute25,
130     prd_attribute26                 = p_rec.prd_attribute26,
131     prd_attribute27                 = p_rec.prd_attribute27,
132     prd_attribute28                 = p_rec.prd_attribute28,
133     prd_attribute29                 = p_rec.prd_attribute29,
134     prd_attribute30                 = p_rec.prd_attribute30,
135     object_version_number           = p_rec.object_version_number
136     where   paird_rt_id = p_rec.paird_rt_id
137     and     effective_start_date = p_validation_start_date
138     and     effective_end_date   = p_validation_end_date;
139     --
140     ben_prd_shd.g_api_dml := false;   -- Unset the api dml status
141     --
142     -- Set the effective start and end dates
143     --
144     p_rec.effective_start_date := p_validation_start_date;
145     p_rec.effective_end_date   := p_validation_end_date;
146   End If;
147 --
148 hr_utility.set_location(' Leaving:'||l_proc, 15);
149 Exception
150   When hr_api.check_integrity_violated Then
151     -- A check constraint has been violated
152     ben_prd_shd.g_api_dml := false;   -- Unset the api dml status
153     ben_prd_shd.constraint_error
154       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
155   When hr_api.unique_integrity_violated Then
156     -- Unique integrity has been violated
157     ben_prd_shd.g_api_dml := false;   -- Unset the api dml status
158     ben_prd_shd.constraint_error
159       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
160   When Others Then
161     ben_prd_shd.g_api_dml := false;   -- Unset the api dml status
162     Raise;
163 End dt_update_dml;
164 --
165 -- ----------------------------------------------------------------------------
166 -- |------------------------------< update_dml >------------------------------|
167 -- ----------------------------------------------------------------------------
168 -- {Start Of Comments}
169 --
170 -- Description:
171 --   This procedure calls the dt_update_dml control logic which handles
172 --   the actual datetrack dml.
173 --
174 -- Prerequisites:
175 --   This is an internal private procedure which must be called from the upd
176 --   procedure.
177 --
178 -- In Parameters:
179 --   A Pl/Sql record structre.
180 --
181 -- Post Success:
182 --   Processing contines.
183 --
184 -- Post Failure:
185 --   No specific error handling is required within this procedure.
186 --
187 -- Developer Implementation Notes:
188 --   The update 'set' arguments list should be modified if any of your
189 --   attributes are not updateable.
190 --
191 -- Access Status:
192 --   Internal Row Handler Use Only.
193 --
194 -- {End Of Comments}
195 -- ----------------------------------------------------------------------------
196 Procedure update_dml
197 	(p_rec 			 in out nocopy ben_prd_shd.g_rec_type,
198 	 p_effective_date	 in	date,
199 	 p_datetrack_mode	 in	varchar2,
200 	 p_validation_start_date in	date,
201 	 p_validation_end_date	 in	date) is
202 --
203   l_proc	varchar2(72) := g_package||'update_dml';
204 --
205 Begin
206   hr_utility.set_location('Entering:'||l_proc, 5);
207   --
208   dt_update_dml(p_rec			=> p_rec,
209 		p_effective_date	=> p_effective_date,
210 		p_datetrack_mode	=> p_datetrack_mode,
211        		p_validation_start_date	=> p_validation_start_date,
212 		p_validation_end_date	=> p_validation_end_date);
213   --
214   hr_utility.set_location(' Leaving:'||l_proc, 10);
215 End update_dml;
216 --
217 -- ----------------------------------------------------------------------------
218 -- |----------------------------< dt_pre_update >-----------------------------|
219 -- ----------------------------------------------------------------------------
220 -- {Start Of Comments}
221 --
222 -- Description:
223 --   The dt_pre_update procedure controls the execution
224 --   of dml for the datetrack modes of: UPDATE, UPDATE_OVERRIDE
225 --   and UPDATE_CHANGE_INSERT only. The execution required is as
226 --   follows:
227 --
228 --   1) Providing the datetrack update mode is not 'CORRECTION'
229 --      then set the effective end date of the current row (this
230 --      will be the validation_start_date - 1).
231 --   2) If the datetrack mode is 'UPDATE_OVERRIDE' then call the
232 --      corresponding delete_dml process to delete any future rows
233 --      where the effective_start_date is greater than or equal to
234 --	the validation_start_date.
235 --   3) Call the insert_dml process to insert the new updated row
236 --      details..
237 --
238 -- Prerequisites:
239 --   This is an internal procedure which is called from the
240 --   pre_update procedure.
241 --
242 -- In Parameters:
243 --
244 -- Post Success:
245 --   Processing continues.
246 --
247 -- Post Failure:
248 --   If an error has occurred, an error message and exception will be raised
249 --   but not handled.
250 --
251 -- Developer Implementation Notes:
252 --   This is an internal procedure which is required by Datetrack. Don't
253 --   remove or modify.
254 --
255 -- Access Status:
256 --   Internal Row Handler Use Only.
257 --
258 -- {End Of Comments}
259 -- ----------------------------------------------------------------------------
260 Procedure dt_pre_update
261 	(p_rec 			 in out nocopy ben_prd_shd.g_rec_type,
262 	 p_effective_date	 in	date,
263 	 p_datetrack_mode	 in	varchar2,
264 	 p_validation_start_date in	date,
265 	 p_validation_end_date	 in	date) is
266 --
267   l_proc	         varchar2(72) := g_package||'dt_pre_update';
268   l_dummy_version_number number;
269 --
270 Begin
271   hr_utility.set_location('Entering:'||l_proc, 5);
272   If (p_datetrack_mode <> 'CORRECTION') then
273     hr_utility.set_location(l_proc, 10);
274     --
275     -- Update the current effective end date
276     --
277     ben_prd_shd.upd_effective_end_date
278      (p_effective_date	       => p_effective_date,
279       p_base_key_value	       => p_rec.paird_rt_id,
280       p_new_effective_end_date => (p_validation_start_date - 1),
281       p_validation_start_date  => p_validation_start_date,
282       p_validation_end_date    => p_validation_end_date,
283       p_object_version_number  => l_dummy_version_number);
284     --
285     If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
286       hr_utility.set_location(l_proc, 15);
287       --
288       -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
289       -- delete any future rows
290       --
291       ben_prd_del.delete_dml
292         (p_rec			 => p_rec,
293 	 p_effective_date	 => p_effective_date,
294 	 p_datetrack_mode	 => p_datetrack_mode,
295 	 p_validation_start_date => p_validation_start_date,
296 	 p_validation_end_date   => p_validation_end_date);
297     End If;
298     hr_utility.set_location(l_proc, 20);
299     --
300     -- We must now insert the updated row
301     --
302     ben_prd_ins.insert_dml
303       (p_rec			=> p_rec,
304        p_effective_date		=> p_effective_date,
305        p_datetrack_mode		=> p_datetrack_mode,
306        p_validation_start_date	=> p_validation_start_date,
307        p_validation_end_date	=> p_validation_end_date);
308   End If;
309   hr_utility.set_location(' Leaving:'||l_proc, 20);
310 End dt_pre_update;
311 --
312 -- ----------------------------------------------------------------------------
313 -- |------------------------------< pre_update >------------------------------|
314 -- ----------------------------------------------------------------------------
315 -- {Start Of Comments}
316 --
317 -- Description:
318 --   This private procedure contains any processing which is required before
319 --   the update dml.
320 --
321 -- Prerequisites:
322 --   This is an internal procedure which is called from the upd procedure.
323 --
324 -- In Parameters:
325 --   A Pl/Sql record structre.
326 --
327 -- Post Success:
328 --   Processing continues.
329 --
330 -- Post Failure:
331 --   If an error has occurred, an error message and exception will be raised
332 --   but not handled.
333 --
334 -- Developer Implementation Notes:
335 --   Any pre-processing required before the update dml is issued should be
336 --   coded within this procedure. It is important to note that any 3rd party
337 --   maintenance should be reviewed before placing in this procedure. The call
338 --   to the dt_update_dml procedure should NOT be removed.
339 --
340 -- Access Status:
341 --   Internal Row Handler Use Only.
342 --
343 -- {End Of Comments}
344 -- ----------------------------------------------------------------------------
345 Procedure pre_update
346 	(p_rec 			 in out nocopy ben_prd_shd.g_rec_type,
347 	 p_effective_date	 in	date,
348 	 p_datetrack_mode	 in	varchar2,
349 	 p_validation_start_date in	date,
350 	 p_validation_end_date	 in	date) is
351 --
352   l_proc	varchar2(72) := g_package||'pre_update';
353 --
354 Begin
355   hr_utility.set_location('Entering:'||l_proc, 5);
356   --
357   --
358   --
359   dt_pre_update
360     (p_rec 		     => p_rec,
361      p_effective_date	     => p_effective_date,
362      p_datetrack_mode	     => p_datetrack_mode,
363      p_validation_start_date => p_validation_start_date,
364      p_validation_end_date   => p_validation_end_date);
365   --
366   hr_utility.set_location(' Leaving:'||l_proc, 10);
367 End pre_update;
368 --
369 -- ----------------------------------------------------------------------------
370 -- |-----------------------------< post_update >------------------------------|
371 -- ----------------------------------------------------------------------------
372 -- {Start Of Comments}
373 --
374 -- Description:
375 --   This private procedure contains any processing which is required after the
376 --   update dml.
377 --
378 -- Prerequisites:
379 --   This is an internal procedure which is called from the upd procedure.
380 --
381 -- In Parameters:
382 --   A Pl/Sql record structre.
383 --
384 -- Post Success:
385 --   Processing continues.
386 --
387 -- Post Failure:
388 --   If an error has occurred, an error message and exception will be raised
389 --   but not handled.
390 --
391 -- Developer Implementation Notes:
392 --   Any post-processing required after the update dml is issued should be
393 --   coded within this procedure. It is important to note that any 3rd party
394 --   maintenance should be reviewed before placing in this procedure.
395 --
396 -- Access Status:
397 --   Internal Row Handler Use Only.
398 --
399 -- {End Of Comments}
400 -- ----------------------------------------------------------------------------
401 Procedure post_update
402 	(p_rec 			 in ben_prd_shd.g_rec_type,
403 	 p_effective_date	 in date,
404 	 p_datetrack_mode	 in varchar2,
405 	 p_validation_start_date in date,
406 	 p_validation_end_date	 in date) is
407 --
408   l_proc	varchar2(72) := g_package||'post_update';
409 --
410 Begin
411   hr_utility.set_location('Entering:'||l_proc, 5);
412 --
413   --
414   -- Start of API User Hook for post_update.
415   --
416   begin
417     --
418     ben_prd_rku.after_update
419       (
420   p_paird_rt_id                   =>p_rec.paird_rt_id
421  ,p_effective_start_date          =>p_rec.effective_start_date
422  ,p_effective_end_date            =>p_rec.effective_end_date
423  ,p_use_parnt_ded_sched_flag      =>p_rec.use_parnt_ded_sched_flag
424  ,p_asn_on_chc_of_parnt_flag      =>p_rec.asn_on_chc_of_parnt_flag
425  ,p_use_parnt_prtl_mo_cd_flag     =>p_rec.use_parnt_prtl_mo_cd_flag
426  ,p_alloc_sme_as_parnt_flag       =>p_rec.alloc_sme_as_parnt_flag
427  ,p_use_parnt_pymt_sched_flag     =>p_rec.use_parnt_pymt_sched_flag
428  ,p_no_cmbnd_mx_amt_dfnd_flag     =>p_rec.no_cmbnd_mx_amt_dfnd_flag
429  ,p_cmbnd_mx_amt                  =>p_rec.cmbnd_mx_amt
430  ,p_cmbnd_mn_amt                  =>p_rec.cmbnd_mn_amt
431  ,p_cmbnd_mx_pct_num              =>p_rec.cmbnd_mx_pct_num
432  ,p_cmbnd_mn_pct_num              =>p_rec.cmbnd_mn_pct_num
433  ,p_no_cmbnd_mn_amt_dfnd_flag     =>p_rec.no_cmbnd_mn_amt_dfnd_flag
434  ,p_no_cmbnd_mn_pct_dfnd_flag     =>p_rec.no_cmbnd_mn_pct_dfnd_flag
435  ,p_no_cmbnd_mx_pct_dfnd_flag     =>p_rec.no_cmbnd_mx_pct_dfnd_flag
436  ,p_parnt_acty_base_rt_id         =>p_rec.parnt_acty_base_rt_id
437  ,p_chld_acty_base_rt_id          =>p_rec.chld_acty_base_rt_id
438  ,p_business_group_id             =>p_rec.business_group_id
439  ,p_prd_attribute_category        =>p_rec.prd_attribute_category
440  ,p_prd_attribute1                =>p_rec.prd_attribute1
441  ,p_prd_attribute2                =>p_rec.prd_attribute2
442  ,p_prd_attribute3                =>p_rec.prd_attribute3
443  ,p_prd_attribute4                =>p_rec.prd_attribute4
444  ,p_prd_attribute5                =>p_rec.prd_attribute5
445  ,p_prd_attribute6                =>p_rec.prd_attribute6
446  ,p_prd_attribute7                =>p_rec.prd_attribute7
447  ,p_prd_attribute8                =>p_rec.prd_attribute8
448  ,p_prd_attribute9                =>p_rec.prd_attribute9
449  ,p_prd_attribute10               =>p_rec.prd_attribute10
450  ,p_prd_attribute11               =>p_rec.prd_attribute11
451  ,p_prd_attribute12               =>p_rec.prd_attribute12
452  ,p_prd_attribute13               =>p_rec.prd_attribute13
453  ,p_prd_attribute14               =>p_rec.prd_attribute14
454  ,p_prd_attribute15               =>p_rec.prd_attribute15
455  ,p_prd_attribute16               =>p_rec.prd_attribute16
456  ,p_prd_attribute17               =>p_rec.prd_attribute17
457  ,p_prd_attribute18               =>p_rec.prd_attribute18
458  ,p_prd_attribute19               =>p_rec.prd_attribute19
459  ,p_prd_attribute20               =>p_rec.prd_attribute20
460  ,p_prd_attribute21               =>p_rec.prd_attribute21
461  ,p_prd_attribute22               =>p_rec.prd_attribute22
462  ,p_prd_attribute23               =>p_rec.prd_attribute23
463  ,p_prd_attribute24               =>p_rec.prd_attribute24
464  ,p_prd_attribute25               =>p_rec.prd_attribute25
465  ,p_prd_attribute26               =>p_rec.prd_attribute26
466  ,p_prd_attribute27               =>p_rec.prd_attribute27
467  ,p_prd_attribute28               =>p_rec.prd_attribute28
468  ,p_prd_attribute29               =>p_rec.prd_attribute29
469  ,p_prd_attribute30               =>p_rec.prd_attribute30
470  ,p_object_version_number         =>p_rec.object_version_number
471  ,p_effective_date                =>p_effective_date
472  ,p_datetrack_mode                =>p_datetrack_mode
473  ,p_validation_start_date         =>p_validation_start_date
474  ,p_validation_end_date           =>p_validation_end_date
475  ,p_effective_start_date_o        =>ben_prd_shd.g_old_rec.effective_start_date
476  ,p_effective_end_date_o          =>ben_prd_shd.g_old_rec.effective_end_date
477  ,p_use_parnt_ded_sched_flag_o    =>ben_prd_shd.g_old_rec.use_parnt_ded_sched_flag
478  ,p_asn_on_chc_of_parnt_flag_o    =>ben_prd_shd.g_old_rec.asn_on_chc_of_parnt_flag
479  ,p_use_parnt_prtl_mo_cd_flag_o   =>ben_prd_shd.g_old_rec.use_parnt_prtl_mo_cd_flag
480  ,p_alloc_sme_as_parnt_flag_o     =>ben_prd_shd.g_old_rec.alloc_sme_as_parnt_flag
481  ,p_use_parnt_pymt_sched_flag_o   =>ben_prd_shd.g_old_rec.use_parnt_pymt_sched_flag
482  ,p_no_cmbnd_mx_amt_dfnd_flag_o   =>ben_prd_shd.g_old_rec.no_cmbnd_mx_amt_dfnd_flag
483  ,p_cmbnd_mx_amt_o                =>ben_prd_shd.g_old_rec.cmbnd_mx_amt
484  ,p_cmbnd_mn_amt_o                =>ben_prd_shd.g_old_rec.cmbnd_mn_amt
485  ,p_cmbnd_mx_pct_num_o            =>ben_prd_shd.g_old_rec.cmbnd_mx_pct_num
486  ,p_cmbnd_mn_pct_num_o            =>ben_prd_shd.g_old_rec.cmbnd_mn_pct_num
487  ,p_no_cmbnd_mn_amt_dfnd_flag_o   =>ben_prd_shd.g_old_rec.no_cmbnd_mn_amt_dfnd_flag
488  ,p_no_cmbnd_mn_pct_dfnd_flag_o   =>ben_prd_shd.g_old_rec.no_cmbnd_mn_pct_dfnd_flag
489  ,p_no_cmbnd_mx_pct_dfnd_flag_o   =>ben_prd_shd.g_old_rec.no_cmbnd_mx_pct_dfnd_flag
490  ,p_parnt_acty_base_rt_id_o       =>ben_prd_shd.g_old_rec.parnt_acty_base_rt_id
491  ,p_chld_acty_base_rt_id_o        =>ben_prd_shd.g_old_rec.chld_acty_base_rt_id
492  ,p_business_group_id_o           =>ben_prd_shd.g_old_rec.business_group_id
493  ,p_prd_attribute_category_o      =>ben_prd_shd.g_old_rec.prd_attribute_category
494  ,p_prd_attribute1_o              =>ben_prd_shd.g_old_rec.prd_attribute1
495  ,p_prd_attribute2_o              =>ben_prd_shd.g_old_rec.prd_attribute2
496  ,p_prd_attribute3_o              =>ben_prd_shd.g_old_rec.prd_attribute3
497  ,p_prd_attribute4_o              =>ben_prd_shd.g_old_rec.prd_attribute4
498  ,p_prd_attribute5_o              =>ben_prd_shd.g_old_rec.prd_attribute5
499  ,p_prd_attribute6_o              =>ben_prd_shd.g_old_rec.prd_attribute6
500  ,p_prd_attribute7_o              =>ben_prd_shd.g_old_rec.prd_attribute7
501  ,p_prd_attribute8_o              =>ben_prd_shd.g_old_rec.prd_attribute8
502  ,p_prd_attribute9_o              =>ben_prd_shd.g_old_rec.prd_attribute9
503  ,p_prd_attribute10_o             =>ben_prd_shd.g_old_rec.prd_attribute10
504  ,p_prd_attribute11_o             =>ben_prd_shd.g_old_rec.prd_attribute11
505  ,p_prd_attribute12_o             =>ben_prd_shd.g_old_rec.prd_attribute12
506  ,p_prd_attribute13_o             =>ben_prd_shd.g_old_rec.prd_attribute13
507  ,p_prd_attribute14_o             =>ben_prd_shd.g_old_rec.prd_attribute14
508  ,p_prd_attribute15_o             =>ben_prd_shd.g_old_rec.prd_attribute15
509  ,p_prd_attribute16_o             =>ben_prd_shd.g_old_rec.prd_attribute16
510  ,p_prd_attribute17_o             =>ben_prd_shd.g_old_rec.prd_attribute17
511  ,p_prd_attribute18_o             =>ben_prd_shd.g_old_rec.prd_attribute18
512  ,p_prd_attribute19_o             =>ben_prd_shd.g_old_rec.prd_attribute19
513  ,p_prd_attribute20_o             =>ben_prd_shd.g_old_rec.prd_attribute20
514  ,p_prd_attribute21_o             =>ben_prd_shd.g_old_rec.prd_attribute21
515  ,p_prd_attribute22_o             =>ben_prd_shd.g_old_rec.prd_attribute22
516  ,p_prd_attribute23_o             =>ben_prd_shd.g_old_rec.prd_attribute23
517  ,p_prd_attribute24_o             =>ben_prd_shd.g_old_rec.prd_attribute24
518  ,p_prd_attribute25_o             =>ben_prd_shd.g_old_rec.prd_attribute25
519  ,p_prd_attribute26_o             =>ben_prd_shd.g_old_rec.prd_attribute26
520  ,p_prd_attribute27_o             =>ben_prd_shd.g_old_rec.prd_attribute27
521  ,p_prd_attribute28_o             =>ben_prd_shd.g_old_rec.prd_attribute28
522  ,p_prd_attribute29_o             =>ben_prd_shd.g_old_rec.prd_attribute29
523  ,p_prd_attribute30_o             =>ben_prd_shd.g_old_rec.prd_attribute30
524  ,p_object_version_number_o       =>ben_prd_shd.g_old_rec.object_version_number
525       );
526     --
527   exception
528     --
529     when hr_api.cannot_find_prog_unit then
530       --
531       hr_api.cannot_find_prog_unit_error
532         (p_module_name => 'ben_paird_rt_f'
533         ,p_hook_type   => 'AU');
534       --
535   end;
536   --
537   -- End of API User Hook for post_update.
538   --
539   --
540   hr_utility.set_location(' Leaving:'||l_proc, 10);
541 End post_update;
542 --
543 -- ----------------------------------------------------------------------------
544 -- |-----------------------------< convert_defs >-----------------------------|
545 -- ----------------------------------------------------------------------------
546 -- {Start Of Comments}
547 --
548 -- Description:
549 --   The Convert_Defs procedure has one very important function:
550 --   It must return the record structure for the row with all system defaulted
551 --   values converted into its corresponding parameter value for update. When
552 --   we attempt to update a row through the Upd process , certain
553 --   parameters can be defaulted which enables flexibility in the calling of
554 --   the upd process (e.g. only attributes which need to be updated need to be
555 --   specified). For the upd process to determine which attributes
556 --   have NOT been specified we need to check if the parameter has a reserved
557 --   system default value. Therefore, for all parameters which have a
558 --   corresponding reserved system default mechanism specified we need to
559 --   check if a system default is being used. If a system default is being
560 --   used then we convert the defaulted value into its corresponding attribute
561 --   value held in the g_old_rec data structure.
562 --
563 -- Prerequisites:
564 --   This private function can only be called from the upd process.
565 --
566 -- In Parameters:
567 --   A Pl/Sql record structre.
568 --
569 -- Post Success:
570 --   The record structure will be returned with all system defaulted parameter
571 --   values converted into its current row attribute value.
572 --
573 -- Post Failure:
574 --   No direct error handling is required within this function. Any possible
575 --   errors within this procedure will be a PL/SQL value error due to conversion
576 --   of datatypes or data lengths.
577 --
578 -- Developer Implementation Notes:
579 --   None.
580 --
581 -- Access Status:
582 --   Internal Row Handler Use Only.
583 --
584 -- {End Of Comments}
585 -- ----------------------------------------------------------------------------
586 Procedure convert_defs(p_rec in out nocopy ben_prd_shd.g_rec_type) is
587 --
588   l_proc  varchar2(72) := g_package||'convert_defs';
589 --
590 Begin
591   --
592   hr_utility.set_location('Entering:'||l_proc, 5);
593   --
594   -- We must now examine each argument value in the
595   -- p_rec plsql record structure
596   -- to see if a system default is being used. If a system default
597   -- is being used then we must set to the 'current' argument value.
598   --
599   If (p_rec.use_parnt_ded_sched_flag = hr_api.g_varchar2) then
600     p_rec.use_parnt_ded_sched_flag :=
601     ben_prd_shd.g_old_rec.use_parnt_ded_sched_flag;
602   End If;
603   If (p_rec.asn_on_chc_of_parnt_flag = hr_api.g_varchar2) then
604     p_rec.asn_on_chc_of_parnt_flag :=
605     ben_prd_shd.g_old_rec.asn_on_chc_of_parnt_flag;
606   End If;
607   If (p_rec.use_parnt_prtl_mo_cd_flag = hr_api.g_varchar2) then
608     p_rec.use_parnt_prtl_mo_cd_flag :=
609     ben_prd_shd.g_old_rec.use_parnt_prtl_mo_cd_flag;
610   End If;
611   If (p_rec.alloc_sme_as_parnt_flag = hr_api.g_varchar2) then
612     p_rec.alloc_sme_as_parnt_flag :=
613     ben_prd_shd.g_old_rec.alloc_sme_as_parnt_flag;
614   End If;
615   If (p_rec.use_parnt_pymt_sched_flag = hr_api.g_varchar2) then
616     p_rec.use_parnt_pymt_sched_flag :=
617     ben_prd_shd.g_old_rec.use_parnt_pymt_sched_flag;
618   End If;
619   If (p_rec.no_cmbnd_mx_amt_dfnd_flag = hr_api.g_varchar2) then
620     p_rec.no_cmbnd_mx_amt_dfnd_flag :=
621     ben_prd_shd.g_old_rec.no_cmbnd_mx_amt_dfnd_flag;
622   End If;
623   If (p_rec.cmbnd_mx_amt = hr_api.g_number) then
624     p_rec.cmbnd_mx_amt :=
625     ben_prd_shd.g_old_rec.cmbnd_mx_amt;
626   End If;
627   If (p_rec.cmbnd_mn_amt = hr_api.g_number) then
628     p_rec.cmbnd_mn_amt :=
629     ben_prd_shd.g_old_rec.cmbnd_mn_amt;
630   End If;
631   If (p_rec.cmbnd_mx_pct_num = hr_api.g_number) then
632     p_rec.cmbnd_mx_pct_num :=
633     ben_prd_shd.g_old_rec.cmbnd_mx_pct_num;
634   End If;
635   If (p_rec.cmbnd_mn_pct_num = hr_api.g_number) then
636     p_rec.cmbnd_mn_pct_num :=
637     ben_prd_shd.g_old_rec.cmbnd_mn_pct_num;
638   End If;
639   If (p_rec.no_cmbnd_mn_amt_dfnd_flag = hr_api.g_varchar2) then
640     p_rec.no_cmbnd_mn_amt_dfnd_flag :=
641     ben_prd_shd.g_old_rec.no_cmbnd_mn_amt_dfnd_flag;
642   End If;
643   If (p_rec.no_cmbnd_mn_pct_dfnd_flag = hr_api.g_varchar2) then
644     p_rec.no_cmbnd_mn_pct_dfnd_flag :=
645     ben_prd_shd.g_old_rec.no_cmbnd_mn_pct_dfnd_flag;
646   End If;
647   If (p_rec.no_cmbnd_mx_pct_dfnd_flag = hr_api.g_varchar2) then
648     p_rec.no_cmbnd_mx_pct_dfnd_flag :=
649     ben_prd_shd.g_old_rec.no_cmbnd_mx_pct_dfnd_flag;
650   End If;
651   If (p_rec.parnt_acty_base_rt_id = hr_api.g_number) then
652     p_rec.parnt_acty_base_rt_id :=
653     ben_prd_shd.g_old_rec.parnt_acty_base_rt_id;
654   End If;
655   If (p_rec.chld_acty_base_rt_id = hr_api.g_number) then
656     p_rec.chld_acty_base_rt_id :=
657     ben_prd_shd.g_old_rec.chld_acty_base_rt_id;
658   End If;
659   If (p_rec.business_group_id = hr_api.g_number) then
660     p_rec.business_group_id :=
661     ben_prd_shd.g_old_rec.business_group_id;
662   End If;
663   If (p_rec.prd_attribute_category = hr_api.g_varchar2) then
664     p_rec.prd_attribute_category :=
665     ben_prd_shd.g_old_rec.prd_attribute_category;
666   End If;
667   If (p_rec.prd_attribute1 = hr_api.g_varchar2) then
668     p_rec.prd_attribute1 :=
669     ben_prd_shd.g_old_rec.prd_attribute1;
670   End If;
671   If (p_rec.prd_attribute2 = hr_api.g_varchar2) then
672     p_rec.prd_attribute2 :=
673     ben_prd_shd.g_old_rec.prd_attribute2;
674   End If;
675   If (p_rec.prd_attribute3 = hr_api.g_varchar2) then
676     p_rec.prd_attribute3 :=
677     ben_prd_shd.g_old_rec.prd_attribute3;
678   End If;
679   If (p_rec.prd_attribute4 = hr_api.g_varchar2) then
680     p_rec.prd_attribute4 :=
681     ben_prd_shd.g_old_rec.prd_attribute4;
682   End If;
683   If (p_rec.prd_attribute5 = hr_api.g_varchar2) then
684     p_rec.prd_attribute5 :=
685     ben_prd_shd.g_old_rec.prd_attribute5;
686   End If;
687   If (p_rec.prd_attribute6 = hr_api.g_varchar2) then
688     p_rec.prd_attribute6 :=
689     ben_prd_shd.g_old_rec.prd_attribute6;
690   End If;
691   If (p_rec.prd_attribute7 = hr_api.g_varchar2) then
692     p_rec.prd_attribute7 :=
693     ben_prd_shd.g_old_rec.prd_attribute7;
694   End If;
695   If (p_rec.prd_attribute8 = hr_api.g_varchar2) then
696     p_rec.prd_attribute8 :=
697     ben_prd_shd.g_old_rec.prd_attribute8;
698   End If;
699   If (p_rec.prd_attribute9 = hr_api.g_varchar2) then
700     p_rec.prd_attribute9 :=
701     ben_prd_shd.g_old_rec.prd_attribute9;
702   End If;
703   If (p_rec.prd_attribute10 = hr_api.g_varchar2) then
704     p_rec.prd_attribute10 :=
705     ben_prd_shd.g_old_rec.prd_attribute10;
706   End If;
707   If (p_rec.prd_attribute11 = hr_api.g_varchar2) then
708     p_rec.prd_attribute11 :=
709     ben_prd_shd.g_old_rec.prd_attribute11;
710   End If;
711   If (p_rec.prd_attribute12 = hr_api.g_varchar2) then
712     p_rec.prd_attribute12 :=
713     ben_prd_shd.g_old_rec.prd_attribute12;
714   End If;
715   If (p_rec.prd_attribute13 = hr_api.g_varchar2) then
716     p_rec.prd_attribute13 :=
717     ben_prd_shd.g_old_rec.prd_attribute13;
718   End If;
719   If (p_rec.prd_attribute14 = hr_api.g_varchar2) then
720     p_rec.prd_attribute14 :=
721     ben_prd_shd.g_old_rec.prd_attribute14;
722   End If;
723   If (p_rec.prd_attribute15 = hr_api.g_varchar2) then
724     p_rec.prd_attribute15 :=
725     ben_prd_shd.g_old_rec.prd_attribute15;
726   End If;
727   If (p_rec.prd_attribute16 = hr_api.g_varchar2) then
728     p_rec.prd_attribute16 :=
729     ben_prd_shd.g_old_rec.prd_attribute16;
730   End If;
731   If (p_rec.prd_attribute17 = hr_api.g_varchar2) then
732     p_rec.prd_attribute17 :=
733     ben_prd_shd.g_old_rec.prd_attribute17;
734   End If;
735   If (p_rec.prd_attribute18 = hr_api.g_varchar2) then
736     p_rec.prd_attribute18 :=
737     ben_prd_shd.g_old_rec.prd_attribute18;
738   End If;
739   If (p_rec.prd_attribute19 = hr_api.g_varchar2) then
740     p_rec.prd_attribute19 :=
741     ben_prd_shd.g_old_rec.prd_attribute19;
742   End If;
743   If (p_rec.prd_attribute20 = hr_api.g_varchar2) then
744     p_rec.prd_attribute20 :=
745     ben_prd_shd.g_old_rec.prd_attribute20;
746   End If;
747   If (p_rec.prd_attribute21 = hr_api.g_varchar2) then
748     p_rec.prd_attribute21 :=
749     ben_prd_shd.g_old_rec.prd_attribute21;
750   End If;
751   If (p_rec.prd_attribute22 = hr_api.g_varchar2) then
752     p_rec.prd_attribute22 :=
753     ben_prd_shd.g_old_rec.prd_attribute22;
754   End If;
755   If (p_rec.prd_attribute23 = hr_api.g_varchar2) then
756     p_rec.prd_attribute23 :=
757     ben_prd_shd.g_old_rec.prd_attribute23;
758   End If;
759   If (p_rec.prd_attribute24 = hr_api.g_varchar2) then
760     p_rec.prd_attribute24 :=
761     ben_prd_shd.g_old_rec.prd_attribute24;
762   End If;
763   If (p_rec.prd_attribute25 = hr_api.g_varchar2) then
764     p_rec.prd_attribute25 :=
765     ben_prd_shd.g_old_rec.prd_attribute25;
766   End If;
767   If (p_rec.prd_attribute26 = hr_api.g_varchar2) then
768     p_rec.prd_attribute26 :=
769     ben_prd_shd.g_old_rec.prd_attribute26;
770   End If;
771   If (p_rec.prd_attribute27 = hr_api.g_varchar2) then
772     p_rec.prd_attribute27 :=
773     ben_prd_shd.g_old_rec.prd_attribute27;
774   End If;
775   If (p_rec.prd_attribute28 = hr_api.g_varchar2) then
776     p_rec.prd_attribute28 :=
777     ben_prd_shd.g_old_rec.prd_attribute28;
778   End If;
779   If (p_rec.prd_attribute29 = hr_api.g_varchar2) then
780     p_rec.prd_attribute29 :=
781     ben_prd_shd.g_old_rec.prd_attribute29;
782   End If;
783   If (p_rec.prd_attribute30 = hr_api.g_varchar2) then
784     p_rec.prd_attribute30 :=
785     ben_prd_shd.g_old_rec.prd_attribute30;
786   End If;
787 
788   --
789   hr_utility.set_location(' Leaving:'||l_proc, 10);
790 --
791 End convert_defs;
792 --
793 -- ----------------------------------------------------------------------------
794 -- |---------------------------------< upd >----------------------------------|
795 -- ----------------------------------------------------------------------------
796 Procedure upd
797   (
798   p_rec			in out nocopy 	ben_prd_shd.g_rec_type,
799   p_effective_date	in 	date,
800   p_datetrack_mode	in 	varchar2
801   ) is
802 --
803   l_proc			varchar2(72) := g_package||'upd';
804   l_validation_start_date	date;
805   l_validation_end_date		date;
806 --
807 Begin
808   hr_utility.set_location('Entering:'||l_proc, 5);
809   --
810   -- Ensure that the DateTrack update mode is valid
811   --
812   dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
813   --
814   -- We must lock the row which we need to update.
815   --
816   ben_prd_shd.lck
817 	(p_effective_date	 => p_effective_date,
818       	 p_datetrack_mode	 => p_datetrack_mode,
819       	 p_paird_rt_id	 => p_rec.paird_rt_id,
820       	 p_object_version_number => p_rec.object_version_number,
821       	 p_validation_start_date => l_validation_start_date,
822       	 p_validation_end_date	 => l_validation_end_date);
823   --
824   -- 1. During an update system defaults are used to determine if
825   --    arguments have been defaulted or not. We must therefore
826   --    derive the full record structure values to be updated.
827   --
828   -- 2. Call the supporting update validate operations.
829   --
830   convert_defs(p_rec);
831   ben_prd_bus.update_validate
832 	(p_rec			 => p_rec,
833 	 p_effective_date	 => p_effective_date,
834 	 p_datetrack_mode  	 => p_datetrack_mode,
835 	 p_validation_start_date => l_validation_start_date,
836 	 p_validation_end_date	 => l_validation_end_date);
837   --
838   -- Call the supporting pre-update operation
839   --
840   pre_update
841 	(p_rec			 => p_rec,
842 	 p_effective_date	 => p_effective_date,
843 	 p_datetrack_mode	 => p_datetrack_mode,
844 	 p_validation_start_date => l_validation_start_date,
845 	 p_validation_end_date	 => l_validation_end_date);
846   --
847   -- Update the row.
848   --
849   update_dml
850 	(p_rec			 => p_rec,
851 	 p_effective_date	 => p_effective_date,
852 	 p_datetrack_mode	 => p_datetrack_mode,
853 	 p_validation_start_date => l_validation_start_date,
854 	 p_validation_end_date	 => l_validation_end_date);
855   --
856   -- Call the supporting post-update operation
857   --
858   post_update
859 	(p_rec			 => p_rec,
860 	 p_effective_date	 => p_effective_date,
861 	 p_datetrack_mode	 => p_datetrack_mode,
862 	 p_validation_start_date => l_validation_start_date,
863 	 p_validation_end_date	 => l_validation_end_date);
864 End upd;
865 --
866 -- ----------------------------------------------------------------------------
867 -- |---------------------------------< upd >----------------------------------|
868 -- ----------------------------------------------------------------------------
869 Procedure upd
870   (
871   p_paird_rt_id                  in number,
872   p_effective_start_date         out nocopy date,
873   p_effective_end_date           out nocopy date,
874   p_use_parnt_ded_sched_flag     in varchar2         default hr_api.g_varchar2,
875   p_asn_on_chc_of_parnt_flag     in varchar2         default hr_api.g_varchar2,
876   p_use_parnt_prtl_mo_cd_flag    in varchar2         default hr_api.g_varchar2,
877   p_alloc_sme_as_parnt_flag      in varchar2         default hr_api.g_varchar2,
878   p_use_parnt_pymt_sched_flag    in varchar2         default hr_api.g_varchar2,
879   p_no_cmbnd_mx_amt_dfnd_flag    in varchar2         default hr_api.g_varchar2,
880   p_cmbnd_mx_amt                 in number           default hr_api.g_number,
881   p_cmbnd_mn_amt                 in number           default hr_api.g_number,
882   p_cmbnd_mx_pct_num             in number           default hr_api.g_number,
883   p_cmbnd_mn_pct_num             in number           default hr_api.g_number,
884   p_no_cmbnd_mn_amt_dfnd_flag    in varchar2         default hr_api.g_varchar2,
885   p_no_cmbnd_mn_pct_dfnd_flag    in varchar2         default hr_api.g_varchar2,
886   p_no_cmbnd_mx_pct_dfnd_flag    in varchar2         default hr_api.g_varchar2,
887   p_parnt_acty_base_rt_id        in number           default hr_api.g_number,
888   p_chld_acty_base_rt_id         in number           default hr_api.g_number,
889   p_business_group_id            in number           default hr_api.g_number,
890   p_prd_attribute_category       in varchar2         default hr_api.g_varchar2,
891   p_prd_attribute1               in varchar2         default hr_api.g_varchar2,
892   p_prd_attribute2               in varchar2         default hr_api.g_varchar2,
893   p_prd_attribute3               in varchar2         default hr_api.g_varchar2,
894   p_prd_attribute4               in varchar2         default hr_api.g_varchar2,
895   p_prd_attribute5               in varchar2         default hr_api.g_varchar2,
896   p_prd_attribute6               in varchar2         default hr_api.g_varchar2,
897   p_prd_attribute7               in varchar2         default hr_api.g_varchar2,
898   p_prd_attribute8               in varchar2         default hr_api.g_varchar2,
899   p_prd_attribute9               in varchar2         default hr_api.g_varchar2,
900   p_prd_attribute10              in varchar2         default hr_api.g_varchar2,
901   p_prd_attribute11              in varchar2         default hr_api.g_varchar2,
902   p_prd_attribute12              in varchar2         default hr_api.g_varchar2,
903   p_prd_attribute13              in varchar2         default hr_api.g_varchar2,
904   p_prd_attribute14              in varchar2         default hr_api.g_varchar2,
905   p_prd_attribute15              in varchar2         default hr_api.g_varchar2,
906   p_prd_attribute16              in varchar2         default hr_api.g_varchar2,
907   p_prd_attribute17              in varchar2         default hr_api.g_varchar2,
908   p_prd_attribute18              in varchar2         default hr_api.g_varchar2,
909   p_prd_attribute19              in varchar2         default hr_api.g_varchar2,
910   p_prd_attribute20              in varchar2         default hr_api.g_varchar2,
911   p_prd_attribute21              in varchar2         default hr_api.g_varchar2,
912   p_prd_attribute22              in varchar2         default hr_api.g_varchar2,
913   p_prd_attribute23              in varchar2         default hr_api.g_varchar2,
914   p_prd_attribute24              in varchar2         default hr_api.g_varchar2,
915   p_prd_attribute25              in varchar2         default hr_api.g_varchar2,
916   p_prd_attribute26              in varchar2         default hr_api.g_varchar2,
917   p_prd_attribute27              in varchar2         default hr_api.g_varchar2,
918   p_prd_attribute28              in varchar2         default hr_api.g_varchar2,
919   p_prd_attribute29              in varchar2         default hr_api.g_varchar2,
920   p_prd_attribute30              in varchar2         default hr_api.g_varchar2,
921   p_object_version_number        in out nocopy number,
922   p_effective_date		 in date,
923   p_datetrack_mode		 in varchar2
924   ) is
925 --
926   l_rec		ben_prd_shd.g_rec_type;
927   l_proc	varchar2(72) := g_package||'upd';
928 --
929 Begin
930   hr_utility.set_location('Entering:'||l_proc, 5);
931   --
932   -- Call conversion function to turn arguments into the
933   -- l_rec structure.
934   --
935   l_rec :=
936   ben_prd_shd.convert_args
937   (
938   p_paird_rt_id,
939   null,
940   null,
941   p_use_parnt_ded_sched_flag,
942   p_asn_on_chc_of_parnt_flag,
943   p_use_parnt_prtl_mo_cd_flag,
944   p_alloc_sme_as_parnt_flag,
945   p_use_parnt_pymt_sched_flag,
946   p_no_cmbnd_mx_amt_dfnd_flag,
947   p_cmbnd_mx_amt,
948   p_cmbnd_mn_amt,
949   p_cmbnd_mx_pct_num,
950   p_cmbnd_mn_pct_num,
951   p_no_cmbnd_mn_amt_dfnd_flag,
952   p_no_cmbnd_mn_pct_dfnd_flag,
953   p_no_cmbnd_mx_pct_dfnd_flag,
954   p_parnt_acty_base_rt_id,
955   p_chld_acty_base_rt_id,
956   p_business_group_id,
957   p_prd_attribute_category,
958   p_prd_attribute1,
959   p_prd_attribute2,
960   p_prd_attribute3,
961   p_prd_attribute4,
962   p_prd_attribute5,
963   p_prd_attribute6,
964   p_prd_attribute7,
965   p_prd_attribute8,
966   p_prd_attribute9,
967   p_prd_attribute10,
968   p_prd_attribute11,
969   p_prd_attribute12,
970   p_prd_attribute13,
971   p_prd_attribute14,
972   p_prd_attribute15,
973   p_prd_attribute16,
974   p_prd_attribute17,
975   p_prd_attribute18,
976   p_prd_attribute19,
977   p_prd_attribute20,
978   p_prd_attribute21,
979   p_prd_attribute22,
980   p_prd_attribute23,
981   p_prd_attribute24,
982   p_prd_attribute25,
983   p_prd_attribute26,
984   p_prd_attribute27,
985   p_prd_attribute28,
986   p_prd_attribute29,
987   p_prd_attribute30,
988   p_object_version_number
989   );
990   --
991   -- Having converted the arguments into the
992   -- plsql record structure we call the corresponding record
993   -- business process.
994   --
995   upd(l_rec, p_effective_date, p_datetrack_mode);
996   p_object_version_number       := l_rec.object_version_number;
997   p_effective_start_date        := l_rec.effective_start_date;
998   p_effective_end_date          := l_rec.effective_end_date;
999   --
1000   --
1001   hr_utility.set_location(' Leaving:'||l_proc, 10);
1002 End upd;
1003 --
1004 end ben_prd_upd;