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