54: --
55: -- {End Of Comments}
56: -- ----------------------------------------------------------------------------
57: Procedure dt_insert_dml
58: (p_rec in out nocopy ben_pnd_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_pl_dpnt_cvg_ctfn_f t
70: where t.pl_dpnt_cvg_ctfn_id = p_rec.pl_dpnt_cvg_ctfn_id
71: and t.effective_start_date =
72: ben_pnd_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_pl_dpnt_cvg_ctfn_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_pnd_shd.g_api_dml := true; -- Set the api dml status
130: --
131: -- Insert the row into: ben_pl_dpnt_cvg_ctfn_f
132: --
133: insert into ben_pl_dpnt_cvg_ctfn_f
238: l_last_updated_by,
239: l_last_update_login
240: );
241: --
242: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
243: hr_utility.set_location(' Leaving:'||l_proc, 15);
244: --
245: Exception
246: When hr_api.check_integrity_violated Then
244: --
245: Exception
246: When hr_api.check_integrity_violated Then
247: -- A check constraint has been violated
248: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
249: ben_pnd_shd.constraint_error
250: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
251: When hr_api.unique_integrity_violated Then
252: -- Unique integrity has been violated
245: Exception
246: When hr_api.check_integrity_violated Then
247: -- A check constraint has been violated
248: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
249: ben_pnd_shd.constraint_error
250: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
251: When hr_api.unique_integrity_violated Then
252: -- Unique integrity has been violated
253: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
249: ben_pnd_shd.constraint_error
250: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
251: When hr_api.unique_integrity_violated Then
252: -- Unique integrity has been violated
253: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
254: ben_pnd_shd.constraint_error
255: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
256: When Others Then
257: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
250: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
251: When hr_api.unique_integrity_violated Then
252: -- Unique integrity has been violated
253: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
254: ben_pnd_shd.constraint_error
255: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
256: When Others Then
257: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
258: Raise;
253: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
254: ben_pnd_shd.constraint_error
255: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
256: When Others Then
257: ben_pnd_shd.g_api_dml := false; -- Unset the api dml status
258: Raise;
259: End dt_insert_dml;
260: --
261: -- ----------------------------------------------------------------------------
261: -- ----------------------------------------------------------------------------
262: -- |------------------------------< insert_dml >------------------------------|
263: -- ----------------------------------------------------------------------------
264: Procedure insert_dml
265: (p_rec in out nocopy ben_pnd_shd.g_rec_type,
266: p_effective_date in date,
267: p_datetrack_mode in varchar2,
268: p_validation_start_date in date,
269: p_validation_end_date in date) is
321: --
322: -- {End Of Comments}
323: -- ----------------------------------------------------------------------------
324: Procedure pre_insert
325: (p_rec in out nocopy ben_pnd_shd.g_rec_type,
326: p_effective_date in date,
327: p_datetrack_mode in varchar2,
328: p_validation_start_date in date,
329: p_validation_end_date in date) is
376: --
377: -- {End Of Comments}
378: -- ----------------------------------------------------------------------------
379: Procedure post_insert
380: (p_rec in ben_pnd_shd.g_rec_type,
381: p_effective_date in date,
382: p_datetrack_mode in varchar2,
383: p_validation_start_date in date,
384: p_validation_end_date in date) is
502: -- ----------------------------------------------------------------------------
503: Procedure ins_lck
504: (p_effective_date in date,
505: p_datetrack_mode in varchar2,
506: p_rec in ben_pnd_shd.g_rec_type,
507: p_validation_start_date out nocopy date,
508: p_validation_end_date out nocopy date) is
509: --
510: l_proc varchar2(72) := g_package||'ins_lck';
543: -- |---------------------------------< ins >----------------------------------|
544: -- ----------------------------------------------------------------------------
545: Procedure ins
546: (
547: p_rec in out nocopy ben_pnd_shd.g_rec_type,
548: p_effective_date in date
549: ) is
550: --
551: l_proc varchar2(72) := g_package||'ins';
656: p_object_version_number out nocopy number,
657: p_effective_date in date
658: ) is
659: --
660: l_rec ben_pnd_shd.g_rec_type;
661: l_proc varchar2(72) := g_package||'ins';
662: --
663: Begin
664: hr_utility.set_location('Entering:'||l_proc, 5);
666: -- Call conversion function to turn arguments into the
667: -- p_rec structure.
668: --
669: l_rec :=
670: ben_pnd_shd.convert_args
671: (
672: null,
673: null,
674: null,