54: --
55: -- {End Of Comments}
56: -- ----------------------------------------------------------------------------
57: Procedure dt_insert_dml
58: (p_rec in out nocopy ben_edb_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_prte_f t
70: where t.elig_dsbld_prte_id = p_rec.elig_dsbld_prte_id
71: and t.effective_start_date =
72: ben_edb_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_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_edb_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_elig_dsbld_prte_f
132: --
133: insert into ben_elig_dsbld_prte_f
229: p_rec.criteria_weight
230:
231: );
232: --
233: ben_edb_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_edb_shd.g_api_dml := false; -- Unset the api dml status
240: ben_edb_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_edb_shd.g_api_dml := false; -- Unset the api dml status
240: ben_edb_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_edb_shd.g_api_dml := false; -- Unset the api dml status
240: ben_edb_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_edb_shd.g_api_dml := false; -- Unset the api dml status
245: ben_edb_shd.constraint_error
246: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
247: When Others Then
248: ben_edb_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_edb_shd.g_api_dml := false; -- Unset the api dml status
245: ben_edb_shd.constraint_error
246: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
247: When Others Then
248: ben_edb_shd.g_api_dml := false; -- Unset the api dml status
249: Raise;
244: ben_edb_shd.g_api_dml := false; -- Unset the api dml status
245: ben_edb_shd.constraint_error
246: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
247: When Others Then
248: ben_edb_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_edb_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_edb_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
368: --
369: -- {End Of Comments}
370: -- ----------------------------------------------------------------------------
371: Procedure post_insert
372: (p_rec in ben_edb_shd.g_rec_type,
373: p_effective_date in date,
374: p_datetrack_mode in varchar2,
375: p_validation_start_date in date,
376: p_validation_end_date in date) is
489: -- ----------------------------------------------------------------------------
490: Procedure ins_lck
491: (p_effective_date in date,
492: p_datetrack_mode in varchar2,
493: p_rec in ben_edb_shd.g_rec_type,
494: p_validation_start_date out nocopy date,
495: p_validation_end_date out nocopy date) is
496: --
497: l_proc varchar2(72) := g_package||'ins_lck';
530: -- |---------------------------------< ins >----------------------------------|
531: -- ----------------------------------------------------------------------------
532: Procedure ins
533: (
534: p_rec in out nocopy ben_edb_shd.g_rec_type,
535: p_effective_date in date
536: ) is
537: --
538: l_proc varchar2(72) := g_package||'ins';
638: ,p_criteria_score in number default null
639: ,p_criteria_weight in number default null
640: ) is
641: --
642: l_rec ben_edb_shd.g_rec_type;
643: l_proc varchar2(72) := g_package||'ins';
644: --
645: Begin
646: hr_utility.set_location('Entering:'||l_proc, 5);
648: -- Call conversion function to turn arguments into the
649: -- p_rec structure.
650: --
651: l_rec :=
652: ben_edb_shd.convert_args
653: (
654: null,
655: p_dsbld_cd,
656: null,