DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ELIG_PRBTN_PERD_PRTE_API

Source


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