79: l_last_updated_by ben_prtt_enrt_rslt_f.last_updated_by%TYPE;
80: l_last_update_login ben_prtt_enrt_rslt_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;
289: l_last_update_login
290: );
291: --
292: ben_pen_shd.g_api_dml := false; -- Unset the api dml status
293: hr_utility.set_location(' Leaving:'||l_proc, 15);
294: --
295: Exception
296: When hr_api.check_integrity_violated Then
297: -- A check constraint has been violated
320: --
321: l_proc varchar2(72) := g_package||'insert_dml';
322: --
323: Begin
324: hr_utility.set_location('Entering:'||l_proc, 5);
325: --
326: dt_insert_dml(p_rec => p_rec,
327: p_effective_date => p_effective_date,
328: p_datetrack_mode => p_datetrack_mode,
328: p_datetrack_mode => p_datetrack_mode,
329: p_validation_start_date => p_validation_start_date,
330: p_validation_end_date => p_validation_end_date);
331: --
332: hr_utility.set_location(' Leaving:'||l_proc, 10);
333: End insert_dml;
334: --
335: -- ----------------------------------------------------------------------------
336: -- |------------------------------< pre_insert >------------------------------|
384: --
385: --
386: --
387: Begin
388: hr_utility.set_location('Entering:'||l_proc, 5);
389: --
390: -- Select the next sequence number
391: --
392: Open C_Sel1;
399: end if;
400:
401: --
402: --
403: hr_utility.set_location(' Leaving:'||l_proc, 10);
404: End pre_insert;
405: --
406: -- ----------------------------------------------------------------------------
407: -- |-----------------------------< post_insert >------------------------------|
444: --
445: l_proc varchar2(72) := g_package||'post_insert';
446: --
447: Begin
448: hr_utility.set_location('Entering:'||l_proc, 5);
449: --
450: ben_dt_trgr_handle.prtt_enrt_rslt
451: (p_rowid => null
452: ,p_prtt_enrt_rslt_id => p_rec.prtt_enrt_rslt_id
551: --
552: -- End of API User Hook for post_insert.
553: --
554: --
555: hr_utility.set_location(' Leaving:'||l_proc, 10);
556: End post_insert;
557: --
558: -- ----------------------------------------------------------------------------
559: -- |-------------------------------< ins_lck >--------------------------------|
602: l_validation_start_date date;
603: l_validation_end_date date;
604: --
605: Begin
606: hr_utility.set_location('Entering:'||l_proc, 5);
607: --
608: -- Validate the datetrack mode mode getting the validation start
609: -- and end dates for the specified datetrack operation.
610: --
643: --
644: p_validation_start_date := l_validation_start_date;
645: p_validation_end_date := l_validation_end_date;
646: --
647: hr_utility.set_location(' Leaving:'||l_proc, 10);
648: End ins_lck;
649: --
650: -- ----------------------------------------------------------------------------
651: -- |---------------------------------< ins >----------------------------------|
661: l_validation_start_date date;
662: l_validation_end_date date;
663: --
664: Begin
665: hr_utility.set_location('Entering:'||l_proc, 5);
666: --
667: -- Call the lock operation
668: --
669: ins_lck
724: -- DBI - Added DBI Event Logging Hooks
725: /* Commented. Need to uncomment when DBI goes into mainline
726: 5554590 : Enabled DBI logging into mainline */
727: if HRI_BPL_BEN_UTIL.enable_ben_col_evt_que then
728: hr_utility.set_location('Logging PEN insert event'|| l_proc, 5);
729: hri_opl_ben_elig_enrl_eq.insert_event (
730: p_rec => p_rec ,
731: p_effective_date => p_effective_date,
732: p_datetrack_mode => l_datetrack_mode );
817: l_rec ben_pen_shd.g_rec_type;
818: l_proc varchar2(72) := g_package||'ins';
819: --
820: Begin
821: hr_utility.set_location('Entering:'||l_proc, 5);
822: --
823: -- Call conversion function to turn arguments into the
824: -- p_rec structure.
825: --
913: p_effective_end_date := l_rec.effective_end_date;
914: p_object_version_number := l_rec.object_version_number;
915: --
916: --
917: hr_utility.set_location(' Leaving:'||l_proc, 10);
918: End ins;
919: --
920: end ben_pen_ins;