54: --
55: -- {End Of Comments}
56: -- ----------------------------------------------------------------------------
57: Procedure dt_insert_dml
58: (p_rec in out nocopy ben_ccm_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_cvg_amt_calc_mthd_f t
70: where t.cvg_amt_calc_mthd_id = p_rec.cvg_amt_calc_mthd_id
71: and t.effective_start_date =
72: ben_ccm_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_cvg_amt_calc_mthd_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_ccm_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_cvg_amt_calc_mthd_f
132: --
133: insert into ben_cvg_amt_calc_mthd_f
272: l_last_updated_by,
273: l_last_update_login
274: );
275: --
276: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
277: hr_utility.set_location(' Leaving:'||l_proc, 15);
278: --
279: Exception
280: When hr_api.check_integrity_violated Then
278: --
279: Exception
280: When hr_api.check_integrity_violated Then
281: -- A check constraint has been violated
282: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
283: ben_ccm_shd.constraint_error
284: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
285: When hr_api.unique_integrity_violated Then
286: -- Unique integrity has been violated
279: Exception
280: When hr_api.check_integrity_violated Then
281: -- A check constraint has been violated
282: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
283: ben_ccm_shd.constraint_error
284: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
285: When hr_api.unique_integrity_violated Then
286: -- Unique integrity has been violated
287: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
283: ben_ccm_shd.constraint_error
284: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
285: When hr_api.unique_integrity_violated Then
286: -- Unique integrity has been violated
287: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
288: ben_ccm_shd.constraint_error
289: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
290: When Others Then
291: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
284: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
285: When hr_api.unique_integrity_violated Then
286: -- Unique integrity has been violated
287: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
288: ben_ccm_shd.constraint_error
289: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
290: When Others Then
291: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
292: Raise;
287: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
288: ben_ccm_shd.constraint_error
289: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
290: When Others Then
291: ben_ccm_shd.g_api_dml := false; -- Unset the api dml status
292: Raise;
293: End dt_insert_dml;
294: --
295: -- ----------------------------------------------------------------------------
295: -- ----------------------------------------------------------------------------
296: -- |------------------------------< insert_dml >------------------------------|
297: -- ----------------------------------------------------------------------------
298: Procedure insert_dml
299: (p_rec in out nocopy ben_ccm_shd.g_rec_type,
300: p_effective_date in date,
301: p_datetrack_mode in varchar2,
302: p_validation_start_date in date,
303: p_validation_end_date in date) is
355: --
356: -- {End Of Comments}
357: -- ----------------------------------------------------------------------------
358: Procedure pre_insert
359: (p_rec in out nocopy ben_ccm_shd.g_rec_type,
360: p_effective_date in date,
361: p_datetrack_mode in varchar2,
362: p_validation_start_date in date,
363: p_validation_end_date in date) is
410: --
411: -- {End Of Comments}
412: -- ----------------------------------------------------------------------------
413: Procedure post_insert
414: (p_rec in ben_ccm_shd.g_rec_type,
415: p_effective_date in date,
416: p_datetrack_mode in varchar2,
417: p_validation_start_date in date,
418: p_validation_end_date in date) is
553: -- ----------------------------------------------------------------------------
554: Procedure ins_lck
555: (p_effective_date in date,
556: p_datetrack_mode in varchar2,
557: p_rec in ben_ccm_shd.g_rec_type,
558: p_validation_start_date out nocopy date,
559: p_validation_end_date out nocopy date) is
560: --
561: l_proc varchar2(72) := g_package||'ins_lck';
600: -- |---------------------------------< ins >----------------------------------|
601: -- ----------------------------------------------------------------------------
602: Procedure ins
603: (
604: p_rec in out nocopy ben_ccm_shd.g_rec_type,
605: p_effective_date in date
606: ) is
607: --
608: l_proc varchar2(72) := g_package||'ins';
730: p_object_version_number out nocopy number,
731: p_effective_date in date
732: ) is
733: --
734: l_rec ben_ccm_shd.g_rec_type;
735: l_proc varchar2(72) := g_package||'ins';
736: --
737: Begin
738: hr_utility.set_location('Entering:'||l_proc, 5);
740: -- Call conversion function to turn arguments into the
741: -- p_rec structure.
742: --
743: l_rec :=
744: ben_ccm_shd.convert_args
745: (
746: null,
747: null,
748: null,