DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ACTY_RT_PTD_LMT_API

Source


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