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