54: --
55: -- {End Of Comments}
56: -- ----------------------------------------------------------------------------
57: Procedure dt_insert_dml
58: (p_rec in out nocopy ben_pcr_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_per_cm_trgr_f t
70: where t.per_cm_trgr_id = p_rec.per_cm_trgr_id
71: and t.effective_start_date =
72: ben_pcr_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_per_cm_trgr_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_pcr_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_per_cm_trgr_f
132: --
133: insert into ben_per_cm_trgr_f
228: l_last_updated_by,
229: l_last_update_login
230: );
231: --
232: ben_pcr_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_pcr_shd.g_api_dml := false; -- Unset the api dml status
239: ben_pcr_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_pcr_shd.g_api_dml := false; -- Unset the api dml status
239: ben_pcr_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_pcr_shd.g_api_dml := false; -- Unset the api dml status
239: ben_pcr_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_pcr_shd.g_api_dml := false; -- Unset the api dml status
244: ben_pcr_shd.constraint_error
245: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
246: When Others Then
247: ben_pcr_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_pcr_shd.g_api_dml := false; -- Unset the api dml status
244: ben_pcr_shd.constraint_error
245: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
246: When Others Then
247: ben_pcr_shd.g_api_dml := false; -- Unset the api dml status
248: Raise;
243: ben_pcr_shd.g_api_dml := false; -- Unset the api dml status
244: ben_pcr_shd.constraint_error
245: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
246: When Others Then
247: ben_pcr_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_pcr_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_pcr_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
368: --
369: -- {End Of Comments}
370: -- ----------------------------------------------------------------------------
371: Procedure post_insert
372: (p_rec in ben_pcr_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_pcr_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_pcr_shd.g_rec_type,
535: p_effective_date in date
536: ) is
537: --
538: l_proc varchar2(72) := g_package||'ins';
638: p_object_version_number out nocopy number,
639: p_effective_date in date
640: ) is
641: --
642: l_rec ben_pcr_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_pcr_shd.convert_args
653: (
654: null,
655: null,
656: null,