79: l_last_updated_by ben_ptip_f.last_updated_by%TYPE;
80: l_last_update_login ben_ptip_f.last_update_login%TYPE;
81: --
82: Begin
83: hr_utility.set_location('Entering:'||l_proc, 5);
84: --
85: -- Get the object version number for the insert
86: --
87: p_rec.object_version_number :=
99: -- If the datetrack_mode is not INSERT then we must populate the WHO
100: -- columns with the 'old' creation values and 'new' updated values.
101: --
102: If (p_datetrack_mode <> 'INSERT') then
103: hr_utility.set_location(l_proc, 10);
104: --
105: -- Select the 'old' created values
106: --
107: Open C_Sel1;
353: p_rec.all_inelig
354: );
355: --
356: ben_ctp_shd.g_api_dml := false; -- Unset the api dml status
357: hr_utility.set_location(' Leaving:'||l_proc, 15);
358: --
359: Exception
360: When hr_api.check_integrity_violated Then
361: -- A check constraint has been violated
384: --
385: l_proc varchar2(72) := g_package||'insert_dml';
386: --
387: Begin
388: hr_utility.set_location('Entering:'||l_proc, 5);
389: --
390: dt_insert_dml(p_rec => p_rec,
391: p_effective_date => p_effective_date,
392: p_datetrack_mode => p_datetrack_mode,
392: p_datetrack_mode => p_datetrack_mode,
393: p_validation_start_date => p_validation_start_date,
394: p_validation_end_date => p_validation_end_date);
395: --
396: hr_utility.set_location(' Leaving:'||l_proc, 10);
397: End insert_dml;
398: --
399: -- ----------------------------------------------------------------------------
400: -- |------------------------------< pre_insert >------------------------------|
448: cursor c1 is select ben_ptip_f_s.nextval
449: from sys.dual;
450: --
451: Begin
452: hr_utility.set_location('Entering:'||l_proc, 5);
453: --
454: --
455: open c1;
456: fetch c1 into p_rec.ptip_id;
456: fetch c1 into p_rec.ptip_id;
457: close c1;
458: --
459: --
460: hr_utility.set_location(' Leaving:'||l_proc, 10);
461: End pre_insert;
462: --
463: -- ----------------------------------------------------------------------------
464: -- |-----------------------------< post_insert >------------------------------|
501: --
502: l_proc varchar2(72) := g_package||'post_insert';
503: --
504: Begin
505: hr_utility.set_location('Entering:'||l_proc, 5);
506: --
507: --
508: -- Start of API User Hook for post_insert.
509: --
632: --
633: -- End of API User Hook for post_insert.
634: --
635: --
636: hr_utility.set_location(' Leaving:'||l_proc, 10);
637: End post_insert;
638: --
639: -- ----------------------------------------------------------------------------
640: -- |-------------------------------< ins_lck >--------------------------------|
684: l_validation_start_date date;
685: l_validation_end_date date;
686: --
687: Begin
688: hr_utility.set_location('Entering:'||l_proc, 5);
689: --
690: -- Validate the datetrack mode mode getting the validation start
691: -- and end dates for the specified datetrack operation.
692: --
719: --
720: p_validation_start_date := l_validation_start_date;
721: p_validation_end_date := l_validation_end_date;
722: --
723: hr_utility.set_location(' Leaving:'||l_proc, 10);
724: --
725: End ins_lck;
726: --
727: -- ----------------------------------------------------------------------------
738: l_validation_start_date date;
739: l_validation_end_date date;
740: --
741: Begin
742: hr_utility.set_location('Entering:'||l_proc, 5);
743: --
744: -- Call the lock operation
745: --
746: ins_lck
902: l_rec ben_ctp_shd.g_rec_type;
903: l_proc varchar2(72) := g_package||'ins';
904: --
905: Begin
906: hr_utility.set_location('Entering:'||l_proc, 5);
907: --
908: -- Call conversion function to turn arguments into the
909: -- p_rec structure.
910: --
1029: p_effective_end_date := l_rec.effective_end_date;
1030: p_object_version_number := l_rec.object_version_number;
1031: --
1032: --
1033: hr_utility.set_location(' Leaving:'||l_proc, 10);
1034: End ins;
1035: --
1036: end ben_ctp_ins;