DBA Data[Home] [Help]

PACKAGE BODY: APPS.PQP_AAT_DEL

Source


1 Package Body pqp_aat_del as
2 /* $Header: pqaatrhi.pkb 120.2.12010000.2 2008/08/05 13:56:35 ubhat ship $ */
3 --
4 -- ---------------------------------------------------------------------------+
5 -- |                     Private Global Definitions                           |
6 -- ---------------------------------------------------------------------------+
7 --
8 g_package  varchar2(33) := '  pqp_aat_del.';  -- Global package name
9 --
10 -- ---------------------------------------------------------------------------+
11 -- |----------------------------< dt_delete_dml >-----------------------------|
12 -- ---------------------------------------------------------------------------+
13 -- {Start Of Comments}
14 --
15 -- Description:
16 --   This procedure controls the actual dml delete logic for the datetrack
17 --   delete modes: ZAP, DELETE, FUTURE_CHANGE and DELETE_NEXT_CHANGE. The
18 --   execution is as follows:
19 --   1) To set and unset the g_api_dml status as required (as we are about to
20 --      perform dml).
21 --   2) If the delete mode is DELETE_NEXT_CHANGE then delete where the
22 --      effective start date is equal to the validation start date.
23 --   3) If the delete mode is not DELETE_NEXT_CHANGE then delete
24 --      all rows for the entity where the effective start date is greater
25 --      than or equal to the validation start date.
26 --   4) To raise any errors.
27 --
28 -- Prerequisites:
29 --   This is an internal private procedure which must be called from the
30 --   delete_dml procedure.
31 --
32 -- In Parameters:
33 --   A Pl/Sql record structure.
34 --
35 -- Post Success:
36 --   The specified row will be delete from the schema.
37 --
38 -- Post Failure:
39 --   On the delete dml failure it is important to note that we always reset the
40 --   g_api_dml status to false.
41 --   If any other error is reported, the error will be raised after the
42 --   g_api_dml status is reset.
43 --
44 -- Developer Implementation Notes:
45 --   This is an internal private procedure which must be called from the
46 --   delete_dml procedure.
47 --
48 -- Access Status:
49 --   Internal Row Handler Use Only.
50 --
51 -- {End Of Comments}
52 -- ---------------------------------------------------------------------------+
53 Procedure dt_delete_dml
54   (p_rec                     in out nocopy pqp_aat_shd.g_rec_type
55   ,p_effective_date          in date
56   ,p_datetrack_mode          in varchar2
57   ,p_validation_start_date   in date
58   ,p_validation_end_date     in date
59   ) is
60 --
61   l_proc        varchar2(72) := g_package||'dt_delete_dml';
62 --
63 Begin
64   hr_utility.set_location('Entering:'||l_proc, 5);
65   If (p_datetrack_mode = hr_api.g_delete_next_change) then
66     pqp_aat_shd.g_api_dml := true;  -- Set the api dml status
67     --
68     -- Delete the where the effective start date is equal
69     -- to the validation end date.
70     --
71     delete from pqp_assignment_attributes_f
72     where       assignment_attribute_id = p_rec.assignment_attribute_id
73     and   effective_start_date = p_validation_start_date;
74     --
75     pqp_aat_shd.g_api_dml := false;   -- Unset the api dml status
76   Else
77     pqp_aat_shd.g_api_dml := true;  -- Set the api dml status
78     --
79     -- Delete the row(s) where the effective start date is greater than
80     -- or equal to the validation start date.
81     --
82     delete from pqp_assignment_attributes_f
83     where        assignment_attribute_id = p_rec.assignment_attribute_id
84     and   effective_start_date >= p_validation_start_date;
85     --
86     pqp_aat_shd.g_api_dml := false;   -- Unset the api dml status
87   End If;
88   --
89   hr_utility.set_location(' Leaving:'||l_proc, 20);
90 --
91 Exception
92   When Others Then
93     pqp_aat_shd.g_api_dml := false;   -- Unset the api dml status
94     Raise;
95 --
96 End dt_delete_dml;
97 --
98 -- ---------------------------------------------------------------------------+
99 -- |------------------------------< delete_dml >------------------------------|
100 -- ---------------------------------------------------------------------------+
101 Procedure delete_dml
102   (p_rec                     in out nocopy pqp_aat_shd.g_rec_type
103   ,p_effective_date          in date
104   ,p_datetrack_mode          in varchar2
105   ,p_validation_start_date   in date
106   ,p_validation_end_date     in date
107   ) is
108 --
109   l_proc        varchar2(72) := g_package||'delete_dml';
110 --
111 Begin
112   hr_utility.set_location('Entering:'||l_proc, 5);
113   --
114   pqp_aat_del.dt_delete_dml
115     (p_rec                   => p_rec
116     ,p_effective_date        => p_effective_date
117     ,p_datetrack_mode        => p_datetrack_mode
118     ,p_validation_start_date => p_validation_start_date
119     ,p_validation_end_date   => p_validation_end_date
120     );
121   --
122   hr_utility.set_location(' Leaving:'||l_proc, 10);
123 End delete_dml;
124 --
125 -- ---------------------------------------------------------------------------+
126 -- |----------------------------< dt_pre_delete >-----------------------------|
127 -- ---------------------------------------------------------------------------+
128 -- {Start Of Comments}
129 --
130 -- Description:
131 --   The dt_pre_delete process controls the execution of dml
132 --   for the datetrack modes: DELETE, FUTURE_CHANGE
133 --   and DELETE_NEXT_CHANGE only.
134 --
135 -- Prerequisites:
136 --   This is an internal procedure which is called from the pre_delete
137 --   procedure.
138 --
139 -- In Parameters:
140 --   A Pl/Sql record structure.
141 --
142 -- Post Success:
143 --   Processing continues.
144 --
145 -- Post Failure:
146 --   If an error has occurred, an error message and exception will be raised
147 --   but not handled.
148 --
149 -- Developer Implementation Notes:
150 --   This is an internal procedure which is required by Datetrack. Don't
151 --   remove or modify.
152 --
153 -- Access Status:
154 --   Internal Row Handler Use Only.
155 --
156 -- {End Of Comments}
157 -- ---------------------------------------------------------------------------+
158 Procedure dt_pre_delete
159   (p_rec                     in out nocopy pqp_aat_shd.g_rec_type
160   ,p_effective_date          in date
161   ,p_datetrack_mode          in varchar2
162   ,p_validation_start_date   in date
163   ,p_validation_end_date     in date
164   ) is
165 --
166   l_proc        varchar2(72) := g_package||'dt_pre_delete';
167 --
168 Begin
169   hr_utility.set_location('Entering:'||l_proc, 5);
170   --
171   If (p_datetrack_mode <> hr_api.g_zap) then
172     --
173     p_rec.effective_start_date
174       := pqp_aat_shd.g_old_rec.effective_start_date;
175     --
176     If (p_datetrack_mode = hr_api.g_delete) then
177       p_rec.effective_end_date := p_validation_start_date - 1;
178     Else
179       p_rec.effective_end_date := p_validation_end_date;
180     End If;
181     --
182     -- Update the current effective end date record
183     --
184     pqp_aat_shd.upd_effective_end_date
185       (p_effective_date         => p_effective_date
186       ,p_base_key_value         => p_rec.assignment_attribute_id
187       ,p_new_effective_end_date => p_rec.effective_end_date
188       ,p_validation_start_date  => p_validation_start_date
189       ,p_validation_end_date    => p_validation_end_date
190       ,p_object_version_number            => p_rec.object_version_number
191       );
192   Else
193     p_rec.effective_start_date := null;
194     p_rec.effective_end_date   := null;
195   End If;
196   hr_utility.set_location(' Leaving:'||l_proc, 10);
197 End dt_pre_delete;
198 --
199 -- ---------------------------------------------------------------------------+
200 -- |------------------------------< pre_delete >------------------------------|
201 -- ---------------------------------------------------------------------------+
202 -- {Start Of Comments}
203 --
204 -- Description:
205 --   This private procedure contains any processing which is required before
206 --   the delete dml.
207 --
208 -- Prerequisites:
209 --   This is an internal procedure which is called from the del procedure.
210 --
211 -- In Parameters:
212 --   A Pl/Sql record structure.
213 --
214 -- Post Success:
215 --   Processing continues.
216 --
217 -- Post Failure:
218 --   If an error has occurred, an error message and exception will be raised
219 --   but not handled.
220 --
221 -- Developer Implementation Notes:
222 --   Any pre-processing required before the delete dml is issued should be
223 --   coded within this procedure. It is important to note that any 3rd party
224 --   maintenance should be reviewed before placing in this procedure. The call
225 --   to the dt_delete_dml procedure should NOT be removed.
226 --
227 -- Access Status:
228 --   Internal Row Handler Use Only.
229 --
230 -- {End Of Comments}
231 -- ---------------------------------------------------------------------------+
232 Procedure pre_delete
233   (p_rec                   in out nocopy pqp_aat_shd.g_rec_type
234   ,p_effective_date        in date
235   ,p_datetrack_mode        in varchar2
236   ,p_validation_start_date in date
237   ,p_validation_end_date   in date
238   ) is
239 --
240   l_proc        varchar2(72) := g_package||'pre_delete';
241 --
242   --
243 --
244 Begin
245   hr_utility.set_location('Entering:'||l_proc, 5);
246   --
247 --
248   --
249   pqp_aat_del.dt_pre_delete
250     (p_rec                   => p_rec
251     ,p_effective_date        => p_effective_date
252     ,p_datetrack_mode        => p_datetrack_mode
253     ,p_validation_start_date => p_validation_start_date
254     ,p_validation_end_date   => p_validation_end_date
255     );
256   --
257   hr_utility.set_location(' Leaving:'||l_proc, 10);
258 End pre_delete;
259 --
260 -- ---------------------------------------------------------------------------+
261 -- |----------------------------< post_delete >-------------------------------|
262 -- ---------------------------------------------------------------------------+
263 -- {Start Of Comments}
264 --
265 -- Description:
266 --   This private procedure contains any processing which is required after the
267 --   delete dml.
268 --
269 -- Prerequisites:
270 --   This is an internal procedure which is called from the del procedure.
271 --
272 -- In Parameters:
273 --   A Pl/Sql record structure.
274 --
275 -- Post Success:
276 --   Processing continues.
277 --
278 -- Post Failure:
279 --   If an error has occurred, an error message and exception will be raised
280 --   but not handled.
281 --
282 -- Developer Implementation Notes:
283 --   Any post-processing required after the delete dml is issued should be
284 --   coded within this procedure. It is important to note that any 3rd party
285 --   maintenance should be reviewed before placing in this procedure.
286 --
287 -- Access Status:
288 --   Internal Row Handler Use Only.
289 --
290 -- {End Of Comments}
291 -- ---------------------------------------------------------------------------+
292 Procedure post_delete
293   (p_rec                   in pqp_aat_shd.g_rec_type
294   ,p_effective_date        in date
295   ,p_datetrack_mode        in varchar2
296   ,p_validation_start_date in date
297   ,p_validation_end_date   in date
298   ) is
299 --
300   l_proc        varchar2(72) := g_package||'post_delete';
301 --
302 Begin
303   hr_utility.set_location('Entering:'||l_proc, 5);
304    begin
305     --
306     pqp_aat_rkd.after_delete
307       (p_effective_date
308       => p_effective_date
309       ,p_datetrack_mode
310       => p_datetrack_mode
311       ,p_validation_start_date
312       => p_validation_start_date
313       ,p_validation_end_date
314       => p_validation_end_date
315       ,p_assignment_attribute_id
316       => p_rec.assignment_attribute_id
317       ,p_effective_start_date
318       => p_rec.effective_start_date
319       ,p_effective_end_date
320       => p_rec.effective_end_date
321       ,p_effective_start_date_o
322       => pqp_aat_shd.g_old_rec.effective_start_date
323       ,p_effective_end_date_o
324       => pqp_aat_shd.g_old_rec.effective_end_date
325       ,p_business_group_id_o
326       => pqp_aat_shd.g_old_rec.business_group_id
327       ,p_assignment_id_o
328       => pqp_aat_shd.g_old_rec.assignment_id
329       ,p_contract_type_o
330       => pqp_aat_shd.g_old_rec.contract_type
331       ,p_work_pattern_o
332       => pqp_aat_shd.g_old_rec.work_pattern
333       ,p_start_day_o
334       => pqp_aat_shd.g_old_rec.start_day
335       ,p_object_version_number_o
336       => pqp_aat_shd.g_old_rec.object_version_number
337       ,p_primary_company_car_o
338       => pqp_aat_shd.g_old_rec.primary_company_car
339       ,p_primary_car_fuel_benefit_o
340       => pqp_aat_shd.g_old_rec.primary_car_fuel_benefit
341       ,p_primary_class_1a_o
342       => pqp_aat_shd.g_old_rec.primary_class_1a
343       ,p_primary_capital_contributi_o
344       => pqp_aat_shd.g_old_rec.primary_capital_contribution
345       ,p_primary_private_contributi_o
346       => pqp_aat_shd.g_old_rec.primary_private_contribution
347       ,p_secondary_company_car_o
348       => pqp_aat_shd.g_old_rec.secondary_company_car
349       ,p_secondary_car_fuel_benefit_o
350       => pqp_aat_shd.g_old_rec.secondary_car_fuel_benefit
351       ,p_secondary_class_1a_o
352       => pqp_aat_shd.g_old_rec.secondary_class_1a
353       ,p_secondary_capital_contribu_o
354       => pqp_aat_shd.g_old_rec.secondary_capital_contribution
355       ,p_secondary_private_contribu_o
356       => pqp_aat_shd.g_old_rec.secondary_private_contribution
357       ,p_company_car_calc_method_o
358       => pqp_aat_shd.g_old_rec.company_car_calc_method
359       ,p_company_car_rates_table_id_o
360       => pqp_aat_shd.g_old_rec.company_car_rates_table_id
361       ,p_company_car_secondary_tabl_o
362       => pqp_aat_shd.g_old_rec.company_car_secondary_table_id
363       ,p_private_car_o
364       => pqp_aat_shd.g_old_rec.private_car
365       ,p_private_car_calc_method_o
366       => pqp_aat_shd.g_old_rec.private_car_calc_method
367       ,p_private_car_rates_table_id_o
368       => pqp_aat_shd.g_old_rec.private_car_rates_table_id
369       ,p_private_car_essential_tabl_o
370       => pqp_aat_shd.g_old_rec.private_car_essential_table_id
371       ,p_tp_is_teacher_o
372       => pqp_aat_shd.g_old_rec.tp_is_teacher
373      ,p_tp_headteacher_grp_code_o   --added for head Teacher seconded location for salary scale calculation
374      => pqp_aat_shd.g_old_rec.tp_headteacher_grp_code
375       ,p_tp_safeguarded_grade_o
376       => pqp_aat_shd.g_old_rec.tp_safeguarded_grade
377       ,p_tp_safeguarded_grade_id_o
378       => pqp_aat_shd.g_old_rec.tp_safeguarded_grade_id
379       ,p_tp_safeguarded_rate_type_o
380       => pqp_aat_shd.g_old_rec.tp_safeguarded_rate_type
381       ,p_tp_safeguarded_rate_id_o
382       => pqp_aat_shd.g_old_rec.tp_safeguarded_rate_id
383       ,p_tp_spinal_point_id_o
384       => pqp_aat_shd.g_old_rec.tp_safeguarded_spinal_point_id
385       ,p_tp_elected_pension_o
386       => pqp_aat_shd.g_old_rec.tp_elected_pension
387       ,p_tp_fast_track_o
388       => pqp_aat_shd.g_old_rec.tp_fast_track
389       ,p_aat_attribute_category_o
390       => pqp_aat_shd.g_old_rec.aat_attribute_category
391       ,p_aat_attribute1_o
392       => pqp_aat_shd.g_old_rec.aat_attribute1
393       ,p_aat_attribute2_o
394       => pqp_aat_shd.g_old_rec.aat_attribute2
395       ,p_aat_attribute3_o
396       => pqp_aat_shd.g_old_rec.aat_attribute3
397       ,p_aat_attribute4_o
398       => pqp_aat_shd.g_old_rec.aat_attribute4
399       ,p_aat_attribute5_o
400       => pqp_aat_shd.g_old_rec.aat_attribute5
401       ,p_aat_attribute6_o
405       ,p_aat_attribute8_o
402       => pqp_aat_shd.g_old_rec.aat_attribute6
403       ,p_aat_attribute7_o
404       => pqp_aat_shd.g_old_rec.aat_attribute7
406       => pqp_aat_shd.g_old_rec.aat_attribute8
407       ,p_aat_attribute9_o
408       => pqp_aat_shd.g_old_rec.aat_attribute9
409       ,p_aat_attribute10_o
410       => pqp_aat_shd.g_old_rec.aat_attribute10
411       ,p_aat_attribute11_o
412       => pqp_aat_shd.g_old_rec.aat_attribute11
413       ,p_aat_attribute12_o
414       => pqp_aat_shd.g_old_rec.aat_attribute12
415       ,p_aat_attribute13_o
416       => pqp_aat_shd.g_old_rec.aat_attribute13
417       ,p_aat_attribute14_o
418       => pqp_aat_shd.g_old_rec.aat_attribute14
419       ,p_aat_attribute15_o
420       => pqp_aat_shd.g_old_rec.aat_attribute15
421       ,p_aat_attribute16_o
422       => pqp_aat_shd.g_old_rec.aat_attribute16
423       ,p_aat_attribute17_o
424       => pqp_aat_shd.g_old_rec.aat_attribute17
425       ,p_aat_attribute18_o
426       => pqp_aat_shd.g_old_rec.aat_attribute18
427       ,p_aat_attribute19_o
428       => pqp_aat_shd.g_old_rec.aat_attribute19
429       ,p_aat_attribute20_o
430       => pqp_aat_shd.g_old_rec.aat_attribute20
431       ,p_aat_information_category_o
432       => pqp_aat_shd.g_old_rec.aat_information_category
433       ,p_aat_information1_o
434       => pqp_aat_shd.g_old_rec.aat_information1
435       ,p_aat_information2_o
436       => pqp_aat_shd.g_old_rec.aat_information2
437       ,p_aat_information3_o
438       => pqp_aat_shd.g_old_rec.aat_information3
439       ,p_aat_information4_o
440       => pqp_aat_shd.g_old_rec.aat_information4
441       ,p_aat_information5_o
442       => pqp_aat_shd.g_old_rec.aat_information5
443       ,p_aat_information6_o
444       => pqp_aat_shd.g_old_rec.aat_information6
445       ,p_aat_information7_o
446       => pqp_aat_shd.g_old_rec.aat_information7
447       ,p_aat_information8_o
448       => pqp_aat_shd.g_old_rec.aat_information8
449       ,p_aat_information9_o
450       => pqp_aat_shd.g_old_rec.aat_information9
451       ,p_aat_information10_o
452       => pqp_aat_shd.g_old_rec.aat_information10
453       ,p_aat_information11_o
454       => pqp_aat_shd.g_old_rec.aat_information11
455       ,p_aat_information12_o
456       => pqp_aat_shd.g_old_rec.aat_information12
457       ,p_aat_information13_o
458       => pqp_aat_shd.g_old_rec.aat_information13
459       ,p_aat_information14_o
460       => pqp_aat_shd.g_old_rec.aat_information14
461       ,p_aat_information15_o
462       => pqp_aat_shd.g_old_rec.aat_information15
463       ,p_aat_information16_o
464       => pqp_aat_shd.g_old_rec.aat_information16
465       ,p_aat_information17_o
466       => pqp_aat_shd.g_old_rec.aat_information17
467       ,p_aat_information18_o
468       => pqp_aat_shd.g_old_rec.aat_information18
469       ,p_aat_information19_o
470       => pqp_aat_shd.g_old_rec.aat_information19
471       ,p_aat_information20_o
472       => pqp_aat_shd.g_old_rec.aat_information20
473       ,p_lgps_process_flag
474       => pqp_aat_shd.g_old_rec.lgps_process_flag
475       ,p_lgps_exclusion_type
476       => pqp_aat_shd.g_old_rec.lgps_exclusion_type
477       ,p_lgps_pensionable_pay
478       => pqp_aat_shd.g_old_rec.lgps_pensionable_pay
479       ,p_lgps_trans_arrang_flag
480       => pqp_aat_shd.g_old_rec.lgps_trans_arrang_flag
481       ,p_lgps_membership_number
482       => pqp_aat_shd.g_old_rec.lgps_membership_number
483       );
484     --
485   exception
486     --
487     when hr_api.cannot_find_prog_unit then
488       --
489       hr_api.cannot_find_prog_unit_error
490         (p_module_name => 'PQP_ASSIGNMENT_ATTRIBUTES_F'
491         ,p_hook_type   => 'AD');
492       --
493   end;
494   --
495   hr_utility.set_location(' Leaving:'||l_proc, 10);
496 End post_delete;
497 --
498 -- ---------------------------------------------------------------------------+
499 -- |---------------------------------< del >----------------------------------|
500 -- ---------------------------------------------------------------------------+
501 Procedure del
502   (p_effective_date in     date
503   ,p_datetrack_mode in     varchar2
504   ,p_rec            in out nocopy pqp_aat_shd.g_rec_type
505   ) is
506 --
507   l_proc                        varchar2(72) := g_package||'del';
508   l_validation_start_date       date;
509   l_validation_end_date         date;
510 --
511 Begin
512   hr_utility.set_location('Entering:'||l_proc, 5);
513   --
514   -- Ensure that the DateTrack delete mode is valid
515   --
516   dt_api.validate_dt_del_mode(p_datetrack_mode => p_datetrack_mode);
517   --
518   -- We must lock the row which we need to delete.
519   --
520   pqp_aat_shd.lck
521     (p_effective_date                   => p_effective_date
522     ,p_datetrack_mode                   => p_datetrack_mode
523     ,p_assignment_attribute_id          => p_rec.assignment_attribute_id
524     ,p_object_version_number            => p_rec.object_version_number
525     ,p_validation_start_date            => l_validation_start_date
526     ,p_validation_end_date              => l_validation_end_date
527     );
528   --
529   -- Call the supporting delete validate operation
530   --
531   pqp_aat_bus.delete_validate
532     (p_rec                              => p_rec
536     ,p_validation_end_date              => l_validation_end_date
533     ,p_effective_date                   => p_effective_date
534     ,p_datetrack_mode                   => p_datetrack_mode
535     ,p_validation_start_date            => l_validation_start_date
537     );
538   --
539   -- Call the supporting pre-delete operation
540   --
541   pqp_aat_del.pre_delete
542     (p_rec                              => p_rec
543     ,p_effective_date                   => p_effective_date
544     ,p_datetrack_mode                   => p_datetrack_mode
545     ,p_validation_start_date            => l_validation_start_date
546     ,p_validation_end_date              => l_validation_end_date
547     );
548   --
549   -- Delete the row.
550   --
551   pqp_aat_del.delete_dml
552     (p_rec                              => p_rec
553     ,p_effective_date                   => p_effective_date
554     ,p_datetrack_mode                   => p_datetrack_mode
555     ,p_validation_start_date            => l_validation_start_date
556     ,p_validation_end_date              => l_validation_end_date
557     );
558   -- Call the supporting post-delete operation
559   --
560   pqp_aat_del.post_delete
561     (p_rec                              => p_rec
562     ,p_effective_date                   => p_effective_date
563     ,p_datetrack_mode                   => p_datetrack_mode
564     ,p_validation_start_date            => l_validation_start_date
565     ,p_validation_end_date              => l_validation_end_date
566     );
567   --
568   hr_utility.set_location(' Leaving:'||l_proc, 5);
569 End del;
570 --
571 -- ---------------------------------------------------------------------------+
572 -- |--------------------------------< del >-----------------------------------|
573 -- ---------------------------------------------------------------------------+
574 Procedure del
575   (p_effective_date                   in     date
576   ,p_datetrack_mode                   in     varchar2
577   ,p_assignment_attribute_id          in     number
578   ,p_object_version_number            in out nocopy number
579   ,p_effective_start_date                out nocopy date
580   ,p_effective_end_date                  out nocopy date
581   ) is
582 --
583   l_rec         pqp_aat_shd.g_rec_type;
584   l_proc        varchar2(72) := g_package||'del';
585 --
586 Begin
587   hr_utility.set_location('Entering:'||l_proc, 5);
588   --
589   -- As the delete procedure accepts a plsql record structure we do need to
590   -- convert the  arguments into the record structure.
591   -- We don't need to call the supplied conversion argument routine as we
592   -- only need a few attributes.
593   --
594   l_rec.assignment_attribute_id         := p_assignment_attribute_id;
595   l_rec.object_version_number   := p_object_version_number;
596   --
597   -- Having converted the arguments into the pqp_aat_rec
598   -- plsql record structure we must call the corresponding entity
599   -- business process
600   --
601   pqp_aat_del.del
602      (p_effective_date
603      ,p_datetrack_mode
604      ,l_rec
605      );
606   --
607   -- Set the out arguments
608   --
609   p_object_version_number            := l_rec.object_version_number;
610   p_effective_start_date             := l_rec.effective_start_date;
611   p_effective_end_date               := l_rec.effective_end_date;
612   --
613   hr_utility.set_location(' Leaving:'||l_proc, 10);
614 End del;
615 --
616 end pqp_aat_del;