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