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