DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ELIG_DSBLTY_CTG_PRTE_API

Source


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