DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ELIG_PPL_GRP_PRTE_API

Source


1 Package Body ben_ELIG_PPL_GRP_PRTE_api as
2 /* $Header: beepgapi.pkb 120.0 2005/05/28 02:38:35 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package  varchar2(33) := '  ben_ELIG_PPL_GRP_PRTE_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_ELIG_PPL_GRP_PRTE >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_ELIG_PPL_GRP_PRTE
13   (p_validate                       in  boolean   default false
14   ,p_elig_ppl_grp_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_eligy_prfl_id                  in  number    default null
20   ,p_people_group_id                in  number    default null
21   ,p_business_group_id              in  number    default null
22   ,p_epg_attribute_category         in  varchar2  default null
23   ,p_epg_attribute1                 in  varchar2  default null
24   ,p_epg_attribute2                 in  varchar2  default null
25   ,p_epg_attribute3                 in  varchar2  default null
26   ,p_epg_attribute4                 in  varchar2  default null
27   ,p_epg_attribute5                 in  varchar2  default null
28   ,p_epg_attribute6                 in  varchar2  default null
29   ,p_epg_attribute7                 in  varchar2  default null
30   ,p_epg_attribute8                 in  varchar2  default null
31   ,p_epg_attribute9                 in  varchar2  default null
32   ,p_epg_attribute10                in  varchar2  default null
33   ,p_epg_attribute11                in  varchar2  default null
34   ,p_epg_attribute12                in  varchar2  default null
35   ,p_epg_attribute13                in  varchar2  default null
36   ,p_epg_attribute14                in  varchar2  default null
37   ,p_epg_attribute15                in  varchar2  default null
38   ,p_epg_attribute16                in  varchar2  default null
39   ,p_epg_attribute17                in  varchar2  default null
40   ,p_epg_attribute18                in  varchar2  default null
41   ,p_epg_attribute19                in  varchar2  default null
42   ,p_epg_attribute20                in  varchar2  default null
43   ,p_epg_attribute21                in  varchar2  default null
44   ,p_epg_attribute22                in  varchar2  default null
45   ,p_epg_attribute23                in  varchar2  default null
46   ,p_epg_attribute24                in  varchar2  default null
47   ,p_epg_attribute25                in  varchar2  default null
48   ,p_epg_attribute26                in  varchar2  default null
49   ,p_epg_attribute27                in  varchar2  default null
50   ,p_epg_attribute28                in  varchar2  default null
51   ,p_epg_attribute29                in  varchar2  default null
52   ,p_epg_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_ppl_grp_prte_id ben_elig_ppl_grp_prte_f.elig_ppl_grp_prte_id%TYPE;
62   l_effective_start_date ben_elig_ppl_grp_prte_f.effective_start_date%TYPE;
63   l_effective_end_date ben_elig_ppl_grp_prte_f.effective_end_date%TYPE;
64   l_proc varchar2(72) := g_package||'create_ELIG_PPL_GRP_PRTE';
65   l_object_version_number ben_elig_ppl_grp_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_PPL_GRP_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_PPL_GRP_PRTE
82     --
83     ben_ELIG_PPL_GRP_PRTE_bk1.create_ELIG_PPL_GRP_PRTE_b
84       (
85        p_excld_flag                     =>  p_excld_flag
86       ,p_ordr_num                       =>  p_ordr_num
87       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
88       ,p_people_group_id                =>  p_people_group_id
89       ,p_business_group_id              =>  p_business_group_id
90       ,p_epg_attribute_category         =>  p_epg_attribute_category
91       ,p_epg_attribute1                 =>  p_epg_attribute1
92       ,p_epg_attribute2                 =>  p_epg_attribute2
93       ,p_epg_attribute3                 =>  p_epg_attribute3
94       ,p_epg_attribute4                 =>  p_epg_attribute4
95       ,p_epg_attribute5                 =>  p_epg_attribute5
96       ,p_epg_attribute6                 =>  p_epg_attribute6
97       ,p_epg_attribute7                 =>  p_epg_attribute7
98       ,p_epg_attribute8                 =>  p_epg_attribute8
99       ,p_epg_attribute9                 =>  p_epg_attribute9
100       ,p_epg_attribute10                =>  p_epg_attribute10
101       ,p_epg_attribute11                =>  p_epg_attribute11
102       ,p_epg_attribute12                =>  p_epg_attribute12
103       ,p_epg_attribute13                =>  p_epg_attribute13
104       ,p_epg_attribute14                =>  p_epg_attribute14
105       ,p_epg_attribute15                =>  p_epg_attribute15
106       ,p_epg_attribute16                =>  p_epg_attribute16
107       ,p_epg_attribute17                =>  p_epg_attribute17
108       ,p_epg_attribute18                =>  p_epg_attribute18
109       ,p_epg_attribute19                =>  p_epg_attribute19
110       ,p_epg_attribute20                =>  p_epg_attribute20
111       ,p_epg_attribute21                =>  p_epg_attribute21
112       ,p_epg_attribute22                =>  p_epg_attribute22
113       ,p_epg_attribute23                =>  p_epg_attribute23
114       ,p_epg_attribute24                =>  p_epg_attribute24
115       ,p_epg_attribute25                =>  p_epg_attribute25
116       ,p_epg_attribute26                =>  p_epg_attribute26
117       ,p_epg_attribute27                =>  p_epg_attribute27
118       ,p_epg_attribute28                =>  p_epg_attribute28
119       ,p_epg_attribute29                =>  p_epg_attribute29
120       ,p_epg_attribute30                =>  p_epg_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_PPL_GRP_PRTE'
130         ,p_hook_type   => 'BP'
131         );
132     --
133     -- End of API User Hook for the before hook of create_ELIG_PPL_GRP_PRTE
134     --
135   end;
136   --
137   ben_epg_ins.ins
138     (
139      p_elig_ppl_grp_prte_id          => l_elig_ppl_grp_prte_id
140     ,p_effective_start_date          => l_effective_start_date
141     ,p_effective_end_date            => l_effective_end_date
142     ,p_excld_flag                    => p_excld_flag
143     ,p_ordr_num                      => p_ordr_num
144     ,p_eligy_prfl_id                 => p_eligy_prfl_id
145     ,p_people_group_id               => p_people_group_id
146     ,p_business_group_id             => p_business_group_id
147     ,p_epg_attribute_category        => p_epg_attribute_category
148     ,p_epg_attribute1                => p_epg_attribute1
149     ,p_epg_attribute2                => p_epg_attribute2
150     ,p_epg_attribute3                => p_epg_attribute3
151     ,p_epg_attribute4                => p_epg_attribute4
152     ,p_epg_attribute5                => p_epg_attribute5
153     ,p_epg_attribute6                => p_epg_attribute6
154     ,p_epg_attribute7                => p_epg_attribute7
155     ,p_epg_attribute8                => p_epg_attribute8
156     ,p_epg_attribute9                => p_epg_attribute9
157     ,p_epg_attribute10               => p_epg_attribute10
158     ,p_epg_attribute11               => p_epg_attribute11
159     ,p_epg_attribute12               => p_epg_attribute12
160     ,p_epg_attribute13               => p_epg_attribute13
161     ,p_epg_attribute14               => p_epg_attribute14
162     ,p_epg_attribute15               => p_epg_attribute15
163     ,p_epg_attribute16               => p_epg_attribute16
164     ,p_epg_attribute17               => p_epg_attribute17
165     ,p_epg_attribute18               => p_epg_attribute18
166     ,p_epg_attribute19               => p_epg_attribute19
167     ,p_epg_attribute20               => p_epg_attribute20
168     ,p_epg_attribute21               => p_epg_attribute21
169     ,p_epg_attribute22               => p_epg_attribute22
170     ,p_epg_attribute23               => p_epg_attribute23
171     ,p_epg_attribute24               => p_epg_attribute24
172     ,p_epg_attribute25               => p_epg_attribute25
173     ,p_epg_attribute26               => p_epg_attribute26
174     ,p_epg_attribute27               => p_epg_attribute27
175     ,p_epg_attribute28               => p_epg_attribute28
176     ,p_epg_attribute29               => p_epg_attribute29
177     ,p_epg_attribute30               => p_epg_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_PPL_GRP_PRTE
187     --
188     ben_ELIG_PPL_GRP_PRTE_bk1.create_ELIG_PPL_GRP_PRTE_a
189       (
190        p_elig_ppl_grp_prte_id           =>  l_elig_ppl_grp_prte_id
191       ,p_effective_start_date           =>  l_effective_start_date
192       ,p_effective_end_date             =>  l_effective_end_date
193       ,p_excld_flag                     =>  p_excld_flag
194       ,p_ordr_num                       =>  p_ordr_num
195       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
196       ,p_people_group_id                =>  p_people_group_id
197       ,p_business_group_id              =>  p_business_group_id
198       ,p_epg_attribute_category         =>  p_epg_attribute_category
199       ,p_epg_attribute1                 =>  p_epg_attribute1
200       ,p_epg_attribute2                 =>  p_epg_attribute2
201       ,p_epg_attribute3                 =>  p_epg_attribute3
202       ,p_epg_attribute4                 =>  p_epg_attribute4
203       ,p_epg_attribute5                 =>  p_epg_attribute5
204       ,p_epg_attribute6                 =>  p_epg_attribute6
205       ,p_epg_attribute7                 =>  p_epg_attribute7
206       ,p_epg_attribute8                 =>  p_epg_attribute8
207       ,p_epg_attribute9                 =>  p_epg_attribute9
208       ,p_epg_attribute10                =>  p_epg_attribute10
209       ,p_epg_attribute11                =>  p_epg_attribute11
210       ,p_epg_attribute12                =>  p_epg_attribute12
211       ,p_epg_attribute13                =>  p_epg_attribute13
212       ,p_epg_attribute14                =>  p_epg_attribute14
213       ,p_epg_attribute15                =>  p_epg_attribute15
214       ,p_epg_attribute16                =>  p_epg_attribute16
215       ,p_epg_attribute17                =>  p_epg_attribute17
216       ,p_epg_attribute18                =>  p_epg_attribute18
217       ,p_epg_attribute19                =>  p_epg_attribute19
218       ,p_epg_attribute20                =>  p_epg_attribute20
219       ,p_epg_attribute21                =>  p_epg_attribute21
220       ,p_epg_attribute22                =>  p_epg_attribute22
221       ,p_epg_attribute23                =>  p_epg_attribute23
222       ,p_epg_attribute24                =>  p_epg_attribute24
223       ,p_epg_attribute25                =>  p_epg_attribute25
224       ,p_epg_attribute26                =>  p_epg_attribute26
225       ,p_epg_attribute27                =>  p_epg_attribute27
226       ,p_epg_attribute28                =>  p_epg_attribute28
227       ,p_epg_attribute29                =>  p_epg_attribute29
228       ,p_epg_attribute30                =>  p_epg_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_PPL_GRP_PRTE'
238         ,p_hook_type   => 'AP'
239         );
240     --
241     -- End of API User Hook for the after hook of create_ELIG_PPL_GRP_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_PPL_GRP_FLAG',
251      p_reference_table             => 'BEN_ELIG_PPL_GRP_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_ppl_grp_prte_id := l_elig_ppl_grp_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_PPL_GRP_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_ppl_grp_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     ROLLBACK TO create_ELIG_PPL_GRP_PRTE;
295     -- NOCOPY Changes
296 	p_elig_ppl_grp_prte_id := null;
297 	p_effective_start_date := null;
298 	p_effective_end_date := null;
299 	p_object_version_number  := null;
300 	-- NOCOPY Changes
301 
302     raise;
303     --
304 end create_ELIG_PPL_GRP_PRTE;
305 -- ----------------------------------------------------------------------------
306 -- |------------------------< update_ELIG_PPL_GRP_PRTE >--- ------------------|
307 -- ----------------------------------------------------------------------------
308 --
309 procedure update_ELIG_PPL_GRP_PRTE
310   (p_validate                       in  boolean   default false
311   ,p_elig_ppl_grp_prte_id           in  number
312   ,p_effective_start_date           out nocopy date
313   ,p_effective_end_date             out nocopy date
314   ,p_excld_flag                     in  varchar2  default hr_api.g_varchar2
315   ,p_ordr_num                       in  number    default hr_api.g_number
316   ,p_eligy_prfl_id                  in  number    default hr_api.g_number
317   ,p_people_group_id                in  number    default hr_api.g_number
318   ,p_business_group_id              in  number    default hr_api.g_number
319   ,p_epg_attribute_category         in  varchar2  default hr_api.g_varchar2
320   ,p_epg_attribute1                 in  varchar2  default hr_api.g_varchar2
321   ,p_epg_attribute2                 in  varchar2  default hr_api.g_varchar2
322   ,p_epg_attribute3                 in  varchar2  default hr_api.g_varchar2
326   ,p_epg_attribute7                 in  varchar2  default hr_api.g_varchar2
323   ,p_epg_attribute4                 in  varchar2  default hr_api.g_varchar2
324   ,p_epg_attribute5                 in  varchar2  default hr_api.g_varchar2
325   ,p_epg_attribute6                 in  varchar2  default hr_api.g_varchar2
327   ,p_epg_attribute8                 in  varchar2  default hr_api.g_varchar2
328   ,p_epg_attribute9                 in  varchar2  default hr_api.g_varchar2
329   ,p_epg_attribute10                in  varchar2  default hr_api.g_varchar2
330   ,p_epg_attribute11                in  varchar2  default hr_api.g_varchar2
331   ,p_epg_attribute12                in  varchar2  default hr_api.g_varchar2
332   ,p_epg_attribute13                in  varchar2  default hr_api.g_varchar2
333   ,p_epg_attribute14                in  varchar2  default hr_api.g_varchar2
334   ,p_epg_attribute15                in  varchar2  default hr_api.g_varchar2
335   ,p_epg_attribute16                in  varchar2  default hr_api.g_varchar2
336   ,p_epg_attribute17                in  varchar2  default hr_api.g_varchar2
337   ,p_epg_attribute18                in  varchar2  default hr_api.g_varchar2
338   ,p_epg_attribute19                in  varchar2  default hr_api.g_varchar2
339   ,p_epg_attribute20                in  varchar2  default hr_api.g_varchar2
340   ,p_epg_attribute21                in  varchar2  default hr_api.g_varchar2
341   ,p_epg_attribute22                in  varchar2  default hr_api.g_varchar2
342   ,p_epg_attribute23                in  varchar2  default hr_api.g_varchar2
343   ,p_epg_attribute24                in  varchar2  default hr_api.g_varchar2
344   ,p_epg_attribute25                in  varchar2  default hr_api.g_varchar2
345   ,p_epg_attribute26                in  varchar2  default hr_api.g_varchar2
346   ,p_epg_attribute27                in  varchar2  default hr_api.g_varchar2
347   ,p_epg_attribute28                in  varchar2  default hr_api.g_varchar2
348   ,p_epg_attribute29                in  varchar2  default hr_api.g_varchar2
349   ,p_epg_attribute30                in  varchar2  default hr_api.g_varchar2
350   ,p_object_version_number          in out nocopy number
351   ,p_effective_date                 in  date
352   ,p_datetrack_mode                 in  varchar2
353   ,p_criteria_score                 in number     default hr_api.g_number
354   ,p_criteria_weight                in  number    default hr_api.g_number
355   ) is
356   --
357   -- Declare cursors and local variables
358   --
359   l_proc varchar2(72) := g_package||'update_ELIG_PPL_GRP_PRTE';
360   l_object_version_number ben_elig_ppl_grp_prte_f.object_version_number%TYPE;
361   l_effective_start_date ben_elig_ppl_grp_prte_f.effective_start_date%TYPE;
362   l_effective_end_date ben_elig_ppl_grp_prte_f.effective_end_date%TYPE;
363   --
364 begin
365   --
366   hr_utility.set_location('Entering:'|| l_proc, 10);
367   --
368   -- Issue a savepoint if operating in validation only mode
369   --
370   savepoint update_ELIG_PPL_GRP_PRTE;
371   --
372   hr_utility.set_location(l_proc, 20);
373   --
374   -- Process Logic
375   --
376   l_object_version_number := p_object_version_number;
377   --
378   begin
379     --
380     -- Start of API User Hook for the before hook of update_ELIG_PPL_GRP_PRTE
381     --
382     ben_ELIG_PPL_GRP_PRTE_bk2.update_ELIG_PPL_GRP_PRTE_b
383       (
384        p_elig_ppl_grp_prte_id           =>  p_elig_ppl_grp_prte_id
385       ,p_excld_flag                     =>  p_excld_flag
386       ,p_ordr_num                       =>  p_ordr_num
387       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
388       ,p_people_group_id                =>  p_people_group_id
389       ,p_business_group_id              =>  p_business_group_id
390       ,p_epg_attribute_category         =>  p_epg_attribute_category
391       ,p_epg_attribute1                 =>  p_epg_attribute1
392       ,p_epg_attribute2                 =>  p_epg_attribute2
393       ,p_epg_attribute3                 =>  p_epg_attribute3
394       ,p_epg_attribute4                 =>  p_epg_attribute4
395       ,p_epg_attribute5                 =>  p_epg_attribute5
396       ,p_epg_attribute6                 =>  p_epg_attribute6
397       ,p_epg_attribute7                 =>  p_epg_attribute7
398       ,p_epg_attribute8                 =>  p_epg_attribute8
399       ,p_epg_attribute9                 =>  p_epg_attribute9
400       ,p_epg_attribute10                =>  p_epg_attribute10
401       ,p_epg_attribute11                =>  p_epg_attribute11
402       ,p_epg_attribute12                =>  p_epg_attribute12
403       ,p_epg_attribute13                =>  p_epg_attribute13
404       ,p_epg_attribute14                =>  p_epg_attribute14
405       ,p_epg_attribute15                =>  p_epg_attribute15
406       ,p_epg_attribute16                =>  p_epg_attribute16
407       ,p_epg_attribute17                =>  p_epg_attribute17
408       ,p_epg_attribute18                =>  p_epg_attribute18
409       ,p_epg_attribute19                =>  p_epg_attribute19
410       ,p_epg_attribute20                =>  p_epg_attribute20
411       ,p_epg_attribute21                =>  p_epg_attribute21
412       ,p_epg_attribute22                =>  p_epg_attribute22
413       ,p_epg_attribute23                =>  p_epg_attribute23
414       ,p_epg_attribute24                =>  p_epg_attribute24
415       ,p_epg_attribute25                =>  p_epg_attribute25
416       ,p_epg_attribute26                =>  p_epg_attribute26
417       ,p_epg_attribute27                =>  p_epg_attribute27
418       ,p_epg_attribute28                =>  p_epg_attribute28
422     ,p_effective_date                      => trunc(p_effective_date)
419       ,p_epg_attribute29                =>  p_epg_attribute29
420       ,p_epg_attribute30                =>  p_epg_attribute30
421       ,p_object_version_number          =>  p_object_version_number
423     ,p_datetrack_mode                      => p_datetrack_mode
424       ,p_criteria_score                 =>  p_criteria_score
425       ,p_criteria_weight                =>  p_criteria_weight
426       );
427   exception
428     when hr_api.cannot_find_prog_unit then
429       hr_api.cannot_find_prog_unit_error
430         (p_module_name => 'UPDATE_ELIG_PPL_GRP_PRTE'
431         ,p_hook_type   => 'BP'
432         );
433     --
434     -- End of API User Hook for the before hook of update_ELIG_PPL_GRP_PRTE
435     --
436   end;
437   --
438   ben_epg_upd.upd
439     (
440      p_elig_ppl_grp_prte_id          => p_elig_ppl_grp_prte_id
441     ,p_effective_start_date          => l_effective_start_date
442     ,p_effective_end_date            => l_effective_end_date
443     ,p_excld_flag                    => p_excld_flag
444     ,p_ordr_num                      => p_ordr_num
445     ,p_eligy_prfl_id                 => p_eligy_prfl_id
446     ,p_people_group_id               => p_people_group_id
447     ,p_business_group_id             => p_business_group_id
448     ,p_epg_attribute_category        => p_epg_attribute_category
449     ,p_epg_attribute1                => p_epg_attribute1
450     ,p_epg_attribute2                => p_epg_attribute2
451     ,p_epg_attribute3                => p_epg_attribute3
452     ,p_epg_attribute4                => p_epg_attribute4
453     ,p_epg_attribute5                => p_epg_attribute5
454     ,p_epg_attribute6                => p_epg_attribute6
455     ,p_epg_attribute7                => p_epg_attribute7
456     ,p_epg_attribute8                => p_epg_attribute8
457     ,p_epg_attribute9                => p_epg_attribute9
458     ,p_epg_attribute10               => p_epg_attribute10
459     ,p_epg_attribute11               => p_epg_attribute11
460     ,p_epg_attribute12               => p_epg_attribute12
461     ,p_epg_attribute13               => p_epg_attribute13
462     ,p_epg_attribute14               => p_epg_attribute14
463     ,p_epg_attribute15               => p_epg_attribute15
464     ,p_epg_attribute16               => p_epg_attribute16
465     ,p_epg_attribute17               => p_epg_attribute17
466     ,p_epg_attribute18               => p_epg_attribute18
467     ,p_epg_attribute19               => p_epg_attribute19
468     ,p_epg_attribute20               => p_epg_attribute20
469     ,p_epg_attribute21               => p_epg_attribute21
470     ,p_epg_attribute22               => p_epg_attribute22
471     ,p_epg_attribute23               => p_epg_attribute23
472     ,p_epg_attribute24               => p_epg_attribute24
473     ,p_epg_attribute25               => p_epg_attribute25
474     ,p_epg_attribute26               => p_epg_attribute26
475     ,p_epg_attribute27               => p_epg_attribute27
476     ,p_epg_attribute28               => p_epg_attribute28
477     ,p_epg_attribute29               => p_epg_attribute29
478     ,p_epg_attribute30               => p_epg_attribute30
479     ,p_object_version_number         => l_object_version_number
480     ,p_effective_date                => trunc(p_effective_date)
481     ,p_datetrack_mode                => p_datetrack_mode
482     ,p_criteria_score                =>  p_criteria_score
483     ,p_criteria_weight               =>  p_criteria_weight
484     );
485   --
486   begin
487     --
488     -- Start of API User Hook for the after hook of update_ELIG_PPL_GRP_PRTE
489     --
490     ben_ELIG_PPL_GRP_PRTE_bk2.update_ELIG_PPL_GRP_PRTE_a
491       (
492        p_elig_ppl_grp_prte_id           =>  p_elig_ppl_grp_prte_id
493       ,p_effective_start_date           =>  l_effective_start_date
494       ,p_effective_end_date             =>  l_effective_end_date
495       ,p_excld_flag                     =>  p_excld_flag
496       ,p_ordr_num                       =>  p_ordr_num
497       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
498       ,p_people_group_id                =>  p_people_group_id
499       ,p_business_group_id              =>  p_business_group_id
500       ,p_epg_attribute_category         =>  p_epg_attribute_category
501       ,p_epg_attribute1                 =>  p_epg_attribute1
502       ,p_epg_attribute2                 =>  p_epg_attribute2
503       ,p_epg_attribute3                 =>  p_epg_attribute3
504       ,p_epg_attribute4                 =>  p_epg_attribute4
505       ,p_epg_attribute5                 =>  p_epg_attribute5
506       ,p_epg_attribute6                 =>  p_epg_attribute6
507       ,p_epg_attribute7                 =>  p_epg_attribute7
508       ,p_epg_attribute8                 =>  p_epg_attribute8
509       ,p_epg_attribute9                 =>  p_epg_attribute9
510       ,p_epg_attribute10                =>  p_epg_attribute10
511       ,p_epg_attribute11                =>  p_epg_attribute11
512       ,p_epg_attribute12                =>  p_epg_attribute12
513       ,p_epg_attribute13                =>  p_epg_attribute13
514       ,p_epg_attribute14                =>  p_epg_attribute14
515       ,p_epg_attribute15                =>  p_epg_attribute15
516       ,p_epg_attribute16                =>  p_epg_attribute16
517       ,p_epg_attribute17                =>  p_epg_attribute17
518       ,p_epg_attribute18                =>  p_epg_attribute18
519       ,p_epg_attribute19                =>  p_epg_attribute19
520       ,p_epg_attribute20                =>  p_epg_attribute20
524       ,p_epg_attribute24                =>  p_epg_attribute24
521       ,p_epg_attribute21                =>  p_epg_attribute21
522       ,p_epg_attribute22                =>  p_epg_attribute22
523       ,p_epg_attribute23                =>  p_epg_attribute23
525       ,p_epg_attribute25                =>  p_epg_attribute25
526       ,p_epg_attribute26                =>  p_epg_attribute26
527       ,p_epg_attribute27                =>  p_epg_attribute27
528       ,p_epg_attribute28                =>  p_epg_attribute28
529       ,p_epg_attribute29                =>  p_epg_attribute29
530       ,p_epg_attribute30                =>  p_epg_attribute30
531       ,p_object_version_number          =>  l_object_version_number
532       ,p_effective_date                     => trunc(p_effective_date)
533       ,p_datetrack_mode                     => p_datetrack_mode
534       ,p_criteria_score                 =>  p_criteria_score
535       ,p_criteria_weight                =>  p_criteria_weight
536       );
537   exception
538     when hr_api.cannot_find_prog_unit then
539       hr_api.cannot_find_prog_unit_error
540         (p_module_name => 'UPDATE_ELIG_PPL_GRP_PRTE'
541         ,p_hook_type   => 'AP'
542         );
543     --
544     -- End of API User Hook for the after hook of update_ELIG_PPL_GRP_PRTE
545     --
546   end;
547   --
548   hr_utility.set_location(l_proc, 60);
549   --
550   -- When in validation only mode raise the Validate_Enabled exception
551   --
552   if p_validate then
553     raise hr_api.validate_enabled;
554   end if;
555   --
556   -- Set all output arguments
557   --
558   p_object_version_number := l_object_version_number;
559   p_effective_start_date := l_effective_start_date;
560   p_effective_end_date := l_effective_end_date;
561   --
562   hr_utility.set_location(' Leaving:'||l_proc, 70);
563   --
564 exception
565   --
566   when hr_api.validate_enabled then
567     --
568     -- As the Validate_Enabled exception has been raised
569     -- we must rollback to the savepoint
570     --
571     ROLLBACK TO update_ELIG_PPL_GRP_PRTE;
572     --
573     -- NOCOPY Changes
574 	p_effective_start_date := null;
575 	p_effective_end_date := null;
576 	-- NOCOPY Changes
577 
578     -- Only set output warning arguments
579     -- (Any key or derived arguments must be set to null
580     -- when validation only mode is being used.)
581     --
582     hr_utility.set_location(' Leaving:'||l_proc, 80);
583     --
584   when others then
585     --
586     -- A validation or unexpected error has occured
587     --
588     ROLLBACK TO update_ELIG_PPL_GRP_PRTE;
589     -- NOCOPY Changes
590 	p_effective_start_date := null;
591 	p_effective_end_date := null;
592 	-- NOCOPY Changes
593     raise;
594     --
595 end update_ELIG_PPL_GRP_PRTE;
596 -- ----------------------------------------------------------------------------
597 -- |------------------------< delete_ELIG_PPL_GRP_PRTE >----------------------|
598 -- ----------------------------------------------------------------------------
599 --
600 procedure delete_ELIG_PPL_GRP_PRTE
601   (p_validate                       in  boolean  default false
602   ,p_elig_ppl_grp_prte_id           in  number
603   ,p_effective_start_date           out nocopy date
604   ,p_effective_end_date             out nocopy date
605   ,p_object_version_number          in out nocopy number
606   ,p_effective_date                 in  date
607   ,p_datetrack_mode                 in  varchar2
608   ) is
609   --
610   -- Declare cursors and local variables
611   --
612   l_proc varchar2(72) := g_package||'update_ELIG_PPL_GRP_PRTE';
613   l_object_version_number ben_elig_ppl_grp_prte_f.object_version_number%TYPE;
614   l_effective_start_date ben_elig_ppl_grp_prte_f.effective_start_date%TYPE;
615   l_effective_end_date ben_elig_ppl_grp_prte_f.effective_end_date%TYPE;
616   --
617 begin
618   --
619   hr_utility.set_location('Entering:'|| l_proc, 10);
620   --
621   -- Issue a savepoint if operating in validation only mode
622   --
623   savepoint delete_ELIG_PPL_GRP_PRTE;
624   --
625   hr_utility.set_location(l_proc, 20);
626   --
627   -- Process Logic
628   --
629   l_object_version_number := p_object_version_number;
630   --
631   --
632   begin
633     --
634     -- Start of API User Hook for the before hook of delete_ELIG_PPL_GRP_PRTE
635     --
636     ben_ELIG_PPL_GRP_PRTE_bk3.delete_ELIG_PPL_GRP_PRTE_b
637       (
638        p_elig_ppl_grp_prte_id           =>  p_elig_ppl_grp_prte_id
639       ,p_object_version_number          =>  p_object_version_number
640     ,p_effective_date                      => trunc(p_effective_date)
641     ,p_datetrack_mode                      => p_datetrack_mode
642       );
643   exception
644     when hr_api.cannot_find_prog_unit then
645       hr_api.cannot_find_prog_unit_error
646         (p_module_name => 'DELETE_ELIG_PPL_GRP_PRTE'
647         ,p_hook_type   => 'BP'
648         );
649     --
650     -- End of API User Hook for the before hook of delete_ELIG_PPL_GRP_PRTE
651     --
652   end;
653   --
654   ben_epg_del.del
655     (
656      p_elig_ppl_grp_prte_id          => p_elig_ppl_grp_prte_id
657     ,p_effective_start_date          => l_effective_start_date
658     ,p_effective_end_date            => l_effective_end_date
659     ,p_object_version_number         => l_object_version_number
660     ,p_effective_date                => p_effective_date
661     ,p_datetrack_mode                => p_datetrack_mode
662     );
663   --
664   begin
665     --
666     -- Start of API User Hook for the after hook of delete_ELIG_PPL_GRP_PRTE
667     --
668     ben_ELIG_PPL_GRP_PRTE_bk3.delete_ELIG_PPL_GRP_PRTE_a
669       (
670        p_elig_ppl_grp_prte_id           =>  p_elig_ppl_grp_prte_id
671       ,p_effective_start_date           =>  l_effective_start_date
672       ,p_effective_end_date             =>  l_effective_end_date
673       ,p_object_version_number          =>  l_object_version_number
674     ,p_effective_date                      => trunc(p_effective_date)
675     ,p_datetrack_mode                      => p_datetrack_mode
676       );
677   exception
678     when hr_api.cannot_find_prog_unit then
682         );
679       hr_api.cannot_find_prog_unit_error
680         (p_module_name => 'DELETE_ELIG_PPL_GRP_PRTE'
681         ,p_hook_type   => 'AP'
683     --
684     -- End of API User Hook for the after hook of delete_ELIG_PPL_GRP_PRTE
685     --
686   end;
687   --
688   ben_profile_handler.event_handler
689     (p_event                       => 'DELETE',
690      p_base_table                  => 'BEN_ELIGY_PRFL_F',
691      p_base_table_column           => 'ELIGY_PRFL_ID',
692      p_base_table_column_value     => ben_epg_shd.g_old_rec.eligy_prfl_id,
693      p_base_table_reference_column => 'ELIG_PPL_GRP_FLAG',
694      p_reference_table             => 'BEN_ELIG_PPL_GRP_PRTE_F',
695      p_reference_table_column      => 'ELIGY_PRFL_ID');
696   --
697   hr_utility.set_location(l_proc, 60);
698   --
699   -- When in validation only mode raise the Validate_Enabled exception
700   --
701   if p_validate then
702     raise hr_api.validate_enabled;
703   end if;
704   --
705   hr_utility.set_location(' Leaving:'||l_proc, 70);
706   --
707 exception
708   --
709   when hr_api.validate_enabled then
710     --
711     -- As the Validate_Enabled exception has been raised
712     -- we must rollback to the savepoint
713     --
714     ROLLBACK TO delete_ELIG_PPL_GRP_PRTE;
715     --
716     -- Only set output warning arguments
717     -- (Any key or derived arguments must be set to null
718     -- when validation only mode is being used.)
719     --
720     p_effective_start_date := null;
721     p_effective_end_date := null;
722     --
723   when others then
724     --
725     -- A validation or unexpected error has occured
726     --
727     ROLLBACK TO delete_ELIG_PPL_GRP_PRTE;
728     -- NOCOPY Changes
729 	p_effective_start_date := null;
730 	p_effective_end_date := null;
731 	-- NOCOPY Changes
732     raise;
733     --
734 end delete_ELIG_PPL_GRP_PRTE;
735 --
736 -- ----------------------------------------------------------------------------
737 -- |-------------------------------< lck >------------------------------------|
738 -- ----------------------------------------------------------------------------
739 --
740 procedure lck
741   (
742    p_elig_ppl_grp_prte_id                   in     number
743   ,p_object_version_number          in     number
744   ,p_effective_date                 in     date
745   ,p_datetrack_mode                 in     varchar2
746   ,p_validation_start_date          out nocopy    date
747   ,p_validation_end_date            out nocopy    date
748   ) is
749   --
750   --
751   -- Declare cursors and local variables
752   --
753   l_proc varchar2(72) := g_package||'lck';
754   l_validation_start_date date;
755   l_validation_end_date date;
756   --
757 begin
758   --
759   hr_utility.set_location('Entering:'|| l_proc, 10);
760   --
761   ben_epg_shd.lck
762     (
763       p_elig_ppl_grp_prte_id                 => p_elig_ppl_grp_prte_id
764      ,p_validation_start_date      => l_validation_start_date
765      ,p_validation_end_date        => l_validation_end_date
766      ,p_object_version_number      => p_object_version_number
767      ,p_effective_date             => p_effective_date
768      ,p_datetrack_mode             => p_datetrack_mode
769     );
770   --
771   hr_utility.set_location(' Leaving:'||l_proc, 70);
772   --
773 end lck;
774 --
775 end ben_ELIG_PPL_GRP_PRTE_api;