79: l_last_updated_by ben_pl_regy_bod_f.last_updated_by%TYPE;
80: l_last_update_login ben_pl_regy_bod_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;
231: l_last_update_login
232: );
233: --
234: ben_prb_shd.g_api_dml := false; -- Unset the api dml status
235: hr_utility.set_location(' Leaving:'||l_proc, 15);
236: --
237: Exception
238: When hr_api.check_integrity_violated Then
239: -- A check constraint has been violated
262: --
263: l_proc varchar2(72) := g_package||'insert_dml';
264: --
265: Begin
266: hr_utility.set_location('Entering:'||l_proc, 5);
267: --
268: dt_insert_dml(p_rec => p_rec,
269: p_effective_date => p_effective_date,
270: p_datetrack_mode => p_datetrack_mode,
270: p_datetrack_mode => p_datetrack_mode,
271: p_validation_start_date => p_validation_start_date,
272: p_validation_end_date => p_validation_end_date);
273: --
274: hr_utility.set_location(' Leaving:'||l_proc, 10);
275: End insert_dml;
276: --
277: -- ----------------------------------------------------------------------------
278: -- |------------------------------< pre_insert >------------------------------|
324: --
325: Cursor C_Sel1 is select ben_pl_regy_bod_f_s.nextval from sys.dual;
326: --
327: Begin
328: hr_utility.set_location('Entering:'||l_proc, 5);
329: --
330: -- Select the next sequence number
331: --
332: Open C_Sel1;
332: Open C_Sel1;
333: Fetch C_Sel1 Into p_rec.pl_regy_bod_id;
334: Close C_Sel1;
335: --
336: hr_utility.set_location(' Leaving:'||l_proc, 10);
337: End pre_insert;
338: --
339: -- ----------------------------------------------------------------------------
340: -- |-----------------------------< post_insert >------------------------------|
377: --
378: l_proc varchar2(72) := g_package||'post_insert';
379: --
380: Begin
381: hr_utility.set_location('Entering:'||l_proc, 5);
382: --
383: -- Start of API User Hook for post_insert.
384: --
385: begin
445: end;
446: --
447: -- End of API User Hook for post_insert.
448: --
449: hr_utility.set_location(' Leaving:'||l_proc, 10);
450: End post_insert;
451: --
452: -- ----------------------------------------------------------------------------
453: -- |-------------------------------< ins_lck >--------------------------------|
497: l_validation_start_date date;
498: l_validation_end_date date;
499: --
500: Begin
501: hr_utility.set_location('Entering:'||l_proc, 5);
502: --
503: -- Validate the datetrack mode mode getting the validation start
504: -- and end dates for the specified datetrack operation.
505: --
520: --
521: p_validation_start_date := l_validation_start_date;
522: p_validation_end_date := l_validation_end_date;
523: --
524: hr_utility.set_location(' Leaving:'||l_proc, 10);
525: --
526: End ins_lck;
527: --
528: -- ----------------------------------------------------------------------------
539: l_validation_start_date date;
540: l_validation_end_date date;
541: --
542: Begin
543: hr_utility.set_location('Entering:'||l_proc, 5);
544: --
545: -- Call the lock operation
546: --
547: ins_lck
642: l_rec ben_prb_shd.g_rec_type;
643: l_proc varchar2(72) := g_package||'ins';
644: --
645: Begin
646: hr_utility.set_location('Entering:'||l_proc, 5);
647: --
648: -- Call conversion function to turn arguments into the
649: -- p_rec structure.
650: --
709: p_effective_end_date := l_rec.effective_end_date;
710: p_object_version_number := l_rec.object_version_number;
711: --
712: --
713: hr_utility.set_location(' Leaving:'||l_proc, 10);
714: End ins;
715: --
716: end ben_prb_ins;