[Home] [Help]
PACKAGE BODY: APPS.BEN_ELIG_PSTN_PRTE_API
Source
1 Package Body ben_ELIG_PSTN_PRTE_api as
2 /* $Header: beepsapi.pkb 120.0 2005/05/28 02:44:46 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package varchar2(33) := ' ben_ELIG_PSTN_PRTE_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_ELIG_PSTN_PRTE >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_ELIG_PSTN_PRTE
13 (p_validate in boolean default false
14 ,p_ELIG_PSTN_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_position_id in number default null
20 ,p_eligy_prfl_id in number default null
21 ,p_business_group_id in number default null
22 ,p_eps_attribute_category in varchar2 default null
23 ,p_eps_attribute1 in varchar2 default null
24 ,p_eps_attribute2 in varchar2 default null
25 ,p_eps_attribute3 in varchar2 default null
26 ,p_eps_attribute4 in varchar2 default null
27 ,p_eps_attribute5 in varchar2 default null
28 ,p_eps_attribute6 in varchar2 default null
29 ,p_eps_attribute7 in varchar2 default null
30 ,p_eps_attribute8 in varchar2 default null
31 ,p_eps_attribute9 in varchar2 default null
32 ,p_eps_attribute10 in varchar2 default null
33 ,p_eps_attribute11 in varchar2 default null
34 ,p_eps_attribute12 in varchar2 default null
35 ,p_eps_attribute13 in varchar2 default null
36 ,p_eps_attribute14 in varchar2 default null
37 ,p_eps_attribute15 in varchar2 default null
38 ,p_eps_attribute16 in varchar2 default null
39 ,p_eps_attribute17 in varchar2 default null
40 ,p_eps_attribute18 in varchar2 default null
41 ,p_eps_attribute19 in varchar2 default null
42 ,p_eps_attribute20 in varchar2 default null
43 ,p_eps_attribute21 in varchar2 default null
44 ,p_eps_attribute22 in varchar2 default null
45 ,p_eps_attribute23 in varchar2 default null
46 ,p_eps_attribute24 in varchar2 default null
47 ,p_eps_attribute25 in varchar2 default null
48 ,p_eps_attribute26 in varchar2 default null
49 ,p_eps_attribute27 in varchar2 default null
50 ,p_eps_attribute28 in varchar2 default null
51 ,p_eps_attribute29 in varchar2 default null
52 ,p_eps_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_PSTN_PRTE_id ben_ELIG_PSTN_PRTE_f.ELIG_PSTN_PRTE_id%TYPE;
62 l_effective_start_date ben_ELIG_PSTN_PRTE_f.effective_start_date%TYPE;
63 l_effective_end_date ben_ELIG_PSTN_PRTE_f.effective_end_date%TYPE;
64 l_proc varchar2(72) := g_package||'create_ELIG_PSTN_PRTE';
65 l_object_version_number ben_ELIG_PSTN_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_PSTN_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_PSTN_PRTE
82 --
83 ben_ELIG_PSTN_PRTE_bk1.create_ELIG_PSTN_PRTE_b
84 (
85 p_excld_flag => p_excld_flag
86 ,p_ordr_num => p_ordr_num
87 ,p_position_id => p_position_id
88 ,p_eligy_prfl_id => p_eligy_prfl_id
89 ,p_business_group_id => p_business_group_id
90 ,p_eps_attribute_category => p_eps_attribute_category
91 ,p_eps_attribute1 => p_eps_attribute1
92 ,p_eps_attribute2 => p_eps_attribute2
93 ,p_eps_attribute3 => p_eps_attribute3
94 ,p_eps_attribute4 => p_eps_attribute4
95 ,p_eps_attribute5 => p_eps_attribute5
96 ,p_eps_attribute6 => p_eps_attribute6
97 ,p_eps_attribute7 => p_eps_attribute7
98 ,p_eps_attribute8 => p_eps_attribute8
99 ,p_eps_attribute9 => p_eps_attribute9
100 ,p_eps_attribute10 => p_eps_attribute10
101 ,p_eps_attribute11 => p_eps_attribute11
102 ,p_eps_attribute12 => p_eps_attribute12
103 ,p_eps_attribute13 => p_eps_attribute13
104 ,p_eps_attribute14 => p_eps_attribute14
105 ,p_eps_attribute15 => p_eps_attribute15
106 ,p_eps_attribute16 => p_eps_attribute16
107 ,p_eps_attribute17 => p_eps_attribute17
108 ,p_eps_attribute18 => p_eps_attribute18
109 ,p_eps_attribute19 => p_eps_attribute19
110 ,p_eps_attribute20 => p_eps_attribute20
111 ,p_eps_attribute21 => p_eps_attribute21
112 ,p_eps_attribute22 => p_eps_attribute22
113 ,p_eps_attribute23 => p_eps_attribute23
114 ,p_eps_attribute24 => p_eps_attribute24
115 ,p_eps_attribute25 => p_eps_attribute25
116 ,p_eps_attribute26 => p_eps_attribute26
117 ,p_eps_attribute27 => p_eps_attribute27
118 ,p_eps_attribute28 => p_eps_attribute28
119 ,p_eps_attribute29 => p_eps_attribute29
120 ,p_eps_attribute30 => p_eps_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_PSTN_PRTE'
130 ,p_hook_type => 'BP'
131 );
132 --
133 -- End of API User Hook for the before hook of create_ELIG_PSTN_PRTE
134 --
135 end;
136 --
137 hr_utility.set_location(l_proc, 30);
138 ben_eps_ins.ins
139 (
140 p_ELIG_PSTN_PRTE_id => l_ELIG_PSTN_PRTE_id
141 ,p_effective_start_date => l_effective_start_date
142 ,p_effective_end_date => l_effective_end_date
143 ,p_excld_flag => p_excld_flag
144 ,p_ordr_num => p_ordr_num
145 ,p_position_id => p_position_id
146 ,p_eligy_prfl_id => p_eligy_prfl_id
147 ,p_business_group_id => p_business_group_id
148 ,p_eps_attribute_category => p_eps_attribute_category
149 ,p_eps_attribute1 => p_eps_attribute1
150 ,p_eps_attribute2 => p_eps_attribute2
151 ,p_eps_attribute3 => p_eps_attribute3
152 ,p_eps_attribute4 => p_eps_attribute4
153 ,p_eps_attribute5 => p_eps_attribute5
154 ,p_eps_attribute6 => p_eps_attribute6
155 ,p_eps_attribute7 => p_eps_attribute7
156 ,p_eps_attribute8 => p_eps_attribute8
157 ,p_eps_attribute9 => p_eps_attribute9
158 ,p_eps_attribute10 => p_eps_attribute10
159 ,p_eps_attribute11 => p_eps_attribute11
160 ,p_eps_attribute12 => p_eps_attribute12
161 ,p_eps_attribute13 => p_eps_attribute13
162 ,p_eps_attribute14 => p_eps_attribute14
163 ,p_eps_attribute15 => p_eps_attribute15
164 ,p_eps_attribute16 => p_eps_attribute16
165 ,p_eps_attribute17 => p_eps_attribute17
166 ,p_eps_attribute18 => p_eps_attribute18
167 ,p_eps_attribute19 => p_eps_attribute19
168 ,p_eps_attribute20 => p_eps_attribute20
169 ,p_eps_attribute21 => p_eps_attribute21
170 ,p_eps_attribute22 => p_eps_attribute22
171 ,p_eps_attribute23 => p_eps_attribute23
172 ,p_eps_attribute24 => p_eps_attribute24
173 ,p_eps_attribute25 => p_eps_attribute25
174 ,p_eps_attribute26 => p_eps_attribute26
175 ,p_eps_attribute27 => p_eps_attribute27
176 ,p_eps_attribute28 => p_eps_attribute28
177 ,p_eps_attribute29 => p_eps_attribute29
178 ,p_eps_attribute30 => p_eps_attribute30
179 ,p_object_version_number => l_object_version_number
180 ,p_effective_date => trunc(p_effective_date)
181 ,p_criteria_score => p_criteria_score
182 ,p_criteria_weight => p_criteria_weight
183 );
184 --
185 hr_utility.set_location(l_proc, 40);
186 begin
187 --
188 -- Start of API User Hook for the after hook of create_ELIG_PSTN_PRTE
189 --
190 ben_ELIG_PSTN_PRTE_bk1.create_ELIG_PSTN_PRTE_a
191 (
192 p_ELIG_PSTN_PRTE_id => l_ELIG_PSTN_PRTE_id
193 ,p_effective_start_date => l_effective_start_date
194 ,p_effective_end_date => l_effective_end_date
195 ,p_excld_flag => p_excld_flag
196 ,p_ordr_num => p_ordr_num
197 ,p_position_id => p_position_id
198 ,p_eligy_prfl_id => p_eligy_prfl_id
199 ,p_business_group_id => p_business_group_id
200 ,p_eps_attribute_category => p_eps_attribute_category
201 ,p_eps_attribute1 => p_eps_attribute1
202 ,p_eps_attribute2 => p_eps_attribute2
203 ,p_eps_attribute3 => p_eps_attribute3
204 ,p_eps_attribute4 => p_eps_attribute4
205 ,p_eps_attribute5 => p_eps_attribute5
206 ,p_eps_attribute6 => p_eps_attribute6
207 ,p_eps_attribute7 => p_eps_attribute7
208 ,p_eps_attribute8 => p_eps_attribute8
209 ,p_eps_attribute9 => p_eps_attribute9
210 ,p_eps_attribute10 => p_eps_attribute10
211 ,p_eps_attribute11 => p_eps_attribute11
212 ,p_eps_attribute12 => p_eps_attribute12
213 ,p_eps_attribute13 => p_eps_attribute13
214 ,p_eps_attribute14 => p_eps_attribute14
215 ,p_eps_attribute15 => p_eps_attribute15
216 ,p_eps_attribute16 => p_eps_attribute16
217 ,p_eps_attribute17 => p_eps_attribute17
218 ,p_eps_attribute18 => p_eps_attribute18
219 ,p_eps_attribute19 => p_eps_attribute19
220 ,p_eps_attribute20 => p_eps_attribute20
221 ,p_eps_attribute21 => p_eps_attribute21
222 ,p_eps_attribute22 => p_eps_attribute22
223 ,p_eps_attribute23 => p_eps_attribute23
224 ,p_eps_attribute24 => p_eps_attribute24
225 ,p_eps_attribute25 => p_eps_attribute25
226 ,p_eps_attribute26 => p_eps_attribute26
227 ,p_eps_attribute27 => p_eps_attribute27
228 ,p_eps_attribute28 => p_eps_attribute28
229 ,p_eps_attribute29 => p_eps_attribute29
230 ,p_eps_attribute30 => p_eps_attribute30
231 ,p_object_version_number => l_object_version_number
232 ,p_effective_date => trunc(p_effective_date)
233 ,p_criteria_score => p_criteria_score
234 ,p_criteria_weight => p_criteria_weight
235 );
236 exception
237 when hr_api.cannot_find_prog_unit then
238 hr_api.cannot_find_prog_unit_error
239 (p_module_name => 'CREATE_ELIG_PSTN_PRTE'
240 ,p_hook_type => 'AP'
241 );
242 --
243 -- End of API User Hook for the after hook of create_ELIG_PSTN_PRTE
244 --
245 end;
246 hr_utility.set_location(l_proc, 50);
247 --
248 ben_profile_handler.event_handler
249 (p_event => 'CREATE',
250 p_base_table => 'BEN_ELIGY_PRFL_F',
251 p_base_table_column => 'ELIGY_PRFL_ID',
252 p_base_table_column_value => p_eligy_prfl_id,
253 p_base_table_reference_column => 'ELIG_PSTN_FLAG',
254 p_reference_table => 'BEN_ELIG_PSTN_PRTE_F',
255 p_reference_table_column => 'ELIGY_PRFL_ID');
256 --
257 hr_utility.set_location(l_proc, 60);
258 --
259 -- When in validation only mode raise the Validate_Enabled exception
260 --
261 if p_validate then
262 raise hr_api.validate_enabled;
263 end if;
264 --
265 -- Set all output arguments
266 --
267 p_ELIG_PSTN_PRTE_id := l_ELIG_PSTN_PRTE_id;
268 p_effective_start_date := l_effective_start_date;
269 p_effective_end_date := l_effective_end_date;
270 p_object_version_number := l_object_version_number;
271 --
275 --
272 hr_utility.set_location(' Leaving:'||l_proc, 70);
273 --
274 exception
276 when hr_api.validate_enabled then
277 --
278 -- As the Validate_Enabled exception has been raised
279 -- we must rollback to the savepoint
280 --
281 ROLLBACK TO create_ELIG_PSTN_PRTE;
282 --
283 -- Only set output warning arguments
284 -- (Any key or derived arguments must be set to null
285 -- when validation only mode is being used.)
286 --
287 p_ELIG_PSTN_PRTE_id := null;
288 p_effective_start_date := null;
289 p_effective_end_date := null;
290 p_object_version_number := null;
291 hr_utility.set_location(' Leaving:'||l_proc, 80);
292 --
293 when others then
294 --
295 -- A validation or unexpected error has occured
296 --
297 ROLLBACK TO create_ELIG_PSTN_PRTE;
298
299 -- NOCOPY, Reset out parameters
300 p_ELIG_PSTN_PRTE_id := null;
301 p_effective_start_date := null;
302 p_effective_end_date := null;
303 p_object_version_number := null;
304
305 raise;
306 --
307 end create_ELIG_PSTN_PRTE;
308 -- ----------------------------------------------------------------------------
309 -- |------------------------< update_ELIG_PSTN_PRTE >--- ------------------|
310 -- ----------------------------------------------------------------------------
311 --
312 procedure update_ELIG_PSTN_PRTE
313 (p_validate in boolean default false
314 ,p_ELIG_PSTN_PRTE_id in number
315 ,p_effective_start_date out nocopy date
316 ,p_effective_end_date out nocopy date
317 ,p_excld_flag in varchar2 default hr_api.g_varchar2
318 ,p_ordr_num in number default hr_api.g_number
319 ,p_position_id in number default hr_api.g_number
320 ,p_eligy_prfl_id in number default hr_api.g_number
321 ,p_business_group_id in number default hr_api.g_number
322 ,p_eps_attribute_category in varchar2 default hr_api.g_varchar2
323 ,p_eps_attribute1 in varchar2 default hr_api.g_varchar2
324 ,p_eps_attribute2 in varchar2 default hr_api.g_varchar2
325 ,p_eps_attribute3 in varchar2 default hr_api.g_varchar2
326 ,p_eps_attribute4 in varchar2 default hr_api.g_varchar2
327 ,p_eps_attribute5 in varchar2 default hr_api.g_varchar2
328 ,p_eps_attribute6 in varchar2 default hr_api.g_varchar2
329 ,p_eps_attribute7 in varchar2 default hr_api.g_varchar2
330 ,p_eps_attribute8 in varchar2 default hr_api.g_varchar2
331 ,p_eps_attribute9 in varchar2 default hr_api.g_varchar2
332 ,p_eps_attribute10 in varchar2 default hr_api.g_varchar2
333 ,p_eps_attribute11 in varchar2 default hr_api.g_varchar2
334 ,p_eps_attribute12 in varchar2 default hr_api.g_varchar2
335 ,p_eps_attribute13 in varchar2 default hr_api.g_varchar2
336 ,p_eps_attribute14 in varchar2 default hr_api.g_varchar2
337 ,p_eps_attribute15 in varchar2 default hr_api.g_varchar2
338 ,p_eps_attribute16 in varchar2 default hr_api.g_varchar2
339 ,p_eps_attribute17 in varchar2 default hr_api.g_varchar2
340 ,p_eps_attribute18 in varchar2 default hr_api.g_varchar2
341 ,p_eps_attribute19 in varchar2 default hr_api.g_varchar2
342 ,p_eps_attribute20 in varchar2 default hr_api.g_varchar2
343 ,p_eps_attribute21 in varchar2 default hr_api.g_varchar2
344 ,p_eps_attribute22 in varchar2 default hr_api.g_varchar2
345 ,p_eps_attribute23 in varchar2 default hr_api.g_varchar2
346 ,p_eps_attribute24 in varchar2 default hr_api.g_varchar2
347 ,p_eps_attribute25 in varchar2 default hr_api.g_varchar2
348 ,p_eps_attribute26 in varchar2 default hr_api.g_varchar2
349 ,p_eps_attribute27 in varchar2 default hr_api.g_varchar2
350 ,p_eps_attribute28 in varchar2 default hr_api.g_varchar2
351 ,p_eps_attribute29 in varchar2 default hr_api.g_varchar2
352 ,p_eps_attribute30 in varchar2 default hr_api.g_varchar2
353 ,p_object_version_number in out nocopy number
354 ,p_effective_date in date
355 ,p_datetrack_mode in varchar2
356 ,p_criteria_score in number default hr_api.g_number
357 ,p_criteria_weight in number default hr_api.g_number
358 ) is
359 --
360 -- Declare cursors and local variables
361 --
362 l_proc varchar2(72) := g_package||'update_ELIG_PSTN_PRTE';
363 l_object_version_number ben_ELIG_PSTN_PRTE_f.object_version_number%TYPE;
364 l_effective_start_date ben_ELIG_PSTN_PRTE_f.effective_start_date%TYPE;
365 l_effective_end_date ben_ELIG_PSTN_PRTE_f.effective_end_date%TYPE;
366 --
367 begin
368 --
369 hr_utility.set_location('Entering:'|| l_proc, 10);
370 --
371 -- Issue a savepoint if operating in validation only mode
372 --
373 savepoint update_ELIG_PSTN_PRTE;
374 --
375 hr_utility.set_location(l_proc, 20);
376 --
377 -- Process Logic
378 --
379 l_object_version_number := p_object_version_number;
380 --
381 begin
382 --
386 (
383 -- Start of API User Hook for the before hook of update_ELIG_PSTN_PRTE
384 --
385 ben_ELIG_PSTN_PRTE_bk2.update_ELIG_PSTN_PRTE_b
387 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_PRTE_id
388 ,p_excld_flag => p_excld_flag
389 ,p_ordr_num => p_ordr_num
390 ,p_position_id => p_position_id
391 ,p_eligy_prfl_id => p_eligy_prfl_id
392 ,p_business_group_id => p_business_group_id
393 ,p_eps_attribute_category => p_eps_attribute_category
394 ,p_eps_attribute1 => p_eps_attribute1
395 ,p_eps_attribute2 => p_eps_attribute2
396 ,p_eps_attribute3 => p_eps_attribute3
397 ,p_eps_attribute4 => p_eps_attribute4
398 ,p_eps_attribute5 => p_eps_attribute5
399 ,p_eps_attribute6 => p_eps_attribute6
400 ,p_eps_attribute7 => p_eps_attribute7
401 ,p_eps_attribute8 => p_eps_attribute8
402 ,p_eps_attribute9 => p_eps_attribute9
403 ,p_eps_attribute10 => p_eps_attribute10
404 ,p_eps_attribute11 => p_eps_attribute11
405 ,p_eps_attribute12 => p_eps_attribute12
406 ,p_eps_attribute13 => p_eps_attribute13
407 ,p_eps_attribute14 => p_eps_attribute14
408 ,p_eps_attribute15 => p_eps_attribute15
409 ,p_eps_attribute16 => p_eps_attribute16
410 ,p_eps_attribute17 => p_eps_attribute17
411 ,p_eps_attribute18 => p_eps_attribute18
412 ,p_eps_attribute19 => p_eps_attribute19
413 ,p_eps_attribute20 => p_eps_attribute20
414 ,p_eps_attribute21 => p_eps_attribute21
415 ,p_eps_attribute22 => p_eps_attribute22
416 ,p_eps_attribute23 => p_eps_attribute23
417 ,p_eps_attribute24 => p_eps_attribute24
418 ,p_eps_attribute25 => p_eps_attribute25
419 ,p_eps_attribute26 => p_eps_attribute26
420 ,p_eps_attribute27 => p_eps_attribute27
421 ,p_eps_attribute28 => p_eps_attribute28
422 ,p_eps_attribute29 => p_eps_attribute29
423 ,p_eps_attribute30 => p_eps_attribute30
424 ,p_object_version_number => p_object_version_number
425 ,p_effective_date => trunc(p_effective_date)
426 ,p_datetrack_mode => p_datetrack_mode
427 ,p_criteria_score => p_criteria_score
428 ,p_criteria_weight => p_criteria_weight
429 );
430 exception
431 when hr_api.cannot_find_prog_unit then
432 hr_api.cannot_find_prog_unit_error
433 (p_module_name => 'UPDATE_ELIG_PSTN_PRTE'
434 ,p_hook_type => 'BP'
435 );
436 --
437 -- End of API User Hook for the before hook of update_ELIG_PSTN_PRTE
438 --
439 end;
440 --
441 ben_eps_upd.upd
442 (
443 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_PRTE_id
444 ,p_effective_start_date => l_effective_start_date
445 ,p_effective_end_date => l_effective_end_date
446 ,p_excld_flag => p_excld_flag
447 ,p_ordr_num => p_ordr_num
448 ,p_position_id => p_position_id
449 ,p_eligy_prfl_id => p_eligy_prfl_id
450 ,p_business_group_id => p_business_group_id
451 ,p_eps_attribute_category => p_eps_attribute_category
452 ,p_eps_attribute1 => p_eps_attribute1
453 ,p_eps_attribute2 => p_eps_attribute2
454 ,p_eps_attribute3 => p_eps_attribute3
455 ,p_eps_attribute4 => p_eps_attribute4
456 ,p_eps_attribute5 => p_eps_attribute5
457 ,p_eps_attribute6 => p_eps_attribute6
458 ,p_eps_attribute7 => p_eps_attribute7
459 ,p_eps_attribute8 => p_eps_attribute8
460 ,p_eps_attribute9 => p_eps_attribute9
461 ,p_eps_attribute10 => p_eps_attribute10
462 ,p_eps_attribute11 => p_eps_attribute11
463 ,p_eps_attribute12 => p_eps_attribute12
464 ,p_eps_attribute13 => p_eps_attribute13
465 ,p_eps_attribute14 => p_eps_attribute14
466 ,p_eps_attribute15 => p_eps_attribute15
467 ,p_eps_attribute16 => p_eps_attribute16
468 ,p_eps_attribute17 => p_eps_attribute17
469 ,p_eps_attribute18 => p_eps_attribute18
470 ,p_eps_attribute19 => p_eps_attribute19
471 ,p_eps_attribute20 => p_eps_attribute20
472 ,p_eps_attribute21 => p_eps_attribute21
473 ,p_eps_attribute22 => p_eps_attribute22
474 ,p_eps_attribute23 => p_eps_attribute23
475 ,p_eps_attribute24 => p_eps_attribute24
476 ,p_eps_attribute25 => p_eps_attribute25
477 ,p_eps_attribute26 => p_eps_attribute26
478 ,p_eps_attribute27 => p_eps_attribute27
479 ,p_eps_attribute28 => p_eps_attribute28
480 ,p_eps_attribute29 => p_eps_attribute29
481 ,p_eps_attribute30 => p_eps_attribute30
485 ,p_criteria_score => p_criteria_score
482 ,p_object_version_number => l_object_version_number
483 ,p_effective_date => trunc(p_effective_date)
484 ,p_datetrack_mode => p_datetrack_mode
486 ,p_criteria_weight => p_criteria_weight
487 );
488 --
489 begin
490 --
491 -- Start of API User Hook for the after hook of update_ELIG_PSTN_PRTE
492 --
493 ben_ELIG_PSTN_PRTE_bk2.update_ELIG_PSTN_PRTE_a
494 (
495 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_PRTE_id
496 ,p_effective_start_date => l_effective_start_date
497 ,p_effective_end_date => l_effective_end_date
498 ,p_excld_flag => p_excld_flag
499 ,p_ordr_num => p_ordr_num
500 ,p_position_id => p_position_id
501 ,p_eligy_prfl_id => p_eligy_prfl_id
502 ,p_business_group_id => p_business_group_id
503 ,p_eps_attribute_category => p_eps_attribute_category
504 ,p_eps_attribute1 => p_eps_attribute1
505 ,p_eps_attribute2 => p_eps_attribute2
506 ,p_eps_attribute3 => p_eps_attribute3
507 ,p_eps_attribute4 => p_eps_attribute4
508 ,p_eps_attribute5 => p_eps_attribute5
509 ,p_eps_attribute6 => p_eps_attribute6
510 ,p_eps_attribute7 => p_eps_attribute7
511 ,p_eps_attribute8 => p_eps_attribute8
512 ,p_eps_attribute9 => p_eps_attribute9
513 ,p_eps_attribute10 => p_eps_attribute10
514 ,p_eps_attribute11 => p_eps_attribute11
515 ,p_eps_attribute12 => p_eps_attribute12
516 ,p_eps_attribute13 => p_eps_attribute13
517 ,p_eps_attribute14 => p_eps_attribute14
518 ,p_eps_attribute15 => p_eps_attribute15
519 ,p_eps_attribute16 => p_eps_attribute16
520 ,p_eps_attribute17 => p_eps_attribute17
521 ,p_eps_attribute18 => p_eps_attribute18
522 ,p_eps_attribute19 => p_eps_attribute19
523 ,p_eps_attribute20 => p_eps_attribute20
524 ,p_eps_attribute21 => p_eps_attribute21
525 ,p_eps_attribute22 => p_eps_attribute22
526 ,p_eps_attribute23 => p_eps_attribute23
527 ,p_eps_attribute24 => p_eps_attribute24
528 ,p_eps_attribute25 => p_eps_attribute25
529 ,p_eps_attribute26 => p_eps_attribute26
530 ,p_eps_attribute27 => p_eps_attribute27
531 ,p_eps_attribute28 => p_eps_attribute28
532 ,p_eps_attribute29 => p_eps_attribute29
533 ,p_eps_attribute30 => p_eps_attribute30
534 ,p_object_version_number => l_object_version_number
535 ,p_effective_date => trunc(p_effective_date)
536 ,p_datetrack_mode => p_datetrack_mode
537 ,p_criteria_score => p_criteria_score
538 ,p_criteria_weight => p_criteria_weight
539 );
540 exception
541 when hr_api.cannot_find_prog_unit then
542 hr_api.cannot_find_prog_unit_error
543 (p_module_name => 'UPDATE_ELIG_PSTN_PRTE'
544 ,p_hook_type => 'AP'
545 );
546 --
547 -- End of API User Hook for the after hook of update_ELIG_PSTN_PRTE
548 --
549 end;
550 --
551 hr_utility.set_location(l_proc, 60);
552 --
553 -- When in validation only mode raise the Validate_Enabled exception
554 --
555 if p_validate then
556 raise hr_api.validate_enabled;
557 end if;
558 --
559 -- Set all output arguments
560 --
561 p_object_version_number := l_object_version_number;
562 p_effective_start_date := l_effective_start_date;
563 p_effective_end_date := l_effective_end_date;
564 --
565 hr_utility.set_location(' Leaving:'||l_proc, 70);
566 --
567 exception
568 --
569 when hr_api.validate_enabled then
570 --
571 -- As the Validate_Enabled exception has been raised
572 -- we must rollback to the savepoint
573 --
574 ROLLBACK TO update_ELIG_PSTN_PRTE;
575 --
576 -- Only set output warning arguments
577 -- (Any key or derived arguments must be set to null
578 -- when validation only mode is being used.)
579
580 p_effective_start_date := null;
581 p_effective_end_date := null;
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_PSTN_PRTE;
589
590 -- NOCOPY, Reset out parameters
591 p_effective_start_date := null;
592 p_effective_end_date := null;
593 raise;
594 --
595 end update_ELIG_PSTN_PRTE;
596 -- ----------------------------------------------------------------------------
597 -- |------------------------< delete_ELIG_PSTN_PRTE >----------------------|
598 -- ----------------------------------------------------------------------------
599 --
600 procedure delete_ELIG_PSTN_PRTE
601 (p_validate in boolean default false
605 ,p_object_version_number in out nocopy number
602 ,p_ELIG_PSTN_PRTE_id in number
603 ,p_effective_start_date out nocopy date
604 ,p_effective_end_date out nocopy date
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_PSTN_PRTE';
613 l_object_version_number ben_ELIG_PSTN_PRTE_f.object_version_number%TYPE;
614 l_effective_start_date ben_ELIG_PSTN_PRTE_f.effective_start_date%TYPE;
615 l_effective_end_date ben_ELIG_PSTN_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_PSTN_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_PSTN_PRTE
635 --
636 ben_ELIG_PSTN_PRTE_bk3.delete_ELIG_PSTN_PRTE_b
637 (
638 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_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_PSTN_PRTE'
647 ,p_hook_type => 'BP'
648 );
649 --
650 -- End of API User Hook for the before hook of delete_ELIG_PSTN_PRTE
651 --
652 end;
653 --
654 ben_eps_del.del
655 (
656 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_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_PSTN_PRTE
667 --
668 ben_ELIG_PSTN_PRTE_bk3.delete_ELIG_PSTN_PRTE_a
669 (
670 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_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
679 hr_api.cannot_find_prog_unit_error
680 (p_module_name => 'DELETE_ELIG_PSTN_PRTE'
681 ,p_hook_type => 'AP'
682 );
683 --
684 -- End of API User Hook for the after hook of delete_ELIG_PSTN_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_eps_shd.g_old_rec.eligy_prfl_id,
693 p_base_table_reference_column => 'ELIG_PSTN_FLAG',
694 p_reference_table => 'BEN_ELIG_PSTN_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_PSTN_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_PSTN_PRTE;
728
729 -- NOCOPY, Reset out parameters
730 p_effective_start_date := null;
731 p_effective_end_date := null;
732
733 raise;
734 --
735 end delete_ELIG_PSTN_PRTE;
736 --
737 -- ----------------------------------------------------------------------------
738 -- |-------------------------------< lck >------------------------------------|
739 -- ----------------------------------------------------------------------------
740 --
741 procedure lck
742 (
743 p_ELIG_PSTN_PRTE_id in number
744 ,p_object_version_number in number
745 ,p_effective_date in date
746 ,p_datetrack_mode in varchar2
747 ,p_validation_start_date out nocopy date
748 ,p_validation_end_date out nocopy date
749 ) is
750 --
751 --
752 -- Declare cursors and local variables
753 --
754 l_proc varchar2(72) := g_package||'lck';
755 l_validation_start_date date;
756 l_validation_end_date date;
757 --
758 begin
759 --
760 hr_utility.set_location('Entering:'|| l_proc, 10);
761 --
762 ben_eps_shd.lck
763 (
764 p_ELIG_PSTN_PRTE_id => p_ELIG_PSTN_PRTE_id
765 ,p_validation_start_date => l_validation_start_date
766 ,p_validation_end_date => l_validation_end_date
767 ,p_object_version_number => p_object_version_number
768 ,p_effective_date => p_effective_date
769 ,p_datetrack_mode => p_datetrack_mode
770 );
771 --
772 hr_utility.set_location(' Leaving:'||l_proc, 70);
773 --
774 end lck;
775 --
776 end ben_ELIG_PSTN_PRTE_api;