[Home] [Help]
PACKAGE BODY: APPS.BEN_ELIG_PYRL_PRTE_API
Source
4 -- Package Variables
1 Package Body ben_ELIG_PYRL_PRTE_api as
2 /* $Header: beepyapi.pkb 120.0 2005/05/28 02:46:58 appldev noship $ */
3 --
5 --
6 g_package varchar2(33) := ' ben_ELIG_PYRL_PRTE_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_ELIG_PYRL_PRTE >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_ELIG_PYRL_PRTE
13 (p_validate in boolean default false
14 ,p_elig_pyrl_prte_id out nocopy number
15 ,p_effective_start_date out nocopy date
16 ,p_effective_end_date out nocopy date
17 ,p_business_group_id in number default null
18 ,p_payroll_id in number default null
19 ,p_excld_flag in varchar2 default null
20 ,p_ordr_num in number default null
21 ,p_eligy_prfl_id in number default null
22 ,p_epy_attribute_category in varchar2 default null
23 ,p_epy_attribute1 in varchar2 default null
24 ,p_epy_attribute2 in varchar2 default null
25 ,p_epy_attribute3 in varchar2 default null
26 ,p_epy_attribute4 in varchar2 default null
27 ,p_epy_attribute5 in varchar2 default null
28 ,p_epy_attribute6 in varchar2 default null
29 ,p_epy_attribute7 in varchar2 default null
30 ,p_epy_attribute8 in varchar2 default null
31 ,p_epy_attribute9 in varchar2 default null
32 ,p_epy_attribute10 in varchar2 default null
33 ,p_epy_attribute11 in varchar2 default null
34 ,p_epy_attribute12 in varchar2 default null
35 ,p_epy_attribute13 in varchar2 default null
36 ,p_epy_attribute14 in varchar2 default null
37 ,p_epy_attribute15 in varchar2 default null
38 ,p_epy_attribute16 in varchar2 default null
39 ,p_epy_attribute17 in varchar2 default null
40 ,p_epy_attribute18 in varchar2 default null
41 ,p_epy_attribute19 in varchar2 default null
42 ,p_epy_attribute20 in varchar2 default null
43 ,p_epy_attribute21 in varchar2 default null
44 ,p_epy_attribute22 in varchar2 default null
45 ,p_epy_attribute23 in varchar2 default null
46 ,p_epy_attribute24 in varchar2 default null
47 ,p_epy_attribute25 in varchar2 default null
48 ,p_epy_attribute26 in varchar2 default null
49 ,p_epy_attribute27 in varchar2 default null
50 ,p_epy_attribute28 in varchar2 default null
51 ,p_epy_attribute29 in varchar2 default null
52 ,p_epy_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_pyrl_prte_id ben_elig_pyrl_prte_f.elig_pyrl_prte_id%TYPE;
62 l_effective_start_date ben_elig_pyrl_prte_f.effective_start_date%TYPE;
63 l_effective_end_date ben_elig_pyrl_prte_f.effective_end_date%TYPE;
64 l_proc varchar2(72) := g_package||'create_ELIG_PYRL_PRTE';
65 l_object_version_number ben_elig_pyrl_prte_f.object_version_number%TYPE;
66 --
67 begin
68 --
69 hr_utility.set_location('Entering:'|| l_proc, 10);
70 --
74 --
71 -- Issue a savepoint if operating in validation only mode
72 --
73 savepoint create_ELIG_PYRL_PRTE;
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_PYRL_PRTE
82 --
83 ben_ELIG_PYRL_PRTE_bk1.create_ELIG_PYRL_PRTE_b
84 (
85 p_business_group_id => p_business_group_id
86 ,p_payroll_id => p_payroll_id
87 ,p_excld_flag => p_excld_flag
88 ,p_ordr_num => p_ordr_num
89 ,p_eligy_prfl_id => p_eligy_prfl_id
90 ,p_epy_attribute_category => p_epy_attribute_category
91 ,p_epy_attribute1 => p_epy_attribute1
92 ,p_epy_attribute2 => p_epy_attribute2
93 ,p_epy_attribute3 => p_epy_attribute3
94 ,p_epy_attribute4 => p_epy_attribute4
95 ,p_epy_attribute5 => p_epy_attribute5
96 ,p_epy_attribute6 => p_epy_attribute6
97 ,p_epy_attribute7 => p_epy_attribute7
98 ,p_epy_attribute8 => p_epy_attribute8
99 ,p_epy_attribute9 => p_epy_attribute9
100 ,p_epy_attribute10 => p_epy_attribute10
101 ,p_epy_attribute11 => p_epy_attribute11
102 ,p_epy_attribute12 => p_epy_attribute12
103 ,p_epy_attribute13 => p_epy_attribute13
104 ,p_epy_attribute14 => p_epy_attribute14
105 ,p_epy_attribute15 => p_epy_attribute15
106 ,p_epy_attribute16 => p_epy_attribute16
107 ,p_epy_attribute17 => p_epy_attribute17
108 ,p_epy_attribute18 => p_epy_attribute18
109 ,p_epy_attribute19 => p_epy_attribute19
110 ,p_epy_attribute20 => p_epy_attribute20
111 ,p_epy_attribute21 => p_epy_attribute21
112 ,p_epy_attribute22 => p_epy_attribute22
113 ,p_epy_attribute23 => p_epy_attribute23
114 ,p_epy_attribute24 => p_epy_attribute24
115 ,p_epy_attribute25 => p_epy_attribute25
116 ,p_epy_attribute26 => p_epy_attribute26
117 ,p_epy_attribute27 => p_epy_attribute27
118 ,p_epy_attribute28 => p_epy_attribute28
119 ,p_epy_attribute29 => p_epy_attribute29
120 ,p_epy_attribute30 => p_epy_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_PYRL_PRTE'
130 ,p_hook_type => 'BP'
131 );
132 --
133 -- End of API User Hook for the before hook of create_ELIG_PYRL_PRTE
134 --
135 end;
136 --
137 ben_epy_ins.ins
138 (
139 p_elig_pyrl_prte_id => l_elig_pyrl_prte_id
140 ,p_effective_start_date => l_effective_start_date
141 ,p_effective_end_date => l_effective_end_date
142 ,p_business_group_id => p_business_group_id
143 ,p_payroll_id => p_payroll_id
144 ,p_excld_flag => p_excld_flag
145 ,p_ordr_num => p_ordr_num
146 ,p_eligy_prfl_id => p_eligy_prfl_id
147 ,p_epy_attribute_category => p_epy_attribute_category
148 ,p_epy_attribute1 => p_epy_attribute1
149 ,p_epy_attribute2 => p_epy_attribute2
150 ,p_epy_attribute3 => p_epy_attribute3
151 ,p_epy_attribute4 => p_epy_attribute4
152 ,p_epy_attribute5 => p_epy_attribute5
153 ,p_epy_attribute6 => p_epy_attribute6
154 ,p_epy_attribute7 => p_epy_attribute7
155 ,p_epy_attribute8 => p_epy_attribute8
156 ,p_epy_attribute9 => p_epy_attribute9
157 ,p_epy_attribute10 => p_epy_attribute10
158 ,p_epy_attribute11 => p_epy_attribute11
159 ,p_epy_attribute12 => p_epy_attribute12
160 ,p_epy_attribute13 => p_epy_attribute13
161 ,p_epy_attribute14 => p_epy_attribute14
162 ,p_epy_attribute15 => p_epy_attribute15
163 ,p_epy_attribute16 => p_epy_attribute16
164 ,p_epy_attribute17 => p_epy_attribute17
165 ,p_epy_attribute18 => p_epy_attribute18
166 ,p_epy_attribute19 => p_epy_attribute19
167 ,p_epy_attribute20 => p_epy_attribute20
168 ,p_epy_attribute21 => p_epy_attribute21
169 ,p_epy_attribute22 => p_epy_attribute22
170 ,p_epy_attribute23 => p_epy_attribute23
171 ,p_epy_attribute24 => p_epy_attribute24
172 ,p_epy_attribute25 => p_epy_attribute25
173 ,p_epy_attribute26 => p_epy_attribute26
174 ,p_epy_attribute27 => p_epy_attribute27
175 ,p_epy_attribute28 => p_epy_attribute28
176 ,p_epy_attribute29 => p_epy_attribute29
177 ,p_epy_attribute30 => p_epy_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 --
189 (
186 -- Start of API User Hook for the after hook of create_ELIG_PYRL_PRTE
187 --
188 ben_ELIG_PYRL_PRTE_bk1.create_ELIG_PYRL_PRTE_a
190 p_elig_pyrl_prte_id => l_elig_pyrl_prte_id
191 ,p_effective_start_date => l_effective_start_date
192 ,p_effective_end_date => l_effective_end_date
193 ,p_business_group_id => p_business_group_id
194 ,p_payroll_id => p_payroll_id
195 ,p_excld_flag => p_excld_flag
196 ,p_ordr_num => p_ordr_num
197 ,p_eligy_prfl_id => p_eligy_prfl_id
198 ,p_epy_attribute_category => p_epy_attribute_category
199 ,p_epy_attribute1 => p_epy_attribute1
200 ,p_epy_attribute2 => p_epy_attribute2
201 ,p_epy_attribute3 => p_epy_attribute3
202 ,p_epy_attribute4 => p_epy_attribute4
203 ,p_epy_attribute5 => p_epy_attribute5
204 ,p_epy_attribute6 => p_epy_attribute6
205 ,p_epy_attribute7 => p_epy_attribute7
206 ,p_epy_attribute8 => p_epy_attribute8
207 ,p_epy_attribute9 => p_epy_attribute9
208 ,p_epy_attribute10 => p_epy_attribute10
209 ,p_epy_attribute11 => p_epy_attribute11
210 ,p_epy_attribute12 => p_epy_attribute12
211 ,p_epy_attribute13 => p_epy_attribute13
212 ,p_epy_attribute14 => p_epy_attribute14
213 ,p_epy_attribute15 => p_epy_attribute15
214 ,p_epy_attribute16 => p_epy_attribute16
215 ,p_epy_attribute17 => p_epy_attribute17
216 ,p_epy_attribute18 => p_epy_attribute18
217 ,p_epy_attribute19 => p_epy_attribute19
218 ,p_epy_attribute20 => p_epy_attribute20
219 ,p_epy_attribute21 => p_epy_attribute21
220 ,p_epy_attribute22 => p_epy_attribute22
221 ,p_epy_attribute23 => p_epy_attribute23
222 ,p_epy_attribute24 => p_epy_attribute24
223 ,p_epy_attribute25 => p_epy_attribute25
224 ,p_epy_attribute26 => p_epy_attribute26
225 ,p_epy_attribute27 => p_epy_attribute27
226 ,p_epy_attribute28 => p_epy_attribute28
227 ,p_epy_attribute29 => p_epy_attribute29
228 ,p_epy_attribute30 => p_epy_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_PYRL_PRTE'
238 ,p_hook_type => 'AP'
239 );
240 --
241 -- End of API User Hook for the after hook of create_ELIG_PYRL_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_PYRL_FLAG',
251 p_reference_table => 'BEN_ELIG_PYRL_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_pyrl_prte_id := l_elig_pyrl_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_PYRL_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_pyrl_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_PYRL_PRTE;
295
296 -- NOCOPY, Reset out parameters
297 p_elig_pyrl_prte_id := null;
298 p_effective_start_date := null;
299 p_effective_end_date := null;
300 p_object_version_number := null;
301
302 raise;
303 --
304 end create_ELIG_PYRL_PRTE;
305 -- ----------------------------------------------------------------------------
306 -- |------------------------< update_ELIG_PYRL_PRTE >--- ------------------|
307 -- ----------------------------------------------------------------------------
308 --
309 procedure update_ELIG_PYRL_PRTE
310 (p_validate in boolean default false
311 ,p_elig_pyrl_prte_id in number
312 ,p_effective_start_date out nocopy date
316 ,p_excld_flag in varchar2 default hr_api.g_varchar2
313 ,p_effective_end_date out nocopy date
314 ,p_business_group_id in number default hr_api.g_number
315 ,p_payroll_id in number default hr_api.g_number
317 ,p_ordr_num in number default hr_api.g_number
318 ,p_eligy_prfl_id in number default hr_api.g_number
319 ,p_epy_attribute_category in varchar2 default hr_api.g_varchar2
320 ,p_epy_attribute1 in varchar2 default hr_api.g_varchar2
321 ,p_epy_attribute2 in varchar2 default hr_api.g_varchar2
322 ,p_epy_attribute3 in varchar2 default hr_api.g_varchar2
323 ,p_epy_attribute4 in varchar2 default hr_api.g_varchar2
324 ,p_epy_attribute5 in varchar2 default hr_api.g_varchar2
325 ,p_epy_attribute6 in varchar2 default hr_api.g_varchar2
326 ,p_epy_attribute7 in varchar2 default hr_api.g_varchar2
327 ,p_epy_attribute8 in varchar2 default hr_api.g_varchar2
328 ,p_epy_attribute9 in varchar2 default hr_api.g_varchar2
329 ,p_epy_attribute10 in varchar2 default hr_api.g_varchar2
330 ,p_epy_attribute11 in varchar2 default hr_api.g_varchar2
331 ,p_epy_attribute12 in varchar2 default hr_api.g_varchar2
332 ,p_epy_attribute13 in varchar2 default hr_api.g_varchar2
333 ,p_epy_attribute14 in varchar2 default hr_api.g_varchar2
334 ,p_epy_attribute15 in varchar2 default hr_api.g_varchar2
335 ,p_epy_attribute16 in varchar2 default hr_api.g_varchar2
336 ,p_epy_attribute17 in varchar2 default hr_api.g_varchar2
337 ,p_epy_attribute18 in varchar2 default hr_api.g_varchar2
338 ,p_epy_attribute19 in varchar2 default hr_api.g_varchar2
339 ,p_epy_attribute20 in varchar2 default hr_api.g_varchar2
340 ,p_epy_attribute21 in varchar2 default hr_api.g_varchar2
341 ,p_epy_attribute22 in varchar2 default hr_api.g_varchar2
342 ,p_epy_attribute23 in varchar2 default hr_api.g_varchar2
343 ,p_epy_attribute24 in varchar2 default hr_api.g_varchar2
344 ,p_epy_attribute25 in varchar2 default hr_api.g_varchar2
345 ,p_epy_attribute26 in varchar2 default hr_api.g_varchar2
346 ,p_epy_attribute27 in varchar2 default hr_api.g_varchar2
347 ,p_epy_attribute28 in varchar2 default hr_api.g_varchar2
348 ,p_epy_attribute29 in varchar2 default hr_api.g_varchar2
349 ,p_epy_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_PYRL_PRTE';
360 l_object_version_number ben_elig_pyrl_prte_f.object_version_number%TYPE;
361 l_effective_start_date ben_elig_pyrl_prte_f.effective_start_date%TYPE;
362 l_effective_end_date ben_elig_pyrl_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_PYRL_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_PYRL_PRTE
381 --
382 ben_ELIG_PYRL_PRTE_bk2.update_ELIG_PYRL_PRTE_b
383 (
384 p_elig_pyrl_prte_id => p_elig_pyrl_prte_id
385 ,p_business_group_id => p_business_group_id
386 ,p_payroll_id => p_payroll_id
387 ,p_excld_flag => p_excld_flag
388 ,p_ordr_num => p_ordr_num
389 ,p_eligy_prfl_id => p_eligy_prfl_id
390 ,p_epy_attribute_category => p_epy_attribute_category
391 ,p_epy_attribute1 => p_epy_attribute1
392 ,p_epy_attribute2 => p_epy_attribute2
393 ,p_epy_attribute3 => p_epy_attribute3
394 ,p_epy_attribute4 => p_epy_attribute4
395 ,p_epy_attribute5 => p_epy_attribute5
396 ,p_epy_attribute6 => p_epy_attribute6
397 ,p_epy_attribute7 => p_epy_attribute7
398 ,p_epy_attribute8 => p_epy_attribute8
399 ,p_epy_attribute9 => p_epy_attribute9
400 ,p_epy_attribute10 => p_epy_attribute10
401 ,p_epy_attribute11 => p_epy_attribute11
402 ,p_epy_attribute12 => p_epy_attribute12
403 ,p_epy_attribute13 => p_epy_attribute13
404 ,p_epy_attribute14 => p_epy_attribute14
405 ,p_epy_attribute15 => p_epy_attribute15
406 ,p_epy_attribute16 => p_epy_attribute16
407 ,p_epy_attribute17 => p_epy_attribute17
408 ,p_epy_attribute18 => p_epy_attribute18
409 ,p_epy_attribute19 => p_epy_attribute19
410 ,p_epy_attribute20 => p_epy_attribute20
411 ,p_epy_attribute21 => p_epy_attribute21
412 ,p_epy_attribute22 => p_epy_attribute22
413 ,p_epy_attribute23 => p_epy_attribute23
417 ,p_epy_attribute27 => p_epy_attribute27
414 ,p_epy_attribute24 => p_epy_attribute24
415 ,p_epy_attribute25 => p_epy_attribute25
416 ,p_epy_attribute26 => p_epy_attribute26
418 ,p_epy_attribute28 => p_epy_attribute28
419 ,p_epy_attribute29 => p_epy_attribute29
420 ,p_epy_attribute30 => p_epy_attribute30
421 ,p_object_version_number => p_object_version_number
422 ,p_effective_date => trunc(p_effective_date)
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_PYRL_PRTE'
431 ,p_hook_type => 'BP'
432 );
433 --
434 -- End of API User Hook for the before hook of update_ELIG_PYRL_PRTE
435 --
436 end;
437 --
438 ben_epy_upd.upd
439 (
440 p_elig_pyrl_prte_id => p_elig_pyrl_prte_id
441 ,p_effective_start_date => l_effective_start_date
442 ,p_effective_end_date => l_effective_end_date
443 ,p_business_group_id => p_business_group_id
444 ,p_payroll_id => p_payroll_id
445 ,p_excld_flag => p_excld_flag
446 ,p_ordr_num => p_ordr_num
447 ,p_eligy_prfl_id => p_eligy_prfl_id
448 ,p_epy_attribute_category => p_epy_attribute_category
449 ,p_epy_attribute1 => p_epy_attribute1
450 ,p_epy_attribute2 => p_epy_attribute2
451 ,p_epy_attribute3 => p_epy_attribute3
452 ,p_epy_attribute4 => p_epy_attribute4
453 ,p_epy_attribute5 => p_epy_attribute5
454 ,p_epy_attribute6 => p_epy_attribute6
455 ,p_epy_attribute7 => p_epy_attribute7
456 ,p_epy_attribute8 => p_epy_attribute8
457 ,p_epy_attribute9 => p_epy_attribute9
458 ,p_epy_attribute10 => p_epy_attribute10
459 ,p_epy_attribute11 => p_epy_attribute11
460 ,p_epy_attribute12 => p_epy_attribute12
461 ,p_epy_attribute13 => p_epy_attribute13
462 ,p_epy_attribute14 => p_epy_attribute14
463 ,p_epy_attribute15 => p_epy_attribute15
464 ,p_epy_attribute16 => p_epy_attribute16
465 ,p_epy_attribute17 => p_epy_attribute17
466 ,p_epy_attribute18 => p_epy_attribute18
467 ,p_epy_attribute19 => p_epy_attribute19
468 ,p_epy_attribute20 => p_epy_attribute20
469 ,p_epy_attribute21 => p_epy_attribute21
470 ,p_epy_attribute22 => p_epy_attribute22
471 ,p_epy_attribute23 => p_epy_attribute23
472 ,p_epy_attribute24 => p_epy_attribute24
473 ,p_epy_attribute25 => p_epy_attribute25
474 ,p_epy_attribute26 => p_epy_attribute26
475 ,p_epy_attribute27 => p_epy_attribute27
476 ,p_epy_attribute28 => p_epy_attribute28
477 ,p_epy_attribute29 => p_epy_attribute29
478 ,p_epy_attribute30 => p_epy_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_PYRL_PRTE
489 --
490 ben_ELIG_PYRL_PRTE_bk2.update_ELIG_PYRL_PRTE_a
491 (
492 p_elig_pyrl_prte_id => p_elig_pyrl_prte_id
493 ,p_effective_start_date => l_effective_start_date
494 ,p_effective_end_date => l_effective_end_date
495 ,p_business_group_id => p_business_group_id
496 ,p_payroll_id => p_payroll_id
497 ,p_excld_flag => p_excld_flag
498 ,p_ordr_num => p_ordr_num
499 ,p_eligy_prfl_id => p_eligy_prfl_id
500 ,p_epy_attribute_category => p_epy_attribute_category
501 ,p_epy_attribute1 => p_epy_attribute1
502 ,p_epy_attribute2 => p_epy_attribute2
503 ,p_epy_attribute3 => p_epy_attribute3
504 ,p_epy_attribute4 => p_epy_attribute4
505 ,p_epy_attribute5 => p_epy_attribute5
506 ,p_epy_attribute6 => p_epy_attribute6
507 ,p_epy_attribute7 => p_epy_attribute7
508 ,p_epy_attribute8 => p_epy_attribute8
509 ,p_epy_attribute9 => p_epy_attribute9
510 ,p_epy_attribute10 => p_epy_attribute10
511 ,p_epy_attribute11 => p_epy_attribute11
512 ,p_epy_attribute12 => p_epy_attribute12
513 ,p_epy_attribute13 => p_epy_attribute13
514 ,p_epy_attribute14 => p_epy_attribute14
515 ,p_epy_attribute15 => p_epy_attribute15
516 ,p_epy_attribute16 => p_epy_attribute16
517 ,p_epy_attribute17 => p_epy_attribute17
518 ,p_epy_attribute18 => p_epy_attribute18
519 ,p_epy_attribute19 => p_epy_attribute19
520 ,p_epy_attribute20 => p_epy_attribute20
521 ,p_epy_attribute21 => p_epy_attribute21
525 ,p_epy_attribute25 => p_epy_attribute25
522 ,p_epy_attribute22 => p_epy_attribute22
523 ,p_epy_attribute23 => p_epy_attribute23
524 ,p_epy_attribute24 => p_epy_attribute24
526 ,p_epy_attribute26 => p_epy_attribute26
527 ,p_epy_attribute27 => p_epy_attribute27
528 ,p_epy_attribute28 => p_epy_attribute28
529 ,p_epy_attribute29 => p_epy_attribute29
530 ,p_epy_attribute30 => p_epy_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_PYRL_PRTE'
541 ,p_hook_type => 'AP'
542 );
543 --
544 -- End of API User Hook for the after hook of update_ELIG_PYRL_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_PYRL_PRTE;
572 --
573 -- Only set output warning arguments
574 -- (Any key or derived arguments must be set to null
575 -- when validation only mode is being used.)
576 --
577 p_effective_start_date := null;
578 p_effective_end_date := null;
579
580 hr_utility.set_location(' Leaving:'||l_proc, 80);
581 --
582 when others then
583 --
584 -- A validation or unexpected error has occured
585 --
586 ROLLBACK TO update_ELIG_PYRL_PRTE;
587
588 -- NOCOPY, Reset out parameters
589 p_effective_start_date := null;
590 p_effective_end_date := null;
591
592 raise;
593 --
594 end update_ELIG_PYRL_PRTE;
595 -- ----------------------------------------------------------------------------
596 -- |------------------------< delete_ELIG_PYRL_PRTE >----------------------|
597 -- ----------------------------------------------------------------------------
598 --
599 procedure delete_ELIG_PYRL_PRTE
600 (p_validate in boolean default false
601 ,p_elig_pyrl_prte_id in number
602 ,p_effective_start_date out nocopy date
603 ,p_effective_end_date out nocopy date
604 ,p_object_version_number in out nocopy number
605 ,p_effective_date in date
606 ,p_datetrack_mode in varchar2
607 ) is
608 --
609 -- Declare cursors and local variables
610 --
611 l_proc varchar2(72) := g_package||'update_ELIG_PYRL_PRTE';
612 l_object_version_number ben_elig_pyrl_prte_f.object_version_number%TYPE;
613 l_effective_start_date ben_elig_pyrl_prte_f.effective_start_date%TYPE;
614 l_effective_end_date ben_elig_pyrl_prte_f.effective_end_date%TYPE;
615 --
616 begin
617 --
618 hr_utility.set_location('Entering:'|| l_proc, 10);
619 --
620 -- Issue a savepoint if operating in validation only mode
621 --
622 savepoint delete_ELIG_PYRL_PRTE;
623 --
624 hr_utility.set_location(l_proc, 20);
625 --
626 -- Process Logic
627 --
628 l_object_version_number := p_object_version_number;
629 --
630 --
631 begin
632 --
633 -- Start of API User Hook for the before hook of delete_ELIG_PYRL_PRTE
634 --
635 ben_ELIG_PYRL_PRTE_bk3.delete_ELIG_PYRL_PRTE_b
636 (
637 p_elig_pyrl_prte_id => p_elig_pyrl_prte_id
638 ,p_object_version_number => p_object_version_number
639 ,p_effective_date => trunc(p_effective_date)
640 ,p_datetrack_mode => p_datetrack_mode
641 );
642 exception
643 when hr_api.cannot_find_prog_unit then
644 hr_api.cannot_find_prog_unit_error
645 (p_module_name => 'DELETE_ELIG_PYRL_PRTE'
646 ,p_hook_type => 'BP'
647 );
648 --
649 -- End of API User Hook for the before hook of delete_ELIG_PYRL_PRTE
650 --
651 end;
652 --
653 ben_epy_del.del
654 (
655 p_elig_pyrl_prte_id => p_elig_pyrl_prte_id
656 ,p_effective_start_date => l_effective_start_date
657 ,p_effective_end_date => l_effective_end_date
658 ,p_object_version_number => l_object_version_number
659 ,p_effective_date => p_effective_date
660 ,p_datetrack_mode => p_datetrack_mode
661 );
662 --
663 begin
664 --
665 -- Start of API User Hook for the after hook of delete_ELIG_PYRL_PRTE
666 --
667 ben_ELIG_PYRL_PRTE_bk3.delete_ELIG_PYRL_PRTE_a
668 (
669 p_elig_pyrl_prte_id => p_elig_pyrl_prte_id
673 ,p_effective_date => trunc(p_effective_date)
670 ,p_effective_start_date => l_effective_start_date
671 ,p_effective_end_date => l_effective_end_date
672 ,p_object_version_number => l_object_version_number
674 ,p_datetrack_mode => p_datetrack_mode
675 );
676 exception
677 when hr_api.cannot_find_prog_unit then
678 hr_api.cannot_find_prog_unit_error
679 (p_module_name => 'DELETE_ELIG_PYRL_PRTE'
680 ,p_hook_type => 'AP'
681 );
682 --
683 -- End of API User Hook for the after hook of delete_ELIG_PYRL_PRTE
684 --
685 end;
686 --
687 ben_profile_handler.event_handler
688 (p_event => 'DELETE',
689 p_base_table => 'BEN_ELIGY_PRFL_F',
690 p_base_table_column => 'ELIGY_PRFL_ID',
691 p_base_table_column_value => ben_epy_shd.g_old_rec.eligy_prfl_id,
692 p_base_table_reference_column => 'ELIG_PYRL_FLAG',
693 p_reference_table => 'BEN_ELIG_PYRL_PRTE_F',
694 p_reference_table_column => 'ELIGY_PRFL_ID');
695 --
696 hr_utility.set_location(l_proc, 60);
697 --
698 -- When in validation only mode raise the Validate_Enabled exception
699 --
700 if p_validate then
701 raise hr_api.validate_enabled;
702 end if;
703 --
704 hr_utility.set_location(' Leaving:'||l_proc, 70);
705 --
706 exception
707 --
708 when hr_api.validate_enabled then
709 --
710 -- As the Validate_Enabled exception has been raised
711 -- we must rollback to the savepoint
712 --
713 ROLLBACK TO delete_ELIG_PYRL_PRTE;
714 --
715 -- Only set output warning arguments
716 -- (Any key or derived arguments must be set to null
717 -- when validation only mode is being used.)
718 --
719 p_effective_start_date := null;
720 p_effective_end_date := null;
721 --
722 when others then
723 --
724 -- A validation or unexpected error has occured
725 --
726 ROLLBACK TO delete_ELIG_PYRL_PRTE;
727
728 -- NOCOPY, Reset out parameters
729 p_effective_start_date := null;
730 p_effective_end_date := null;
731 p_object_version_number:= l_object_version_number;
732
733 raise;
734 --
735 end delete_ELIG_PYRL_PRTE;
736 --
737 -- ----------------------------------------------------------------------------
738 -- |-------------------------------< lck >------------------------------------|
739 -- ----------------------------------------------------------------------------
740 --
741 procedure lck
742 (
743 p_elig_pyrl_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_epy_shd.lck
763 (
764 p_elig_pyrl_prte_id => p_elig_pyrl_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_PYRL_PRTE_api;