79: l_last_updated_by ben_ee_stat_rt_f.last_updated_by%TYPE;
80: l_last_update_login ben_ee_stat_rt_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;
111: -- The previous 'old' created row has not been found. We need
112: -- to error as an internal datetrack problem exists.
113: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
112: -- to error as an internal datetrack problem exists.
113: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
120: Close C_Sel1;
113: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
120: Close C_Sel1;
121: --
114: Close C_Sel1;
115: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
116: hr_utility.set_message_token('PROCEDURE', l_proc);
117: hr_utility.set_message_token('STEP','10');
118: hr_utility.raise_error;
119: End If;
120: Close C_Sel1;
121: --
122: -- Set the AOL updated WHO values
225: l_last_update_login
226: );
227: --
228: ben_esr_shd.g_api_dml := false; -- Unset the api dml status
229: hr_utility.set_location(' Leaving:'||l_proc, 15);
230: --
231: Exception
232: When hr_api.check_integrity_violated Then
233: -- A check constraint has been violated
256: --
257: l_proc varchar2(72) := g_package||'insert_dml';
258: --
259: Begin
260: hr_utility.set_location('Entering:'||l_proc, 5);
261: --
262: dt_insert_dml(p_rec => p_rec,
263: p_effective_date => p_effective_date,
264: p_datetrack_mode => p_datetrack_mode,
264: p_datetrack_mode => p_datetrack_mode,
265: p_validation_start_date => p_validation_start_date,
266: p_validation_end_date => p_validation_end_date);
267: --
268: hr_utility.set_location(' Leaving:'||l_proc, 10);
269: End insert_dml;
270: --
271: -- ----------------------------------------------------------------------------
272: -- |------------------------------< pre_insert >------------------------------|
319: --
320: cursor c1 is select ben_ee_stat_rt_f_s.nextval from sys.dual;
321: --
322: Begin
323: hr_utility.set_location('Entering:'||l_proc, 5);
324: --
325: open c1;
326: fetch c1 into p_rec.ee_stat_rt_id;
327: close c1;
325: open c1;
326: fetch c1 into p_rec.ee_stat_rt_id;
327: close c1;
328: --
329: hr_utility.set_location(' Leaving:'||l_proc, 10);
330: End pre_insert;
331: --
332: -- ----------------------------------------------------------------------------
333: -- |-----------------------------< post_insert >------------------------------|
370: --
371: l_proc varchar2(72) := g_package||'post_insert';
372: --
373: Begin
374: hr_utility.set_location('Entering:'||l_proc, 5);
375: --
376: --
377: -- Start of API User Hook for post_insert.
378: --
437: --
438: -- End of API User Hook for post_insert.
439: --
440: --
441: hr_utility.set_location(' Leaving:'||l_proc, 10);
442: End post_insert;
443: --
444: -- ----------------------------------------------------------------------------
445: -- |-------------------------------< ins_lck >--------------------------------|
489: l_validation_start_date date;
490: l_validation_end_date date;
491: --
492: Begin
493: hr_utility.set_location('Entering:'||l_proc, 5);
494: --
495: -- Validate the datetrack mode mode getting the validation start
496: -- and end dates for the specified datetrack operation.
497: --
516: --
517: p_validation_start_date := l_validation_start_date;
518: p_validation_end_date := l_validation_end_date;
519: --
520: hr_utility.set_location(' Leaving:'||l_proc, 10);
521: --
522: End ins_lck;
523: --
524: -- ----------------------------------------------------------------------------
535: l_validation_start_date date;
536: l_validation_end_date date;
537: --
538: Begin
539: hr_utility.set_location('Entering:'||l_proc, 5);
540: --
541: -- Call the lock operation
542: --
543: ins_lck
635: l_rec ben_esr_shd.g_rec_type;
636: l_proc varchar2(72) := g_package||'ins';
637: --
638: Begin
639: hr_utility.set_location('Entering:'||l_proc, 5);
640: --
641: -- Call conversion function to turn arguments into the
642: -- p_rec structure.
643: --
699: p_effective_end_date := l_rec.effective_end_date;
700: p_object_version_number := l_rec.object_version_number;
701: --
702: --
703: hr_utility.set_location(' Leaving:'||l_proc, 10);
704: End ins;
705: --
706: end ben_esr_ins;