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