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