1: Package Body per_pps_ins as
2: /* $Header: peppsrhi.pkb 120.0 2005/05/31 15:03:02 appldev noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' per_pps_ins.'; -- Global package name
9: --
10: -- The following global variables are only to be used by
11: -- the set_base_key_value and pre_insert procedures.
12: --
22: --
23: Begin
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: per_pps_ins.g_parent_spine_id_i := p_parent_spine_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
289: Cursor C_Sel2 is
290: Select null
291: from per_parent_spines
292: where parent_spine_id =
293: per_pps_ins.g_parent_spine_id_i;
294: --
295: l_proc varchar2(72) := g_package||'pre_insert';
296: l_exists varchar2(1);
297: --
297: --
298: Begin
299: hr_utility.set_location('Entering:'||l_proc, 5);
300: --
301: If (per_pps_ins.g_parent_spine_id_i is not null) Then
302: --
303: -- Verify registered primary key values not already in use
304: --
305: Open C_Sel2;
317: --
318: -- Use registered key values and clear globals
319: --
320: p_rec.parent_spine_id :=
321: per_pps_ins.g_parent_spine_id_i;
322: per_pps_ins.g_parent_spine_id_i := null;
323: Else
324: --
325: -- No registerd key values, so select the next sequence number
318: -- Use registered key values and clear globals
319: --
320: p_rec.parent_spine_id :=
321: per_pps_ins.g_parent_spine_id_i;
322: per_pps_ins.g_parent_spine_id_i := null;
323: Else
324: --
325: -- No registerd key values, so select the next sequence number
326: --
547: hr_multi_message.end_validation_set;
548: --
549: -- Call the supporting pre-insert operation
550: --
551: per_pps_ins.pre_insert(p_rec);
552: --
553: -- Insert the row
554: --
555: per_pps_ins.insert_dml(p_rec);
551: per_pps_ins.pre_insert(p_rec);
552: --
553: -- Insert the row
554: --
555: per_pps_ins.insert_dml(p_rec);
556: --
557: -- Call the supporting post-insert operation
558: --
559: per_pps_ins.post_insert
555: per_pps_ins.insert_dml(p_rec);
556: --
557: -- Call the supporting post-insert operation
558: --
559: per_pps_ins.post_insert
560: (p_effective_date
561: ,p_rec
562: );
563: --
717: --
718: -- Having converted the arguments into the per_pps_rec
719: -- plsql record structure we call the corresponding record business process.
720: --
721: per_pps_ins.ins
722: (p_effective_date
723: ,l_rec
724: );
725: --
731: --
732: hr_utility.set_location(' Leaving:'||l_proc, 10);
733: End ins;
734: --
735: end per_pps_ins;