54: --
55: -- {End Of Comments}
56: -- ----------------------------------------------------------------------------
57: Procedure dt_insert_dml
58: (p_rec in out nocopy ben_cer_shd.g_rec_type,
59: p_effective_date in date,
60: p_datetrack_mode in varchar2,
61: p_validation_start_date in date,
62: p_validation_end_date in date) is
68: t.creation_date
69: from ben_prtn_eligy_rl_f t
70: where t.prtn_eligy_rl_id = p_rec.prtn_eligy_rl_id
71: and t.effective_start_date =
72: ben_cer_shd.g_old_rec.effective_start_date
73: and t.effective_end_date = (p_validation_start_date - 1);
74: --
75: l_proc varchar2(72) := g_package||'dt_insert_dml';
76: l_created_by ben_prtn_eligy_rl_f.created_by%TYPE;
125: l_last_updated_by := fnd_global.user_id;
126: l_last_update_login := fnd_global.login_id;
127: End If;
128: --
129: ben_cer_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_prtn_eligy_rl_f
132: --
133: insert into ben_prtn_eligy_rl_f
226: l_last_updated_by,
227: l_last_update_login
228: );
229: --
230: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
231: hr_utility.set_location(' Leaving:'||l_proc, 15);
232: --
233: Exception
234: When hr_api.check_integrity_violated Then
232: --
233: Exception
234: When hr_api.check_integrity_violated Then
235: -- A check constraint has been violated
236: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
237: ben_cer_shd.constraint_error
238: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
239: When hr_api.unique_integrity_violated Then
240: -- Unique integrity has been violated
233: Exception
234: When hr_api.check_integrity_violated Then
235: -- A check constraint has been violated
236: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
237: ben_cer_shd.constraint_error
238: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
239: When hr_api.unique_integrity_violated Then
240: -- Unique integrity has been violated
241: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
237: ben_cer_shd.constraint_error
238: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
239: When hr_api.unique_integrity_violated Then
240: -- Unique integrity has been violated
241: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
242: ben_cer_shd.constraint_error
243: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
244: When Others Then
245: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
238: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
239: When hr_api.unique_integrity_violated Then
240: -- Unique integrity has been violated
241: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
242: ben_cer_shd.constraint_error
243: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
244: When Others Then
245: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
246: Raise;
241: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
242: ben_cer_shd.constraint_error
243: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
244: When Others Then
245: ben_cer_shd.g_api_dml := false; -- Unset the api dml status
246: Raise;
247: End dt_insert_dml;
248: --
249: -- ----------------------------------------------------------------------------
249: -- ----------------------------------------------------------------------------
250: -- |------------------------------< insert_dml >------------------------------|
251: -- ----------------------------------------------------------------------------
252: Procedure insert_dml
253: (p_rec in out nocopy ben_cer_shd.g_rec_type,
254: p_effective_date in date,
255: p_datetrack_mode in varchar2,
256: p_validation_start_date in date,
257: p_validation_end_date in date) is
309: --
310: -- {End Of Comments}
311: -- ----------------------------------------------------------------------------
312: Procedure pre_insert
313: (p_rec in out nocopy ben_cer_shd.g_rec_type,
314: p_effective_date in date,
315: p_datetrack_mode in varchar2,
316: p_validation_start_date in date,
317: p_validation_end_date in date) is
362: --
363: -- {End Of Comments}
364: -- ----------------------------------------------------------------------------
365: Procedure post_insert
366: (p_rec in ben_cer_shd.g_rec_type,
367: p_effective_date in date,
368: p_datetrack_mode in varchar2,
369: p_validation_start_date in date,
370: p_validation_end_date in date) is
482: -- ----------------------------------------------------------------------------
483: Procedure ins_lck
484: (p_effective_date in date,
485: p_datetrack_mode in varchar2,
486: p_rec in ben_cer_shd.g_rec_type,
487: p_validation_start_date out nocopy date,
488: p_validation_end_date out nocopy date) is
489: --
490: l_proc varchar2(72) := g_package||'ins_lck';
523: -- |---------------------------------< ins >----------------------------------|
524: -- ----------------------------------------------------------------------------
525: Procedure ins
526: (
527: p_rec in out nocopy ben_cer_shd.g_rec_type,
528: p_effective_date in date
529: ) is
530: --
531: l_proc varchar2(72) := g_package||'ins';
630: p_object_version_number out nocopy number,
631: p_effective_date in date
632: ) is
633: --
634: l_rec ben_cer_shd.g_rec_type;
635: l_proc varchar2(72) := g_package||'ins';
636: --
637: Begin
638: hr_utility.set_location('Entering:'||l_proc, 5);
640: -- Call conversion function to turn arguments into the
641: -- p_rec structure.
642: --
643: l_rec :=
644: ben_cer_shd.convert_args
645: (
646: null,
647: null,
648: null,