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