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