79: l_last_updated_by ben_lee_rsn_f.last_updated_by%TYPE;
80: l_last_update_login ben_lee_rsn_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
267: p_rec.defer_deenrol_flag
268: );
269: --
270: ben_len_shd.g_api_dml := false; -- Unset the api dml status
271: hr_utility.set_location(' Leaving:'||l_proc, 15);
272: --
273: Exception
274: When hr_api.check_integrity_violated Then
275: -- A check constraint has been violated
298: --
299: l_proc varchar2(72) := g_package||'insert_dml';
300: --
301: Begin
302: hr_utility.set_location('Entering:'||l_proc, 5);
303: --
304: dt_insert_dml(p_rec => p_rec,
305: p_effective_date => p_effective_date,
306: p_datetrack_mode => p_datetrack_mode,
306: p_datetrack_mode => p_datetrack_mode,
307: p_validation_start_date => p_validation_start_date,
308: p_validation_end_date => p_validation_end_date);
309: --
310: hr_utility.set_location(' Leaving:'||l_proc, 10);
311: End insert_dml;
312: --
313: -- ----------------------------------------------------------------------------
314: -- |------------------------------< pre_insert >------------------------------|
360: --
361: Cursor C_Sel1 is select ben_lee_rsn_f_s.nextval from sys.dual;
362: --
363: Begin
364: hr_utility.set_location('Entering:'||l_proc, 5);
365: --
366: --
367: Open C_Sel1;
368: Fetch C_Sel1 Into p_rec.lee_rsn_id;
367: Open C_Sel1;
368: Fetch C_Sel1 Into p_rec.lee_rsn_id;
369: Close C_Sel1;
370: --
371: hr_utility.set_location(' Leaving:'||l_proc, 10);
372: End pre_insert;
373: --
374: -- ----------------------------------------------------------------------------
375: -- |-----------------------------< post_insert >------------------------------|
412: --
413: l_proc varchar2(72) := g_package||'post_insert';
414: --
415: Begin
416: hr_utility.set_location('Entering:'||l_proc, 5);
417: --
418: --
419: -- Start of API User Hook for post_insert.
420: --
500: --
501: -- End of API User Hook for post_insert.
502: --
503: --
504: hr_utility.set_location(' Leaving:'||l_proc, 10);
505: End post_insert;
506: --
507: -- ----------------------------------------------------------------------------
508: -- |-------------------------------< ins_lck >--------------------------------|
552: l_validation_start_date date;
553: l_validation_end_date date;
554: --
555: Begin
556: hr_utility.set_location('Entering:'||l_proc, 5);
557: --
558: -- Validate the datetrack mode mode getting the validation start
559: -- and end dates for the specified datetrack operation.
560: --
575: --
576: p_validation_start_date := l_validation_start_date;
577: p_validation_end_date := l_validation_end_date;
578: --
579: hr_utility.set_location(' Leaving:'||l_proc, 10);
580: --
581: End ins_lck;
582: --
583: -- ----------------------------------------------------------------------------
594: l_validation_start_date date;
595: l_validation_end_date date;
596: --
597: Begin
598: hr_utility.set_location('Entering:'||l_proc, 5);
599: --
600: -- Call the lock operation
601: --
602: ins_lck
715: l_rec ben_len_shd.g_rec_type;
716: l_proc varchar2(72) := g_package||'ins';
717: --
718: Begin
719: hr_utility.set_location('Entering:'||l_proc, 5);
720: --
721: -- Call conversion function to turn arguments into the
722: -- p_rec structure.
723: --
800: p_effective_end_date := l_rec.effective_end_date;
801: p_object_version_number := l_rec.object_version_number;
802: --
803: --
804: hr_utility.set_location(' Leaving:'||l_proc, 10);
805: End ins;
806: --
807: end ben_len_ins;