[Home] [Help]
PACKAGE BODY: APPS.BEN_WV_PRTN_RSN_CTFN_PTIP_API
Source
1 Package Body ben_wv_prtn_rsn_ctfn_ptip_api as
2 /* $Header: bewctapi.pkb 120.0 2005/05/28 12:15:53 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package varchar2(33) := ' ben_wv_prtn_rsn_ctfn_ptip_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_wv_prtn_rsn_ctfn_ptip >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_wv_prtn_rsn_ctfn_ptip
13 (p_validate in boolean default false
14 ,p_wv_prtn_rsn_ctfn_ptip_id out nocopy number
15 ,p_effective_start_date out nocopy date
16 ,p_effective_end_date out nocopy date
17 ,p_wv_prtn_ctfn_cd in varchar2 default null
18 ,p_wv_prtn_rsn_ptip_id in number default null
19 ,p_lack_ctfn_sspnd_wvr_flag in varchar2 default null
20 ,p_rqd_flag in varchar2 default null
21 ,p_ctfn_rqd_when_rl in number default null
22 ,p_pfd_flag in varchar2 default null
23 ,p_wv_prtn_ctfn_typ_cd in varchar2 default null
24 ,p_business_group_id in number default null
25 ,p_wct_attribute_category in varchar2 default null
26 ,p_wct_attribute1 in varchar2 default null
27 ,p_wct_attribute2 in varchar2 default null
28 ,p_wct_attribute3 in varchar2 default null
29 ,p_wct_attribute4 in varchar2 default null
30 ,p_wct_attribute5 in varchar2 default null
31 ,p_wct_attribute6 in varchar2 default null
32 ,p_wct_attribute7 in varchar2 default null
33 ,p_wct_attribute8 in varchar2 default null
34 ,p_wct_attribute9 in varchar2 default null
35 ,p_wct_attribute10 in varchar2 default null
36 ,p_wct_attribute11 in varchar2 default null
37 ,p_wct_attribute12 in varchar2 default null
38 ,p_wct_attribute13 in varchar2 default null
39 ,p_wct_attribute14 in varchar2 default null
40 ,p_wct_attribute15 in varchar2 default null
41 ,p_wct_attribute16 in varchar2 default null
42 ,p_wct_attribute17 in varchar2 default null
43 ,p_wct_attribute18 in varchar2 default null
44 ,p_wct_attribute19 in varchar2 default null
45 ,p_wct_attribute20 in varchar2 default null
46 ,p_wct_attribute21 in varchar2 default null
47 ,p_wct_attribute22 in varchar2 default null
48 ,p_wct_attribute23 in varchar2 default null
49 ,p_wct_attribute24 in varchar2 default null
50 ,p_wct_attribute25 in varchar2 default null
51 ,p_wct_attribute26 in varchar2 default null
52 ,p_wct_attribute27 in varchar2 default null
53 ,p_wct_attribute28 in varchar2 default null
54 ,p_wct_attribute29 in varchar2 default null
55 ,p_wct_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_wv_prtn_rsn_ctfn_ptip_id ben_wv_prtn_rsn_ctfn_ptip_f.wv_prtn_rsn_ctfn_ptip_id%TYPE;
63 l_effective_start_date ben_wv_prtn_rsn_ctfn_ptip_f.effective_start_date%TYPE;
64 l_effective_end_date ben_wv_prtn_rsn_ctfn_ptip_f.effective_end_date%TYPE;
65 l_proc varchar2(72) := g_package||'create_wv_prtn_rsn_ctfn_ptip';
66 l_object_version_number ben_wv_prtn_rsn_ctfn_ptip_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_wv_prtn_rsn_ctfn_ptip;
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_wv_prtn_rsn_ctfn_ptip
83 --
84 ben_wv_prtn_rsn_ctfn_ptip_bk1.create_wv_prtn_rsn_ctfn_ptip_b
85 (
86 p_wv_prtn_ctfn_cd => p_wv_prtn_ctfn_cd
87 ,p_wv_prtn_rsn_ptip_id => p_wv_prtn_rsn_ptip_id
88 ,p_lack_ctfn_sspnd_wvr_flag => p_lack_ctfn_sspnd_wvr_flag
89 ,p_rqd_flag => p_rqd_flag
90 ,p_ctfn_rqd_when_rl => p_ctfn_rqd_when_rl
91 ,p_pfd_flag => p_pfd_flag
92 ,p_wv_prtn_ctfn_typ_cd => p_wv_prtn_ctfn_typ_cd
93 ,p_business_group_id => p_business_group_id
94 ,p_wct_attribute_category => p_wct_attribute_category
95 ,p_wct_attribute1 => p_wct_attribute1
96 ,p_wct_attribute2 => p_wct_attribute2
97 ,p_wct_attribute3 => p_wct_attribute3
98 ,p_wct_attribute4 => p_wct_attribute4
99 ,p_wct_attribute5 => p_wct_attribute5
100 ,p_wct_attribute6 => p_wct_attribute6
101 ,p_wct_attribute7 => p_wct_attribute7
102 ,p_wct_attribute8 => p_wct_attribute8
103 ,p_wct_attribute9 => p_wct_attribute9
104 ,p_wct_attribute10 => p_wct_attribute10
105 ,p_wct_attribute11 => p_wct_attribute11
106 ,p_wct_attribute12 => p_wct_attribute12
107 ,p_wct_attribute13 => p_wct_attribute13
108 ,p_wct_attribute14 => p_wct_attribute14
109 ,p_wct_attribute15 => p_wct_attribute15
110 ,p_wct_attribute16 => p_wct_attribute16
111 ,p_wct_attribute17 => p_wct_attribute17
112 ,p_wct_attribute18 => p_wct_attribute18
113 ,p_wct_attribute19 => p_wct_attribute19
114 ,p_wct_attribute20 => p_wct_attribute20
115 ,p_wct_attribute21 => p_wct_attribute21
116 ,p_wct_attribute22 => p_wct_attribute22
117 ,p_wct_attribute23 => p_wct_attribute23
118 ,p_wct_attribute24 => p_wct_attribute24
119 ,p_wct_attribute25 => p_wct_attribute25
120 ,p_wct_attribute26 => p_wct_attribute26
121 ,p_wct_attribute27 => p_wct_attribute27
122 ,p_wct_attribute28 => p_wct_attribute28
123 ,p_wct_attribute29 => p_wct_attribute29
124 ,p_wct_attribute30 => p_wct_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_wv_prtn_rsn_ctfn_ptip'
132 ,p_hook_type => 'BP'
133 );
134 --
135 -- End of API User Hook for the before hook of create_wv_prtn_rsn_ctfn_ptip
136 --
137 end;
138 --
139 ben_wct_ins.ins
140 (
141 p_wv_prtn_rsn_ctfn_ptip_id => l_wv_prtn_rsn_ctfn_ptip_id
142 ,p_effective_start_date => l_effective_start_date
143 ,p_effective_end_date => l_effective_end_date
144 ,p_wv_prtn_ctfn_cd => p_wv_prtn_ctfn_cd
145 ,p_wv_prtn_rsn_ptip_id => p_wv_prtn_rsn_ptip_id
146 ,p_lack_ctfn_sspnd_wvr_flag => p_lack_ctfn_sspnd_wvr_flag
147 ,p_rqd_flag => p_rqd_flag
148 ,p_ctfn_rqd_when_rl => p_ctfn_rqd_when_rl
149 ,p_pfd_flag => p_pfd_flag
150 ,p_wv_prtn_ctfn_typ_cd => p_wv_prtn_ctfn_typ_cd
151 ,p_business_group_id => p_business_group_id
152 ,p_wct_attribute_category => p_wct_attribute_category
153 ,p_wct_attribute1 => p_wct_attribute1
154 ,p_wct_attribute2 => p_wct_attribute2
155 ,p_wct_attribute3 => p_wct_attribute3
156 ,p_wct_attribute4 => p_wct_attribute4
157 ,p_wct_attribute5 => p_wct_attribute5
158 ,p_wct_attribute6 => p_wct_attribute6
159 ,p_wct_attribute7 => p_wct_attribute7
160 ,p_wct_attribute8 => p_wct_attribute8
161 ,p_wct_attribute9 => p_wct_attribute9
162 ,p_wct_attribute10 => p_wct_attribute10
163 ,p_wct_attribute11 => p_wct_attribute11
164 ,p_wct_attribute12 => p_wct_attribute12
165 ,p_wct_attribute13 => p_wct_attribute13
166 ,p_wct_attribute14 => p_wct_attribute14
167 ,p_wct_attribute15 => p_wct_attribute15
168 ,p_wct_attribute16 => p_wct_attribute16
169 ,p_wct_attribute17 => p_wct_attribute17
170 ,p_wct_attribute18 => p_wct_attribute18
171 ,p_wct_attribute19 => p_wct_attribute19
172 ,p_wct_attribute20 => p_wct_attribute20
173 ,p_wct_attribute21 => p_wct_attribute21
174 ,p_wct_attribute22 => p_wct_attribute22
175 ,p_wct_attribute23 => p_wct_attribute23
176 ,p_wct_attribute24 => p_wct_attribute24
177 ,p_wct_attribute25 => p_wct_attribute25
178 ,p_wct_attribute26 => p_wct_attribute26
179 ,p_wct_attribute27 => p_wct_attribute27
180 ,p_wct_attribute28 => p_wct_attribute28
181 ,p_wct_attribute29 => p_wct_attribute29
182 ,p_wct_attribute30 => p_wct_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_wv_prtn_rsn_ctfn_ptip
190 --
191 ben_wv_prtn_rsn_ctfn_ptip_bk1.create_wv_prtn_rsn_ctfn_ptip_a
192 (
193 p_wv_prtn_rsn_ctfn_ptip_id => l_wv_prtn_rsn_ctfn_ptip_id
194 ,p_effective_start_date => l_effective_start_date
195 ,p_effective_end_date => l_effective_end_date
196 ,p_wv_prtn_ctfn_cd => p_wv_prtn_ctfn_cd
197 ,p_wv_prtn_rsn_ptip_id => p_wv_prtn_rsn_ptip_id
198 ,p_lack_ctfn_sspnd_wvr_flag => p_lack_ctfn_sspnd_wvr_flag
199 ,p_rqd_flag => p_rqd_flag
200 ,p_ctfn_rqd_when_rl => p_ctfn_rqd_when_rl
201 ,p_pfd_flag => p_pfd_flag
202 ,p_wv_prtn_ctfn_typ_cd => p_wv_prtn_ctfn_typ_cd
203 ,p_business_group_id => p_business_group_id
204 ,p_wct_attribute_category => p_wct_attribute_category
205 ,p_wct_attribute1 => p_wct_attribute1
206 ,p_wct_attribute2 => p_wct_attribute2
207 ,p_wct_attribute3 => p_wct_attribute3
208 ,p_wct_attribute4 => p_wct_attribute4
209 ,p_wct_attribute5 => p_wct_attribute5
210 ,p_wct_attribute6 => p_wct_attribute6
211 ,p_wct_attribute7 => p_wct_attribute7
212 ,p_wct_attribute8 => p_wct_attribute8
213 ,p_wct_attribute9 => p_wct_attribute9
214 ,p_wct_attribute10 => p_wct_attribute10
215 ,p_wct_attribute11 => p_wct_attribute11
216 ,p_wct_attribute12 => p_wct_attribute12
217 ,p_wct_attribute13 => p_wct_attribute13
218 ,p_wct_attribute14 => p_wct_attribute14
219 ,p_wct_attribute15 => p_wct_attribute15
220 ,p_wct_attribute16 => p_wct_attribute16
221 ,p_wct_attribute17 => p_wct_attribute17
222 ,p_wct_attribute18 => p_wct_attribute18
223 ,p_wct_attribute19 => p_wct_attribute19
224 ,p_wct_attribute20 => p_wct_attribute20
225 ,p_wct_attribute21 => p_wct_attribute21
226 ,p_wct_attribute22 => p_wct_attribute22
227 ,p_wct_attribute23 => p_wct_attribute23
228 ,p_wct_attribute24 => p_wct_attribute24
229 ,p_wct_attribute25 => p_wct_attribute25
230 ,p_wct_attribute26 => p_wct_attribute26
231 ,p_wct_attribute27 => p_wct_attribute27
232 ,p_wct_attribute28 => p_wct_attribute28
233 ,p_wct_attribute29 => p_wct_attribute29
234 ,p_wct_attribute30 => p_wct_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_wv_prtn_rsn_ctfn_ptip'
242 ,p_hook_type => 'AP'
243 );
244 --
245 -- End of API User Hook for the after hook of create_wv_prtn_rsn_ctfn_ptip
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_wv_prtn_rsn_ctfn_ptip_id := l_wv_prtn_rsn_ctfn_ptip_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_wv_prtn_rsn_ctfn_ptip;
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_wv_prtn_rsn_ctfn_ptip_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
288 --
289 ROLLBACK TO create_wv_prtn_rsn_ctfn_ptip;
290 p_effective_start_date := null;
291 p_effective_end_date := null;
292 p_object_version_number := null;
293
294 raise;
295 --
296 end create_wv_prtn_rsn_ctfn_ptip;
297 -- ----------------------------------------------------------------------------
298 -- |------------------------< update_wv_prtn_rsn_ctfn_ptip >--- ------------------|
299 -- ----------------------------------------------------------------------------
300 --
301 procedure update_wv_prtn_rsn_ctfn_ptip
302 (p_validate in boolean default false
303 ,p_wv_prtn_rsn_ctfn_ptip_id in number
304 ,p_effective_start_date out nocopy date
305 ,p_effective_end_date out nocopy date
306 ,p_wv_prtn_ctfn_cd in varchar2 default hr_api.g_varchar2
307 ,p_wv_prtn_rsn_ptip_id in number default hr_api.g_number
308 ,p_lack_ctfn_sspnd_wvr_flag in varchar2 default hr_api.g_varchar2
309 ,p_rqd_flag in varchar2 default hr_api.g_varchar2
310 ,p_ctfn_rqd_when_rl in number default hr_api.g_number
311 ,p_pfd_flag in varchar2 default hr_api.g_varchar2
312 ,p_wv_prtn_ctfn_typ_cd in varchar2 default hr_api.g_varchar2
313 ,p_business_group_id in number default hr_api.g_number
314 ,p_wct_attribute_category in varchar2 default hr_api.g_varchar2
315 ,p_wct_attribute1 in varchar2 default hr_api.g_varchar2
316 ,p_wct_attribute2 in varchar2 default hr_api.g_varchar2
317 ,p_wct_attribute3 in varchar2 default hr_api.g_varchar2
318 ,p_wct_attribute4 in varchar2 default hr_api.g_varchar2
319 ,p_wct_attribute5 in varchar2 default hr_api.g_varchar2
320 ,p_wct_attribute6 in varchar2 default hr_api.g_varchar2
321 ,p_wct_attribute7 in varchar2 default hr_api.g_varchar2
322 ,p_wct_attribute8 in varchar2 default hr_api.g_varchar2
323 ,p_wct_attribute9 in varchar2 default hr_api.g_varchar2
324 ,p_wct_attribute10 in varchar2 default hr_api.g_varchar2
325 ,p_wct_attribute11 in varchar2 default hr_api.g_varchar2
326 ,p_wct_attribute12 in varchar2 default hr_api.g_varchar2
327 ,p_wct_attribute13 in varchar2 default hr_api.g_varchar2
328 ,p_wct_attribute14 in varchar2 default hr_api.g_varchar2
329 ,p_wct_attribute15 in varchar2 default hr_api.g_varchar2
330 ,p_wct_attribute16 in varchar2 default hr_api.g_varchar2
331 ,p_wct_attribute17 in varchar2 default hr_api.g_varchar2
332 ,p_wct_attribute18 in varchar2 default hr_api.g_varchar2
333 ,p_wct_attribute19 in varchar2 default hr_api.g_varchar2
334 ,p_wct_attribute20 in varchar2 default hr_api.g_varchar2
335 ,p_wct_attribute21 in varchar2 default hr_api.g_varchar2
336 ,p_wct_attribute22 in varchar2 default hr_api.g_varchar2
337 ,p_wct_attribute23 in varchar2 default hr_api.g_varchar2
338 ,p_wct_attribute24 in varchar2 default hr_api.g_varchar2
339 ,p_wct_attribute25 in varchar2 default hr_api.g_varchar2
340 ,p_wct_attribute26 in varchar2 default hr_api.g_varchar2
341 ,p_wct_attribute27 in varchar2 default hr_api.g_varchar2
342 ,p_wct_attribute28 in varchar2 default hr_api.g_varchar2
343 ,p_wct_attribute29 in varchar2 default hr_api.g_varchar2
344 ,p_wct_attribute30 in varchar2 default hr_api.g_varchar2
345 ,p_object_version_number in out nocopy number
346 ,p_effective_date in date
347 ,p_datetrack_mode in varchar2
348 ) is
349 --
350 -- Declare cursors and local variables
351 --
352 l_proc varchar2(72) := g_package||'update_wv_prtn_rsn_ctfn_ptip';
353 l_object_version_number ben_wv_prtn_rsn_ctfn_ptip_f.object_version_number%TYPE;
354 l_effective_start_date ben_wv_prtn_rsn_ctfn_ptip_f.effective_start_date%TYPE;
355 l_effective_end_date ben_wv_prtn_rsn_ctfn_ptip_f.effective_end_date%TYPE;
356 --
357 begin
358 --
359 hr_utility.set_location('Entering:'|| l_proc, 10);
360 --
361 -- Issue a savepoint if operating in validation only mode
362 --
363 savepoint update_wv_prtn_rsn_ctfn_ptip;
364 --
365 hr_utility.set_location(l_proc, 20);
366 --
367 -- Process Logic
368 --
369 l_object_version_number := p_object_version_number;
370 --
371 begin
372 --
373 -- Start of API User Hook for the before hook of update_wv_prtn_rsn_ctfn_ptip
374 --
375 ben_wv_prtn_rsn_ctfn_ptip_bk2.update_wv_prtn_rsn_ctfn_ptip_b
376 (
377 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
378 ,p_wv_prtn_ctfn_cd => p_wv_prtn_ctfn_cd
379 ,p_wv_prtn_rsn_ptip_id => p_wv_prtn_rsn_ptip_id
380 ,p_lack_ctfn_sspnd_wvr_flag => p_lack_ctfn_sspnd_wvr_flag
381 ,p_rqd_flag => p_rqd_flag
382 ,p_ctfn_rqd_when_rl => p_ctfn_rqd_when_rl
383 ,p_pfd_flag => p_pfd_flag
384 ,p_wv_prtn_ctfn_typ_cd => p_wv_prtn_ctfn_typ_cd
385 ,p_business_group_id => p_business_group_id
386 ,p_wct_attribute_category => p_wct_attribute_category
387 ,p_wct_attribute1 => p_wct_attribute1
388 ,p_wct_attribute2 => p_wct_attribute2
389 ,p_wct_attribute3 => p_wct_attribute3
390 ,p_wct_attribute4 => p_wct_attribute4
391 ,p_wct_attribute5 => p_wct_attribute5
392 ,p_wct_attribute6 => p_wct_attribute6
393 ,p_wct_attribute7 => p_wct_attribute7
394 ,p_wct_attribute8 => p_wct_attribute8
395 ,p_wct_attribute9 => p_wct_attribute9
396 ,p_wct_attribute10 => p_wct_attribute10
397 ,p_wct_attribute11 => p_wct_attribute11
398 ,p_wct_attribute12 => p_wct_attribute12
399 ,p_wct_attribute13 => p_wct_attribute13
400 ,p_wct_attribute14 => p_wct_attribute14
401 ,p_wct_attribute15 => p_wct_attribute15
402 ,p_wct_attribute16 => p_wct_attribute16
403 ,p_wct_attribute17 => p_wct_attribute17
404 ,p_wct_attribute18 => p_wct_attribute18
405 ,p_wct_attribute19 => p_wct_attribute19
406 ,p_wct_attribute20 => p_wct_attribute20
407 ,p_wct_attribute21 => p_wct_attribute21
408 ,p_wct_attribute22 => p_wct_attribute22
409 ,p_wct_attribute23 => p_wct_attribute23
410 ,p_wct_attribute24 => p_wct_attribute24
411 ,p_wct_attribute25 => p_wct_attribute25
412 ,p_wct_attribute26 => p_wct_attribute26
413 ,p_wct_attribute27 => p_wct_attribute27
414 ,p_wct_attribute28 => p_wct_attribute28
415 ,p_wct_attribute29 => p_wct_attribute29
416 ,p_wct_attribute30 => p_wct_attribute30
417 ,p_object_version_number => p_object_version_number
418 ,p_effective_date => trunc(p_effective_date)
419 ,p_datetrack_mode => p_datetrack_mode
420 );
421 exception
422 when hr_api.cannot_find_prog_unit then
423 hr_api.cannot_find_prog_unit_error
424 (p_module_name => 'UPDATE_wv_prtn_rsn_ctfn_ptip'
425 ,p_hook_type => 'BP'
426 );
427 --
428 -- End of API User Hook for the before hook of update_wv_prtn_rsn_ctfn_ptip
429 --
430 end;
431 --
432 ben_wct_upd.upd
433 (
434 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
435 ,p_effective_start_date => l_effective_start_date
436 ,p_effective_end_date => l_effective_end_date
437 ,p_wv_prtn_ctfn_cd => p_wv_prtn_ctfn_cd
438 ,p_wv_prtn_rsn_ptip_id => p_wv_prtn_rsn_ptip_id
439 ,p_lack_ctfn_sspnd_wvr_flag => p_lack_ctfn_sspnd_wvr_flag
440 ,p_rqd_flag => p_rqd_flag
441 ,p_ctfn_rqd_when_rl => p_ctfn_rqd_when_rl
442 ,p_pfd_flag => p_pfd_flag
443 ,p_wv_prtn_ctfn_typ_cd => p_wv_prtn_ctfn_typ_cd
444 ,p_business_group_id => p_business_group_id
445 ,p_wct_attribute_category => p_wct_attribute_category
446 ,p_wct_attribute1 => p_wct_attribute1
447 ,p_wct_attribute2 => p_wct_attribute2
448 ,p_wct_attribute3 => p_wct_attribute3
449 ,p_wct_attribute4 => p_wct_attribute4
450 ,p_wct_attribute5 => p_wct_attribute5
451 ,p_wct_attribute6 => p_wct_attribute6
452 ,p_wct_attribute7 => p_wct_attribute7
453 ,p_wct_attribute8 => p_wct_attribute8
454 ,p_wct_attribute9 => p_wct_attribute9
455 ,p_wct_attribute10 => p_wct_attribute10
456 ,p_wct_attribute11 => p_wct_attribute11
457 ,p_wct_attribute12 => p_wct_attribute12
458 ,p_wct_attribute13 => p_wct_attribute13
459 ,p_wct_attribute14 => p_wct_attribute14
460 ,p_wct_attribute15 => p_wct_attribute15
461 ,p_wct_attribute16 => p_wct_attribute16
462 ,p_wct_attribute17 => p_wct_attribute17
463 ,p_wct_attribute18 => p_wct_attribute18
464 ,p_wct_attribute19 => p_wct_attribute19
465 ,p_wct_attribute20 => p_wct_attribute20
466 ,p_wct_attribute21 => p_wct_attribute21
467 ,p_wct_attribute22 => p_wct_attribute22
468 ,p_wct_attribute23 => p_wct_attribute23
469 ,p_wct_attribute24 => p_wct_attribute24
470 ,p_wct_attribute25 => p_wct_attribute25
471 ,p_wct_attribute26 => p_wct_attribute26
472 ,p_wct_attribute27 => p_wct_attribute27
473 ,p_wct_attribute28 => p_wct_attribute28
474 ,p_wct_attribute29 => p_wct_attribute29
475 ,p_wct_attribute30 => p_wct_attribute30
476 ,p_object_version_number => l_object_version_number
477 ,p_effective_date => trunc(p_effective_date)
478 ,p_datetrack_mode => p_datetrack_mode
479 );
480 --
481 begin
482 --
483 -- Start of API User Hook for the after hook of update_wv_prtn_rsn_ctfn_ptip
484 --
485 ben_wv_prtn_rsn_ctfn_ptip_bk2.update_wv_prtn_rsn_ctfn_ptip_a
486 (
487 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
488 ,p_effective_start_date => l_effective_start_date
489 ,p_effective_end_date => l_effective_end_date
490 ,p_wv_prtn_ctfn_cd => p_wv_prtn_ctfn_cd
491 ,p_wv_prtn_rsn_ptip_id => p_wv_prtn_rsn_ptip_id
492 ,p_lack_ctfn_sspnd_wvr_flag => p_lack_ctfn_sspnd_wvr_flag
493 ,p_rqd_flag => p_rqd_flag
494 ,p_ctfn_rqd_when_rl => p_ctfn_rqd_when_rl
495 ,p_pfd_flag => p_pfd_flag
496 ,p_wv_prtn_ctfn_typ_cd => p_wv_prtn_ctfn_typ_cd
497 ,p_business_group_id => p_business_group_id
498 ,p_wct_attribute_category => p_wct_attribute_category
499 ,p_wct_attribute1 => p_wct_attribute1
500 ,p_wct_attribute2 => p_wct_attribute2
501 ,p_wct_attribute3 => p_wct_attribute3
502 ,p_wct_attribute4 => p_wct_attribute4
503 ,p_wct_attribute5 => p_wct_attribute5
504 ,p_wct_attribute6 => p_wct_attribute6
505 ,p_wct_attribute7 => p_wct_attribute7
506 ,p_wct_attribute8 => p_wct_attribute8
507 ,p_wct_attribute9 => p_wct_attribute9
508 ,p_wct_attribute10 => p_wct_attribute10
509 ,p_wct_attribute11 => p_wct_attribute11
510 ,p_wct_attribute12 => p_wct_attribute12
511 ,p_wct_attribute13 => p_wct_attribute13
512 ,p_wct_attribute14 => p_wct_attribute14
513 ,p_wct_attribute15 => p_wct_attribute15
514 ,p_wct_attribute16 => p_wct_attribute16
515 ,p_wct_attribute17 => p_wct_attribute17
516 ,p_wct_attribute18 => p_wct_attribute18
517 ,p_wct_attribute19 => p_wct_attribute19
518 ,p_wct_attribute20 => p_wct_attribute20
519 ,p_wct_attribute21 => p_wct_attribute21
520 ,p_wct_attribute22 => p_wct_attribute22
521 ,p_wct_attribute23 => p_wct_attribute23
522 ,p_wct_attribute24 => p_wct_attribute24
523 ,p_wct_attribute25 => p_wct_attribute25
524 ,p_wct_attribute26 => p_wct_attribute26
525 ,p_wct_attribute27 => p_wct_attribute27
526 ,p_wct_attribute28 => p_wct_attribute28
527 ,p_wct_attribute29 => p_wct_attribute29
528 ,p_wct_attribute30 => p_wct_attribute30
529 ,p_object_version_number => l_object_version_number
530 ,p_effective_date => trunc(p_effective_date)
531 ,p_datetrack_mode => p_datetrack_mode
532 );
533 exception
534 when hr_api.cannot_find_prog_unit then
535 hr_api.cannot_find_prog_unit_error
536 (p_module_name => 'UPDATE_wv_prtn_rsn_ctfn_ptip'
537 ,p_hook_type => 'AP'
538 );
539 --
540 -- End of API User Hook for the after hook of update_wv_prtn_rsn_ctfn_ptip
541 --
542 end;
543 --
544 hr_utility.set_location(l_proc, 60);
545 --
546 -- When in validation only mode raise the Validate_Enabled exception
547 --
548 if p_validate then
549 raise hr_api.validate_enabled;
550 end if;
551 --
552 -- Set all output arguments
553 --
554 p_object_version_number := l_object_version_number;
555 p_effective_start_date := l_effective_start_date;
556 p_effective_end_date := l_effective_end_date;
557 --
558 hr_utility.set_location(' Leaving:'||l_proc, 70);
559 --
560 exception
561 --
562 when hr_api.validate_enabled then
563 --
564 -- As the Validate_Enabled exception has been raised
565 -- we must rollback to the savepoint
566 --
567 ROLLBACK TO update_wv_prtn_rsn_ctfn_ptip;
568 --
569 -- Only set output warning arguments
570 -- (Any key or derived arguments must be set to null
571 -- when validation only mode is being used.)
572 --
573 hr_utility.set_location(' Leaving:'||l_proc, 80);
574 --
575 when others then
576 --
577 -- A validation or unexpected error has occured
578 --
579 ROLLBACK TO update_wv_prtn_rsn_ctfn_ptip;
580 p_effective_start_date := null;
581 p_effective_end_date := null;
582 p_object_version_number := l_object_version_number;
583 raise;
584 --
585 end update_wv_prtn_rsn_ctfn_ptip;
586 -- ----------------------------------------------------------------------------
587 -- |------------------------< delete_wv_prtn_rsn_ctfn_ptip >----------------------|
588 -- ----------------------------------------------------------------------------
589 --
590 procedure delete_wv_prtn_rsn_ctfn_ptip
591 (p_validate in boolean default false
592 ,p_wv_prtn_rsn_ctfn_ptip_id in number
593 ,p_effective_start_date out nocopy date
594 ,p_effective_end_date out nocopy date
595 ,p_object_version_number in out nocopy number
596 ,p_effective_date in date
597 ,p_datetrack_mode in varchar2
598 ) is
599 --
600 -- Declare cursors and local variables
601 --
602 l_proc varchar2(72) := g_package||'update_wv_prtn_rsn_ctfn_ptip';
603 l_object_version_number ben_wv_prtn_rsn_ctfn_ptip_f.object_version_number%TYPE;
604 l_effective_start_date ben_wv_prtn_rsn_ctfn_ptip_f.effective_start_date%TYPE;
605 l_effective_end_date ben_wv_prtn_rsn_ctfn_ptip_f.effective_end_date%TYPE;
606 --
607 begin
608 --
609 hr_utility.set_location('Entering:'|| l_proc, 10);
610 --
611 -- Issue a savepoint if operating in validation only mode
612 --
613 savepoint delete_wv_prtn_rsn_ctfn_ptip;
614 --
615 hr_utility.set_location(l_proc, 20);
616 --
617 -- Process Logic
618 --
619 l_object_version_number := p_object_version_number;
620 --
621 --
622 begin
623 --
624 -- Start of API User Hook for the before hook of delete_wv_prtn_rsn_ctfn_ptip
625 --
626 ben_wv_prtn_rsn_ctfn_ptip_bk3.delete_wv_prtn_rsn_ctfn_ptip_b
627 (
628 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
629 ,p_object_version_number => p_object_version_number
630 ,p_effective_date => trunc(p_effective_date)
631 ,p_datetrack_mode => p_datetrack_mode
632 );
633 exception
634 when hr_api.cannot_find_prog_unit then
635 hr_api.cannot_find_prog_unit_error
636 (p_module_name => 'DELETE_wv_prtn_rsn_ctfn_ptip'
637 ,p_hook_type => 'BP'
638 );
639 --
640 -- End of API User Hook for the before hook of delete_wv_prtn_rsn_ctfn_ptip
641 --
642 end;
643 --
644 ben_wct_del.del
645 (
646 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
647 ,p_effective_start_date => l_effective_start_date
648 ,p_effective_end_date => l_effective_end_date
649 ,p_object_version_number => l_object_version_number
650 ,p_effective_date => p_effective_date
651 ,p_datetrack_mode => p_datetrack_mode
652 );
653 --
654 begin
655 --
656 -- Start of API User Hook for the after hook of delete_wv_prtn_rsn_ctfn_ptip
657 --
658 ben_wv_prtn_rsn_ctfn_ptip_bk3.delete_wv_prtn_rsn_ctfn_ptip_a
659 (
660 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
661 ,p_effective_start_date => l_effective_start_date
662 ,p_effective_end_date => l_effective_end_date
663 ,p_object_version_number => l_object_version_number
664 ,p_effective_date => trunc(p_effective_date)
665 ,p_datetrack_mode => p_datetrack_mode
666 );
667 exception
668 when hr_api.cannot_find_prog_unit then
669 hr_api.cannot_find_prog_unit_error
670 (p_module_name => 'DELETE_wv_prtn_rsn_ctfn_ptip'
671 ,p_hook_type => 'AP'
672 );
673 --
674 -- End of API User Hook for the after hook of delete_wv_prtn_rsn_ctfn_ptip
675 --
676 end;
677 --
678 hr_utility.set_location(l_proc, 60);
679 --
680 -- When in validation only mode raise the Validate_Enabled exception
681 --
682 if p_validate then
683 raise hr_api.validate_enabled;
684 end if;
685 --
686 hr_utility.set_location(' Leaving:'||l_proc, 70);
687 --
688 exception
689 --
690 when hr_api.validate_enabled then
691 --
692 -- As the Validate_Enabled exception has been raised
693 -- we must rollback to the savepoint
694 --
695 ROLLBACK TO delete_wv_prtn_rsn_ctfn_ptip;
696 --
697 -- Only set output warning arguments
698 -- (Any key or derived arguments must be set to null
699 -- when validation only mode is being used.)
700 --
701 p_effective_start_date := null;
702 p_effective_end_date := null;
703 --
704 when others then
705 --
706 -- A validation or unexpected error has occured
707 --
708 ROLLBACK TO delete_wv_prtn_rsn_ctfn_ptip;
709 p_effective_start_date := null;
710 p_effective_end_date := null;
711 p_object_version_number := l_object_version_number;
712 raise;
713 --
714 end delete_wv_prtn_rsn_ctfn_ptip;
715 --
716 -- ----------------------------------------------------------------------------
717 -- |-------------------------------< lck >------------------------------------|
718 -- ----------------------------------------------------------------------------
719 --
720 procedure lck
721 (
722 p_wv_prtn_rsn_ctfn_ptip_id in number
723 ,p_object_version_number in number
724 ,p_effective_date in date
725 ,p_datetrack_mode in varchar2
726 ,p_validation_start_date out nocopy date
727 ,p_validation_end_date out nocopy date
728 ) is
729 --
730 --
731 -- Declare cursors and local variables
732 --
733 l_proc varchar2(72) := g_package||'lck';
734 l_validation_start_date date;
735 l_validation_end_date date;
736 --
737 begin
738 --
739 hr_utility.set_location('Entering:'|| l_proc, 10);
740 --
741 ben_wct_shd.lck
742 (
743 p_wv_prtn_rsn_ctfn_ptip_id => p_wv_prtn_rsn_ctfn_ptip_id
744 ,p_validation_start_date => l_validation_start_date
745 ,p_validation_end_date => l_validation_end_date
746 ,p_object_version_number => p_object_version_number
747 ,p_effective_date => p_effective_date
748 ,p_datetrack_mode => p_datetrack_mode
749 );
750 --
751 hr_utility.set_location(' Leaving:'||l_proc, 70);
752 --
753 end lck;
754 --
755 end ben_wv_prtn_rsn_ctfn_ptip_api;