[Home] [Help]
PACKAGE BODY: APPS.BEN_APLCN_TO_BENEFIT_POOL_API
Source
1 Package Body ben_Aplcn_To_Benefit_Pool_api as
2 /* $Header: beabpapi.pkb 120.0 2005/05/28 00:17:52 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package varchar2(33) := ' ben_Aplcn_To_Benefit_Pool_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_Aplcn_To_Benefit_Pool >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_Aplcn_To_Benefit_Pool
13 (p_validate in boolean default false
14 ,p_aplcn_to_bnft_pool_id out nocopy number
15 ,p_effective_start_date out nocopy date
16 ,p_effective_end_date out nocopy date
17 ,p_acty_base_rt_id in number default null
18 ,p_bnft_prvdr_pool_id in number default null
19 ,p_business_group_id in number default null
20 ,p_abp_attribute_category in varchar2 default null
21 ,p_abp_attribute1 in varchar2 default null
22 ,p_abp_attribute2 in varchar2 default null
23 ,p_abp_attribute3 in varchar2 default null
24 ,p_abp_attribute4 in varchar2 default null
25 ,p_abp_attribute5 in varchar2 default null
26 ,p_abp_attribute6 in varchar2 default null
27 ,p_abp_attribute7 in varchar2 default null
28 ,p_abp_attribute8 in varchar2 default null
29 ,p_abp_attribute9 in varchar2 default null
30 ,p_abp_attribute10 in varchar2 default null
31 ,p_abp_attribute11 in varchar2 default null
32 ,p_abp_attribute12 in varchar2 default null
33 ,p_abp_attribute13 in varchar2 default null
34 ,p_abp_attribute14 in varchar2 default null
35 ,p_abp_attribute15 in varchar2 default null
36 ,p_abp_attribute16 in varchar2 default null
37 ,p_abp_attribute17 in varchar2 default null
38 ,p_abp_attribute18 in varchar2 default null
39 ,p_abp_attribute19 in varchar2 default null
40 ,p_abp_attribute20 in varchar2 default null
41 ,p_abp_attribute21 in varchar2 default null
42 ,p_abp_attribute22 in varchar2 default null
43 ,p_abp_attribute23 in varchar2 default null
44 ,p_abp_attribute24 in varchar2 default null
45 ,p_abp_attribute25 in varchar2 default null
46 ,p_abp_attribute26 in varchar2 default null
47 ,p_abp_attribute27 in varchar2 default null
48 ,p_abp_attribute28 in varchar2 default null
49 ,p_abp_attribute29 in varchar2 default null
50 ,p_abp_attribute30 in varchar2 default null
51 ,p_object_version_number out nocopy number
52 ,p_effective_date in date
53 ) is
54 --
55 -- Declare cursors and local variables
56 --
57 l_aplcn_to_bnft_pool_id ben_aplcn_to_bnft_pool_f.aplcn_to_bnft_pool_id%TYPE;
58 l_effective_start_date ben_aplcn_to_bnft_pool_f.effective_start_date%TYPE;
59 l_effective_end_date ben_aplcn_to_bnft_pool_f.effective_end_date%TYPE;
60 l_proc varchar2(72) := g_package||'create_Aplcn_To_Benefit_Pool';
61 l_object_version_number ben_aplcn_to_bnft_pool_f.object_version_number%TYPE;
62 --
63 begin
64 --
65 hr_utility.set_location('Entering:'|| l_proc, 10);
66 --
67 -- Issue a savepoint if operating in validation only mode
68 --
69 savepoint create_Aplcn_To_Benefit_Pool;
70 --
71 hr_utility.set_location(l_proc, 20);
72 --
73 -- Process Logic
74 --
75 begin
76 --
77 -- Start of API User Hook for the before hook of create_Aplcn_To_Benefit_Pool
78 --
79 ben_Aplcn_To_Benefit_Pool_bk1.create_Aplcn_To_Benefit_Pool_b
80 (
81 p_acty_base_rt_id => p_acty_base_rt_id
82 ,p_bnft_prvdr_pool_id => p_bnft_prvdr_pool_id
83 ,p_business_group_id => p_business_group_id
84 ,p_abp_attribute_category => p_abp_attribute_category
85 ,p_abp_attribute1 => p_abp_attribute1
86 ,p_abp_attribute2 => p_abp_attribute2
87 ,p_abp_attribute3 => p_abp_attribute3
88 ,p_abp_attribute4 => p_abp_attribute4
89 ,p_abp_attribute5 => p_abp_attribute5
90 ,p_abp_attribute6 => p_abp_attribute6
91 ,p_abp_attribute7 => p_abp_attribute7
92 ,p_abp_attribute8 => p_abp_attribute8
93 ,p_abp_attribute9 => p_abp_attribute9
94 ,p_abp_attribute10 => p_abp_attribute10
95 ,p_abp_attribute11 => p_abp_attribute11
96 ,p_abp_attribute12 => p_abp_attribute12
97 ,p_abp_attribute13 => p_abp_attribute13
98 ,p_abp_attribute14 => p_abp_attribute14
99 ,p_abp_attribute15 => p_abp_attribute15
100 ,p_abp_attribute16 => p_abp_attribute16
101 ,p_abp_attribute17 => p_abp_attribute17
102 ,p_abp_attribute18 => p_abp_attribute18
103 ,p_abp_attribute19 => p_abp_attribute19
104 ,p_abp_attribute20 => p_abp_attribute20
105 ,p_abp_attribute21 => p_abp_attribute21
106 ,p_abp_attribute22 => p_abp_attribute22
107 ,p_abp_attribute23 => p_abp_attribute23
108 ,p_abp_attribute24 => p_abp_attribute24
109 ,p_abp_attribute25 => p_abp_attribute25
110 ,p_abp_attribute26 => p_abp_attribute26
111 ,p_abp_attribute27 => p_abp_attribute27
112 ,p_abp_attribute28 => p_abp_attribute28
113 ,p_abp_attribute29 => p_abp_attribute29
114 ,p_abp_attribute30 => p_abp_attribute30
115 ,p_effective_date => trunc(p_effective_date)
116 );
117 exception
118 when hr_api.cannot_find_prog_unit then
119 hr_api.cannot_find_prog_unit_error
120 (
121 p_module_name => 'CREATE_Aplcn_To_Benefit_Pool'
122 ,p_hook_type => 'BP'
123 );
124 --
125 -- End of API User Hook for the before hook of create_Aplcn_To_Benefit_Pool
126 --
127 end;
128 --
129 ben_abp_ins.ins
130 (
131 p_aplcn_to_bnft_pool_id => l_aplcn_to_bnft_pool_id
132 ,p_effective_start_date => l_effective_start_date
133 ,p_effective_end_date => l_effective_end_date
134 ,p_acty_base_rt_id => p_acty_base_rt_id
135 ,p_bnft_prvdr_pool_id => p_bnft_prvdr_pool_id
136 ,p_business_group_id => p_business_group_id
137 ,p_abp_attribute_category => p_abp_attribute_category
138 ,p_abp_attribute1 => p_abp_attribute1
139 ,p_abp_attribute2 => p_abp_attribute2
140 ,p_abp_attribute3 => p_abp_attribute3
141 ,p_abp_attribute4 => p_abp_attribute4
142 ,p_abp_attribute5 => p_abp_attribute5
143 ,p_abp_attribute6 => p_abp_attribute6
144 ,p_abp_attribute7 => p_abp_attribute7
145 ,p_abp_attribute8 => p_abp_attribute8
146 ,p_abp_attribute9 => p_abp_attribute9
147 ,p_abp_attribute10 => p_abp_attribute10
148 ,p_abp_attribute11 => p_abp_attribute11
149 ,p_abp_attribute12 => p_abp_attribute12
150 ,p_abp_attribute13 => p_abp_attribute13
151 ,p_abp_attribute14 => p_abp_attribute14
152 ,p_abp_attribute15 => p_abp_attribute15
153 ,p_abp_attribute16 => p_abp_attribute16
154 ,p_abp_attribute17 => p_abp_attribute17
155 ,p_abp_attribute18 => p_abp_attribute18
156 ,p_abp_attribute19 => p_abp_attribute19
157 ,p_abp_attribute20 => p_abp_attribute20
158 ,p_abp_attribute21 => p_abp_attribute21
159 ,p_abp_attribute22 => p_abp_attribute22
160 ,p_abp_attribute23 => p_abp_attribute23
161 ,p_abp_attribute24 => p_abp_attribute24
162 ,p_abp_attribute25 => p_abp_attribute25
163 ,p_abp_attribute26 => p_abp_attribute26
164 ,p_abp_attribute27 => p_abp_attribute27
165 ,p_abp_attribute28 => p_abp_attribute28
166 ,p_abp_attribute29 => p_abp_attribute29
167 ,p_abp_attribute30 => p_abp_attribute30
168 ,p_object_version_number => l_object_version_number
169 ,p_effective_date => trunc(p_effective_date)
170 );
171 --
172 begin
173 --
174 -- Start of API User Hook for the after hook of create_Aplcn_To_Benefit_Pool
175 --
176 ben_Aplcn_To_Benefit_Pool_bk1.create_Aplcn_To_Benefit_Pool_a
177 (
178 p_aplcn_to_bnft_pool_id => l_aplcn_to_bnft_pool_id
179 ,p_effective_start_date => l_effective_start_date
180 ,p_effective_end_date => l_effective_end_date
181 ,p_acty_base_rt_id => p_acty_base_rt_id
182 ,p_bnft_prvdr_pool_id => p_bnft_prvdr_pool_id
183 ,p_business_group_id => p_business_group_id
184 ,p_abp_attribute_category => p_abp_attribute_category
185 ,p_abp_attribute1 => p_abp_attribute1
186 ,p_abp_attribute2 => p_abp_attribute2
187 ,p_abp_attribute3 => p_abp_attribute3
188 ,p_abp_attribute4 => p_abp_attribute4
189 ,p_abp_attribute5 => p_abp_attribute5
190 ,p_abp_attribute6 => p_abp_attribute6
191 ,p_abp_attribute7 => p_abp_attribute7
192 ,p_abp_attribute8 => p_abp_attribute8
193 ,p_abp_attribute9 => p_abp_attribute9
194 ,p_abp_attribute10 => p_abp_attribute10
195 ,p_abp_attribute11 => p_abp_attribute11
196 ,p_abp_attribute12 => p_abp_attribute12
197 ,p_abp_attribute13 => p_abp_attribute13
198 ,p_abp_attribute14 => p_abp_attribute14
199 ,p_abp_attribute15 => p_abp_attribute15
200 ,p_abp_attribute16 => p_abp_attribute16
201 ,p_abp_attribute17 => p_abp_attribute17
202 ,p_abp_attribute18 => p_abp_attribute18
203 ,p_abp_attribute19 => p_abp_attribute19
204 ,p_abp_attribute20 => p_abp_attribute20
205 ,p_abp_attribute21 => p_abp_attribute21
206 ,p_abp_attribute22 => p_abp_attribute22
207 ,p_abp_attribute23 => p_abp_attribute23
208 ,p_abp_attribute24 => p_abp_attribute24
209 ,p_abp_attribute25 => p_abp_attribute25
210 ,p_abp_attribute26 => p_abp_attribute26
211 ,p_abp_attribute27 => p_abp_attribute27
212 ,p_abp_attribute28 => p_abp_attribute28
213 ,p_abp_attribute29 => p_abp_attribute29
214 ,p_abp_attribute30 => p_abp_attribute30
215 ,p_object_version_number => l_object_version_number
216 ,p_effective_date => trunc(p_effective_date)
217 );
218 exception
219 when hr_api.cannot_find_prog_unit then
220 hr_api.cannot_find_prog_unit_error
221 (p_module_name => 'CREATE_Aplcn_To_Benefit_Pool'
222 ,p_hook_type => 'AP'
223 );
224 --
225 -- End of API User Hook for the after hook of create_Aplcn_To_Benefit_Pool
226 --
227 end;
228 --
229 hr_utility.set_location(l_proc, 60);
230 --
231 -- When in validation only mode raise the Validate_Enabled exception
232 --
233 if p_validate then
234 raise hr_api.validate_enabled;
235 end if;
236 --
237 -- Set all output arguments
238 --
239 p_aplcn_to_bnft_pool_id := l_aplcn_to_bnft_pool_id;
240 p_effective_start_date := l_effective_start_date;
241 p_effective_end_date := l_effective_end_date;
242 p_object_version_number := l_object_version_number;
243 --
244 hr_utility.set_location(' Leaving:'||l_proc, 70);
245 --
246 exception
247 --
248 when hr_api.validate_enabled then
249 --
250 -- As the Validate_Enabled exception has been raised
251 -- we must rollback to the savepoint
252 --
253 ROLLBACK TO create_Aplcn_To_Benefit_Pool;
254 --
255 -- Only set output warning arguments
256 -- (Any key or derived arguments must be set to null
257 -- when validation only mode is being used.)
258 --
259 p_aplcn_to_bnft_pool_id := null;
260 p_effective_start_date := null;
261 p_effective_end_date := null;
262 p_object_version_number := null;
263 hr_utility.set_location(' Leaving:'||l_proc, 80);
264 --
265 when others then
266 --
267 -- A validation or unexpected error has occured
268 --
269 ROLLBACK TO create_Aplcn_To_Benefit_Pool;
270 raise;
271 --
272 end create_Aplcn_To_Benefit_Pool;
273 -- ----------------------------------------------------------------------------
274 -- |------------------------< update_Aplcn_To_Benefit_Pool >--- ------------------|
275 -- ----------------------------------------------------------------------------
276 --
277 procedure update_Aplcn_To_Benefit_Pool
278 (p_validate in boolean default false
279 ,p_aplcn_to_bnft_pool_id in number
280 ,p_effective_start_date out nocopy date
281 ,p_effective_end_date out nocopy date
282 ,p_acty_base_rt_id in number default hr_api.g_number
283 ,p_bnft_prvdr_pool_id in number default hr_api.g_number
284 ,p_business_group_id in number default hr_api.g_number
285 ,p_abp_attribute_category in varchar2 default hr_api.g_varchar2
286 ,p_abp_attribute1 in varchar2 default hr_api.g_varchar2
287 ,p_abp_attribute2 in varchar2 default hr_api.g_varchar2
288 ,p_abp_attribute3 in varchar2 default hr_api.g_varchar2
289 ,p_abp_attribute4 in varchar2 default hr_api.g_varchar2
290 ,p_abp_attribute5 in varchar2 default hr_api.g_varchar2
291 ,p_abp_attribute6 in varchar2 default hr_api.g_varchar2
292 ,p_abp_attribute7 in varchar2 default hr_api.g_varchar2
293 ,p_abp_attribute8 in varchar2 default hr_api.g_varchar2
294 ,p_abp_attribute9 in varchar2 default hr_api.g_varchar2
295 ,p_abp_attribute10 in varchar2 default hr_api.g_varchar2
296 ,p_abp_attribute11 in varchar2 default hr_api.g_varchar2
297 ,p_abp_attribute12 in varchar2 default hr_api.g_varchar2
298 ,p_abp_attribute13 in varchar2 default hr_api.g_varchar2
299 ,p_abp_attribute14 in varchar2 default hr_api.g_varchar2
300 ,p_abp_attribute15 in varchar2 default hr_api.g_varchar2
301 ,p_abp_attribute16 in varchar2 default hr_api.g_varchar2
302 ,p_abp_attribute17 in varchar2 default hr_api.g_varchar2
303 ,p_abp_attribute18 in varchar2 default hr_api.g_varchar2
304 ,p_abp_attribute19 in varchar2 default hr_api.g_varchar2
305 ,p_abp_attribute20 in varchar2 default hr_api.g_varchar2
306 ,p_abp_attribute21 in varchar2 default hr_api.g_varchar2
307 ,p_abp_attribute22 in varchar2 default hr_api.g_varchar2
308 ,p_abp_attribute23 in varchar2 default hr_api.g_varchar2
309 ,p_abp_attribute24 in varchar2 default hr_api.g_varchar2
310 ,p_abp_attribute25 in varchar2 default hr_api.g_varchar2
311 ,p_abp_attribute26 in varchar2 default hr_api.g_varchar2
312 ,p_abp_attribute27 in varchar2 default hr_api.g_varchar2
313 ,p_abp_attribute28 in varchar2 default hr_api.g_varchar2
314 ,p_abp_attribute29 in varchar2 default hr_api.g_varchar2
315 ,p_abp_attribute30 in varchar2 default hr_api.g_varchar2
316 ,p_object_version_number in out nocopy number
317 ,p_effective_date in date
318 ,p_datetrack_mode in varchar2
319 ) is
320 --
321 -- Declare cursors and local variables
322 --
323 l_proc varchar2(72) := g_package||'update_Aplcn_To_Benefit_Pool';
324 l_object_version_number ben_aplcn_to_bnft_pool_f.object_version_number%TYPE;
325 l_effective_start_date ben_aplcn_to_bnft_pool_f.effective_start_date%TYPE;
326 l_effective_end_date ben_aplcn_to_bnft_pool_f.effective_end_date%TYPE;
327 --
328 begin
329 --
330 hr_utility.set_location('Entering:'|| l_proc, 10);
331 --
332 -- Issue a savepoint if operating in validation only mode
333 --
334 savepoint update_Aplcn_To_Benefit_Pool;
335 --
336 hr_utility.set_location(l_proc, 20);
337 --
338 -- Process Logic
339 --
340 l_object_version_number := p_object_version_number;
341 --
342 begin
343 --
344 -- Start of API User Hook for the before hook of update_Aplcn_To_Benefit_Pool
345 --
346 ben_Aplcn_To_Benefit_Pool_bk2.update_Aplcn_To_Benefit_Pool_b
347 (
348 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
349 ,p_acty_base_rt_id => p_acty_base_rt_id
350 ,p_bnft_prvdr_pool_id => p_bnft_prvdr_pool_id
351 ,p_business_group_id => p_business_group_id
352 ,p_abp_attribute_category => p_abp_attribute_category
353 ,p_abp_attribute1 => p_abp_attribute1
354 ,p_abp_attribute2 => p_abp_attribute2
355 ,p_abp_attribute3 => p_abp_attribute3
356 ,p_abp_attribute4 => p_abp_attribute4
357 ,p_abp_attribute5 => p_abp_attribute5
358 ,p_abp_attribute6 => p_abp_attribute6
359 ,p_abp_attribute7 => p_abp_attribute7
360 ,p_abp_attribute8 => p_abp_attribute8
361 ,p_abp_attribute9 => p_abp_attribute9
362 ,p_abp_attribute10 => p_abp_attribute10
363 ,p_abp_attribute11 => p_abp_attribute11
364 ,p_abp_attribute12 => p_abp_attribute12
365 ,p_abp_attribute13 => p_abp_attribute13
366 ,p_abp_attribute14 => p_abp_attribute14
367 ,p_abp_attribute15 => p_abp_attribute15
368 ,p_abp_attribute16 => p_abp_attribute16
369 ,p_abp_attribute17 => p_abp_attribute17
370 ,p_abp_attribute18 => p_abp_attribute18
371 ,p_abp_attribute19 => p_abp_attribute19
372 ,p_abp_attribute20 => p_abp_attribute20
373 ,p_abp_attribute21 => p_abp_attribute21
374 ,p_abp_attribute22 => p_abp_attribute22
375 ,p_abp_attribute23 => p_abp_attribute23
376 ,p_abp_attribute24 => p_abp_attribute24
377 ,p_abp_attribute25 => p_abp_attribute25
378 ,p_abp_attribute26 => p_abp_attribute26
379 ,p_abp_attribute27 => p_abp_attribute27
380 ,p_abp_attribute28 => p_abp_attribute28
381 ,p_abp_attribute29 => p_abp_attribute29
382 ,p_abp_attribute30 => p_abp_attribute30
383 ,p_object_version_number => p_object_version_number
384 ,p_effective_date => trunc(p_effective_date)
385 ,p_datetrack_mode => p_datetrack_mode
386 );
387 exception
388 when hr_api.cannot_find_prog_unit then
389 hr_api.cannot_find_prog_unit_error
390 (p_module_name => 'UPDATE_Aplcn_To_Benefit_Pool'
391 ,p_hook_type => 'BP'
392 );
393 --
394 -- End of API User Hook for the before hook of update_Aplcn_To_Benefit_Pool
395 --
396 end;
397 --
398 ben_abp_upd.upd
399 (
400 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
401 ,p_effective_start_date => l_effective_start_date
402 ,p_effective_end_date => l_effective_end_date
403 ,p_acty_base_rt_id => p_acty_base_rt_id
404 ,p_bnft_prvdr_pool_id => p_bnft_prvdr_pool_id
405 ,p_business_group_id => p_business_group_id
406 ,p_abp_attribute_category => p_abp_attribute_category
407 ,p_abp_attribute1 => p_abp_attribute1
408 ,p_abp_attribute2 => p_abp_attribute2
409 ,p_abp_attribute3 => p_abp_attribute3
410 ,p_abp_attribute4 => p_abp_attribute4
411 ,p_abp_attribute5 => p_abp_attribute5
412 ,p_abp_attribute6 => p_abp_attribute6
413 ,p_abp_attribute7 => p_abp_attribute7
414 ,p_abp_attribute8 => p_abp_attribute8
415 ,p_abp_attribute9 => p_abp_attribute9
416 ,p_abp_attribute10 => p_abp_attribute10
417 ,p_abp_attribute11 => p_abp_attribute11
418 ,p_abp_attribute12 => p_abp_attribute12
419 ,p_abp_attribute13 => p_abp_attribute13
420 ,p_abp_attribute14 => p_abp_attribute14
421 ,p_abp_attribute15 => p_abp_attribute15
422 ,p_abp_attribute16 => p_abp_attribute16
423 ,p_abp_attribute17 => p_abp_attribute17
424 ,p_abp_attribute18 => p_abp_attribute18
425 ,p_abp_attribute19 => p_abp_attribute19
426 ,p_abp_attribute20 => p_abp_attribute20
427 ,p_abp_attribute21 => p_abp_attribute21
428 ,p_abp_attribute22 => p_abp_attribute22
429 ,p_abp_attribute23 => p_abp_attribute23
430 ,p_abp_attribute24 => p_abp_attribute24
431 ,p_abp_attribute25 => p_abp_attribute25
432 ,p_abp_attribute26 => p_abp_attribute26
433 ,p_abp_attribute27 => p_abp_attribute27
434 ,p_abp_attribute28 => p_abp_attribute28
435 ,p_abp_attribute29 => p_abp_attribute29
436 ,p_abp_attribute30 => p_abp_attribute30
437 ,p_object_version_number => l_object_version_number
438 ,p_effective_date => trunc(p_effective_date)
439 ,p_datetrack_mode => p_datetrack_mode
440 );
441 --
442 begin
443 --
444 -- Start of API User Hook for the after hook of update_Aplcn_To_Benefit_Pool
445 --
446 ben_Aplcn_To_Benefit_Pool_bk2.update_Aplcn_To_Benefit_Pool_a
447 (
448 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
449 ,p_effective_start_date => l_effective_start_date
450 ,p_effective_end_date => l_effective_end_date
451 ,p_acty_base_rt_id => p_acty_base_rt_id
452 ,p_bnft_prvdr_pool_id => p_bnft_prvdr_pool_id
453 ,p_business_group_id => p_business_group_id
454 ,p_abp_attribute_category => p_abp_attribute_category
455 ,p_abp_attribute1 => p_abp_attribute1
456 ,p_abp_attribute2 => p_abp_attribute2
457 ,p_abp_attribute3 => p_abp_attribute3
458 ,p_abp_attribute4 => p_abp_attribute4
459 ,p_abp_attribute5 => p_abp_attribute5
460 ,p_abp_attribute6 => p_abp_attribute6
461 ,p_abp_attribute7 => p_abp_attribute7
462 ,p_abp_attribute8 => p_abp_attribute8
463 ,p_abp_attribute9 => p_abp_attribute9
464 ,p_abp_attribute10 => p_abp_attribute10
465 ,p_abp_attribute11 => p_abp_attribute11
466 ,p_abp_attribute12 => p_abp_attribute12
467 ,p_abp_attribute13 => p_abp_attribute13
468 ,p_abp_attribute14 => p_abp_attribute14
469 ,p_abp_attribute15 => p_abp_attribute15
470 ,p_abp_attribute16 => p_abp_attribute16
471 ,p_abp_attribute17 => p_abp_attribute17
472 ,p_abp_attribute18 => p_abp_attribute18
473 ,p_abp_attribute19 => p_abp_attribute19
474 ,p_abp_attribute20 => p_abp_attribute20
475 ,p_abp_attribute21 => p_abp_attribute21
476 ,p_abp_attribute22 => p_abp_attribute22
477 ,p_abp_attribute23 => p_abp_attribute23
478 ,p_abp_attribute24 => p_abp_attribute24
479 ,p_abp_attribute25 => p_abp_attribute25
480 ,p_abp_attribute26 => p_abp_attribute26
481 ,p_abp_attribute27 => p_abp_attribute27
482 ,p_abp_attribute28 => p_abp_attribute28
483 ,p_abp_attribute29 => p_abp_attribute29
484 ,p_abp_attribute30 => p_abp_attribute30
485 ,p_object_version_number => l_object_version_number
486 ,p_effective_date => trunc(p_effective_date)
487 ,p_datetrack_mode => p_datetrack_mode
488 );
489 exception
490 when hr_api.cannot_find_prog_unit then
491 hr_api.cannot_find_prog_unit_error
492 (p_module_name => 'UPDATE_Aplcn_To_Benefit_Pool'
493 ,p_hook_type => 'AP'
494 );
495 --
496 -- End of API User Hook for the after hook of update_Aplcn_To_Benefit_Pool
497 --
498 end;
499 --
500 hr_utility.set_location(l_proc, 60);
501 --
502 -- When in validation only mode raise the Validate_Enabled exception
503 --
504 if p_validate then
505 raise hr_api.validate_enabled;
506 end if;
507 --
508 -- Set all output arguments
509 --
510 p_object_version_number := l_object_version_number;
511 p_effective_start_date := l_effective_start_date;
512 p_effective_end_date := l_effective_end_date;
513 --
514 hr_utility.set_location(' Leaving:'||l_proc, 70);
515 --
516 exception
517 --
518 when hr_api.validate_enabled then
519 --
520 -- As the Validate_Enabled exception has been raised
521 -- we must rollback to the savepoint
522 --
523 ROLLBACK TO update_Aplcn_To_Benefit_Pool;
524 --
525 -- Only set output warning arguments
526 -- (Any key or derived arguments must be set to null
527 -- when validation only mode is being used.)
528 --
529 hr_utility.set_location(' Leaving:'||l_proc, 80);
530 --
531 when others then
532 --
533 -- A validation or unexpected error has occured
534 --
535 ROLLBACK TO update_Aplcn_To_Benefit_Pool;
536 raise;
537 --
538 end update_Aplcn_To_Benefit_Pool;
539 -- ----------------------------------------------------------------------------
540 -- |------------------------< delete_Aplcn_To_Benefit_Pool >----------------------|
541 -- ----------------------------------------------------------------------------
542 --
543 procedure delete_Aplcn_To_Benefit_Pool
544 (p_validate in boolean default false
545 ,p_aplcn_to_bnft_pool_id in number
546 ,p_effective_start_date out nocopy date
547 ,p_effective_end_date out nocopy date
548 ,p_object_version_number in out nocopy number
549 ,p_effective_date in date
550 ,p_datetrack_mode in varchar2
551 ) is
552 --
553 -- Declare cursors and local variables
554 --
555 l_proc varchar2(72) := g_package||'update_Aplcn_To_Benefit_Pool';
556 l_object_version_number ben_aplcn_to_bnft_pool_f.object_version_number%TYPE;
557 l_effective_start_date ben_aplcn_to_bnft_pool_f.effective_start_date%TYPE;
558 l_effective_end_date ben_aplcn_to_bnft_pool_f.effective_end_date%TYPE;
559 --
560 begin
561 --
562 hr_utility.set_location('Entering:'|| l_proc, 10);
563 --
564 -- Issue a savepoint if operating in validation only mode
565 --
566 savepoint delete_Aplcn_To_Benefit_Pool;
567 --
568 hr_utility.set_location(l_proc, 20);
569 --
570 -- Process Logic
571 --
572 l_object_version_number := p_object_version_number;
573 --
574 --
575 begin
576 --
577 -- Start of API User Hook for the before hook of delete_Aplcn_To_Benefit_Pool
578 --
579 ben_Aplcn_To_Benefit_Pool_bk3.delete_Aplcn_To_Benefit_Pool_b
580 (
581 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
582 ,p_object_version_number => p_object_version_number
583 ,p_effective_date => trunc(p_effective_date)
584 ,p_datetrack_mode => p_datetrack_mode
585 );
586 exception
587 when hr_api.cannot_find_prog_unit then
588 hr_api.cannot_find_prog_unit_error
589 (p_module_name => 'DELETE_Aplcn_To_Benefit_Pool'
590 ,p_hook_type => 'BP'
591 );
592 --
593 -- End of API User Hook for the before hook of delete_Aplcn_To_Benefit_Pool
594 --
595 end;
596 --
597 ben_abp_del.del
598 (
599 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
600 ,p_effective_start_date => l_effective_start_date
601 ,p_effective_end_date => l_effective_end_date
602 ,p_object_version_number => l_object_version_number
603 ,p_effective_date => p_effective_date
604 ,p_datetrack_mode => p_datetrack_mode
605 );
606 --
607 begin
608 --
609 -- Start of API User Hook for the after hook of delete_Aplcn_To_Benefit_Pool
610 --
611 ben_Aplcn_To_Benefit_Pool_bk3.delete_Aplcn_To_Benefit_Pool_a
612 (
613 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
614 ,p_effective_start_date => l_effective_start_date
615 ,p_effective_end_date => l_effective_end_date
616 ,p_object_version_number => l_object_version_number
617 ,p_effective_date => trunc(p_effective_date)
618 ,p_datetrack_mode => p_datetrack_mode
619 );
620 exception
621 when hr_api.cannot_find_prog_unit then
622 hr_api.cannot_find_prog_unit_error
623 (p_module_name => 'DELETE_Aplcn_To_Benefit_Pool'
624 ,p_hook_type => 'AP'
625 );
626 --
627 -- End of API User Hook for the after hook of delete_Aplcn_To_Benefit_Pool
628 --
629 end;
630 --
631 hr_utility.set_location(l_proc, 60);
632 --
633 -- When in validation only mode raise the Validate_Enabled exception
634 --
635 if p_validate then
636 raise hr_api.validate_enabled;
637 end if;
638 --
639 hr_utility.set_location(' Leaving:'||l_proc, 70);
640 --
641 exception
642 --
643 when hr_api.validate_enabled then
644 --
645 -- As the Validate_Enabled exception has been raised
646 -- we must rollback to the savepoint
647 --
648 ROLLBACK TO delete_Aplcn_To_Benefit_Pool;
649 --
650 -- Only set output warning arguments
651 -- (Any key or derived arguments must be set to null
652 -- when validation only mode is being used.)
653 --
654 p_effective_start_date := null;
655 p_effective_end_date := null;
656 --
657 when others then
658 --
659 -- A validation or unexpected error has occured
660 --
661 ROLLBACK TO delete_Aplcn_To_Benefit_Pool;
662 raise;
663 --
664 end delete_Aplcn_To_Benefit_Pool;
665 --
666 -- ----------------------------------------------------------------------------
667 -- |-------------------------------< lck >------------------------------------|
668 -- ----------------------------------------------------------------------------
669 --
670 procedure lck
671 (
672 p_aplcn_to_bnft_pool_id in number
673 ,p_object_version_number in number
674 ,p_effective_date in date
675 ,p_datetrack_mode in varchar2
676 ,p_validation_start_date out nocopy date
677 ,p_validation_end_date out nocopy date
678 ) is
679 --
680 --
681 -- Declare cursors and local variables
682 --
683 l_proc varchar2(72) := g_package||'lck';
684 l_validation_start_date date;
685 l_validation_end_date date;
686 --
687 begin
688 --
689 hr_utility.set_location('Entering:'|| l_proc, 10);
690 --
691 ben_abp_shd.lck
692 (
693 p_aplcn_to_bnft_pool_id => p_aplcn_to_bnft_pool_id
694 ,p_validation_start_date => l_validation_start_date
695 ,p_validation_end_date => l_validation_end_date
696 ,p_object_version_number => p_object_version_number
697 ,p_effective_date => p_effective_date
698 ,p_datetrack_mode => p_datetrack_mode
699 );
700 --
701 hr_utility.set_location(' Leaving:'||l_proc, 70);
702 --
703 end lck;
704 --
705 end ben_Aplcn_To_Benefit_Pool_api;