[Home] [Help]
PACKAGE BODY: APPS.BEN_BENEFITS_GROUP_API
Source
1 Package Body ben_Benefits_Group_api as
2 /* $Header: bebngapi.pkb 115.4 2002/12/16 09:35:56 hnarayan ship $ */
3 --
4 -- Package Variables
5 --
6 g_package varchar2(33) := ' ben_Benefits_Group_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_Benefits_Group >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_Benefits_Group
13 (p_validate in boolean default false
14 ,p_benfts_grp_id out nocopy number
15 ,p_business_group_id in number default null
16 ,p_name in varchar2 default null
17 ,p_bng_desc in varchar2 default null
18 ,p_bng_attribute_category in varchar2 default null
19 ,p_bng_attribute1 in varchar2 default null
20 ,p_bng_attribute2 in varchar2 default null
21 ,p_bng_attribute3 in varchar2 default null
22 ,p_bng_attribute4 in varchar2 default null
23 ,p_bng_attribute5 in varchar2 default null
24 ,p_bng_attribute6 in varchar2 default null
25 ,p_bng_attribute7 in varchar2 default null
26 ,p_bng_attribute8 in varchar2 default null
27 ,p_bng_attribute9 in varchar2 default null
28 ,p_bng_attribute10 in varchar2 default null
29 ,p_bng_attribute11 in varchar2 default null
30 ,p_bng_attribute12 in varchar2 default null
31 ,p_bng_attribute13 in varchar2 default null
32 ,p_bng_attribute14 in varchar2 default null
33 ,p_bng_attribute15 in varchar2 default null
34 ,p_bng_attribute16 in varchar2 default null
35 ,p_bng_attribute17 in varchar2 default null
36 ,p_bng_attribute18 in varchar2 default null
37 ,p_bng_attribute19 in varchar2 default null
38 ,p_bng_attribute20 in varchar2 default null
39 ,p_bng_attribute21 in varchar2 default null
40 ,p_bng_attribute22 in varchar2 default null
41 ,p_bng_attribute23 in varchar2 default null
42 ,p_bng_attribute24 in varchar2 default null
43 ,p_bng_attribute25 in varchar2 default null
44 ,p_bng_attribute26 in varchar2 default null
45 ,p_bng_attribute27 in varchar2 default null
46 ,p_bng_attribute28 in varchar2 default null
47 ,p_bng_attribute29 in varchar2 default null
48 ,p_bng_attribute30 in varchar2 default null
49 ,p_object_version_number out nocopy number
50 ) is
51 --
52 -- Declare cursors and local variables
53 --
54 l_benfts_grp_id ben_benfts_grp.benfts_grp_id%TYPE;
55 l_proc varchar2(72) := g_package||'create_Benefits_Group';
56 l_object_version_number ben_benfts_grp.object_version_number%TYPE;
57 --
58 begin
59 --
60 hr_utility.set_location('Entering:'|| l_proc, 10);
61 --
62 -- Issue a savepoint if operating in validation only mode
63 --
64 savepoint create_Benefits_Group;
65 --
66 hr_utility.set_location(l_proc, 20);
67 --
68 -- Process Logic
69 --
70 begin
71 --
72 -- Start of API User Hook for the before hook of create_Benefits_Group
73 --
74 ben_Benefits_Group_bk1.create_Benefits_Group_b
75 (
76 p_business_group_id => p_business_group_id
77 ,p_name => p_name
78 ,p_bng_desc => p_bng_desc
79 ,p_bng_attribute_category => p_bng_attribute_category
80 ,p_bng_attribute1 => p_bng_attribute1
81 ,p_bng_attribute2 => p_bng_attribute2
82 ,p_bng_attribute3 => p_bng_attribute3
83 ,p_bng_attribute4 => p_bng_attribute4
84 ,p_bng_attribute5 => p_bng_attribute5
85 ,p_bng_attribute6 => p_bng_attribute6
86 ,p_bng_attribute7 => p_bng_attribute7
87 ,p_bng_attribute8 => p_bng_attribute8
88 ,p_bng_attribute9 => p_bng_attribute9
89 ,p_bng_attribute10 => p_bng_attribute10
90 ,p_bng_attribute11 => p_bng_attribute11
91 ,p_bng_attribute12 => p_bng_attribute12
92 ,p_bng_attribute13 => p_bng_attribute13
93 ,p_bng_attribute14 => p_bng_attribute14
94 ,p_bng_attribute15 => p_bng_attribute15
95 ,p_bng_attribute16 => p_bng_attribute16
96 ,p_bng_attribute17 => p_bng_attribute17
97 ,p_bng_attribute18 => p_bng_attribute18
98 ,p_bng_attribute19 => p_bng_attribute19
99 ,p_bng_attribute20 => p_bng_attribute20
100 ,p_bng_attribute21 => p_bng_attribute21
101 ,p_bng_attribute22 => p_bng_attribute22
102 ,p_bng_attribute23 => p_bng_attribute23
103 ,p_bng_attribute24 => p_bng_attribute24
104 ,p_bng_attribute25 => p_bng_attribute25
105 ,p_bng_attribute26 => p_bng_attribute26
106 ,p_bng_attribute27 => p_bng_attribute27
107 ,p_bng_attribute28 => p_bng_attribute28
108 ,p_bng_attribute29 => p_bng_attribute29
109 ,p_bng_attribute30 => p_bng_attribute30
110 );
111 exception
112 when hr_api.cannot_find_prog_unit then
113 hr_api.cannot_find_prog_unit_error
114 (
115 p_module_name => 'CREATE_Benefits_Group'
116 ,p_hook_type => 'BP'
117 );
118 --
119 -- End of API User Hook for the before hook of create_Benefits_Group
120 --
121 end;
122 --
123 ben_bng_ins.ins
124 (
125 p_benfts_grp_id => l_benfts_grp_id
126 ,p_business_group_id => p_business_group_id
127 ,p_name => p_name
128 ,p_bng_desc => p_bng_desc
129 ,p_bng_attribute_category => p_bng_attribute_category
130 ,p_bng_attribute1 => p_bng_attribute1
131 ,p_bng_attribute2 => p_bng_attribute2
132 ,p_bng_attribute3 => p_bng_attribute3
133 ,p_bng_attribute4 => p_bng_attribute4
134 ,p_bng_attribute5 => p_bng_attribute5
135 ,p_bng_attribute6 => p_bng_attribute6
136 ,p_bng_attribute7 => p_bng_attribute7
137 ,p_bng_attribute8 => p_bng_attribute8
138 ,p_bng_attribute9 => p_bng_attribute9
139 ,p_bng_attribute10 => p_bng_attribute10
140 ,p_bng_attribute11 => p_bng_attribute11
141 ,p_bng_attribute12 => p_bng_attribute12
142 ,p_bng_attribute13 => p_bng_attribute13
143 ,p_bng_attribute14 => p_bng_attribute14
144 ,p_bng_attribute15 => p_bng_attribute15
145 ,p_bng_attribute16 => p_bng_attribute16
146 ,p_bng_attribute17 => p_bng_attribute17
147 ,p_bng_attribute18 => p_bng_attribute18
148 ,p_bng_attribute19 => p_bng_attribute19
149 ,p_bng_attribute20 => p_bng_attribute20
150 ,p_bng_attribute21 => p_bng_attribute21
151 ,p_bng_attribute22 => p_bng_attribute22
152 ,p_bng_attribute23 => p_bng_attribute23
153 ,p_bng_attribute24 => p_bng_attribute24
154 ,p_bng_attribute25 => p_bng_attribute25
155 ,p_bng_attribute26 => p_bng_attribute26
156 ,p_bng_attribute27 => p_bng_attribute27
157 ,p_bng_attribute28 => p_bng_attribute28
158 ,p_bng_attribute29 => p_bng_attribute29
159 ,p_bng_attribute30 => p_bng_attribute30
160 ,p_object_version_number => l_object_version_number
161 );
162 --
163 begin
164 --
165 -- Start of API User Hook for the after hook of create_Benefits_Group
166 --
167 ben_Benefits_Group_bk1.create_Benefits_Group_a
168 (
169 p_benfts_grp_id => l_benfts_grp_id
170 ,p_business_group_id => p_business_group_id
171 ,p_name => p_name
172 ,p_bng_desc => p_bng_desc
173 ,p_bng_attribute_category => p_bng_attribute_category
174 ,p_bng_attribute1 => p_bng_attribute1
175 ,p_bng_attribute2 => p_bng_attribute2
176 ,p_bng_attribute3 => p_bng_attribute3
177 ,p_bng_attribute4 => p_bng_attribute4
178 ,p_bng_attribute5 => p_bng_attribute5
179 ,p_bng_attribute6 => p_bng_attribute6
180 ,p_bng_attribute7 => p_bng_attribute7
181 ,p_bng_attribute8 => p_bng_attribute8
182 ,p_bng_attribute9 => p_bng_attribute9
183 ,p_bng_attribute10 => p_bng_attribute10
184 ,p_bng_attribute11 => p_bng_attribute11
185 ,p_bng_attribute12 => p_bng_attribute12
186 ,p_bng_attribute13 => p_bng_attribute13
187 ,p_bng_attribute14 => p_bng_attribute14
188 ,p_bng_attribute15 => p_bng_attribute15
189 ,p_bng_attribute16 => p_bng_attribute16
190 ,p_bng_attribute17 => p_bng_attribute17
191 ,p_bng_attribute18 => p_bng_attribute18
192 ,p_bng_attribute19 => p_bng_attribute19
193 ,p_bng_attribute20 => p_bng_attribute20
194 ,p_bng_attribute21 => p_bng_attribute21
195 ,p_bng_attribute22 => p_bng_attribute22
196 ,p_bng_attribute23 => p_bng_attribute23
197 ,p_bng_attribute24 => p_bng_attribute24
198 ,p_bng_attribute25 => p_bng_attribute25
199 ,p_bng_attribute26 => p_bng_attribute26
200 ,p_bng_attribute27 => p_bng_attribute27
201 ,p_bng_attribute28 => p_bng_attribute28
202 ,p_bng_attribute29 => p_bng_attribute29
203 ,p_bng_attribute30 => p_bng_attribute30
204 ,p_object_version_number => l_object_version_number
205 );
206 exception
207 when hr_api.cannot_find_prog_unit then
208 hr_api.cannot_find_prog_unit_error
209 (p_module_name => 'CREATE_Benefits_Group'
210 ,p_hook_type => 'AP'
211 );
212 --
213 -- End of API User Hook for the after hook of create_Benefits_Group
214 --
215 end;
216 --
217 hr_utility.set_location(l_proc, 60);
218 --
219 -- When in validation only mode raise the Validate_Enabled exception
220 --
221 if p_validate then
222 raise hr_api.validate_enabled;
223 end if;
224 --
225 -- Set all output arguments
226 --
227 p_benfts_grp_id := l_benfts_grp_id;
228 p_object_version_number := l_object_version_number;
229 --
230 hr_utility.set_location(' Leaving:'||l_proc, 70);
231 --
232 exception
233 --
234 when hr_api.validate_enabled then
235 --
236 -- As the Validate_Enabled exception has been raised
237 -- we must rollback to the savepoint
238 --
239 ROLLBACK TO create_Benefits_Group;
240 --
241 -- Only set output warning arguments
242 -- (Any key or derived arguments must be set to null
243 -- when validation only mode is being used.)
244 --
245 p_benfts_grp_id := null;
246 p_object_version_number := null;
247 hr_utility.set_location(' Leaving:'||l_proc, 80);
248 --
249 when others then
250 --
251 -- A validation or unexpected error has occured
252 --
253 ROLLBACK TO create_Benefits_Group;
254 p_benfts_grp_id := null;
255 p_object_version_number := null;
256 raise;
257 --
258 end create_Benefits_Group;
259 -- ----------------------------------------------------------------------------
260 -- |------------------------< update_Benefits_Group >--- ------------------|
261 -- ----------------------------------------------------------------------------
262 --
263 procedure update_Benefits_Group
264 (p_validate in boolean default false
265 ,p_benfts_grp_id in number
266 ,p_business_group_id in number default hr_api.g_number
267 ,p_name in varchar2 default hr_api.g_varchar2
268 ,p_bng_desc in varchar2 default hr_api.g_varchar2
269 ,p_bng_attribute_category in varchar2 default hr_api.g_varchar2
273 ,p_bng_attribute4 in varchar2 default hr_api.g_varchar2
270 ,p_bng_attribute1 in varchar2 default hr_api.g_varchar2
271 ,p_bng_attribute2 in varchar2 default hr_api.g_varchar2
272 ,p_bng_attribute3 in varchar2 default hr_api.g_varchar2
274 ,p_bng_attribute5 in varchar2 default hr_api.g_varchar2
275 ,p_bng_attribute6 in varchar2 default hr_api.g_varchar2
276 ,p_bng_attribute7 in varchar2 default hr_api.g_varchar2
277 ,p_bng_attribute8 in varchar2 default hr_api.g_varchar2
278 ,p_bng_attribute9 in varchar2 default hr_api.g_varchar2
279 ,p_bng_attribute10 in varchar2 default hr_api.g_varchar2
280 ,p_bng_attribute11 in varchar2 default hr_api.g_varchar2
281 ,p_bng_attribute12 in varchar2 default hr_api.g_varchar2
282 ,p_bng_attribute13 in varchar2 default hr_api.g_varchar2
283 ,p_bng_attribute14 in varchar2 default hr_api.g_varchar2
284 ,p_bng_attribute15 in varchar2 default hr_api.g_varchar2
285 ,p_bng_attribute16 in varchar2 default hr_api.g_varchar2
286 ,p_bng_attribute17 in varchar2 default hr_api.g_varchar2
287 ,p_bng_attribute18 in varchar2 default hr_api.g_varchar2
288 ,p_bng_attribute19 in varchar2 default hr_api.g_varchar2
289 ,p_bng_attribute20 in varchar2 default hr_api.g_varchar2
290 ,p_bng_attribute21 in varchar2 default hr_api.g_varchar2
291 ,p_bng_attribute22 in varchar2 default hr_api.g_varchar2
292 ,p_bng_attribute23 in varchar2 default hr_api.g_varchar2
293 ,p_bng_attribute24 in varchar2 default hr_api.g_varchar2
294 ,p_bng_attribute25 in varchar2 default hr_api.g_varchar2
295 ,p_bng_attribute26 in varchar2 default hr_api.g_varchar2
296 ,p_bng_attribute27 in varchar2 default hr_api.g_varchar2
297 ,p_bng_attribute28 in varchar2 default hr_api.g_varchar2
298 ,p_bng_attribute29 in varchar2 default hr_api.g_varchar2
299 ,p_bng_attribute30 in varchar2 default hr_api.g_varchar2
300 ,p_object_version_number in out nocopy number
301 ) is
302 --
303 -- Declare cursors and local variables
304 --
305 l_proc varchar2(72) := g_package||'update_Benefits_Group';
306 l_object_version_number ben_benfts_grp.object_version_number%TYPE;
307 --
308 begin
309 --
310 hr_utility.set_location('Entering:'|| l_proc, 10);
311 --
312 -- Issue a savepoint if operating in validation only mode
313 --
314 savepoint update_Benefits_Group;
315 --
316 hr_utility.set_location(l_proc, 20);
317 --
318 -- Process Logic
319 --
320 l_object_version_number := p_object_version_number;
321 --
322 begin
323 --
324 -- Start of API User Hook for the before hook of update_Benefits_Group
325 --
326 ben_Benefits_Group_bk2.update_Benefits_Group_b
327 (
328 p_benfts_grp_id => p_benfts_grp_id
329 ,p_business_group_id => p_business_group_id
333 ,p_bng_attribute1 => p_bng_attribute1
330 ,p_name => p_name
331 ,p_bng_desc => p_bng_desc
332 ,p_bng_attribute_category => p_bng_attribute_category
334 ,p_bng_attribute2 => p_bng_attribute2
335 ,p_bng_attribute3 => p_bng_attribute3
336 ,p_bng_attribute4 => p_bng_attribute4
337 ,p_bng_attribute5 => p_bng_attribute5
338 ,p_bng_attribute6 => p_bng_attribute6
339 ,p_bng_attribute7 => p_bng_attribute7
340 ,p_bng_attribute8 => p_bng_attribute8
341 ,p_bng_attribute9 => p_bng_attribute9
342 ,p_bng_attribute10 => p_bng_attribute10
343 ,p_bng_attribute11 => p_bng_attribute11
344 ,p_bng_attribute12 => p_bng_attribute12
345 ,p_bng_attribute13 => p_bng_attribute13
346 ,p_bng_attribute14 => p_bng_attribute14
347 ,p_bng_attribute15 => p_bng_attribute15
348 ,p_bng_attribute16 => p_bng_attribute16
349 ,p_bng_attribute17 => p_bng_attribute17
350 ,p_bng_attribute18 => p_bng_attribute18
351 ,p_bng_attribute19 => p_bng_attribute19
352 ,p_bng_attribute20 => p_bng_attribute20
353 ,p_bng_attribute21 => p_bng_attribute21
354 ,p_bng_attribute22 => p_bng_attribute22
355 ,p_bng_attribute23 => p_bng_attribute23
356 ,p_bng_attribute24 => p_bng_attribute24
357 ,p_bng_attribute25 => p_bng_attribute25
358 ,p_bng_attribute26 => p_bng_attribute26
359 ,p_bng_attribute27 => p_bng_attribute27
360 ,p_bng_attribute28 => p_bng_attribute28
361 ,p_bng_attribute29 => p_bng_attribute29
362 ,p_bng_attribute30 => p_bng_attribute30
363 ,p_object_version_number => p_object_version_number
364 );
365 exception
366 when hr_api.cannot_find_prog_unit then
367 hr_api.cannot_find_prog_unit_error
368 (p_module_name => 'UPDATE_Benefits_Group'
369 ,p_hook_type => 'BP'
370 );
371 --
372 -- End of API User Hook for the before hook of update_Benefits_Group
373 --
374 end;
375 --
376 ben_bng_upd.upd
377 (
378 p_benfts_grp_id => p_benfts_grp_id
379 ,p_business_group_id => p_business_group_id
380 ,p_name => p_name
381 ,p_bng_desc => p_bng_desc
382 ,p_bng_attribute_category => p_bng_attribute_category
383 ,p_bng_attribute1 => p_bng_attribute1
384 ,p_bng_attribute2 => p_bng_attribute2
385 ,p_bng_attribute3 => p_bng_attribute3
386 ,p_bng_attribute4 => p_bng_attribute4
387 ,p_bng_attribute5 => p_bng_attribute5
388 ,p_bng_attribute6 => p_bng_attribute6
389 ,p_bng_attribute7 => p_bng_attribute7
390 ,p_bng_attribute8 => p_bng_attribute8
391 ,p_bng_attribute9 => p_bng_attribute9
395 ,p_bng_attribute13 => p_bng_attribute13
392 ,p_bng_attribute10 => p_bng_attribute10
393 ,p_bng_attribute11 => p_bng_attribute11
394 ,p_bng_attribute12 => p_bng_attribute12
396 ,p_bng_attribute14 => p_bng_attribute14
397 ,p_bng_attribute15 => p_bng_attribute15
398 ,p_bng_attribute16 => p_bng_attribute16
399 ,p_bng_attribute17 => p_bng_attribute17
400 ,p_bng_attribute18 => p_bng_attribute18
401 ,p_bng_attribute19 => p_bng_attribute19
402 ,p_bng_attribute20 => p_bng_attribute20
403 ,p_bng_attribute21 => p_bng_attribute21
404 ,p_bng_attribute22 => p_bng_attribute22
405 ,p_bng_attribute23 => p_bng_attribute23
406 ,p_bng_attribute24 => p_bng_attribute24
407 ,p_bng_attribute25 => p_bng_attribute25
408 ,p_bng_attribute26 => p_bng_attribute26
409 ,p_bng_attribute27 => p_bng_attribute27
410 ,p_bng_attribute28 => p_bng_attribute28
411 ,p_bng_attribute29 => p_bng_attribute29
412 ,p_bng_attribute30 => p_bng_attribute30
413 ,p_object_version_number => l_object_version_number
414 );
415 --
416 begin
417 --
418 -- Start of API User Hook for the after hook of update_Benefits_Group
419 --
420 ben_Benefits_Group_bk2.update_Benefits_Group_a
421 (
422 p_benfts_grp_id => p_benfts_grp_id
423 ,p_business_group_id => p_business_group_id
424 ,p_name => p_name
425 ,p_bng_desc => p_bng_desc
426 ,p_bng_attribute_category => p_bng_attribute_category
427 ,p_bng_attribute1 => p_bng_attribute1
428 ,p_bng_attribute2 => p_bng_attribute2
429 ,p_bng_attribute3 => p_bng_attribute3
430 ,p_bng_attribute4 => p_bng_attribute4
431 ,p_bng_attribute5 => p_bng_attribute5
432 ,p_bng_attribute6 => p_bng_attribute6
433 ,p_bng_attribute7 => p_bng_attribute7
434 ,p_bng_attribute8 => p_bng_attribute8
435 ,p_bng_attribute9 => p_bng_attribute9
436 ,p_bng_attribute10 => p_bng_attribute10
437 ,p_bng_attribute11 => p_bng_attribute11
438 ,p_bng_attribute12 => p_bng_attribute12
439 ,p_bng_attribute13 => p_bng_attribute13
440 ,p_bng_attribute14 => p_bng_attribute14
441 ,p_bng_attribute15 => p_bng_attribute15
442 ,p_bng_attribute16 => p_bng_attribute16
443 ,p_bng_attribute17 => p_bng_attribute17
444 ,p_bng_attribute18 => p_bng_attribute18
448 ,p_bng_attribute22 => p_bng_attribute22
445 ,p_bng_attribute19 => p_bng_attribute19
446 ,p_bng_attribute20 => p_bng_attribute20
447 ,p_bng_attribute21 => p_bng_attribute21
449 ,p_bng_attribute23 => p_bng_attribute23
450 ,p_bng_attribute24 => p_bng_attribute24
451 ,p_bng_attribute25 => p_bng_attribute25
452 ,p_bng_attribute26 => p_bng_attribute26
453 ,p_bng_attribute27 => p_bng_attribute27
454 ,p_bng_attribute28 => p_bng_attribute28
455 ,p_bng_attribute29 => p_bng_attribute29
456 ,p_bng_attribute30 => p_bng_attribute30
457 ,p_object_version_number => l_object_version_number
458 );
459 exception
460 when hr_api.cannot_find_prog_unit then
461 hr_api.cannot_find_prog_unit_error
462 (p_module_name => 'UPDATE_Benefits_Group'
463 ,p_hook_type => 'AP'
464 );
465 --
466 -- End of API User Hook for the after hook of update_Benefits_Group
467 --
468 end;
469 --
470 hr_utility.set_location(l_proc, 60);
471 --
472 -- When in validation only mode raise the Validate_Enabled exception
473 --
474 if p_validate then
475 raise hr_api.validate_enabled;
476 end if;
477 --
478 -- Set all output arguments
479 --
480 p_object_version_number := l_object_version_number;
481 --
482 hr_utility.set_location(' Leaving:'||l_proc, 70);
483 --
484 exception
485 --
486 when hr_api.validate_enabled then
487 --
488 -- As the Validate_Enabled exception has been raised
489 -- we must rollback to the savepoint
490 --
491 ROLLBACK TO update_Benefits_Group;
492 --
493 -- Only set output warning arguments
494 -- (Any key or derived arguments must be set to null
495 -- when validation only mode is being used.)
496 --
497 hr_utility.set_location(' Leaving:'||l_proc, 80);
498 --
499 when others then
500 --
501 -- A validation or unexpected error has occured
502 --
503 ROLLBACK TO update_Benefits_Group;
504 raise;
505 --
506 end update_Benefits_Group;
507 -- ----------------------------------------------------------------------------
508 -- |------------------------< delete_Benefits_Group >----------------------|
509 -- ----------------------------------------------------------------------------
510 --
511 procedure delete_Benefits_Group
512 (p_validate in boolean default false
513 ,p_benfts_grp_id in number
514 ,p_object_version_number in out nocopy number
515 ) is
516 --
517 -- Declare cursors and local variables
521 --
518 --
519 l_proc varchar2(72) := g_package||'update_Benefits_Group';
520 l_object_version_number ben_benfts_grp.object_version_number%TYPE;
522 begin
523 --
524 hr_utility.set_location('Entering:'|| l_proc, 10);
525 --
526 -- Issue a savepoint if operating in validation only mode
527 --
528 savepoint delete_Benefits_Group;
529 --
530 hr_utility.set_location(l_proc, 20);
531 --
532 -- Process Logic
533 --
534 l_object_version_number := p_object_version_number;
535 --
536 --
537 begin
538 --
539 -- Start of API User Hook for the before hook of delete_Benefits_Group
540 --
541 ben_Benefits_Group_bk3.delete_Benefits_Group_b
542 (
543 p_benfts_grp_id => p_benfts_grp_id
544 ,p_object_version_number => p_object_version_number
545 );
546 exception
547 when hr_api.cannot_find_prog_unit then
548 hr_api.cannot_find_prog_unit_error
549 (p_module_name => 'DELETE_Benefits_Group'
550 ,p_hook_type => 'BP'
551 );
552 --
553 -- End of API User Hook for the before hook of delete_Benefits_Group
554 --
555 end;
556 --
557 ben_bng_del.del
558 (
559 p_benfts_grp_id => p_benfts_grp_id
560 ,p_object_version_number => l_object_version_number
561 );
562 --
563 begin
564 --
565 -- Start of API User Hook for the after hook of delete_Benefits_Group
566 --
567 ben_Benefits_Group_bk3.delete_Benefits_Group_a
568 (
569 p_benfts_grp_id => p_benfts_grp_id
570 ,p_object_version_number => l_object_version_number
571 );
572 exception
573 when hr_api.cannot_find_prog_unit then
574 hr_api.cannot_find_prog_unit_error
575 (p_module_name => 'DELETE_Benefits_Group'
576 ,p_hook_type => 'AP'
577 );
578 --
579 -- End of API User Hook for the after hook of delete_Benefits_Group
580 --
581 end;
582 --
583 hr_utility.set_location(l_proc, 60);
584 --
585 -- When in validation only mode raise the Validate_Enabled exception
586 --
587 if p_validate then
588 raise hr_api.validate_enabled;
589 end if;
590 --
591 hr_utility.set_location(' Leaving:'||l_proc, 70);
592 --
593 exception
594 --
595 when hr_api.validate_enabled then
596 --
597 -- As the Validate_Enabled exception has been raised
598 -- we must rollback to the savepoint
599 --
600 ROLLBACK TO delete_Benefits_Group;
601 --
602 -- Only set output warning arguments
603 -- (Any key or derived arguments must be set to null
604 -- when validation only mode is being used.)
605 --
606 --
607 when others then
608 --
609 -- A validation or unexpected error has occured
610 --
611 ROLLBACK TO delete_Benefits_Group;
612 raise;
613 --
614 end delete_Benefits_Group;
615 --
616 -- ----------------------------------------------------------------------------
617 -- |-------------------------------< lck >------------------------------------|
618 -- ----------------------------------------------------------------------------
619 --
620 procedure lck
621 (
622 p_benfts_grp_id in number
623 ,p_object_version_number in number
624 ) is
625 --
626 --
627 -- Declare cursors and local variables
628 --
629 l_proc varchar2(72) := g_package||'lck';
633 hr_utility.set_location('Entering:'|| l_proc, 10);
630 --
631 begin
632 --
634 --
635 ben_bng_shd.lck
636 (
637 p_benfts_grp_id => p_benfts_grp_id
638 ,p_object_version_number => p_object_version_number
639 );
640 --
641 hr_utility.set_location(' Leaving:'||l_proc, 70);
642 --
643 end lck;
644 --
645 end ben_Benefits_Group_api;