DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ACTY_BASE_RT_CTFN_API

Source


1 Package Body ben_Acty_Base_Rt_Ctfn_api as
2 /* $Header: beabcapi.pkb 120.0 2005/05/28 00:16:37 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package  varchar2(33) := '  ben_Acty_Base_Rt_Ctfn_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_Acty_Base_Rt_Ctfn >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_Acty_Base_Rt_Ctfn
13   (p_validate                       in  boolean   default false
14   ,p_acty_base_rt_ctfn_id                   out nocopy number
15   ,p_effective_start_date           out nocopy date
16   ,p_effective_end_date             out nocopy date
17   ,p_enrt_ctfn_typ_cd               in  varchar2  default null
18   ,p_ctfn_rqd_when_rl               in  number    default null
19   ,p_rqd_flag                       in  varchar2  default 'N'
20   ,p_acty_base_rt_id                          in  number    default null
21   ,p_business_group_id              in  number    default null
22   ,p_abc_attribute_category         in  varchar2  default null
23   ,p_abc_attribute1                 in  varchar2  default null
24   ,p_abc_attribute2                 in  varchar2  default null
25   ,p_abc_attribute3                 in  varchar2  default null
26   ,p_abc_attribute4                 in  varchar2  default null
27   ,p_abc_attribute5                 in  varchar2  default null
28   ,p_abc_attribute6                 in  varchar2  default null
29   ,p_abc_attribute7                 in  varchar2  default null
30   ,p_abc_attribute8                 in  varchar2  default null
31   ,p_abc_attribute9                 in  varchar2  default null
32   ,p_abc_attribute10                in  varchar2  default null
33   ,p_abc_attribute11                in  varchar2  default null
34   ,p_abc_attribute12                in  varchar2  default null
35   ,p_abc_attribute13                in  varchar2  default null
36   ,p_abc_attribute14                in  varchar2  default null
37   ,p_abc_attribute15                in  varchar2  default null
38   ,p_abc_attribute16                in  varchar2  default null
39   ,p_abc_attribute17                in  varchar2  default null
40   ,p_abc_attribute18                in  varchar2  default null
41   ,p_abc_attribute19                in  varchar2  default null
42   ,p_abc_attribute20                in  varchar2  default null
43   ,p_abc_attribute21                in  varchar2  default null
44   ,p_abc_attribute22                in  varchar2  default null
45   ,p_abc_attribute23                in  varchar2  default null
46   ,p_abc_attribute24                in  varchar2  default null
47   ,p_abc_attribute25                in  varchar2  default null
48   ,p_abc_attribute26                in  varchar2  default null
49   ,p_abc_attribute27                in  varchar2  default null
50   ,p_abc_attribute28                in  varchar2  default null
51   ,p_abc_attribute29                in  varchar2  default null
52   ,p_abc_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_acty_base_rt_ctfn_id ben_Acty_Base_Rt_Ctfn_f.acty_base_rt_ctfn_id%TYPE;
60   l_effective_start_date ben_Acty_Base_Rt_Ctfn_f.effective_start_date%TYPE;
61   l_effective_end_date ben_Acty_Base_Rt_Ctfn_f.effective_end_date%TYPE;
62   l_proc varchar2(72) := g_package||'create_Acty_Base_Rt_Ctfn';
63   l_object_version_number ben_Acty_Base_Rt_Ctfn_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_Acty_Base_Rt_Ctfn;
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_Acty_Base_Rt_Ctfn
80     --
81     ben_Acty_Base_Rt_Ctfn_bk1.create_Acty_Base_Rt_Ctfn_b
82       (
83        p_enrt_ctfn_typ_cd               =>  p_enrt_ctfn_typ_cd
84       ,p_ctfn_rqd_when_rl               =>  p_ctfn_rqd_when_rl
85       ,p_rqd_flag                       =>  p_rqd_flag
86       ,p_acty_base_rt_id                          =>  p_acty_base_rt_id
87       ,p_business_group_id              =>  p_business_group_id
88       ,p_abc_attribute_category         =>  p_abc_attribute_category
89       ,p_abc_attribute1                 =>  p_abc_attribute1
90       ,p_abc_attribute2                 =>  p_abc_attribute2
91       ,p_abc_attribute3                 =>  p_abc_attribute3
92       ,p_abc_attribute4                 =>  p_abc_attribute4
93       ,p_abc_attribute5                 =>  p_abc_attribute5
94       ,p_abc_attribute6                 =>  p_abc_attribute6
95       ,p_abc_attribute7                 =>  p_abc_attribute7
96       ,p_abc_attribute8                 =>  p_abc_attribute8
97       ,p_abc_attribute9                 =>  p_abc_attribute9
98       ,p_abc_attribute10                =>  p_abc_attribute10
99       ,p_abc_attribute11                =>  p_abc_attribute11
100       ,p_abc_attribute12                =>  p_abc_attribute12
101       ,p_abc_attribute13                =>  p_abc_attribute13
102       ,p_abc_attribute14                =>  p_abc_attribute14
103       ,p_abc_attribute15                =>  p_abc_attribute15
104       ,p_abc_attribute16                =>  p_abc_attribute16
105       ,p_abc_attribute17                =>  p_abc_attribute17
106       ,p_abc_attribute18                =>  p_abc_attribute18
107       ,p_abc_attribute19                =>  p_abc_attribute19
108       ,p_abc_attribute20                =>  p_abc_attribute20
109       ,p_abc_attribute21                =>  p_abc_attribute21
110       ,p_abc_attribute22                =>  p_abc_attribute22
111       ,p_abc_attribute23                =>  p_abc_attribute23
112       ,p_abc_attribute24                =>  p_abc_attribute24
113       ,p_abc_attribute25                =>  p_abc_attribute25
114       ,p_abc_attribute26                =>  p_abc_attribute26
115       ,p_abc_attribute27                =>  p_abc_attribute27
116       ,p_abc_attribute28                =>  p_abc_attribute28
117       ,p_abc_attribute29                =>  p_abc_attribute29
118       ,p_abc_attribute30                =>  p_abc_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_Acty_Base_Rt_Ctfn'
126         ,p_hook_type   => 'BP'
127         );
128     --
129     -- End of API User Hook for the before hook of create_Acty_Base_Rt_Ctfn
130     --
131   end;
132   --
133   ben_abc_ins.ins
134     (
135      p_acty_base_rt_ctfn_id                  => l_acty_base_rt_ctfn_id
136     ,p_effective_start_date          => l_effective_start_date
137     ,p_effective_end_date            => l_effective_end_date
138     ,p_enrt_ctfn_typ_cd              => p_enrt_ctfn_typ_cd
139     ,p_ctfn_rqd_when_rl              => p_ctfn_rqd_when_rl
140     ,p_rqd_flag                      => p_rqd_flag
141     ,p_acty_base_rt_id                         => p_acty_base_rt_id
142     ,p_business_group_id             => p_business_group_id
143     ,p_abc_attribute_category        => p_abc_attribute_category
144     ,p_abc_attribute1                => p_abc_attribute1
145     ,p_abc_attribute2                => p_abc_attribute2
146     ,p_abc_attribute3                => p_abc_attribute3
147     ,p_abc_attribute4                => p_abc_attribute4
148     ,p_abc_attribute5                => p_abc_attribute5
149     ,p_abc_attribute6                => p_abc_attribute6
150     ,p_abc_attribute7                => p_abc_attribute7
151     ,p_abc_attribute8                => p_abc_attribute8
152     ,p_abc_attribute9                => p_abc_attribute9
153     ,p_abc_attribute10               => p_abc_attribute10
154     ,p_abc_attribute11               => p_abc_attribute11
155     ,p_abc_attribute12               => p_abc_attribute12
156     ,p_abc_attribute13               => p_abc_attribute13
157     ,p_abc_attribute14               => p_abc_attribute14
158     ,p_abc_attribute15               => p_abc_attribute15
159     ,p_abc_attribute16               => p_abc_attribute16
160     ,p_abc_attribute17               => p_abc_attribute17
161     ,p_abc_attribute18               => p_abc_attribute18
162     ,p_abc_attribute19               => p_abc_attribute19
163     ,p_abc_attribute20               => p_abc_attribute20
164     ,p_abc_attribute21               => p_abc_attribute21
165     ,p_abc_attribute22               => p_abc_attribute22
166     ,p_abc_attribute23               => p_abc_attribute23
167     ,p_abc_attribute24               => p_abc_attribute24
168     ,p_abc_attribute25               => p_abc_attribute25
169     ,p_abc_attribute26               => p_abc_attribute26
170     ,p_abc_attribute27               => p_abc_attribute27
171     ,p_abc_attribute28               => p_abc_attribute28
172     ,p_abc_attribute29               => p_abc_attribute29
173     ,p_abc_attribute30               => p_abc_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_Acty_Base_Rt_Ctfn
181     --
182     ben_Acty_Base_Rt_Ctfn_bk1.create_Acty_Base_Rt_Ctfn_a
183       (
184        p_acty_base_rt_ctfn_id                   =>  l_acty_base_rt_ctfn_id
185       ,p_effective_start_date           =>  l_effective_start_date
186       ,p_effective_end_date             =>  l_effective_end_date
187       ,p_enrt_ctfn_typ_cd               =>  p_enrt_ctfn_typ_cd
188       ,p_ctfn_rqd_when_rl               =>  p_ctfn_rqd_when_rl
189       ,p_rqd_flag                       =>  p_rqd_flag
190       ,p_acty_base_rt_id                          =>  p_acty_base_rt_id
191       ,p_business_group_id              =>  p_business_group_id
192       ,p_abc_attribute_category         =>  p_abc_attribute_category
193       ,p_abc_attribute1                 =>  p_abc_attribute1
194       ,p_abc_attribute2                 =>  p_abc_attribute2
195       ,p_abc_attribute3                 =>  p_abc_attribute3
196       ,p_abc_attribute4                 =>  p_abc_attribute4
197       ,p_abc_attribute5                 =>  p_abc_attribute5
198       ,p_abc_attribute6                 =>  p_abc_attribute6
199       ,p_abc_attribute7                 =>  p_abc_attribute7
200       ,p_abc_attribute8                 =>  p_abc_attribute8
201       ,p_abc_attribute9                 =>  p_abc_attribute9
202       ,p_abc_attribute10                =>  p_abc_attribute10
203       ,p_abc_attribute11                =>  p_abc_attribute11
204       ,p_abc_attribute12                =>  p_abc_attribute12
205       ,p_abc_attribute13                =>  p_abc_attribute13
206       ,p_abc_attribute14                =>  p_abc_attribute14
207       ,p_abc_attribute15                =>  p_abc_attribute15
208       ,p_abc_attribute16                =>  p_abc_attribute16
209       ,p_abc_attribute17                =>  p_abc_attribute17
210       ,p_abc_attribute18                =>  p_abc_attribute18
211       ,p_abc_attribute19                =>  p_abc_attribute19
212       ,p_abc_attribute20                =>  p_abc_attribute20
213       ,p_abc_attribute21                =>  p_abc_attribute21
214       ,p_abc_attribute22                =>  p_abc_attribute22
215       ,p_abc_attribute23                =>  p_abc_attribute23
216       ,p_abc_attribute24                =>  p_abc_attribute24
217       ,p_abc_attribute25                =>  p_abc_attribute25
218       ,p_abc_attribute26                =>  p_abc_attribute26
219       ,p_abc_attribute27                =>  p_abc_attribute27
220       ,p_abc_attribute28                =>  p_abc_attribute28
221       ,p_abc_attribute29                =>  p_abc_attribute29
222       ,p_abc_attribute30                =>  p_abc_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_Acty_Base_Rt_Ctfn'
230         ,p_hook_type   => 'AP'
231         );
232     --
233     -- End of API User Hook for the after hook of create_Acty_Base_Rt_Ctfn
234     --
235   end;
236   --
237   hr_utility.set_location(l_proc, 60);
238   --
239   -- When in validation only mode raise the Validate_Enabled exception
240   --
241   if p_validate then
242     raise hr_api.validate_enabled;
243   end if;
244   --
245   -- Set all output arguments
246   --
247   p_acty_base_rt_ctfn_id := l_acty_base_rt_ctfn_id;
248   p_effective_start_date := l_effective_start_date;
249   p_effective_end_date := l_effective_end_date;
250   p_object_version_number := l_object_version_number;
251   --
252   hr_utility.set_location(' Leaving:'||l_proc, 70);
253   --
254 exception
255   --
256   when hr_api.validate_enabled then
257     --
258     -- As the Validate_Enabled exception has been raised
259     -- we must rollback to the savepoint
260     --
261     ROLLBACK TO create_Acty_Base_Rt_Ctfn;
262     --
263     -- Only set output warning arguments
264     -- (Any key or derived arguments must be set to null
265     -- when validation only mode is being used.)
266     --
267     p_acty_base_rt_ctfn_id := null;
268     p_effective_start_date := null;
269     p_effective_end_date := null;
270     p_object_version_number  := null;
271     hr_utility.set_location(' Leaving:'||l_proc, 80);
272     --
273   when others then
274     --
275     -- A validation or unexpected error has occured
276     --
277     ROLLBACK TO create_Acty_Base_Rt_Ctfn;
278     raise;
279     --
280 end create_Acty_Base_Rt_Ctfn;
281 -- ----------------------------------------------------------------------------
282 -- |------------------------< update_Acty_Base_Rt_Ctfn >--- ------------------|
283 -- ----------------------------------------------------------------------------
284 --
285 procedure update_Acty_Base_Rt_Ctfn
286   (p_validate                       in  boolean   default false
287   ,p_acty_base_rt_ctfn_id                   in  number
288   ,p_effective_start_date           out nocopy date
289   ,p_effective_end_date             out nocopy date
290   ,p_enrt_ctfn_typ_cd               in  varchar2  default hr_api.g_varchar2
291   ,p_ctfn_rqd_when_rl               in  number    default hr_api.g_number
292   ,p_rqd_flag                       in  varchar2  default hr_api.g_varchar2
293   ,p_acty_base_rt_id                          in  number    default hr_api.g_number
294   ,p_business_group_id              in  number    default hr_api.g_number
295   ,p_abc_attribute_category         in  varchar2  default hr_api.g_varchar2
296   ,p_abc_attribute1                 in  varchar2  default hr_api.g_varchar2
297   ,p_abc_attribute2                 in  varchar2  default hr_api.g_varchar2
298   ,p_abc_attribute3                 in  varchar2  default hr_api.g_varchar2
299   ,p_abc_attribute4                 in  varchar2  default hr_api.g_varchar2
300   ,p_abc_attribute5                 in  varchar2  default hr_api.g_varchar2
301   ,p_abc_attribute6                 in  varchar2  default hr_api.g_varchar2
302   ,p_abc_attribute7                 in  varchar2  default hr_api.g_varchar2
303   ,p_abc_attribute8                 in  varchar2  default hr_api.g_varchar2
304   ,p_abc_attribute9                 in  varchar2  default hr_api.g_varchar2
305   ,p_abc_attribute10                in  varchar2  default hr_api.g_varchar2
306   ,p_abc_attribute11                in  varchar2  default hr_api.g_varchar2
307   ,p_abc_attribute12                in  varchar2  default hr_api.g_varchar2
308   ,p_abc_attribute13                in  varchar2  default hr_api.g_varchar2
309   ,p_abc_attribute14                in  varchar2  default hr_api.g_varchar2
310   ,p_abc_attribute15                in  varchar2  default hr_api.g_varchar2
311   ,p_abc_attribute16                in  varchar2  default hr_api.g_varchar2
312   ,p_abc_attribute17                in  varchar2  default hr_api.g_varchar2
313   ,p_abc_attribute18                in  varchar2  default hr_api.g_varchar2
317   ,p_abc_attribute22                in  varchar2  default hr_api.g_varchar2
314   ,p_abc_attribute19                in  varchar2  default hr_api.g_varchar2
315   ,p_abc_attribute20                in  varchar2  default hr_api.g_varchar2
316   ,p_abc_attribute21                in  varchar2  default hr_api.g_varchar2
318   ,p_abc_attribute23                in  varchar2  default hr_api.g_varchar2
319   ,p_abc_attribute24                in  varchar2  default hr_api.g_varchar2
320   ,p_abc_attribute25                in  varchar2  default hr_api.g_varchar2
321   ,p_abc_attribute26                in  varchar2  default hr_api.g_varchar2
322   ,p_abc_attribute27                in  varchar2  default hr_api.g_varchar2
323   ,p_abc_attribute28                in  varchar2  default hr_api.g_varchar2
324   ,p_abc_attribute29                in  varchar2  default hr_api.g_varchar2
325   ,p_abc_attribute30                in  varchar2  default hr_api.g_varchar2
326   ,p_object_version_number          in out nocopy number
327   ,p_effective_date                 in  date
328   ,p_datetrack_mode                 in  varchar2
329   ) is
330   --
331   -- Declare cursors and local variables
332   --
333   l_proc varchar2(72) := g_package||'update_Acty_Base_Rt_Ctfn';
334   l_object_version_number ben_Acty_Base_Rt_Ctfn_f.object_version_number%TYPE;
335   l_effective_start_date ben_Acty_Base_Rt_Ctfn_f.effective_start_date%TYPE;
336   l_effective_end_date ben_Acty_Base_Rt_Ctfn_f.effective_end_date%TYPE;
337   --
338 begin
339   --
340   hr_utility.set_location('Entering:'|| l_proc, 10);
341   --
342   -- Issue a savepoint if operating in validation only mode
343   --
344   savepoint update_Acty_Base_Rt_Ctfn;
345   --
346   hr_utility.set_location(l_proc, 20);
347   --
348   -- Process Logic
349   --
350   l_object_version_number := p_object_version_number;
351   --
352   begin
353     --
354     -- Start of API User Hook for the before hook of update_Acty_Base_Rt_Ctfn
355     --
356     ben_Acty_Base_Rt_Ctfn_bk2.update_Acty_Base_Rt_Ctfn_b
357       (
358        p_acty_base_rt_ctfn_id                   =>  p_acty_base_rt_ctfn_id
359       ,p_enrt_ctfn_typ_cd               =>  p_enrt_ctfn_typ_cd
360       ,p_ctfn_rqd_when_rl               =>  p_ctfn_rqd_when_rl
361       ,p_rqd_flag                       =>  p_rqd_flag
362       ,p_acty_base_rt_id                          =>  p_acty_base_rt_id
363       ,p_business_group_id              =>  p_business_group_id
364       ,p_abc_attribute_category         =>  p_abc_attribute_category
365       ,p_abc_attribute1                 =>  p_abc_attribute1
366       ,p_abc_attribute2                 =>  p_abc_attribute2
367       ,p_abc_attribute3                 =>  p_abc_attribute3
368       ,p_abc_attribute4                 =>  p_abc_attribute4
369       ,p_abc_attribute5                 =>  p_abc_attribute5
370       ,p_abc_attribute6                 =>  p_abc_attribute6
371       ,p_abc_attribute7                 =>  p_abc_attribute7
372       ,p_abc_attribute8                 =>  p_abc_attribute8
373       ,p_abc_attribute9                 =>  p_abc_attribute9
374       ,p_abc_attribute10                =>  p_abc_attribute10
375       ,p_abc_attribute11                =>  p_abc_attribute11
376       ,p_abc_attribute12                =>  p_abc_attribute12
377       ,p_abc_attribute13                =>  p_abc_attribute13
378       ,p_abc_attribute14                =>  p_abc_attribute14
379       ,p_abc_attribute15                =>  p_abc_attribute15
380       ,p_abc_attribute16                =>  p_abc_attribute16
381       ,p_abc_attribute17                =>  p_abc_attribute17
382       ,p_abc_attribute18                =>  p_abc_attribute18
383       ,p_abc_attribute19                =>  p_abc_attribute19
384       ,p_abc_attribute20                =>  p_abc_attribute20
385       ,p_abc_attribute21                =>  p_abc_attribute21
386       ,p_abc_attribute22                =>  p_abc_attribute22
387       ,p_abc_attribute23                =>  p_abc_attribute23
388       ,p_abc_attribute24                =>  p_abc_attribute24
389       ,p_abc_attribute25                =>  p_abc_attribute25
390       ,p_abc_attribute26                =>  p_abc_attribute26
391       ,p_abc_attribute27                =>  p_abc_attribute27
392       ,p_abc_attribute28                =>  p_abc_attribute28
393       ,p_abc_attribute29                =>  p_abc_attribute29
394       ,p_abc_attribute30                =>  p_abc_attribute30
395       ,p_object_version_number          =>  p_object_version_number
396     ,p_effective_date                      => trunc(p_effective_date)
397     ,p_datetrack_mode                      => p_datetrack_mode
398       );
399   exception
400     when hr_api.cannot_find_prog_unit then
401       hr_api.cannot_find_prog_unit_error
402         (p_module_name => 'UPDATE_Acty_Base_Rt_Ctfn'
403         ,p_hook_type   => 'BP'
404         );
405     --
406     -- End of API User Hook for the before hook of update_Acty_Base_Rt_Ctfn
407     --
408   end;
409   --
410   ben_abc_upd.upd
411     (
412      p_acty_base_rt_ctfn_id                  => p_acty_base_rt_ctfn_id
413     ,p_effective_start_date          => l_effective_start_date
414     ,p_effective_end_date            => l_effective_end_date
415     ,p_enrt_ctfn_typ_cd              => p_enrt_ctfn_typ_cd
416     ,p_ctfn_rqd_when_rl              => p_ctfn_rqd_when_rl
417     ,p_rqd_flag                      => p_rqd_flag
418     ,p_acty_base_rt_id                         => p_acty_base_rt_id
419     ,p_business_group_id             => p_business_group_id
423     ,p_abc_attribute3                => p_abc_attribute3
420     ,p_abc_attribute_category        => p_abc_attribute_category
421     ,p_abc_attribute1                => p_abc_attribute1
422     ,p_abc_attribute2                => p_abc_attribute2
424     ,p_abc_attribute4                => p_abc_attribute4
425     ,p_abc_attribute5                => p_abc_attribute5
426     ,p_abc_attribute6                => p_abc_attribute6
427     ,p_abc_attribute7                => p_abc_attribute7
428     ,p_abc_attribute8                => p_abc_attribute8
429     ,p_abc_attribute9                => p_abc_attribute9
430     ,p_abc_attribute10               => p_abc_attribute10
431     ,p_abc_attribute11               => p_abc_attribute11
432     ,p_abc_attribute12               => p_abc_attribute12
433     ,p_abc_attribute13               => p_abc_attribute13
434     ,p_abc_attribute14               => p_abc_attribute14
435     ,p_abc_attribute15               => p_abc_attribute15
436     ,p_abc_attribute16               => p_abc_attribute16
437     ,p_abc_attribute17               => p_abc_attribute17
438     ,p_abc_attribute18               => p_abc_attribute18
439     ,p_abc_attribute19               => p_abc_attribute19
440     ,p_abc_attribute20               => p_abc_attribute20
441     ,p_abc_attribute21               => p_abc_attribute21
442     ,p_abc_attribute22               => p_abc_attribute22
443     ,p_abc_attribute23               => p_abc_attribute23
444     ,p_abc_attribute24               => p_abc_attribute24
445     ,p_abc_attribute25               => p_abc_attribute25
446     ,p_abc_attribute26               => p_abc_attribute26
447     ,p_abc_attribute27               => p_abc_attribute27
448     ,p_abc_attribute28               => p_abc_attribute28
449     ,p_abc_attribute29               => p_abc_attribute29
450     ,p_abc_attribute30               => p_abc_attribute30
451     ,p_object_version_number         => l_object_version_number
452     ,p_effective_date                => trunc(p_effective_date)
453     ,p_datetrack_mode                => p_datetrack_mode
454     );
455   --
456   begin
457     --
458     -- Start of API User Hook for the after hook of update_Acty_Base_Rt_Ctfn
459     --
460     ben_Acty_Base_Rt_Ctfn_bk2.update_Acty_Base_Rt_Ctfn_a
461       (
462        p_acty_base_rt_ctfn_id                   =>  p_acty_base_rt_ctfn_id
463       ,p_effective_start_date           =>  l_effective_start_date
464       ,p_effective_end_date             =>  l_effective_end_date
465       ,p_enrt_ctfn_typ_cd               =>  p_enrt_ctfn_typ_cd
466       ,p_ctfn_rqd_when_rl               =>  p_ctfn_rqd_when_rl
467       ,p_rqd_flag                       =>  p_rqd_flag
468       ,p_acty_base_rt_id                          =>  p_acty_base_rt_id
469       ,p_business_group_id              =>  p_business_group_id
470       ,p_abc_attribute_category         =>  p_abc_attribute_category
471       ,p_abc_attribute1                 =>  p_abc_attribute1
472       ,p_abc_attribute2                 =>  p_abc_attribute2
473       ,p_abc_attribute3                 =>  p_abc_attribute3
474       ,p_abc_attribute4                 =>  p_abc_attribute4
475       ,p_abc_attribute5                 =>  p_abc_attribute5
476       ,p_abc_attribute6                 =>  p_abc_attribute6
477       ,p_abc_attribute7                 =>  p_abc_attribute7
478       ,p_abc_attribute8                 =>  p_abc_attribute8
479       ,p_abc_attribute9                 =>  p_abc_attribute9
480       ,p_abc_attribute10                =>  p_abc_attribute10
481       ,p_abc_attribute11                =>  p_abc_attribute11
482       ,p_abc_attribute12                =>  p_abc_attribute12
483       ,p_abc_attribute13                =>  p_abc_attribute13
484       ,p_abc_attribute14                =>  p_abc_attribute14
485       ,p_abc_attribute15                =>  p_abc_attribute15
486       ,p_abc_attribute16                =>  p_abc_attribute16
487       ,p_abc_attribute17                =>  p_abc_attribute17
488       ,p_abc_attribute18                =>  p_abc_attribute18
489       ,p_abc_attribute19                =>  p_abc_attribute19
490       ,p_abc_attribute20                =>  p_abc_attribute20
491       ,p_abc_attribute21                =>  p_abc_attribute21
492       ,p_abc_attribute22                =>  p_abc_attribute22
493       ,p_abc_attribute23                =>  p_abc_attribute23
494       ,p_abc_attribute24                =>  p_abc_attribute24
495       ,p_abc_attribute25                =>  p_abc_attribute25
496       ,p_abc_attribute26                =>  p_abc_attribute26
497       ,p_abc_attribute27                =>  p_abc_attribute27
498       ,p_abc_attribute28                =>  p_abc_attribute28
499       ,p_abc_attribute29                =>  p_abc_attribute29
500       ,p_abc_attribute30                =>  p_abc_attribute30
501       ,p_object_version_number          =>  l_object_version_number
502       ,p_effective_date                     => trunc(p_effective_date)
503       ,p_datetrack_mode                     => p_datetrack_mode
504       );
505   exception
506     when hr_api.cannot_find_prog_unit then
507       hr_api.cannot_find_prog_unit_error
508         (p_module_name => 'UPDATE_Acty_Base_Rt_Ctfn'
509         ,p_hook_type   => 'AP'
510         );
511     --
512     -- End of API User Hook for the after hook of update_Acty_Base_Rt_Ctfn
513     --
514   end;
515   --
516   hr_utility.set_location(l_proc, 60);
517   --
518   -- When in validation only mode raise the Validate_Enabled exception
519   --
520   if p_validate then
521     raise hr_api.validate_enabled;
522   end if;
523   --
524   -- Set all output arguments
525   --
526   p_object_version_number := l_object_version_number;
527   p_effective_start_date := l_effective_start_date;
528   p_effective_end_date := l_effective_end_date;
529   --
530   hr_utility.set_location(' Leaving:'||l_proc, 70);
531   --
532 exception
533   --
534   when hr_api.validate_enabled then
535     --
536     -- As the Validate_Enabled exception has been raised
537     -- we must rollback to the savepoint
538     --
539     ROLLBACK TO update_Acty_Base_Rt_Ctfn;
540     --
541     -- Only set output warning arguments
542     -- (Any key or derived arguments must be set to null
543     -- when validation only mode is being used.)
544     --
545     hr_utility.set_location(' Leaving:'||l_proc, 80);
546     --
547   when others then
548     --
549     -- A validation or unexpected error has occured
550     --
551     ROLLBACK TO update_Acty_Base_Rt_Ctfn;
552     raise;
553     --
554 end update_Acty_Base_Rt_Ctfn;
555 -- ----------------------------------------------------------------------------
556 -- |------------------------< delete_Acty_Base_Rt_Ctfn >----------------------|
557 -- ----------------------------------------------------------------------------
558 --
559 procedure delete_Acty_Base_Rt_Ctfn
560   (p_validate                       in  boolean  default false
561   ,p_acty_base_rt_ctfn_id                   in  number
562   ,p_effective_start_date           out nocopy date
563   ,p_effective_end_date             out nocopy date
564   ,p_object_version_number          in out nocopy number
565   ,p_effective_date                 in  date
566   ,p_datetrack_mode                 in  varchar2
567   ) is
568   --
569   -- Declare cursors and local variables
570   --
571   l_proc varchar2(72) := g_package||'update_Acty_Base_Rt_Ctfn';
572   l_object_version_number ben_Acty_Base_Rt_Ctfn_f.object_version_number%TYPE;
573   l_effective_start_date ben_Acty_Base_Rt_Ctfn_f.effective_start_date%TYPE;
574   l_effective_end_date ben_Acty_Base_Rt_Ctfn_f.effective_end_date%TYPE;
575   --
576 begin
577   --
578   hr_utility.set_location('Entering:'|| l_proc, 10);
579   --
580   -- Issue a savepoint if operating in validation only mode
581   --
582   savepoint delete_Acty_Base_Rt_Ctfn;
583   --
584   hr_utility.set_location(l_proc, 20);
585   --
586   -- Process Logic
587   --
588   l_object_version_number := p_object_version_number;
589   --
590   --
591   begin
592     --
593     -- Start of API User Hook for the before hook of delete_Acty_Base_Rt_Ctfn
594     --
595     ben_Acty_Base_Rt_Ctfn_bk3.delete_Acty_Base_Rt_Ctfn_b
596       (
597        p_acty_base_rt_ctfn_id                   =>  p_acty_base_rt_ctfn_id
598       ,p_object_version_number          =>  p_object_version_number
599     ,p_effective_date                      => trunc(p_effective_date)
600     ,p_datetrack_mode                      => p_datetrack_mode
601       );
602   exception
603     when hr_api.cannot_find_prog_unit then
604       hr_api.cannot_find_prog_unit_error
605         (p_module_name => 'DELETE_Acty_Base_Rt_Ctfn'
606         ,p_hook_type   => 'BP'
607         );
608     --
609     -- End of API User Hook for the before hook of delete_Acty_Base_Rt_Ctfn
610     --
611   end;
612   --
613   ben_abc_del.del
614     (
615      p_acty_base_rt_ctfn_id                  => p_acty_base_rt_ctfn_id
616     ,p_effective_start_date          => l_effective_start_date
617     ,p_effective_end_date            => l_effective_end_date
618     ,p_object_version_number         => l_object_version_number
619     ,p_effective_date                => p_effective_date
620     ,p_datetrack_mode                => p_datetrack_mode
621     );
622   --
623   begin
624     --
625     -- Start of API User Hook for the after hook of delete_Acty_Base_Rt_Ctfn
626     --
627     ben_Acty_Base_Rt_Ctfn_bk3.delete_Acty_Base_Rt_Ctfn_a
628       (
629        p_acty_base_rt_ctfn_id                   =>  p_acty_base_rt_ctfn_id
630       ,p_effective_start_date           =>  l_effective_start_date
631       ,p_effective_end_date             =>  l_effective_end_date
632       ,p_object_version_number          =>  l_object_version_number
633     ,p_effective_date                      => trunc(p_effective_date)
634     ,p_datetrack_mode                      => p_datetrack_mode
635       );
636   exception
637     when hr_api.cannot_find_prog_unit then
638       hr_api.cannot_find_prog_unit_error
639         (p_module_name => 'DELETE_Acty_Base_Rt_Ctfn'
640         ,p_hook_type   => 'AP'
641         );
642     --
643     -- End of API User Hook for the after hook of delete_Acty_Base_Rt_Ctfn
644     --
645   end;
646   --
647   hr_utility.set_location(l_proc, 60);
648   --
649   -- When in validation only mode raise the Validate_Enabled exception
650   --
651   if p_validate then
652     raise hr_api.validate_enabled;
653   end if;
654   --
655   hr_utility.set_location(' Leaving:'||l_proc, 70);
656   --
657 exception
658   --
659   when hr_api.validate_enabled then
660     --
661     -- As the Validate_Enabled exception has been raised
662     -- we must rollback to the savepoint
663     --
664     ROLLBACK TO delete_Acty_Base_Rt_Ctfn;
665     --
666     -- Only set output warning arguments
667     -- (Any key or derived arguments must be set to null
668     -- when validation only mode is being used.)
669     --
670     p_effective_start_date := null;
671     p_effective_end_date := null;
672     --
673   when others then
674     --
675     -- A validation or unexpected error has occured
676     --
677     ROLLBACK TO delete_Acty_Base_Rt_Ctfn;
678     raise;
679     --
680 end delete_Acty_Base_Rt_Ctfn;
681 --
682 -- ----------------------------------------------------------------------------
683 -- |-------------------------------< lck >------------------------------------|
684 -- ----------------------------------------------------------------------------
685 --
686 procedure lck
687   (
688    p_acty_base_rt_ctfn_id                   in     number
689   ,p_object_version_number          in     number
690   ,p_effective_date                 in     date
691   ,p_datetrack_mode                 in     varchar2
692   ,p_validation_start_date          out nocopy    date
693   ,p_validation_end_date            out nocopy    date
694   ) is
695   --
696   --
697   -- Declare cursors and local variables
698   --
699   l_proc varchar2(72) := g_package||'lck';
700   l_validation_start_date date;
701   l_validation_end_date date;
702   --
703 begin
704   --
705   hr_utility.set_location('Entering:'|| l_proc, 10);
706   --
707   ben_abc_shd.lck
708     (
709       p_acty_base_rt_ctfn_id                 => p_acty_base_rt_ctfn_id
710      ,p_validation_start_date      => l_validation_start_date
711      ,p_validation_end_date        => l_validation_end_date
712      ,p_object_version_number      => p_object_version_number
713      ,p_effective_date             => p_effective_date
714      ,p_datetrack_mode             => p_datetrack_mode
715     );
716   --
717   hr_utility.set_location(' Leaving:'||l_proc, 70);
718   --
719 end lck;
720 --
721 end ben_Acty_Base_Rt_Ctfn_api;