DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_PERCENT_FT_FACTORS_API

Source


1 Package Body ben_percent_ft_factors_api as
2 /* $Header: bepffapi.pkb 120.0 2005/05/28 10:41:53 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package  varchar2(33) := '  ben_percent_ft_factors_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_percent_ft_factors >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_percent_ft_factors
13   (p_validate                       in  boolean   default false
14   ,p_pct_fl_tm_fctr_id              out nocopy number
15   ,p_name                           in  varchar2  default null
16   ,p_business_group_id              in  number    default null
17   ,p_mx_pct_val                     in  number    default null
18   ,p_mn_pct_val                     in  number    default null
19   ,p_no_mn_pct_val_flag             in  varchar2  default null
20   ,p_no_mx_pct_val_flag             in  varchar2  default null
21   ,p_use_prmry_asnt_only_flag       in  varchar2  default null
22   ,p_use_sum_of_all_asnts_flag      in  varchar2  default null
23   ,p_rndg_cd                        in  varchar2  default null
24   ,p_rndg_rl                        in  number    default null
25   ,p_pff_attribute_category         in  varchar2  default null
26   ,p_pff_attribute1                 in  varchar2  default null
27   ,p_pff_attribute2                 in  varchar2  default null
28   ,p_pff_attribute3                 in  varchar2  default null
29   ,p_pff_attribute4                 in  varchar2  default null
30   ,p_pff_attribute5                 in  varchar2  default null
31   ,p_pff_attribute6                 in  varchar2  default null
32   ,p_pff_attribute7                 in  varchar2  default null
33   ,p_pff_attribute8                 in  varchar2  default null
34   ,p_pff_attribute9                 in  varchar2  default null
35   ,p_pff_attribute10                in  varchar2  default null
36   ,p_pff_attribute11                in  varchar2  default null
37   ,p_pff_attribute12                in  varchar2  default null
38   ,p_pff_attribute13                in  varchar2  default null
39   ,p_pff_attribute14                in  varchar2  default null
40   ,p_pff_attribute15                in  varchar2  default null
41   ,p_pff_attribute16                in  varchar2  default null
42   ,p_pff_attribute17                in  varchar2  default null
43   ,p_pff_attribute18                in  varchar2  default null
44   ,p_pff_attribute19                in  varchar2  default null
45   ,p_pff_attribute20                in  varchar2  default null
46   ,p_pff_attribute21                in  varchar2  default null
47   ,p_pff_attribute22                in  varchar2  default null
48   ,p_pff_attribute23                in  varchar2  default null
49   ,p_pff_attribute24                in  varchar2  default null
50   ,p_pff_attribute25                in  varchar2  default null
51   ,p_pff_attribute26                in  varchar2  default null
52   ,p_pff_attribute27                in  varchar2  default null
53   ,p_pff_attribute28                in  varchar2  default null
54   ,p_pff_attribute29                in  varchar2  default null
55   ,p_pff_attribute30                in  varchar2  default null
56   ,p_object_version_number          out nocopy number
57   ,p_effective_date                 in  date
58   ) is
59   --
60   -- Declare cursors and local variables
61   --
62   l_pct_fl_tm_fctr_id ben_pct_fl_tm_fctr.pct_fl_tm_fctr_id%TYPE;
63   l_proc varchar2(72) := g_package||'create_percent_ft_factors';
64   l_object_version_number ben_pct_fl_tm_fctr.object_version_number%TYPE;
65   --
66 begin
67   --
68   hr_utility.set_location('Entering:'|| l_proc, 10);
69   --
70   -- Issue a savepoint if operating in validation only mode
71   --
72   savepoint create_percent_ft_factors;
73   --
74   hr_utility.set_location(l_proc, 20);
75   --
76   -- Process Logic
77   --
78   begin
79     --
80     -- Start of API User Hook for the before hook of create_percent_ft_factors
81     --
82     ben_percent_ft_factors_bk1.create_percent_ft_factors_b
83       (
84        p_name                           =>  p_name
85       ,p_business_group_id              =>  p_business_group_id
86       ,p_mx_pct_val                     =>  p_mx_pct_val
87       ,p_mn_pct_val                     =>  p_mn_pct_val
88       ,p_no_mn_pct_val_flag             =>  p_no_mn_pct_val_flag
89       ,p_no_mx_pct_val_flag             =>  p_no_mx_pct_val_flag
90       ,p_use_prmry_asnt_only_flag       =>  p_use_prmry_asnt_only_flag
91       ,p_use_sum_of_all_asnts_flag      =>  p_use_sum_of_all_asnts_flag
92       ,p_rndg_cd                        =>  p_rndg_cd
93       ,p_rndg_rl                        =>  p_rndg_rl
94       ,p_pff_attribute_category         =>  p_pff_attribute_category
95       ,p_pff_attribute1                 =>  p_pff_attribute1
96       ,p_pff_attribute2                 =>  p_pff_attribute2
97       ,p_pff_attribute3                 =>  p_pff_attribute3
98       ,p_pff_attribute4                 =>  p_pff_attribute4
99       ,p_pff_attribute5                 =>  p_pff_attribute5
100       ,p_pff_attribute6                 =>  p_pff_attribute6
101       ,p_pff_attribute7                 =>  p_pff_attribute7
102       ,p_pff_attribute8                 =>  p_pff_attribute8
103       ,p_pff_attribute9                 =>  p_pff_attribute9
104       ,p_pff_attribute10                =>  p_pff_attribute10
105       ,p_pff_attribute11                =>  p_pff_attribute11
106       ,p_pff_attribute12                =>  p_pff_attribute12
107       ,p_pff_attribute13                =>  p_pff_attribute13
108       ,p_pff_attribute14                =>  p_pff_attribute14
109       ,p_pff_attribute15                =>  p_pff_attribute15
110       ,p_pff_attribute16                =>  p_pff_attribute16
111       ,p_pff_attribute17                =>  p_pff_attribute17
112       ,p_pff_attribute18                =>  p_pff_attribute18
113       ,p_pff_attribute19                =>  p_pff_attribute19
114       ,p_pff_attribute20                =>  p_pff_attribute20
115       ,p_pff_attribute21                =>  p_pff_attribute21
116       ,p_pff_attribute22                =>  p_pff_attribute22
117       ,p_pff_attribute23                =>  p_pff_attribute23
118       ,p_pff_attribute24                =>  p_pff_attribute24
119       ,p_pff_attribute25                =>  p_pff_attribute25
120       ,p_pff_attribute26                =>  p_pff_attribute26
121       ,p_pff_attribute27                =>  p_pff_attribute27
122       ,p_pff_attribute28                =>  p_pff_attribute28
123       ,p_pff_attribute29                =>  p_pff_attribute29
124       ,p_pff_attribute30                =>  p_pff_attribute30
125       ,p_effective_date               => trunc(p_effective_date)
126       );
127   exception
128     when hr_api.cannot_find_prog_unit then
129       hr_api.cannot_find_prog_unit_error
130         (
131          p_module_name => 'CREATE_percent_ft_factors'
132         ,p_hook_type   => 'BP'
133         );
134     --
135     -- End of API User Hook for the before hook of create_percent_ft_factors
136     --
137   end;
138   --
139   ben_pff_ins.ins
140     (
141      p_pct_fl_tm_fctr_id             => l_pct_fl_tm_fctr_id
142     ,p_name                          => p_name
143     ,p_business_group_id             => p_business_group_id
144     ,p_mx_pct_val                    => p_mx_pct_val
145     ,p_mn_pct_val                    => p_mn_pct_val
146     ,p_no_mn_pct_val_flag            => p_no_mn_pct_val_flag
147     ,p_no_mx_pct_val_flag            => p_no_mx_pct_val_flag
148     ,p_use_prmry_asnt_only_flag      => p_use_prmry_asnt_only_flag
149     ,p_use_sum_of_all_asnts_flag     => p_use_sum_of_all_asnts_flag
150     ,p_rndg_cd                       => p_rndg_cd
151     ,p_rndg_rl                       => p_rndg_rl
152     ,p_pff_attribute_category        => p_pff_attribute_category
153     ,p_pff_attribute1                => p_pff_attribute1
154     ,p_pff_attribute2                => p_pff_attribute2
155     ,p_pff_attribute3                => p_pff_attribute3
156     ,p_pff_attribute4                => p_pff_attribute4
157     ,p_pff_attribute5                => p_pff_attribute5
158     ,p_pff_attribute6                => p_pff_attribute6
159     ,p_pff_attribute7                => p_pff_attribute7
160     ,p_pff_attribute8                => p_pff_attribute8
161     ,p_pff_attribute9                => p_pff_attribute9
162     ,p_pff_attribute10               => p_pff_attribute10
163     ,p_pff_attribute11               => p_pff_attribute11
164     ,p_pff_attribute12               => p_pff_attribute12
165     ,p_pff_attribute13               => p_pff_attribute13
166     ,p_pff_attribute14               => p_pff_attribute14
167     ,p_pff_attribute15               => p_pff_attribute15
168     ,p_pff_attribute16               => p_pff_attribute16
169     ,p_pff_attribute17               => p_pff_attribute17
170     ,p_pff_attribute18               => p_pff_attribute18
171     ,p_pff_attribute19               => p_pff_attribute19
172     ,p_pff_attribute20               => p_pff_attribute20
173     ,p_pff_attribute21               => p_pff_attribute21
174     ,p_pff_attribute22               => p_pff_attribute22
175     ,p_pff_attribute23               => p_pff_attribute23
176     ,p_pff_attribute24               => p_pff_attribute24
177     ,p_pff_attribute25               => p_pff_attribute25
178     ,p_pff_attribute26               => p_pff_attribute26
179     ,p_pff_attribute27               => p_pff_attribute27
180     ,p_pff_attribute28               => p_pff_attribute28
181     ,p_pff_attribute29               => p_pff_attribute29
182     ,p_pff_attribute30               => p_pff_attribute30
183     ,p_object_version_number         => l_object_version_number
184     ,p_effective_date                => trunc(p_effective_date)
185     );
186   --
187   begin
188     --
189     -- Start of API User Hook for the after hook of create_percent_ft_factors
190     --
191     ben_percent_ft_factors_bk1.create_percent_ft_factors_a
192       (
193        p_pct_fl_tm_fctr_id              =>  l_pct_fl_tm_fctr_id
194       ,p_name                           =>  p_name
195       ,p_business_group_id              =>  p_business_group_id
196       ,p_mx_pct_val                     =>  p_mx_pct_val
197       ,p_mn_pct_val                     =>  p_mn_pct_val
198       ,p_no_mn_pct_val_flag             =>  p_no_mn_pct_val_flag
199       ,p_no_mx_pct_val_flag             =>  p_no_mx_pct_val_flag
200       ,p_use_prmry_asnt_only_flag       =>  p_use_prmry_asnt_only_flag
201       ,p_use_sum_of_all_asnts_flag      =>  p_use_sum_of_all_asnts_flag
202       ,p_rndg_cd                        =>  p_rndg_cd
203       ,p_rndg_rl                        =>  p_rndg_rl
204       ,p_pff_attribute_category         =>  p_pff_attribute_category
205       ,p_pff_attribute1                 =>  p_pff_attribute1
206       ,p_pff_attribute2                 =>  p_pff_attribute2
207       ,p_pff_attribute3                 =>  p_pff_attribute3
208       ,p_pff_attribute4                 =>  p_pff_attribute4
209       ,p_pff_attribute5                 =>  p_pff_attribute5
210       ,p_pff_attribute6                 =>  p_pff_attribute6
211       ,p_pff_attribute7                 =>  p_pff_attribute7
212       ,p_pff_attribute8                 =>  p_pff_attribute8
213       ,p_pff_attribute9                 =>  p_pff_attribute9
214       ,p_pff_attribute10                =>  p_pff_attribute10
215       ,p_pff_attribute11                =>  p_pff_attribute11
216       ,p_pff_attribute12                =>  p_pff_attribute12
217       ,p_pff_attribute13                =>  p_pff_attribute13
218       ,p_pff_attribute14                =>  p_pff_attribute14
219       ,p_pff_attribute15                =>  p_pff_attribute15
220       ,p_pff_attribute16                =>  p_pff_attribute16
221       ,p_pff_attribute17                =>  p_pff_attribute17
222       ,p_pff_attribute18                =>  p_pff_attribute18
223       ,p_pff_attribute19                =>  p_pff_attribute19
224       ,p_pff_attribute20                =>  p_pff_attribute20
225       ,p_pff_attribute21                =>  p_pff_attribute21
226       ,p_pff_attribute22                =>  p_pff_attribute22
227       ,p_pff_attribute23                =>  p_pff_attribute23
228       ,p_pff_attribute24                =>  p_pff_attribute24
229       ,p_pff_attribute25                =>  p_pff_attribute25
230       ,p_pff_attribute26                =>  p_pff_attribute26
231       ,p_pff_attribute27                =>  p_pff_attribute27
232       ,p_pff_attribute28                =>  p_pff_attribute28
233       ,p_pff_attribute29                =>  p_pff_attribute29
234       ,p_pff_attribute30                =>  p_pff_attribute30
235       ,p_object_version_number          =>  l_object_version_number
236       ,p_effective_date                 => trunc(p_effective_date)
237       );
238   exception
239     when hr_api.cannot_find_prog_unit then
240       hr_api.cannot_find_prog_unit_error
241         (p_module_name => 'CREATE_percent_ft_factors'
242         ,p_hook_type   => 'AP'
243         );
244     --
245     -- End of API User Hook for the after hook of create_percent_ft_factors
246     --
247   end;
248   --
249   hr_utility.set_location(l_proc, 60);
250   --
251   -- When in validation only mode raise the Validate_Enabled exception
252   --
253   if p_validate then
254     raise hr_api.validate_enabled;
255   end if;
256   --
257   -- Set all output arguments
258   --
259   p_pct_fl_tm_fctr_id := l_pct_fl_tm_fctr_id;
260   p_object_version_number := l_object_version_number;
261   --
262   hr_utility.set_location(' Leaving:'||l_proc, 70);
263   --
264 exception
265   --
266   when hr_api.validate_enabled then
267     --
268     -- As the Validate_Enabled exception has been raised
269     -- we must rollback to the savepoint
270     --
271     ROLLBACK TO create_percent_ft_factors;
272     --
273     -- Only set output warning arguments
274     -- (Any key or derived arguments must be set to null
275     -- when validation only mode is being used.)
276     --
277     p_pct_fl_tm_fctr_id := null;
278     p_object_version_number  := null;
279     hr_utility.set_location(' Leaving:'||l_proc, 80);
283     -- A validation or unexpected error has occured
280     --
281   when others then
282     --
284     --
285     ROLLBACK TO create_percent_ft_factors;
286     p_object_version_number  := null;
287     raise;
288     --
289 end create_percent_ft_factors;
290 -- ----------------------------------------------------------------------------
291 -- |------------------------< update_percent_ft_factors >--- ------------------|
292 -- ----------------------------------------------------------------------------
293 --
294 procedure update_percent_ft_factors
295   (p_validate                       in  boolean   default false
296   ,p_pct_fl_tm_fctr_id              in  number
297   ,p_name                           in  varchar2  default hr_api.g_varchar2
298   ,p_business_group_id              in  number    default hr_api.g_number
299   ,p_mx_pct_val                     in  number    default hr_api.g_number
300   ,p_mn_pct_val                     in  number    default hr_api.g_number
301   ,p_no_mn_pct_val_flag             in  varchar2  default hr_api.g_varchar2
302   ,p_no_mx_pct_val_flag             in  varchar2  default hr_api.g_varchar2
303   ,p_use_prmry_asnt_only_flag       in  varchar2  default hr_api.g_varchar2
304   ,p_use_sum_of_all_asnts_flag      in  varchar2  default hr_api.g_varchar2
305   ,p_rndg_cd                        in  varchar2  default hr_api.g_varchar2
306   ,p_rndg_rl                        in  number    default hr_api.g_number
307   ,p_pff_attribute_category         in  varchar2  default hr_api.g_varchar2
308   ,p_pff_attribute1                 in  varchar2  default hr_api.g_varchar2
309   ,p_pff_attribute2                 in  varchar2  default hr_api.g_varchar2
310   ,p_pff_attribute3                 in  varchar2  default hr_api.g_varchar2
311   ,p_pff_attribute4                 in  varchar2  default hr_api.g_varchar2
312   ,p_pff_attribute5                 in  varchar2  default hr_api.g_varchar2
313   ,p_pff_attribute6                 in  varchar2  default hr_api.g_varchar2
314   ,p_pff_attribute7                 in  varchar2  default hr_api.g_varchar2
315   ,p_pff_attribute8                 in  varchar2  default hr_api.g_varchar2
316   ,p_pff_attribute9                 in  varchar2  default hr_api.g_varchar2
317   ,p_pff_attribute10                in  varchar2  default hr_api.g_varchar2
318   ,p_pff_attribute11                in  varchar2  default hr_api.g_varchar2
319   ,p_pff_attribute12                in  varchar2  default hr_api.g_varchar2
320   ,p_pff_attribute13                in  varchar2  default hr_api.g_varchar2
321   ,p_pff_attribute14                in  varchar2  default hr_api.g_varchar2
322   ,p_pff_attribute15                in  varchar2  default hr_api.g_varchar2
323   ,p_pff_attribute16                in  varchar2  default hr_api.g_varchar2
324   ,p_pff_attribute17                in  varchar2  default hr_api.g_varchar2
325   ,p_pff_attribute18                in  varchar2  default hr_api.g_varchar2
326   ,p_pff_attribute19                in  varchar2  default hr_api.g_varchar2
327   ,p_pff_attribute20                in  varchar2  default hr_api.g_varchar2
328   ,p_pff_attribute21                in  varchar2  default hr_api.g_varchar2
329   ,p_pff_attribute22                in  varchar2  default hr_api.g_varchar2
330   ,p_pff_attribute23                in  varchar2  default hr_api.g_varchar2
331   ,p_pff_attribute24                in  varchar2  default hr_api.g_varchar2
332   ,p_pff_attribute25                in  varchar2  default hr_api.g_varchar2
333   ,p_pff_attribute26                in  varchar2  default hr_api.g_varchar2
334   ,p_pff_attribute27                in  varchar2  default hr_api.g_varchar2
335   ,p_pff_attribute28                in  varchar2  default hr_api.g_varchar2
336   ,p_pff_attribute29                in  varchar2  default hr_api.g_varchar2
337   ,p_pff_attribute30                in  varchar2  default hr_api.g_varchar2
338   ,p_object_version_number          in out nocopy number
339   ,p_effective_date                 in  date
340   ) is
341   --
342   -- Declare cursors and local variables
343   --
344   l_proc varchar2(72) := g_package||'update_percent_ft_factors';
345   l_object_version_number ben_pct_fl_tm_fctr.object_version_number%TYPE;
346   --
347 begin
348   --
349   hr_utility.set_location('Entering:'|| l_proc, 10);
350   --
351   -- Issue a savepoint if operating in validation only mode
352   --
353   savepoint update_percent_ft_factors;
354   --
355   hr_utility.set_location(l_proc, 20);
356   --
357   -- Process Logic
358   --
359   l_object_version_number := p_object_version_number;
360   --
361   begin
362     --
363     -- Start of API User Hook for the before hook of update_percent_ft_factors
364     --
365     ben_percent_ft_factors_bk2.update_percent_ft_factors_b
366       (
367        p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
368       ,p_name                           =>  p_name
369       ,p_business_group_id              =>  p_business_group_id
370       ,p_mx_pct_val                     =>  p_mx_pct_val
371       ,p_mn_pct_val                     =>  p_mn_pct_val
372       ,p_no_mn_pct_val_flag             =>  p_no_mn_pct_val_flag
373       ,p_no_mx_pct_val_flag             =>  p_no_mx_pct_val_flag
374       ,p_use_prmry_asnt_only_flag       =>  p_use_prmry_asnt_only_flag
375       ,p_use_sum_of_all_asnts_flag      =>  p_use_sum_of_all_asnts_flag
376       ,p_rndg_cd                        =>  p_rndg_cd
377       ,p_rndg_rl                        =>  p_rndg_rl
378       ,p_pff_attribute_category         =>  p_pff_attribute_category
379       ,p_pff_attribute1                 =>  p_pff_attribute1
383       ,p_pff_attribute5                 =>  p_pff_attribute5
380       ,p_pff_attribute2                 =>  p_pff_attribute2
381       ,p_pff_attribute3                 =>  p_pff_attribute3
382       ,p_pff_attribute4                 =>  p_pff_attribute4
384       ,p_pff_attribute6                 =>  p_pff_attribute6
385       ,p_pff_attribute7                 =>  p_pff_attribute7
386       ,p_pff_attribute8                 =>  p_pff_attribute8
387       ,p_pff_attribute9                 =>  p_pff_attribute9
388       ,p_pff_attribute10                =>  p_pff_attribute10
389       ,p_pff_attribute11                =>  p_pff_attribute11
390       ,p_pff_attribute12                =>  p_pff_attribute12
391       ,p_pff_attribute13                =>  p_pff_attribute13
392       ,p_pff_attribute14                =>  p_pff_attribute14
393       ,p_pff_attribute15                =>  p_pff_attribute15
394       ,p_pff_attribute16                =>  p_pff_attribute16
395       ,p_pff_attribute17                =>  p_pff_attribute17
396       ,p_pff_attribute18                =>  p_pff_attribute18
397       ,p_pff_attribute19                =>  p_pff_attribute19
398       ,p_pff_attribute20                =>  p_pff_attribute20
399       ,p_pff_attribute21                =>  p_pff_attribute21
400       ,p_pff_attribute22                =>  p_pff_attribute22
401       ,p_pff_attribute23                =>  p_pff_attribute23
402       ,p_pff_attribute24                =>  p_pff_attribute24
403       ,p_pff_attribute25                =>  p_pff_attribute25
404       ,p_pff_attribute26                =>  p_pff_attribute26
405       ,p_pff_attribute27                =>  p_pff_attribute27
406       ,p_pff_attribute28                =>  p_pff_attribute28
407       ,p_pff_attribute29                =>  p_pff_attribute29
408       ,p_pff_attribute30                =>  p_pff_attribute30
409       ,p_object_version_number          =>  p_object_version_number
410     ,p_effective_date                 => trunc(p_effective_date)
411       );
412   exception
413     when hr_api.cannot_find_prog_unit then
414       hr_api.cannot_find_prog_unit_error
415         (p_module_name => 'UPDATE_percent_ft_factors'
416         ,p_hook_type   => 'BP'
417         );
418     --
419     -- End of API User Hook for the before hook of update_percent_ft_factors
420     --
421   end;
422   --
423   ben_pff_upd.upd
424     (
425      p_pct_fl_tm_fctr_id             => p_pct_fl_tm_fctr_id
426     ,p_name                          => p_name
427     ,p_business_group_id             => p_business_group_id
428     ,p_mx_pct_val                    => p_mx_pct_val
429     ,p_mn_pct_val                    => p_mn_pct_val
430     ,p_no_mn_pct_val_flag            => p_no_mn_pct_val_flag
431     ,p_no_mx_pct_val_flag            => p_no_mx_pct_val_flag
432     ,p_use_prmry_asnt_only_flag      => p_use_prmry_asnt_only_flag
433     ,p_use_sum_of_all_asnts_flag     => p_use_sum_of_all_asnts_flag
434     ,p_rndg_cd                       => p_rndg_cd
435     ,p_rndg_rl                       => p_rndg_rl
436     ,p_pff_attribute_category        => p_pff_attribute_category
437     ,p_pff_attribute1                => p_pff_attribute1
438     ,p_pff_attribute2                => p_pff_attribute2
439     ,p_pff_attribute3                => p_pff_attribute3
440     ,p_pff_attribute4                => p_pff_attribute4
441     ,p_pff_attribute5                => p_pff_attribute5
442     ,p_pff_attribute6                => p_pff_attribute6
443     ,p_pff_attribute7                => p_pff_attribute7
444     ,p_pff_attribute8                => p_pff_attribute8
445     ,p_pff_attribute9                => p_pff_attribute9
446     ,p_pff_attribute10               => p_pff_attribute10
447     ,p_pff_attribute11               => p_pff_attribute11
448     ,p_pff_attribute12               => p_pff_attribute12
449     ,p_pff_attribute13               => p_pff_attribute13
450     ,p_pff_attribute14               => p_pff_attribute14
451     ,p_pff_attribute15               => p_pff_attribute15
452     ,p_pff_attribute16               => p_pff_attribute16
453     ,p_pff_attribute17               => p_pff_attribute17
454     ,p_pff_attribute18               => p_pff_attribute18
455     ,p_pff_attribute19               => p_pff_attribute19
456     ,p_pff_attribute20               => p_pff_attribute20
457     ,p_pff_attribute21               => p_pff_attribute21
458     ,p_pff_attribute22               => p_pff_attribute22
459     ,p_pff_attribute23               => p_pff_attribute23
460     ,p_pff_attribute24               => p_pff_attribute24
461     ,p_pff_attribute25               => p_pff_attribute25
462     ,p_pff_attribute26               => p_pff_attribute26
463     ,p_pff_attribute27               => p_pff_attribute27
464     ,p_pff_attribute28               => p_pff_attribute28
465     ,p_pff_attribute29               => p_pff_attribute29
466     ,p_pff_attribute30               => p_pff_attribute30
467     ,p_object_version_number         => l_object_version_number
468     ,p_effective_date                => trunc(p_effective_date)
469     );
470   --
471   begin
472     --
473     -- Start of API User Hook for the after hook of update_percent_ft_factors
474     --
475     ben_percent_ft_factors_bk2.update_percent_ft_factors_a
476       (
477        p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
478       ,p_name                           =>  p_name
479       ,p_business_group_id              =>  p_business_group_id
480       ,p_mx_pct_val                     =>  p_mx_pct_val
481       ,p_mn_pct_val                     =>  p_mn_pct_val
485       ,p_use_sum_of_all_asnts_flag      =>  p_use_sum_of_all_asnts_flag
482       ,p_no_mn_pct_val_flag             =>  p_no_mn_pct_val_flag
483       ,p_no_mx_pct_val_flag             =>  p_no_mx_pct_val_flag
484       ,p_use_prmry_asnt_only_flag       =>  p_use_prmry_asnt_only_flag
486       ,p_rndg_cd                        =>  p_rndg_cd
487       ,p_rndg_rl                        =>  p_rndg_rl
488       ,p_pff_attribute_category         =>  p_pff_attribute_category
489       ,p_pff_attribute1                 =>  p_pff_attribute1
490       ,p_pff_attribute2                 =>  p_pff_attribute2
491       ,p_pff_attribute3                 =>  p_pff_attribute3
492       ,p_pff_attribute4                 =>  p_pff_attribute4
493       ,p_pff_attribute5                 =>  p_pff_attribute5
494       ,p_pff_attribute6                 =>  p_pff_attribute6
495       ,p_pff_attribute7                 =>  p_pff_attribute7
496       ,p_pff_attribute8                 =>  p_pff_attribute8
497       ,p_pff_attribute9                 =>  p_pff_attribute9
498       ,p_pff_attribute10                =>  p_pff_attribute10
499       ,p_pff_attribute11                =>  p_pff_attribute11
500       ,p_pff_attribute12                =>  p_pff_attribute12
501       ,p_pff_attribute13                =>  p_pff_attribute13
502       ,p_pff_attribute14                =>  p_pff_attribute14
503       ,p_pff_attribute15                =>  p_pff_attribute15
504       ,p_pff_attribute16                =>  p_pff_attribute16
505       ,p_pff_attribute17                =>  p_pff_attribute17
506       ,p_pff_attribute18                =>  p_pff_attribute18
507       ,p_pff_attribute19                =>  p_pff_attribute19
508       ,p_pff_attribute20                =>  p_pff_attribute20
509       ,p_pff_attribute21                =>  p_pff_attribute21
510       ,p_pff_attribute22                =>  p_pff_attribute22
511       ,p_pff_attribute23                =>  p_pff_attribute23
512       ,p_pff_attribute24                =>  p_pff_attribute24
513       ,p_pff_attribute25                =>  p_pff_attribute25
514       ,p_pff_attribute26                =>  p_pff_attribute26
515       ,p_pff_attribute27                =>  p_pff_attribute27
516       ,p_pff_attribute28                =>  p_pff_attribute28
517       ,p_pff_attribute29                =>  p_pff_attribute29
518       ,p_pff_attribute30                =>  p_pff_attribute30
519       ,p_object_version_number          =>  l_object_version_number
520       ,p_effective_date                => trunc(p_effective_date)
521       );
522   exception
523     when hr_api.cannot_find_prog_unit then
524       hr_api.cannot_find_prog_unit_error
525         (p_module_name => 'UPDATE_percent_ft_factors'
526         ,p_hook_type   => 'AP'
527         );
528     --
529     -- End of API User Hook for the after hook of update_percent_ft_factors
530     --
531   end;
532   --
533   hr_utility.set_location(l_proc, 60);
534   --
535   -- When in validation only mode raise the Validate_Enabled exception
536   --
537   if p_validate then
538     raise hr_api.validate_enabled;
539   end if;
540   --
541   -- Set all output arguments
542   --
543   p_object_version_number := l_object_version_number;
544   --
545   hr_utility.set_location(' Leaving:'||l_proc, 70);
546   --
547 exception
548   --
549   when hr_api.validate_enabled then
550     --
551     -- As the Validate_Enabled exception has been raised
552     -- we must rollback to the savepoint
553     --
554     ROLLBACK TO update_percent_ft_factors;
555     --
556     -- Only set output warning arguments
557     -- (Any key or derived arguments must be set to null
558     -- when validation only mode is being used.)
559     --
560     hr_utility.set_location(' Leaving:'||l_proc, 80);
561     --
562   when others then
563     --
564     -- A validation or unexpected error has occured
565     --
566     ROLLBACK TO update_percent_ft_factors;
567     p_object_version_number  := l_object_version_number;
568     raise;
569     --
570 end update_percent_ft_factors;
571 -- ----------------------------------------------------------------------------
572 -- |------------------------< delete_percent_ft_factors >----------------------|
573 -- ----------------------------------------------------------------------------
574 --
575 procedure delete_percent_ft_factors
576   (p_validate                       in  boolean  default false
577   ,p_pct_fl_tm_fctr_id              in  number
578   ,p_object_version_number          in out nocopy number
579   ,p_effective_date                 in  date
580   ) is
581   --
582   -- Declare cursors and local variables
583   --
584   l_proc varchar2(72) := g_package||'update_percent_ft_factors';
585   l_object_version_number ben_pct_fl_tm_fctr.object_version_number%TYPE;
586   --
587 begin
588   --
589   hr_utility.set_location('Entering:'|| l_proc, 10);
590   --
591   -- Issue a savepoint if operating in validation only mode
592   --
593   savepoint delete_percent_ft_factors;
594   --
595   hr_utility.set_location(l_proc, 20);
596   --
597   -- Process Logic
598   --
599   l_object_version_number := p_object_version_number;
600   --
601   --
602   begin
603     --
604     -- Start of API User Hook for the before hook of delete_percent_ft_factors
605     --
606     ben_percent_ft_factors_bk3.delete_percent_ft_factors_b
607       (
608        p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
612   exception
609       ,p_object_version_number          =>  p_object_version_number
610     ,p_effective_date                      => trunc(p_effective_date)
611       );
613     when hr_api.cannot_find_prog_unit then
614       hr_api.cannot_find_prog_unit_error
615         (p_module_name => 'DELETE_percent_ft_factors'
616         ,p_hook_type   => 'BP'
617         );
618     --
619     -- End of API User Hook for the before hook of delete_percent_ft_factors
620     --
621   end;
622   --
623   ben_pff_del.del
624     (
625      p_pct_fl_tm_fctr_id             => p_pct_fl_tm_fctr_id
626     ,p_object_version_number         => l_object_version_number
627     ,p_effective_date                => p_effective_date
628     );
629   --
630   begin
631     --
632     -- Start of API User Hook for the after hook of delete_percent_ft_factors
633     --
634     ben_percent_ft_factors_bk3.delete_percent_ft_factors_a
635       (
636        p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
637       ,p_object_version_number          =>  l_object_version_number
638     ,p_effective_date                      => trunc(p_effective_date)
639       );
640   exception
641     when hr_api.cannot_find_prog_unit then
642       hr_api.cannot_find_prog_unit_error
643         (p_module_name => 'DELETE_percent_ft_factors'
644         ,p_hook_type   => 'AP'
645         );
646     --
647     -- End of API User Hook for the after hook of delete_percent_ft_factors
648     --
649   end;
650   --
651   hr_utility.set_location(l_proc, 60);
652   --
653   -- When in validation only mode raise the Validate_Enabled exception
654   --
655   if p_validate then
656     raise hr_api.validate_enabled;
657   end if;
658   --
659   hr_utility.set_location(' Leaving:'||l_proc, 70);
660   --
661 exception
662   --
663   when hr_api.validate_enabled then
664     --
665     -- As the Validate_Enabled exception has been raised
666     -- we must rollback to the savepoint
667     --
668     ROLLBACK TO delete_percent_ft_factors;
669     --
670     -- Only set output warning arguments
671     -- (Any key or derived arguments must be set to null
672     -- when validation only mode is being used.)
673     --
674     --
675   when others then
676     --
677     -- A validation or unexpected error has occured
678     --
679     ROLLBACK TO delete_percent_ft_factors;
680     p_object_version_number  := l_object_version_number;
681     raise;
682     --
683 end delete_percent_ft_factors;
684 --
685 -- ----------------------------------------------------------------------------
686 -- |-------------------------------< lck >------------------------------------|
687 -- ----------------------------------------------------------------------------
688 --
689 procedure lck
690   (
691    p_pct_fl_tm_fctr_id                   in     number
692   ,p_object_version_number          in     number
693   ) is
694   --
695   --
696   -- Declare cursors and local variables
697   --
698   l_proc varchar2(72) := g_package||'lck';
699   --
700 begin
701   --
702   hr_utility.set_location('Entering:'|| l_proc, 10);
703   --
704   ben_pff_shd.lck
705     (
706       p_pct_fl_tm_fctr_id                 => p_pct_fl_tm_fctr_id
707      ,p_object_version_number      => p_object_version_number
708     );
709   --
710   hr_utility.set_location(' Leaving:'||l_proc, 70);
711   --
712 end lck;
713 --
714 end ben_percent_ft_factors_api;