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