54: --
55: -- {End Of Comments}
56: -- ----------------------------------------------------------------------------
57: Procedure dt_insert_dml
58: (p_rec in out nocopy ben_edc_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_elig_dsbld_stat_cvg_f t
70: where t.elig_dsbld_stat_cvg_id = p_rec.elig_dsbld_stat_cvg_id
71: and t.effective_start_date =
72: ben_edc_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_elig_dsbld_stat_cvg_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_edc_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_elig_dsbld_stat_cvg_f
132: --
133: insert into ben_elig_dsbld_stat_cvg_f
228: l_last_updated_by,
229: l_last_update_login
230: );
231: --
232: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
233: hr_utility.set_location(' Leaving:'||l_proc, 15);
234: --
235: Exception
236: When hr_api.check_integrity_violated Then
234: --
235: Exception
236: When hr_api.check_integrity_violated Then
237: -- A check constraint has been violated
238: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
239: ben_edc_shd.constraint_error
240: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
241: When hr_api.unique_integrity_violated Then
242: -- Unique integrity has been violated
235: Exception
236: When hr_api.check_integrity_violated Then
237: -- A check constraint has been violated
238: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
239: ben_edc_shd.constraint_error
240: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
241: When hr_api.unique_integrity_violated Then
242: -- Unique integrity has been violated
243: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
239: ben_edc_shd.constraint_error
240: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
241: When hr_api.unique_integrity_violated Then
242: -- Unique integrity has been violated
243: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
244: ben_edc_shd.constraint_error
245: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
246: When Others Then
247: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
240: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
241: When hr_api.unique_integrity_violated Then
242: -- Unique integrity has been violated
243: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
244: ben_edc_shd.constraint_error
245: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
246: When Others Then
247: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
248: Raise;
243: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
244: ben_edc_shd.constraint_error
245: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
246: When Others Then
247: ben_edc_shd.g_api_dml := false; -- Unset the api dml status
248: Raise;
249: End dt_insert_dml;
250: --
251: -- ----------------------------------------------------------------------------
251: -- ----------------------------------------------------------------------------
252: -- |------------------------------< insert_dml >------------------------------|
253: -- ----------------------------------------------------------------------------
254: Procedure insert_dml
255: (p_rec in out nocopy ben_edc_shd.g_rec_type,
256: p_effective_date in date,
257: p_datetrack_mode in varchar2,
258: p_validation_start_date in date,
259: p_validation_end_date in date) is
311: --
312: -- {End Of Comments}
313: -- ----------------------------------------------------------------------------
314: Procedure pre_insert
315: (p_rec in out nocopy ben_edc_shd.g_rec_type,
316: p_effective_date in date,
317: p_datetrack_mode in varchar2,
318: p_validation_start_date in date,
319: p_validation_end_date in date) is
370: --
371: -- {End Of Comments}
372: -- ----------------------------------------------------------------------------
373: Procedure post_insert
374: (p_rec in ben_edc_shd.g_rec_type,
375: p_effective_date in date,
376: p_datetrack_mode in varchar2,
377: p_validation_start_date in date,
378: p_validation_end_date in date) is
491: -- ----------------------------------------------------------------------------
492: Procedure ins_lck
493: (p_effective_date in date,
494: p_datetrack_mode in varchar2,
495: p_rec in ben_edc_shd.g_rec_type,
496: p_validation_start_date out nocopy date,
497: p_validation_end_date out nocopy date) is
498: --
499: l_proc varchar2(72) := g_package||'ins_lck';
532: -- |---------------------------------< ins >----------------------------------|
533: -- ----------------------------------------------------------------------------
534: Procedure ins
535: (
536: p_rec in out nocopy ben_edc_shd.g_rec_type,
537: p_effective_date in date
538: ) is
539: --
540: l_proc varchar2(72) := g_package||'ins';
640: p_object_version_number out nocopy number,
641: p_effective_date in date
642: ) is
643: --
644: l_rec ben_edc_shd.g_rec_type;
645: l_proc varchar2(72) := g_package||'ins';
646: --
647: Begin
648: hr_utility.set_location('Entering:'||l_proc, 5);
650: -- Call conversion function to turn arguments into the
651: -- p_rec structure.
652: --
653: l_rec :=
654: ben_edc_shd.convert_args
655: (
656: null,
657: null,
658: null,