DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_COURT_ORDERS_API

Source


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