DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_PCT_FULL_TIME_RATE_API

Source


1 Package Body ben_PCT_FULL_TIME_RATE_api as
2 /* $Header: bepfrapi.pkb 120.0 2005/05/28 10:43:01 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package  varchar2(33) := '  ben_PCT_FULL_TIME_RATE_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_PCT_FULL_TIME_RATE >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_PCT_FULL_TIME_RATE
13   (p_validate                       in  boolean   default false
14   ,p_pct_fl_tm_rt_id                out nocopy number
15   ,p_effective_start_date           out nocopy date
16   ,p_effective_end_date             out nocopy date
17   ,p_business_group_id              in  number    default null
18   ,p_vrbl_rt_prfl_id                in  number    default null
19   ,p_pct_fl_tm_fctr_id              in  number    default null
20   ,p_excld_flag                     in  varchar2  default null
21   ,p_ordr_num                       in  number    default null
22   ,p_pfr_attribute_category         in  varchar2  default null
23   ,p_pfr_attribute1                 in  varchar2  default null
24   ,p_pfr_attribute2                 in  varchar2  default null
25   ,p_pfr_attribute3                 in  varchar2  default null
26   ,p_pfr_attribute4                 in  varchar2  default null
27   ,p_pfr_attribute5                 in  varchar2  default null
28   ,p_pfr_attribute6                 in  varchar2  default null
29   ,p_pfr_attribute7                 in  varchar2  default null
30   ,p_pfr_attribute8                 in  varchar2  default null
31   ,p_pfr_attribute9                 in  varchar2  default null
32   ,p_pfr_attribute10                in  varchar2  default null
33   ,p_pfr_attribute11                in  varchar2  default null
34   ,p_pfr_attribute12                in  varchar2  default null
35   ,p_pfr_attribute13                in  varchar2  default null
36   ,p_pfr_attribute14                in  varchar2  default null
37   ,p_pfr_attribute15                in  varchar2  default null
38   ,p_pfr_attribute16                in  varchar2  default null
39   ,p_pfr_attribute17                in  varchar2  default null
40   ,p_pfr_attribute18                in  varchar2  default null
41   ,p_pfr_attribute19                in  varchar2  default null
42   ,p_pfr_attribute20                in  varchar2  default null
43   ,p_pfr_attribute21                in  varchar2  default null
44   ,p_pfr_attribute22                in  varchar2  default null
45   ,p_pfr_attribute23                in  varchar2  default null
46   ,p_pfr_attribute24                in  varchar2  default null
47   ,p_pfr_attribute25                in  varchar2  default null
48   ,p_pfr_attribute26                in  varchar2  default null
49   ,p_pfr_attribute27                in  varchar2  default null
50   ,p_pfr_attribute28                in  varchar2  default null
51   ,p_pfr_attribute29                in  varchar2  default null
52   ,p_pfr_attribute30                in  varchar2  default null
53   ,p_object_version_number          out nocopy number
54   ,p_effective_date                 in  date
55   ) is
56   --
57   -- Declare cursors and local variables
58   --
59   l_pct_fl_tm_rt_id ben_pct_fl_tm_rt_f.pct_fl_tm_rt_id%TYPE;
60   l_effective_start_date ben_pct_fl_tm_rt_f.effective_start_date%TYPE;
61   l_effective_end_date ben_pct_fl_tm_rt_f.effective_end_date%TYPE;
62   l_proc varchar2(72) := g_package||'create_PCT_FULL_TIME_RATE';
63   l_object_version_number ben_pct_fl_tm_rt_f.object_version_number%TYPE;
64   --
65 begin
66   --
67   hr_utility.set_location('Entering:'|| l_proc, 10);
68   --
69   -- Issue a savepoint if operating in validation only mode
70   --
71   savepoint create_PCT_FULL_TIME_RATE;
72   --
73   hr_utility.set_location(l_proc, 20);
74   --
75   -- Process Logic
76   --
77   begin
78     --
79     -- Start of API User Hook for the before hook of create_PCT_FULL_TIME_RATE
80     --
81     ben_PCT_FULL_TIME_RATE_bk1.create_PCT_FULL_TIME_RATE_b
82       (
83        p_business_group_id              =>  p_business_group_id
84       ,p_vrbl_rt_prfl_id                =>  p_vrbl_rt_prfl_id
85       ,p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
86       ,p_excld_flag                     =>  p_excld_flag
87       ,p_ordr_num                       =>  p_ordr_num
88       ,p_pfr_attribute_category         =>  p_pfr_attribute_category
89       ,p_pfr_attribute1                 =>  p_pfr_attribute1
90       ,p_pfr_attribute2                 =>  p_pfr_attribute2
91       ,p_pfr_attribute3                 =>  p_pfr_attribute3
92       ,p_pfr_attribute4                 =>  p_pfr_attribute4
93       ,p_pfr_attribute5                 =>  p_pfr_attribute5
94       ,p_pfr_attribute6                 =>  p_pfr_attribute6
95       ,p_pfr_attribute7                 =>  p_pfr_attribute7
96       ,p_pfr_attribute8                 =>  p_pfr_attribute8
97       ,p_pfr_attribute9                 =>  p_pfr_attribute9
98       ,p_pfr_attribute10                =>  p_pfr_attribute10
99       ,p_pfr_attribute11                =>  p_pfr_attribute11
100       ,p_pfr_attribute12                =>  p_pfr_attribute12
101       ,p_pfr_attribute13                =>  p_pfr_attribute13
102       ,p_pfr_attribute14                =>  p_pfr_attribute14
103       ,p_pfr_attribute15                =>  p_pfr_attribute15
104       ,p_pfr_attribute16                =>  p_pfr_attribute16
105       ,p_pfr_attribute17                =>  p_pfr_attribute17
106       ,p_pfr_attribute18                =>  p_pfr_attribute18
107       ,p_pfr_attribute19                =>  p_pfr_attribute19
108       ,p_pfr_attribute20                =>  p_pfr_attribute20
109       ,p_pfr_attribute21                =>  p_pfr_attribute21
110       ,p_pfr_attribute22                =>  p_pfr_attribute22
111       ,p_pfr_attribute23                =>  p_pfr_attribute23
112       ,p_pfr_attribute24                =>  p_pfr_attribute24
113       ,p_pfr_attribute25                =>  p_pfr_attribute25
114       ,p_pfr_attribute26                =>  p_pfr_attribute26
115       ,p_pfr_attribute27                =>  p_pfr_attribute27
116       ,p_pfr_attribute28                =>  p_pfr_attribute28
117       ,p_pfr_attribute29                =>  p_pfr_attribute29
118       ,p_pfr_attribute30                =>  p_pfr_attribute30
119       ,p_effective_date                 => trunc(p_effective_date)
120       );
121   exception
122     when hr_api.cannot_find_prog_unit then
123       hr_api.cannot_find_prog_unit_error
124         (
125          p_module_name => 'CREATE_PCT_FULL_TIME_RATE'
126         ,p_hook_type   => 'BP'
127         );
128     --
129     -- End of API User Hook for the before hook of create_PCT_FULL_TIME_RATE
130     --
131   end;
132   --
133   ben_pfr_ins.ins
134     (
135      p_pct_fl_tm_rt_id               => l_pct_fl_tm_rt_id
136     ,p_effective_start_date          => l_effective_start_date
137     ,p_effective_end_date            => l_effective_end_date
138     ,p_business_group_id             => p_business_group_id
139     ,p_vrbl_rt_prfl_id               => p_vrbl_rt_prfl_id
140     ,p_pct_fl_tm_fctr_id             => p_pct_fl_tm_fctr_id
141     ,p_excld_flag                    => p_excld_flag
142     ,p_ordr_num                      => p_ordr_num
143     ,p_pfr_attribute_category        => p_pfr_attribute_category
144     ,p_pfr_attribute1                => p_pfr_attribute1
145     ,p_pfr_attribute2                => p_pfr_attribute2
146     ,p_pfr_attribute3                => p_pfr_attribute3
147     ,p_pfr_attribute4                => p_pfr_attribute4
148     ,p_pfr_attribute5                => p_pfr_attribute5
149     ,p_pfr_attribute6                => p_pfr_attribute6
150     ,p_pfr_attribute7                => p_pfr_attribute7
151     ,p_pfr_attribute8                => p_pfr_attribute8
152     ,p_pfr_attribute9                => p_pfr_attribute9
153     ,p_pfr_attribute10               => p_pfr_attribute10
154     ,p_pfr_attribute11               => p_pfr_attribute11
155     ,p_pfr_attribute12               => p_pfr_attribute12
156     ,p_pfr_attribute13               => p_pfr_attribute13
157     ,p_pfr_attribute14               => p_pfr_attribute14
158     ,p_pfr_attribute15               => p_pfr_attribute15
159     ,p_pfr_attribute16               => p_pfr_attribute16
160     ,p_pfr_attribute17               => p_pfr_attribute17
161     ,p_pfr_attribute18               => p_pfr_attribute18
162     ,p_pfr_attribute19               => p_pfr_attribute19
163     ,p_pfr_attribute20               => p_pfr_attribute20
164     ,p_pfr_attribute21               => p_pfr_attribute21
165     ,p_pfr_attribute22               => p_pfr_attribute22
166     ,p_pfr_attribute23               => p_pfr_attribute23
167     ,p_pfr_attribute24               => p_pfr_attribute24
168     ,p_pfr_attribute25               => p_pfr_attribute25
169     ,p_pfr_attribute26               => p_pfr_attribute26
170     ,p_pfr_attribute27               => p_pfr_attribute27
171     ,p_pfr_attribute28               => p_pfr_attribute28
172     ,p_pfr_attribute29               => p_pfr_attribute29
173     ,p_pfr_attribute30               => p_pfr_attribute30
174     ,p_object_version_number         => l_object_version_number
175     ,p_effective_date                => trunc(p_effective_date)
176     );
177   --
178   begin
179     --
180     -- Start of API User Hook for the after hook of create_PCT_FULL_TIME_RATE
181     --
182     ben_PCT_FULL_TIME_RATE_bk1.create_PCT_FULL_TIME_RATE_a
183       (
184        p_pct_fl_tm_rt_id                =>  l_pct_fl_tm_rt_id
185       ,p_effective_start_date           =>  l_effective_start_date
186       ,p_effective_end_date             =>  l_effective_end_date
187       ,p_business_group_id              =>  p_business_group_id
188       ,p_vrbl_rt_prfl_id                =>  p_vrbl_rt_prfl_id
189       ,p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
190       ,p_excld_flag                     =>  p_excld_flag
191       ,p_ordr_num                       =>  p_ordr_num
192       ,p_pfr_attribute_category         =>  p_pfr_attribute_category
193       ,p_pfr_attribute1                 =>  p_pfr_attribute1
194       ,p_pfr_attribute2                 =>  p_pfr_attribute2
195       ,p_pfr_attribute3                 =>  p_pfr_attribute3
196       ,p_pfr_attribute4                 =>  p_pfr_attribute4
197       ,p_pfr_attribute5                 =>  p_pfr_attribute5
198       ,p_pfr_attribute6                 =>  p_pfr_attribute6
199       ,p_pfr_attribute7                 =>  p_pfr_attribute7
200       ,p_pfr_attribute8                 =>  p_pfr_attribute8
201       ,p_pfr_attribute9                 =>  p_pfr_attribute9
202       ,p_pfr_attribute10                =>  p_pfr_attribute10
203       ,p_pfr_attribute11                =>  p_pfr_attribute11
204       ,p_pfr_attribute12                =>  p_pfr_attribute12
205       ,p_pfr_attribute13                =>  p_pfr_attribute13
206       ,p_pfr_attribute14                =>  p_pfr_attribute14
207       ,p_pfr_attribute15                =>  p_pfr_attribute15
208       ,p_pfr_attribute16                =>  p_pfr_attribute16
209       ,p_pfr_attribute17                =>  p_pfr_attribute17
210       ,p_pfr_attribute18                =>  p_pfr_attribute18
211       ,p_pfr_attribute19                =>  p_pfr_attribute19
212       ,p_pfr_attribute20                =>  p_pfr_attribute20
213       ,p_pfr_attribute21                =>  p_pfr_attribute21
214       ,p_pfr_attribute22                =>  p_pfr_attribute22
215       ,p_pfr_attribute23                =>  p_pfr_attribute23
216       ,p_pfr_attribute24                =>  p_pfr_attribute24
217       ,p_pfr_attribute25                =>  p_pfr_attribute25
218       ,p_pfr_attribute26                =>  p_pfr_attribute26
219       ,p_pfr_attribute27                =>  p_pfr_attribute27
220       ,p_pfr_attribute28                =>  p_pfr_attribute28
221       ,p_pfr_attribute29                =>  p_pfr_attribute29
222       ,p_pfr_attribute30                =>  p_pfr_attribute30
223       ,p_object_version_number          =>  l_object_version_number
224       ,p_effective_date                      => trunc(p_effective_date)
225       );
226   exception
227     when hr_api.cannot_find_prog_unit then
228       hr_api.cannot_find_prog_unit_error
229         (p_module_name => 'CREATE_PCT_FULL_TIME_RATE'
230         ,p_hook_type   => 'AP'
231         );
232     --
233     -- End of API User Hook for the after hook of create_PCT_FULL_TIME_RATE
234     --
235   end;
236   --
237   ben_profile_handler.event_handler
238     (p_event                       => 'CREATE',
239      p_base_table                  => 'BEN_VRBL_RT_PRFL_F',
240      p_base_table_column           => 'VRBL_RT_PRFL_ID',
241      p_base_table_column_value     => p_vrbl_rt_prfl_id,
242      p_base_table_reference_column => 'RT_PCT_FL_TM_FLAG',
243      p_reference_table             => 'BEN_PCT_FL_TM_RT_F',
244      p_reference_table_column      => 'VRBL_RT_PRFL_ID');
245   --
246   ben_derivable_rate.derivable_rate_handler
247    (p_event                       =>'CREATE',
248     p_vrbl_rt_prfl_id             =>p_vrbl_rt_prfl_id);
249   --
250   hr_utility.set_location(l_proc, 60);
251   --
252   -- When in validation only mode raise the Validate_Enabled exception
253   --
254   if p_validate then
255     raise hr_api.validate_enabled;
256   end if;
257   --
258   -- Set all output arguments
259   --
260   p_pct_fl_tm_rt_id := l_pct_fl_tm_rt_id;
261   p_effective_start_date := l_effective_start_date;
262   p_effective_end_date := l_effective_end_date;
263   p_object_version_number := l_object_version_number;
264   --
265   hr_utility.set_location(' Leaving:'||l_proc, 70);
266   --
267 exception
268   --
269   when hr_api.validate_enabled then
270     --
271     -- As the Validate_Enabled exception has been raised
272     -- we must rollback to the savepoint
273     --
274     ROLLBACK TO create_PCT_FULL_TIME_RATE;
275     --
276     -- Only set output warning arguments
277     -- (Any key or derived arguments must be set to null
278     -- when validation only mode is being used.)
279     --
280     p_pct_fl_tm_rt_id := null;
281     p_effective_start_date := null;
282     p_effective_end_date := null;
283     p_object_version_number  := null;
284     hr_utility.set_location(' Leaving:'||l_proc, 80);
285     --
286   when others then
290     ROLLBACK TO create_PCT_FULL_TIME_RATE;
287     --
288     -- A validation or unexpected error has occured
289     --
291     p_effective_start_date := null;
292     p_effective_end_date := null;
293     p_object_version_number  := null;
294 
295     raise;
296     --
297 end create_PCT_FULL_TIME_RATE;
298 -- ----------------------------------------------------------------------------
299 -- |------------------------< update_PCT_FULL_TIME_RATE >--- ------------------|
300 -- ----------------------------------------------------------------------------
301 --
302 procedure update_PCT_FULL_TIME_RATE
303   (p_validate                       in  boolean   default false
304   ,p_pct_fl_tm_rt_id                in  number
305   ,p_effective_start_date           out nocopy date
306   ,p_effective_end_date             out nocopy date
307   ,p_business_group_id              in  number    default hr_api.g_number
308   ,p_vrbl_rt_prfl_id                in  number    default hr_api.g_number
309   ,p_pct_fl_tm_fctr_id              in  number    default hr_api.g_number
310   ,p_excld_flag                     in  varchar2  default hr_api.g_varchar2
311   ,p_ordr_num                       in  number    default hr_api.g_number
312   ,p_pfr_attribute_category         in  varchar2  default hr_api.g_varchar2
313   ,p_pfr_attribute1                 in  varchar2  default hr_api.g_varchar2
314   ,p_pfr_attribute2                 in  varchar2  default hr_api.g_varchar2
315   ,p_pfr_attribute3                 in  varchar2  default hr_api.g_varchar2
316   ,p_pfr_attribute4                 in  varchar2  default hr_api.g_varchar2
317   ,p_pfr_attribute5                 in  varchar2  default hr_api.g_varchar2
318   ,p_pfr_attribute6                 in  varchar2  default hr_api.g_varchar2
319   ,p_pfr_attribute7                 in  varchar2  default hr_api.g_varchar2
320   ,p_pfr_attribute8                 in  varchar2  default hr_api.g_varchar2
321   ,p_pfr_attribute9                 in  varchar2  default hr_api.g_varchar2
322   ,p_pfr_attribute10                in  varchar2  default hr_api.g_varchar2
323   ,p_pfr_attribute11                in  varchar2  default hr_api.g_varchar2
324   ,p_pfr_attribute12                in  varchar2  default hr_api.g_varchar2
325   ,p_pfr_attribute13                in  varchar2  default hr_api.g_varchar2
326   ,p_pfr_attribute14                in  varchar2  default hr_api.g_varchar2
327   ,p_pfr_attribute15                in  varchar2  default hr_api.g_varchar2
328   ,p_pfr_attribute16                in  varchar2  default hr_api.g_varchar2
329   ,p_pfr_attribute17                in  varchar2  default hr_api.g_varchar2
330   ,p_pfr_attribute18                in  varchar2  default hr_api.g_varchar2
331   ,p_pfr_attribute19                in  varchar2  default hr_api.g_varchar2
332   ,p_pfr_attribute20                in  varchar2  default hr_api.g_varchar2
333   ,p_pfr_attribute21                in  varchar2  default hr_api.g_varchar2
334   ,p_pfr_attribute22                in  varchar2  default hr_api.g_varchar2
335   ,p_pfr_attribute23                in  varchar2  default hr_api.g_varchar2
336   ,p_pfr_attribute24                in  varchar2  default hr_api.g_varchar2
337   ,p_pfr_attribute25                in  varchar2  default hr_api.g_varchar2
338   ,p_pfr_attribute26                in  varchar2  default hr_api.g_varchar2
339   ,p_pfr_attribute27                in  varchar2  default hr_api.g_varchar2
340   ,p_pfr_attribute28                in  varchar2  default hr_api.g_varchar2
341   ,p_pfr_attribute29                in  varchar2  default hr_api.g_varchar2
342   ,p_pfr_attribute30                in  varchar2  default hr_api.g_varchar2
343   ,p_object_version_number          in out nocopy number
344   ,p_effective_date                 in  date
345   ,p_datetrack_mode                 in  varchar2
346   ) is
347   --
348   -- Declare cursors and local variables
349   --
350   l_proc varchar2(72) := g_package||'update_PCT_FULL_TIME_RATE';
351   l_object_version_number ben_pct_fl_tm_rt_f.object_version_number%TYPE;
352   l_effective_start_date ben_pct_fl_tm_rt_f.effective_start_date%TYPE;
353   l_effective_end_date ben_pct_fl_tm_rt_f.effective_end_date%TYPE;
354   --
355 begin
356   --
357   hr_utility.set_location('Entering:'|| l_proc, 10);
358   --
359   -- Issue a savepoint if operating in validation only mode
360   --
361   savepoint update_PCT_FULL_TIME_RATE;
362   --
363   hr_utility.set_location(l_proc, 20);
364   --
365   -- Process Logic
366   --
367   l_object_version_number := p_object_version_number;
368   --
369   begin
370     --
371     -- Start of API User Hook for the before hook of update_PCT_FULL_TIME_RATE
372     --
373     ben_PCT_FULL_TIME_RATE_bk2.update_PCT_FULL_TIME_RATE_b
374       (
375        p_pct_fl_tm_rt_id                =>  p_pct_fl_tm_rt_id
376       ,p_business_group_id              =>  p_business_group_id
377       ,p_vrbl_rt_prfl_id                =>  p_vrbl_rt_prfl_id
378       ,p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
379       ,p_excld_flag                     =>  p_excld_flag
380       ,p_ordr_num                       =>  p_ordr_num
381       ,p_pfr_attribute_category         =>  p_pfr_attribute_category
382       ,p_pfr_attribute1                 =>  p_pfr_attribute1
383       ,p_pfr_attribute2                 =>  p_pfr_attribute2
384       ,p_pfr_attribute3                 =>  p_pfr_attribute3
385       ,p_pfr_attribute4                 =>  p_pfr_attribute4
386       ,p_pfr_attribute5                 =>  p_pfr_attribute5
387       ,p_pfr_attribute6                 =>  p_pfr_attribute6
388       ,p_pfr_attribute7                 =>  p_pfr_attribute7
392       ,p_pfr_attribute11                =>  p_pfr_attribute11
389       ,p_pfr_attribute8                 =>  p_pfr_attribute8
390       ,p_pfr_attribute9                 =>  p_pfr_attribute9
391       ,p_pfr_attribute10                =>  p_pfr_attribute10
393       ,p_pfr_attribute12                =>  p_pfr_attribute12
394       ,p_pfr_attribute13                =>  p_pfr_attribute13
395       ,p_pfr_attribute14                =>  p_pfr_attribute14
396       ,p_pfr_attribute15                =>  p_pfr_attribute15
397       ,p_pfr_attribute16                =>  p_pfr_attribute16
398       ,p_pfr_attribute17                =>  p_pfr_attribute17
399       ,p_pfr_attribute18                =>  p_pfr_attribute18
400       ,p_pfr_attribute19                =>  p_pfr_attribute19
401       ,p_pfr_attribute20                =>  p_pfr_attribute20
402       ,p_pfr_attribute21                =>  p_pfr_attribute21
403       ,p_pfr_attribute22                =>  p_pfr_attribute22
404       ,p_pfr_attribute23                =>  p_pfr_attribute23
405       ,p_pfr_attribute24                =>  p_pfr_attribute24
406       ,p_pfr_attribute25                =>  p_pfr_attribute25
407       ,p_pfr_attribute26                =>  p_pfr_attribute26
408       ,p_pfr_attribute27                =>  p_pfr_attribute27
409       ,p_pfr_attribute28                =>  p_pfr_attribute28
410       ,p_pfr_attribute29                =>  p_pfr_attribute29
411       ,p_pfr_attribute30                =>  p_pfr_attribute30
412       ,p_object_version_number          =>  p_object_version_number
413     ,p_effective_date                      => trunc(p_effective_date)
414     ,p_datetrack_mode                      => p_datetrack_mode
415       );
416   exception
417     when hr_api.cannot_find_prog_unit then
418       hr_api.cannot_find_prog_unit_error
419         (p_module_name => 'UPDATE_PCT_FULL_TIME_RATE'
420         ,p_hook_type   => 'BP'
421         );
422     --
423     -- End of API User Hook for the before hook of update_PCT_FULL_TIME_RATE
424     --
425   end;
426   --
427   ben_pfr_upd.upd
428     (
429      p_pct_fl_tm_rt_id               => p_pct_fl_tm_rt_id
430     ,p_effective_start_date          => l_effective_start_date
431     ,p_effective_end_date            => l_effective_end_date
432     ,p_business_group_id             => p_business_group_id
433     ,p_vrbl_rt_prfl_id               => p_vrbl_rt_prfl_id
434     ,p_pct_fl_tm_fctr_id             => p_pct_fl_tm_fctr_id
435     ,p_excld_flag                    => p_excld_flag
436     ,p_ordr_num                      => p_ordr_num
437     ,p_pfr_attribute_category        => p_pfr_attribute_category
438     ,p_pfr_attribute1                => p_pfr_attribute1
439     ,p_pfr_attribute2                => p_pfr_attribute2
440     ,p_pfr_attribute3                => p_pfr_attribute3
441     ,p_pfr_attribute4                => p_pfr_attribute4
442     ,p_pfr_attribute5                => p_pfr_attribute5
443     ,p_pfr_attribute6                => p_pfr_attribute6
444     ,p_pfr_attribute7                => p_pfr_attribute7
445     ,p_pfr_attribute8                => p_pfr_attribute8
446     ,p_pfr_attribute9                => p_pfr_attribute9
447     ,p_pfr_attribute10               => p_pfr_attribute10
448     ,p_pfr_attribute11               => p_pfr_attribute11
449     ,p_pfr_attribute12               => p_pfr_attribute12
450     ,p_pfr_attribute13               => p_pfr_attribute13
451     ,p_pfr_attribute14               => p_pfr_attribute14
452     ,p_pfr_attribute15               => p_pfr_attribute15
453     ,p_pfr_attribute16               => p_pfr_attribute16
454     ,p_pfr_attribute17               => p_pfr_attribute17
455     ,p_pfr_attribute18               => p_pfr_attribute18
456     ,p_pfr_attribute19               => p_pfr_attribute19
457     ,p_pfr_attribute20               => p_pfr_attribute20
458     ,p_pfr_attribute21               => p_pfr_attribute21
459     ,p_pfr_attribute22               => p_pfr_attribute22
460     ,p_pfr_attribute23               => p_pfr_attribute23
461     ,p_pfr_attribute24               => p_pfr_attribute24
462     ,p_pfr_attribute25               => p_pfr_attribute25
463     ,p_pfr_attribute26               => p_pfr_attribute26
464     ,p_pfr_attribute27               => p_pfr_attribute27
465     ,p_pfr_attribute28               => p_pfr_attribute28
466     ,p_pfr_attribute29               => p_pfr_attribute29
467     ,p_pfr_attribute30               => p_pfr_attribute30
468     ,p_object_version_number         => l_object_version_number
469     ,p_effective_date                => trunc(p_effective_date)
470     ,p_datetrack_mode                => p_datetrack_mode
471     );
472   --
473   begin
474     --
475     -- Start of API User Hook for the after hook of update_PCT_FULL_TIME_RATE
476     --
477     ben_PCT_FULL_TIME_RATE_bk2.update_PCT_FULL_TIME_RATE_a
478       (
479        p_pct_fl_tm_rt_id                =>  p_pct_fl_tm_rt_id
480       ,p_effective_start_date           =>  l_effective_start_date
481       ,p_effective_end_date             =>  l_effective_end_date
482       ,p_business_group_id              =>  p_business_group_id
483       ,p_vrbl_rt_prfl_id                =>  p_vrbl_rt_prfl_id
484       ,p_pct_fl_tm_fctr_id              =>  p_pct_fl_tm_fctr_id
485       ,p_excld_flag                     =>  p_excld_flag
486       ,p_ordr_num                       =>  p_ordr_num
487       ,p_pfr_attribute_category         =>  p_pfr_attribute_category
488       ,p_pfr_attribute1                 =>  p_pfr_attribute1
489       ,p_pfr_attribute2                 =>  p_pfr_attribute2
493       ,p_pfr_attribute6                 =>  p_pfr_attribute6
490       ,p_pfr_attribute3                 =>  p_pfr_attribute3
491       ,p_pfr_attribute4                 =>  p_pfr_attribute4
492       ,p_pfr_attribute5                 =>  p_pfr_attribute5
494       ,p_pfr_attribute7                 =>  p_pfr_attribute7
495       ,p_pfr_attribute8                 =>  p_pfr_attribute8
496       ,p_pfr_attribute9                 =>  p_pfr_attribute9
497       ,p_pfr_attribute10                =>  p_pfr_attribute10
498       ,p_pfr_attribute11                =>  p_pfr_attribute11
499       ,p_pfr_attribute12                =>  p_pfr_attribute12
500       ,p_pfr_attribute13                =>  p_pfr_attribute13
501       ,p_pfr_attribute14                =>  p_pfr_attribute14
502       ,p_pfr_attribute15                =>  p_pfr_attribute15
503       ,p_pfr_attribute16                =>  p_pfr_attribute16
504       ,p_pfr_attribute17                =>  p_pfr_attribute17
505       ,p_pfr_attribute18                =>  p_pfr_attribute18
506       ,p_pfr_attribute19                =>  p_pfr_attribute19
507       ,p_pfr_attribute20                =>  p_pfr_attribute20
508       ,p_pfr_attribute21                =>  p_pfr_attribute21
509       ,p_pfr_attribute22                =>  p_pfr_attribute22
510       ,p_pfr_attribute23                =>  p_pfr_attribute23
511       ,p_pfr_attribute24                =>  p_pfr_attribute24
512       ,p_pfr_attribute25                =>  p_pfr_attribute25
513       ,p_pfr_attribute26                =>  p_pfr_attribute26
514       ,p_pfr_attribute27                =>  p_pfr_attribute27
515       ,p_pfr_attribute28                =>  p_pfr_attribute28
516       ,p_pfr_attribute29                =>  p_pfr_attribute29
517       ,p_pfr_attribute30                =>  p_pfr_attribute30
518       ,p_object_version_number          =>  l_object_version_number
519       ,p_effective_date                     => trunc(p_effective_date)
520       ,p_datetrack_mode                     => p_datetrack_mode
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_PCT_FULL_TIME_RATE'
526         ,p_hook_type   => 'AP'
527         );
528     --
529     -- End of API User Hook for the after hook of update_PCT_FULL_TIME_RATE
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   p_effective_start_date := l_effective_start_date;
545   p_effective_end_date := l_effective_end_date;
546   --
547   hr_utility.set_location(' Leaving:'||l_proc, 70);
548   --
549 exception
550   --
551   when hr_api.validate_enabled then
552     --
553     -- As the Validate_Enabled exception has been raised
554     -- we must rollback to the savepoint
555     --
556     ROLLBACK TO update_PCT_FULL_TIME_RATE;
557     --
558     -- Only set output warning arguments
559     -- (Any key or derived arguments must be set to null
560     -- when validation only mode is being used.)
561     --
562     hr_utility.set_location(' Leaving:'||l_proc, 80);
563     --
564   when others then
565     --
566     -- A validation or unexpected error has occured
567     --
568     ROLLBACK TO update_PCT_FULL_TIME_RATE;
569     p_effective_start_date := null;
570     p_effective_end_date := null;
571     p_object_version_number  := l_object_version_number;
572 
573     raise;
574     --
575 end update_PCT_FULL_TIME_RATE;
576 -- ----------------------------------------------------------------------------
577 -- |------------------------< delete_PCT_FULL_TIME_RATE >----------------------|
578 -- ----------------------------------------------------------------------------
579 --
580 procedure delete_PCT_FULL_TIME_RATE
581   (p_validate                       in  boolean  default false
582   ,p_pct_fl_tm_rt_id                in  number
583   ,p_effective_start_date           out nocopy date
584   ,p_effective_end_date             out nocopy date
585   ,p_object_version_number          in out nocopy number
586   ,p_effective_date                 in  date
587   ,p_datetrack_mode                 in  varchar2
588   ) is
589   --
590   -- Declare cursors and local variables
591   --
592   l_proc varchar2(72) := g_package||'update_PCT_FULL_TIME_RATE';
593   l_object_version_number ben_pct_fl_tm_rt_f.object_version_number%TYPE;
594   l_effective_start_date ben_pct_fl_tm_rt_f.effective_start_date%TYPE;
595   l_effective_end_date ben_pct_fl_tm_rt_f.effective_end_date%TYPE;
596   --
597 begin
598   --
599   hr_utility.set_location('Entering:'|| l_proc, 10);
600   --
601   -- Issue a savepoint if operating in validation only mode
602   --
603   savepoint delete_PCT_FULL_TIME_RATE;
604   --
605   hr_utility.set_location(l_proc, 20);
606   --
607   -- Process Logic
608   --
609   l_object_version_number := p_object_version_number;
610   --
611   --
612   begin
613     --
614     -- Start of API User Hook for the before hook of delete_PCT_FULL_TIME_RATE
615     --
616     ben_PCT_FULL_TIME_RATE_bk3.delete_PCT_FULL_TIME_RATE_b
617       (
618        p_pct_fl_tm_rt_id                =>  p_pct_fl_tm_rt_id
622       );
619       ,p_object_version_number          =>  p_object_version_number
620     ,p_effective_date                      => trunc(p_effective_date)
621     ,p_datetrack_mode                      => p_datetrack_mode
623   exception
624     when hr_api.cannot_find_prog_unit then
625       hr_api.cannot_find_prog_unit_error
626         (p_module_name => 'DELETE_PCT_FULL_TIME_RATE'
627         ,p_hook_type   => 'BP'
628         );
629     --
630     -- End of API User Hook for the before hook of delete_PCT_FULL_TIME_RATE
631     --
632   end;
633   --
634   ben_pfr_del.del
635     (
636      p_pct_fl_tm_rt_id               => p_pct_fl_tm_rt_id
637     ,p_effective_start_date          => l_effective_start_date
638     ,p_effective_end_date            => l_effective_end_date
639     ,p_object_version_number         => l_object_version_number
640     ,p_effective_date                => p_effective_date
641     ,p_datetrack_mode                => p_datetrack_mode
642     );
643   --
644   begin
645     --
646     -- Start of API User Hook for the after hook of delete_PCT_FULL_TIME_RATE
647     --
648     ben_PCT_FULL_TIME_RATE_bk3.delete_PCT_FULL_TIME_RATE_a
649       (
650        p_pct_fl_tm_rt_id                =>  p_pct_fl_tm_rt_id
651       ,p_effective_start_date           =>  l_effective_start_date
652       ,p_effective_end_date             =>  l_effective_end_date
653       ,p_object_version_number          =>  l_object_version_number
654     ,p_effective_date                      => trunc(p_effective_date)
655     ,p_datetrack_mode                      => p_datetrack_mode
656       );
657   exception
658     when hr_api.cannot_find_prog_unit then
659       hr_api.cannot_find_prog_unit_error
660         (p_module_name => 'DELETE_PCT_FULL_TIME_RATE'
661         ,p_hook_type   => 'AP'
662         );
663     --
664     -- End of API User Hook for the after hook of delete_PCT_FULL_TIME_RATE
665     --
666   end;
667   --
668   ben_profile_handler.event_handler
669     (p_event                       => 'DELETE',
670      p_base_table                  => 'BEN_VRBL_RT_PRFL_F',
671      p_base_table_column           => 'VRBL_RT_PRFL_ID',
672      p_base_table_column_value     => ben_pfr_shd.g_old_rec.vrbl_rt_prfl_id,
673      p_base_table_reference_column => 'RT_PCT_FL_TM_FLAG',
674      p_reference_table             => 'BEN_PCT_FL_TM_RT_F',
675      p_reference_table_column      => 'VRBL_RT_PRFL_ID');
676   --
677   ben_derivable_rate.derivable_rate_handler
678    (p_event                       =>'DELETE',
679     p_vrbl_rt_prfl_id             =>ben_pfr_shd.g_old_rec.vrbl_rt_prfl_id);
680 
681   hr_utility.set_location(l_proc, 60);
682   --
683   -- When in validation only mode raise the Validate_Enabled exception
684   --
685   if p_validate then
686     raise hr_api.validate_enabled;
687   end if;
688   --
689   hr_utility.set_location(' Leaving:'||l_proc, 70);
690   --
691 exception
692   --
693   when hr_api.validate_enabled then
694     --
695     -- As the Validate_Enabled exception has been raised
696     -- we must rollback to the savepoint
697     --
698     ROLLBACK TO delete_PCT_FULL_TIME_RATE;
699     --
700     -- Only set output warning arguments
701     -- (Any key or derived arguments must be set to null
702     -- when validation only mode is being used.)
703     --
704     p_effective_start_date := null;
705     p_effective_end_date := null;
706     --
707   when others then
708     --
709     -- A validation or unexpected error has occured
710     --
711     ROLLBACK TO delete_PCT_FULL_TIME_RATE;
712     p_effective_start_date := null;
713     p_effective_end_date := null;
714     p_object_version_number  := l_object_version_number;
715 
716     raise;
717     --
718 end delete_PCT_FULL_TIME_RATE;
719 --
720 -- ----------------------------------------------------------------------------
721 -- |-------------------------------< lck >------------------------------------|
722 -- ----------------------------------------------------------------------------
723 --
724 procedure lck
725   (
726    p_pct_fl_tm_rt_id                   in     number
727   ,p_object_version_number          in     number
728   ,p_effective_date                 in     date
729   ,p_datetrack_mode                 in     varchar2
730   ,p_validation_start_date          out nocopy    date
731   ,p_validation_end_date            out nocopy    date
732   ) is
733   --
734   --
735   -- Declare cursors and local variables
736   --
737   l_proc varchar2(72) := g_package||'lck';
738   l_validation_start_date date;
739   l_validation_end_date date;
740   --
741 begin
742   --
743   hr_utility.set_location('Entering:'|| l_proc, 10);
744   --
745   ben_pfr_shd.lck
746     (
747       p_pct_fl_tm_rt_id                 => p_pct_fl_tm_rt_id
748      ,p_validation_start_date      => l_validation_start_date
749      ,p_validation_end_date        => l_validation_end_date
750      ,p_object_version_number      => p_object_version_number
751      ,p_effective_date             => p_effective_date
752      ,p_datetrack_mode             => p_datetrack_mode
753     );
754   --
755   hr_utility.set_location(' Leaving:'||l_proc, 70);
756   --
757 end lck;
758 --
759 end ben_PCT_FULL_TIME_RATE_api;