DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_PERSON_CHANGE_CS_LER_API

Source


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