[Home] [Help]
PACKAGE BODY: APPS.BEN_ELIG_SUPPL_ROLE_PRTE_API
Source
4 -- Package Variables
1 Package Body ben_elig_suppl_role_prte_api as
2 /* $Header: beestapi.pkb 120.0 2005/05/28 02:58:55 appldev noship $ */
3 --
5 --
6 g_package varchar2(33) := ' ben_elig_suppl_role_prte_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_elig_suppl_role_prte >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_elig_suppl_role_prte
13 (p_validate in boolean default false
14 ,p_elig_suppl_role_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_job_group_id in number default null
22 ,p_job_id in number default null
23 ,p_est_attribute_category in varchar2 default null
24 ,p_est_attribute1 in varchar2 default null
25 ,p_est_attribute2 in varchar2 default null
26 ,p_est_attribute3 in varchar2 default null
27 ,p_est_attribute4 in varchar2 default null
28 ,p_est_attribute5 in varchar2 default null
29 ,p_est_attribute6 in varchar2 default null
30 ,p_est_attribute7 in varchar2 default null
31 ,p_est_attribute8 in varchar2 default null
32 ,p_est_attribute9 in varchar2 default null
33 ,p_est_attribute10 in varchar2 default null
34 ,p_est_attribute11 in varchar2 default null
35 ,p_est_attribute12 in varchar2 default null
36 ,p_est_attribute13 in varchar2 default null
37 ,p_est_attribute14 in varchar2 default null
38 ,p_est_attribute15 in varchar2 default null
39 ,p_est_attribute16 in varchar2 default null
40 ,p_est_attribute17 in varchar2 default null
41 ,p_est_attribute18 in varchar2 default null
42 ,p_est_attribute19 in varchar2 default null
43 ,p_est_attribute20 in varchar2 default null
44 ,p_est_attribute21 in varchar2 default null
45 ,p_est_attribute22 in varchar2 default null
46 ,p_est_attribute23 in varchar2 default null
47 ,p_est_attribute24 in varchar2 default null
48 ,p_est_attribute25 in varchar2 default null
49 ,p_est_attribute26 in varchar2 default null
50 ,p_est_attribute27 in varchar2 default null
51 ,p_est_attribute28 in varchar2 default null
52 ,p_est_attribute29 in varchar2 default null
53 ,p_est_attribute30 in varchar2 default null
54 ,p_object_version_number out nocopy number
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_suppl_role_prte_id ben_elig_suppl_role_prte_f.elig_suppl_role_prte_id%TYPE;
63 l_effective_start_date ben_elig_suppl_role_prte_f.effective_start_date%TYPE;
64 l_effective_end_date ben_elig_suppl_role_prte_f.effective_end_date%TYPE;
65 l_proc varchar2(72) := g_package||'create_elig_suppl_role_prte';
66 l_object_version_number ben_elig_suppl_role_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_suppl_role_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_suppl_role_prte
83 --
84 ben_elig_suppl_role_prte_bk1.create_elig_suppl_role_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_job_group_id => p_job_group_id
91 ,p_job_id => p_job_id
92 ,p_est_attribute_category => p_est_attribute_category
93 ,p_est_attribute1 => p_est_attribute1
94 ,p_est_attribute2 => p_est_attribute2
95 ,p_est_attribute3 => p_est_attribute3
96 ,p_est_attribute4 => p_est_attribute4
97 ,p_est_attribute5 => p_est_attribute5
101 ,p_est_attribute9 => p_est_attribute9
98 ,p_est_attribute6 => p_est_attribute6
99 ,p_est_attribute7 => p_est_attribute7
100 ,p_est_attribute8 => p_est_attribute8
102 ,p_est_attribute10 => p_est_attribute10
103 ,p_est_attribute11 => p_est_attribute11
104 ,p_est_attribute12 => p_est_attribute12
105 ,p_est_attribute13 => p_est_attribute13
106 ,p_est_attribute14 => p_est_attribute14
107 ,p_est_attribute15 => p_est_attribute15
108 ,p_est_attribute16 => p_est_attribute16
109 ,p_est_attribute17 => p_est_attribute17
110 ,p_est_attribute18 => p_est_attribute18
111 ,p_est_attribute19 => p_est_attribute19
112 ,p_est_attribute20 => p_est_attribute20
113 ,p_est_attribute21 => p_est_attribute21
114 ,p_est_attribute22 => p_est_attribute22
115 ,p_est_attribute23 => p_est_attribute23
116 ,p_est_attribute24 => p_est_attribute24
117 ,p_est_attribute25 => p_est_attribute25
118 ,p_est_attribute26 => p_est_attribute26
119 ,p_est_attribute27 => p_est_attribute27
120 ,p_est_attribute28 => p_est_attribute28
121 ,p_est_attribute29 => p_est_attribute29
122 ,p_est_attribute30 => p_est_attribute30
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_suppl_role_prte'
132 ,p_hook_type => 'BP'
133 );
134 --
135 -- End of API User Hook for the before hook of create_elig_suppl_role_prte
136 --
137 end;
138 --
139 ben_est_ins.ins
140 (
141 p_elig_suppl_role_prte_id => l_elig_suppl_role_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_job_group_id => p_job_group_id
149 ,p_job_id => p_job_id
150 ,p_est_attribute_category => p_est_attribute_category
151 ,p_est_attribute1 => p_est_attribute1
152 ,p_est_attribute2 => p_est_attribute2
153 ,p_est_attribute3 => p_est_attribute3
154 ,p_est_attribute4 => p_est_attribute4
155 ,p_est_attribute5 => p_est_attribute5
156 ,p_est_attribute6 => p_est_attribute6
157 ,p_est_attribute7 => p_est_attribute7
158 ,p_est_attribute8 => p_est_attribute8
159 ,p_est_attribute9 => p_est_attribute9
160 ,p_est_attribute10 => p_est_attribute10
161 ,p_est_attribute11 => p_est_attribute11
162 ,p_est_attribute12 => p_est_attribute12
163 ,p_est_attribute13 => p_est_attribute13
164 ,p_est_attribute14 => p_est_attribute14
165 ,p_est_attribute15 => p_est_attribute15
166 ,p_est_attribute16 => p_est_attribute16
167 ,p_est_attribute17 => p_est_attribute17
168 ,p_est_attribute18 => p_est_attribute18
169 ,p_est_attribute19 => p_est_attribute19
170 ,p_est_attribute20 => p_est_attribute20
171 ,p_est_attribute21 => p_est_attribute21
172 ,p_est_attribute22 => p_est_attribute22
173 ,p_est_attribute23 => p_est_attribute23
174 ,p_est_attribute24 => p_est_attribute24
175 ,p_est_attribute25 => p_est_attribute25
176 ,p_est_attribute26 => p_est_attribute26
177 ,p_est_attribute27 => p_est_attribute27
178 ,p_est_attribute28 => p_est_attribute28
179 ,p_est_attribute29 => p_est_attribute29
180 ,p_est_attribute30 => p_est_attribute30
181 ,p_object_version_number => l_object_version_number
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_suppl_role_prte
190 --
191 ben_elig_suppl_role_prte_bk1.create_elig_suppl_role_prte_a
192 (
193 p_elig_suppl_role_prte_id => l_elig_suppl_role_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_job_group_id => p_job_group_id
201 ,p_job_id => p_job_id
202 ,p_est_attribute_category => p_est_attribute_category
203 ,p_est_attribute1 => p_est_attribute1
204 ,p_est_attribute2 => p_est_attribute2
208 ,p_est_attribute6 => p_est_attribute6
205 ,p_est_attribute3 => p_est_attribute3
206 ,p_est_attribute4 => p_est_attribute4
207 ,p_est_attribute5 => p_est_attribute5
209 ,p_est_attribute7 => p_est_attribute7
210 ,p_est_attribute8 => p_est_attribute8
211 ,p_est_attribute9 => p_est_attribute9
212 ,p_est_attribute10 => p_est_attribute10
213 ,p_est_attribute11 => p_est_attribute11
214 ,p_est_attribute12 => p_est_attribute12
215 ,p_est_attribute13 => p_est_attribute13
216 ,p_est_attribute14 => p_est_attribute14
217 ,p_est_attribute15 => p_est_attribute15
218 ,p_est_attribute16 => p_est_attribute16
219 ,p_est_attribute17 => p_est_attribute17
220 ,p_est_attribute18 => p_est_attribute18
221 ,p_est_attribute19 => p_est_attribute19
222 ,p_est_attribute20 => p_est_attribute20
223 ,p_est_attribute21 => p_est_attribute21
224 ,p_est_attribute22 => p_est_attribute22
225 ,p_est_attribute23 => p_est_attribute23
226 ,p_est_attribute24 => p_est_attribute24
227 ,p_est_attribute25 => p_est_attribute25
228 ,p_est_attribute26 => p_est_attribute26
229 ,p_est_attribute27 => p_est_attribute27
230 ,p_est_attribute28 => p_est_attribute28
231 ,p_est_attribute29 => p_est_attribute29
232 ,p_est_attribute30 => p_est_attribute30
233 ,p_object_version_number => l_object_version_number
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_suppl_role_prte'
242 ,p_hook_type => 'AP'
243 );
244 --
245 -- End of API User Hook for the after hook of create_elig_suppl_role_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_suppl_role_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_suppl_role_prte_id := l_elig_suppl_role_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_suppl_role_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_suppl_role_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_suppl_role_prte;
299 --
300 p_elig_suppl_role_prte_id := null;
301 p_effective_start_date := null;
302 p_effective_end_date := null;
303 p_object_version_number := null;
304 hr_utility.set_location(' Leaving:'||l_proc, 80);
305 --
306 raise;
307 --
308 end create_elig_suppl_role_prte;
309 -- ----------------------------------------------------------------------------
310 -- |------------------------< update_elig_suppl_role_prte >--- ------------------|
311 -- ----------------------------------------------------------------------------
312 --
313 procedure update_elig_suppl_role_prte
314 (p_validate in boolean default false
315 ,p_elig_suppl_role_prte_id in number
316 ,p_effective_start_date out nocopy date
317 ,p_effective_end_date out nocopy date
318 ,p_business_group_id in number default hr_api.g_number
319 ,p_eligy_prfl_id in number default hr_api.g_number
320 ,p_ordr_num in number default hr_api.g_number
321 ,p_excld_flag in varchar2 default hr_api.g_varchar2
322 ,p_job_group_id in number default hr_api.g_number
323 ,p_job_id in number default hr_api.g_number
324 ,p_est_attribute_category in varchar2 default hr_api.g_varchar2
325 ,p_est_attribute1 in varchar2 default hr_api.g_varchar2
326 ,p_est_attribute2 in varchar2 default hr_api.g_varchar2
330 ,p_est_attribute6 in varchar2 default hr_api.g_varchar2
327 ,p_est_attribute3 in varchar2 default hr_api.g_varchar2
328 ,p_est_attribute4 in varchar2 default hr_api.g_varchar2
329 ,p_est_attribute5 in varchar2 default hr_api.g_varchar2
331 ,p_est_attribute7 in varchar2 default hr_api.g_varchar2
332 ,p_est_attribute8 in varchar2 default hr_api.g_varchar2
333 ,p_est_attribute9 in varchar2 default hr_api.g_varchar2
334 ,p_est_attribute10 in varchar2 default hr_api.g_varchar2
335 ,p_est_attribute11 in varchar2 default hr_api.g_varchar2
336 ,p_est_attribute12 in varchar2 default hr_api.g_varchar2
337 ,p_est_attribute13 in varchar2 default hr_api.g_varchar2
338 ,p_est_attribute14 in varchar2 default hr_api.g_varchar2
339 ,p_est_attribute15 in varchar2 default hr_api.g_varchar2
340 ,p_est_attribute16 in varchar2 default hr_api.g_varchar2
341 ,p_est_attribute17 in varchar2 default hr_api.g_varchar2
342 ,p_est_attribute18 in varchar2 default hr_api.g_varchar2
343 ,p_est_attribute19 in varchar2 default hr_api.g_varchar2
344 ,p_est_attribute20 in varchar2 default hr_api.g_varchar2
345 ,p_est_attribute21 in varchar2 default hr_api.g_varchar2
346 ,p_est_attribute22 in varchar2 default hr_api.g_varchar2
347 ,p_est_attribute23 in varchar2 default hr_api.g_varchar2
348 ,p_est_attribute24 in varchar2 default hr_api.g_varchar2
349 ,p_est_attribute25 in varchar2 default hr_api.g_varchar2
350 ,p_est_attribute26 in varchar2 default hr_api.g_varchar2
351 ,p_est_attribute27 in varchar2 default hr_api.g_varchar2
352 ,p_est_attribute28 in varchar2 default hr_api.g_varchar2
353 ,p_est_attribute29 in varchar2 default hr_api.g_varchar2
354 ,p_est_attribute30 in varchar2 default hr_api.g_varchar2
355 ,p_object_version_number in out nocopy number
356 ,p_effective_date in date
357 ,p_datetrack_mode in varchar2
358 ,p_criteria_score in number default hr_api.g_number
359 ,p_criteria_weight in number default hr_api.g_number
360 ) is
361 --
362 -- Declare cursors and local variables
363 --
364 l_proc varchar2(72) := g_package||'update_elig_suppl_role_prte';
365 l_object_version_number ben_elig_suppl_role_prte_f.object_version_number%TYPE;
366 l_effective_start_date ben_elig_suppl_role_prte_f.effective_start_date%TYPE;
367 l_effective_end_date ben_elig_suppl_role_prte_f.effective_end_date%TYPE;
368 --
369 begin
370 --
371 hr_utility.set_location('Entering:'|| l_proc, 10);
372 --
373 -- Issue a savepoint if operating in validation only mode
374 --
375 savepoint update_elig_suppl_role_prte;
376 --
377 hr_utility.set_location(l_proc, 20);
378 --
379 -- Process Logic
380 --
381 l_object_version_number := p_object_version_number;
382 --
383 begin
384 --
385 -- Start of API User Hook for the before hook of update_elig_suppl_role_prte
386 --
387 ben_elig_suppl_role_prte_bk2.update_elig_suppl_role_prte_b
388 (
389 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
390 ,p_business_group_id => p_business_group_id
391 ,p_eligy_prfl_id => p_eligy_prfl_id
392 ,p_ordr_num => p_ordr_num
393 ,p_excld_flag => p_excld_flag
394 ,p_job_group_id => p_job_group_id
395 ,p_job_id => p_job_id
396 ,p_est_attribute_category => p_est_attribute_category
397 ,p_est_attribute1 => p_est_attribute1
398 ,p_est_attribute2 => p_est_attribute2
399 ,p_est_attribute3 => p_est_attribute3
400 ,p_est_attribute4 => p_est_attribute4
401 ,p_est_attribute5 => p_est_attribute5
402 ,p_est_attribute6 => p_est_attribute6
403 ,p_est_attribute7 => p_est_attribute7
404 ,p_est_attribute8 => p_est_attribute8
405 ,p_est_attribute9 => p_est_attribute9
406 ,p_est_attribute10 => p_est_attribute10
407 ,p_est_attribute11 => p_est_attribute11
408 ,p_est_attribute12 => p_est_attribute12
409 ,p_est_attribute13 => p_est_attribute13
410 ,p_est_attribute14 => p_est_attribute14
411 ,p_est_attribute15 => p_est_attribute15
412 ,p_est_attribute16 => p_est_attribute16
413 ,p_est_attribute17 => p_est_attribute17
414 ,p_est_attribute18 => p_est_attribute18
415 ,p_est_attribute19 => p_est_attribute19
416 ,p_est_attribute20 => p_est_attribute20
417 ,p_est_attribute21 => p_est_attribute21
418 ,p_est_attribute22 => p_est_attribute22
419 ,p_est_attribute23 => p_est_attribute23
420 ,p_est_attribute24 => p_est_attribute24
421 ,p_est_attribute25 => p_est_attribute25
422 ,p_est_attribute26 => p_est_attribute26
423 ,p_est_attribute27 => p_est_attribute27
424 ,p_est_attribute28 => p_est_attribute28
425 ,p_est_attribute29 => p_est_attribute29
426 ,p_est_attribute30 => p_est_attribute30
430 ,p_criteria_score => p_criteria_score
427 ,p_object_version_number => p_object_version_number
428 ,p_effective_date => trunc(p_effective_date)
429 ,p_datetrack_mode => p_datetrack_mode
431 ,p_criteria_weight => p_criteria_weight
432 );
433 exception
434 when hr_api.cannot_find_prog_unit then
435 hr_api.cannot_find_prog_unit_error
436 (p_module_name => 'UPDATE_elig_suppl_role_prte'
437 ,p_hook_type => 'BP'
438 );
439 --
440 -- End of API User Hook for the before hook of update_elig_suppl_role_prte
441 --
442 end;
443 --
444 ben_est_upd.upd
445 (
446 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
447 ,p_effective_start_date => l_effective_start_date
448 ,p_effective_end_date => l_effective_end_date
449 ,p_business_group_id => p_business_group_id
450 ,p_eligy_prfl_id => p_eligy_prfl_id
451 ,p_ordr_num => p_ordr_num
452 ,p_excld_flag => p_excld_flag
453 ,p_job_group_id => p_job_group_id
454 ,p_job_id => p_job_id
455 ,p_est_attribute_category => p_est_attribute_category
456 ,p_est_attribute1 => p_est_attribute1
457 ,p_est_attribute2 => p_est_attribute2
458 ,p_est_attribute3 => p_est_attribute3
459 ,p_est_attribute4 => p_est_attribute4
460 ,p_est_attribute5 => p_est_attribute5
461 ,p_est_attribute6 => p_est_attribute6
462 ,p_est_attribute7 => p_est_attribute7
463 ,p_est_attribute8 => p_est_attribute8
464 ,p_est_attribute9 => p_est_attribute9
465 ,p_est_attribute10 => p_est_attribute10
466 ,p_est_attribute11 => p_est_attribute11
467 ,p_est_attribute12 => p_est_attribute12
468 ,p_est_attribute13 => p_est_attribute13
469 ,p_est_attribute14 => p_est_attribute14
470 ,p_est_attribute15 => p_est_attribute15
471 ,p_est_attribute16 => p_est_attribute16
472 ,p_est_attribute17 => p_est_attribute17
473 ,p_est_attribute18 => p_est_attribute18
474 ,p_est_attribute19 => p_est_attribute19
475 ,p_est_attribute20 => p_est_attribute20
476 ,p_est_attribute21 => p_est_attribute21
477 ,p_est_attribute22 => p_est_attribute22
478 ,p_est_attribute23 => p_est_attribute23
479 ,p_est_attribute24 => p_est_attribute24
480 ,p_est_attribute25 => p_est_attribute25
481 ,p_est_attribute26 => p_est_attribute26
482 ,p_est_attribute27 => p_est_attribute27
483 ,p_est_attribute28 => p_est_attribute28
484 ,p_est_attribute29 => p_est_attribute29
485 ,p_est_attribute30 => p_est_attribute30
486 ,p_object_version_number => l_object_version_number
487 ,p_effective_date => trunc(p_effective_date)
488 ,p_datetrack_mode => p_datetrack_mode
489 ,p_criteria_score => p_criteria_score
490 ,p_criteria_weight => p_criteria_weight
491 );
492 --
493 begin
494 --
495 -- Start of API User Hook for the after hook of update_elig_suppl_role_prte
496 --
497 ben_elig_suppl_role_prte_bk2.update_elig_suppl_role_prte_a
498 (
499 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
500 ,p_effective_start_date => l_effective_start_date
501 ,p_effective_end_date => l_effective_end_date
502 ,p_business_group_id => p_business_group_id
503 ,p_eligy_prfl_id => p_eligy_prfl_id
504 ,p_ordr_num => p_ordr_num
505 ,p_excld_flag => p_excld_flag
506 ,p_job_group_id => p_job_group_id
507 ,p_job_id => p_job_id
508 ,p_est_attribute_category => p_est_attribute_category
509 ,p_est_attribute1 => p_est_attribute1
510 ,p_est_attribute2 => p_est_attribute2
511 ,p_est_attribute3 => p_est_attribute3
512 ,p_est_attribute4 => p_est_attribute4
513 ,p_est_attribute5 => p_est_attribute5
514 ,p_est_attribute6 => p_est_attribute6
515 ,p_est_attribute7 => p_est_attribute7
516 ,p_est_attribute8 => p_est_attribute8
517 ,p_est_attribute9 => p_est_attribute9
518 ,p_est_attribute10 => p_est_attribute10
519 ,p_est_attribute11 => p_est_attribute11
520 ,p_est_attribute12 => p_est_attribute12
521 ,p_est_attribute13 => p_est_attribute13
522 ,p_est_attribute14 => p_est_attribute14
523 ,p_est_attribute15 => p_est_attribute15
524 ,p_est_attribute16 => p_est_attribute16
525 ,p_est_attribute17 => p_est_attribute17
526 ,p_est_attribute18 => p_est_attribute18
527 ,p_est_attribute19 => p_est_attribute19
528 ,p_est_attribute20 => p_est_attribute20
529 ,p_est_attribute21 => p_est_attribute21
530 ,p_est_attribute22 => p_est_attribute22
531 ,p_est_attribute23 => p_est_attribute23
535 ,p_est_attribute27 => p_est_attribute27
532 ,p_est_attribute24 => p_est_attribute24
533 ,p_est_attribute25 => p_est_attribute25
534 ,p_est_attribute26 => p_est_attribute26
536 ,p_est_attribute28 => p_est_attribute28
537 ,p_est_attribute29 => p_est_attribute29
538 ,p_est_attribute30 => p_est_attribute30
539 ,p_object_version_number => l_object_version_number
540 ,p_effective_date => trunc(p_effective_date)
541 ,p_datetrack_mode => p_datetrack_mode
542 ,p_criteria_score => p_criteria_score
543 ,p_criteria_weight => p_criteria_weight
544 );
545 exception
546 when hr_api.cannot_find_prog_unit then
547 hr_api.cannot_find_prog_unit_error
548 (p_module_name => 'UPDATE_elig_suppl_role_prte'
549 ,p_hook_type => 'AP'
550 );
551 --
552 -- End of API User Hook for the after hook of update_elig_suppl_role_prte
553 --
554 end;
555 --
556 hr_utility.set_location(l_proc, 60);
557 --
558 -- When in validation only mode raise the Validate_Enabled exception
559 --
560 if p_validate then
561 raise hr_api.validate_enabled;
562 end if;
563 --
564 -- Set all output arguments
565 --
566 p_object_version_number := l_object_version_number;
567 p_effective_start_date := l_effective_start_date;
568 p_effective_end_date := l_effective_end_date;
569 --
570 hr_utility.set_location(' Leaving:'||l_proc, 70);
571 --
572 exception
573 --
574 when hr_api.validate_enabled then
575 --
576 -- As the Validate_Enabled exception has been raised
577 -- we must rollback to the savepoint
578 --
579 ROLLBACK TO update_elig_suppl_role_prte;
580 --
581 -- Only set output warning arguments
582 -- (Any key or derived arguments must be set to null
583 -- when validation only mode is being used.)
584 --
585 hr_utility.set_location(' Leaving:'||l_proc, 80);
586 --
587 when others then
588 --
589 -- A validation or unexpected error has occured
590 --
591 ROLLBACK TO update_elig_suppl_role_prte;
592 --
593 p_effective_start_date := null;
594 p_effective_end_date := null;
595 p_object_version_number := l_object_version_number;
596 hr_utility.set_location(' Leaving:'||l_proc, 80);
597 --
598 raise;
599 --
600 end update_elig_suppl_role_prte;
601 -- ----------------------------------------------------------------------------
602 -- |------------------------< delete_elig_suppl_role_prte >----------------------|
603 -- ----------------------------------------------------------------------------
604 --
605 procedure delete_elig_suppl_role_prte
606 (p_validate in boolean default false
607 ,p_elig_suppl_role_prte_id in number
608 ,p_effective_start_date out nocopy date
609 ,p_effective_end_date out nocopy date
610 ,p_object_version_number in out nocopy number
611 ,p_effective_date in date
612 ,p_datetrack_mode in varchar2
613 ) is
614 --
615 -- Declare cursors and local variables
616 --
617 l_proc varchar2(72) := g_package||'update_elig_suppl_role_prte';
618 l_object_version_number ben_elig_suppl_role_prte_f.object_version_number%TYPE;
619 l_effective_start_date ben_elig_suppl_role_prte_f.effective_start_date%TYPE;
620 l_effective_end_date ben_elig_suppl_role_prte_f.effective_end_date%TYPE;
621 --
622 begin
623 --
624 hr_utility.set_location('Entering:'|| l_proc, 10);
625 --
626 -- Issue a savepoint if operating in validation only mode
627 --
628 savepoint delete_elig_suppl_role_prte;
629 --
630 hr_utility.set_location(l_proc, 20);
631 --
632 -- Process Logic
633 --
634 l_object_version_number := p_object_version_number;
635 --
636 --
637 begin
638 --
639 -- Start of API User Hook for the before hook of delete_elig_suppl_role_prte
640 --
641 ben_elig_suppl_role_prte_bk3.delete_elig_suppl_role_prte_b
642 (
643 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
644 ,p_object_version_number => p_object_version_number
645 ,p_effective_date => trunc(p_effective_date)
646 ,p_datetrack_mode => p_datetrack_mode
647 );
648 exception
649 when hr_api.cannot_find_prog_unit then
650 hr_api.cannot_find_prog_unit_error
651 (p_module_name => 'DELETE_elig_suppl_role_prte'
652 ,p_hook_type => 'BP'
653 );
654 --
655 -- End of API User Hook for the before hook of delete_elig_suppl_role_prte
656 --
657 end;
658 --
659 ben_est_del.del
660 (
661 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
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 => p_effective_date
666 ,p_datetrack_mode => p_datetrack_mode
667 );
668 --
669 begin
670 --
671 -- Start of API User Hook for the after hook of delete_elig_suppl_role_prte
672 --
673 ben_elig_suppl_role_prte_bk3.delete_elig_suppl_role_prte_a
674 (
678 ,p_object_version_number => l_object_version_number
675 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
676 ,p_effective_start_date => l_effective_start_date
677 ,p_effective_end_date => l_effective_end_date
679 ,p_effective_date => trunc(p_effective_date)
680 ,p_datetrack_mode => p_datetrack_mode
681 );
682 exception
683 when hr_api.cannot_find_prog_unit then
684 hr_api.cannot_find_prog_unit_error
685 (p_module_name => 'DELETE_elig_suppl_role_prte'
686 ,p_hook_type => 'AP'
687 );
688 --
689 -- End of API User Hook for the after hook of delete_elig_suppl_role_prte
690 --
691 end;
692 --
693 ben_profile_handler.event_handler
694 (p_event => 'DELETE',
695 p_base_table => 'BEN_ELIGY_PRFL_F',
696 p_base_table_column => 'ELIGY_PRFL_ID',
697 p_base_table_column_value => ben_est_shd.g_old_rec.eligy_prfl_id,
698 p_base_table_reference_column => 'ELIG_LOA_RSN_FLAG',
699 p_reference_table => 'BEN_elig_suppl_role_prte_F',
700 p_reference_table_column => 'ELIGY_PRFL_ID');
701 --
702 hr_utility.set_location(l_proc, 60);
703 --
704 -- When in validation only mode raise the Validate_Enabled exception
705 --
706 if p_validate then
707 raise hr_api.validate_enabled;
708 end if;
709 --
710 hr_utility.set_location(' Leaving:'||l_proc, 70);
711 --
712 exception
713 --
714 when hr_api.validate_enabled then
715 --
716 -- As the Validate_Enabled exception has been raised
717 -- we must rollback to the savepoint
718 --
719 ROLLBACK TO delete_elig_suppl_role_prte;
720 --
721 -- Only set output warning arguments
722 -- (Any key or derived arguments must be set to null
723 -- when validation only mode is being used.)
724 --
725 p_effective_start_date := null;
726 p_effective_end_date := null;
727 --
728 when others then
729 --
730 -- A validation or unexpected error has occured
731 --
732 ROLLBACK TO delete_elig_suppl_role_prte;
733 --
734 p_effective_start_date := null;
735 p_effective_end_date := null;
736 p_object_version_number := l_object_version_number;
737 hr_utility.set_location(' Leaving:'||l_proc, 80);
738 --
739 raise;
740 --
741 end delete_elig_suppl_role_prte;
742 --
743 -- ----------------------------------------------------------------------------
744 -- |-------------------------------< lck >------------------------------------|
745 -- ----------------------------------------------------------------------------
746 --
747 procedure lck
748 (
749 p_elig_suppl_role_prte_id in number
750 ,p_object_version_number in number
751 ,p_effective_date in date
752 ,p_datetrack_mode in varchar2
753 ,p_validation_start_date out nocopy date
754 ,p_validation_end_date out nocopy date
755 ) is
756 --
757 --
758 -- Declare cursors and local variables
759 --
760 l_proc varchar2(72) := g_package||'lck';
761 l_validation_start_date date;
762 l_validation_end_date date;
763 --
764 begin
765 --
766 hr_utility.set_location('Entering:'|| l_proc, 10);
767 --
768 ben_est_shd.lck
769 (
770 p_elig_suppl_role_prte_id => p_elig_suppl_role_prte_id
771 ,p_validation_start_date => l_validation_start_date
772 ,p_validation_end_date => l_validation_end_date
773 ,p_object_version_number => p_object_version_number
774 ,p_effective_date => p_effective_date
775 ,p_datetrack_mode => p_datetrack_mode
776 );
777 --
778 hr_utility.set_location(' Leaving:'||l_proc, 70);
779 --
780 end lck;
781 --
782 end ben_elig_suppl_role_prte_api;