DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ELIG_PCT_FL_TM_PRTE_API

Source


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