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