The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_lbr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
-- Cursor to select 'old' created AOL who column values
--
Cursor C_Sel1 Is
select t.created_by,
t.creation_date
from ben_ler_bnft_rstrn_f t
where t.ler_bnft_rstrn_id = p_rec.ler_bnft_rstrn_id
and t.effective_start_date =
ben_lbr_shd.g_old_rec.effective_start_date
and t.effective_end_date = (p_validation_start_date - 1);
l_proc varchar2(72) := g_package||'dt_insert_dml';
l_last_update_date ben_ler_bnft_rstrn_f.last_update_date%TYPE;
l_last_updated_by ben_ler_bnft_rstrn_f.last_updated_by%TYPE;
l_last_update_login ben_ler_bnft_rstrn_f.last_update_login%TYPE;
If (p_datetrack_mode <> 'INSERT') then
hr_utility.set_location(l_proc, 10);
l_last_update_date := sysdate;
l_last_updated_by := fnd_global.user_id;
l_last_update_login := fnd_global.login_id;
insert into ben_ler_bnft_rstrn_f
( ler_bnft_rstrn_id,
effective_start_date,
effective_end_date,
no_mx_cvg_amt_apls_flag,
no_mn_cvg_incr_apls_flag,
no_mx_cvg_incr_apls_flag,
mx_cvg_incr_wcf_alwd_amt,
mx_cvg_incr_alwd_amt,
mx_cvg_alwd_amt,
mx_cvg_mlt_incr_num,
mx_cvg_mlt_incr_wcf_num,
mx_cvg_rl,
mx_cvg_wcfn_amt,
mx_cvg_wcfn_mlt_num,
mn_cvg_amt,
mn_cvg_rl,
cvg_incr_r_decr_only_cd,
unsspnd_enrt_cd,
dflt_to_asn_pndg_ctfn_cd,
dflt_to_asn_pndg_ctfn_rl,
ler_id,
pl_id,
business_group_id,
plip_id,
lbr_attribute_category,
lbr_attribute1,
lbr_attribute2,
lbr_attribute3,
lbr_attribute4,
lbr_attribute5,
lbr_attribute6,
lbr_attribute7,
lbr_attribute8,
lbr_attribute9,
lbr_attribute10,
lbr_attribute11,
lbr_attribute12,
lbr_attribute13,
lbr_attribute14,
lbr_attribute15,
lbr_attribute16,
lbr_attribute17,
lbr_attribute18,
lbr_attribute19,
lbr_attribute20,
lbr_attribute21,
lbr_attribute22,
lbr_attribute23,
lbr_attribute24,
lbr_attribute25,
lbr_attribute26,
lbr_attribute27,
lbr_attribute28,
lbr_attribute29,
lbr_attribute30,
susp_if_ctfn_not_prvd_flag,
ctfn_determine_cd,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.ler_bnft_rstrn_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.no_mx_cvg_amt_apls_flag,
p_rec.no_mn_cvg_incr_apls_flag,
p_rec.no_mx_cvg_incr_apls_flag,
p_rec.mx_cvg_incr_wcf_alwd_amt,
p_rec.mx_cvg_incr_alwd_amt,
p_rec.mx_cvg_alwd_amt,
p_rec.mx_cvg_mlt_incr_num,
p_rec.mx_cvg_mlt_incr_wcf_num,
p_rec.mx_cvg_rl,
p_rec.mx_cvg_wcfn_amt,
p_rec.mx_cvg_wcfn_mlt_num,
p_rec.mn_cvg_amt,
p_rec.mn_cvg_rl,
p_rec.cvg_incr_r_decr_only_cd,
p_rec.unsspnd_enrt_cd,
p_rec.dflt_to_asn_pndg_ctfn_cd,
p_rec.dflt_to_asn_pndg_ctfn_rl,
p_rec.ler_id,
p_rec.pl_id,
p_rec.business_group_id,
p_rec.plip_id,
p_rec.lbr_attribute_category,
p_rec.lbr_attribute1,
p_rec.lbr_attribute2,
p_rec.lbr_attribute3,
p_rec.lbr_attribute4,
p_rec.lbr_attribute5,
p_rec.lbr_attribute6,
p_rec.lbr_attribute7,
p_rec.lbr_attribute8,
p_rec.lbr_attribute9,
p_rec.lbr_attribute10,
p_rec.lbr_attribute11,
p_rec.lbr_attribute12,
p_rec.lbr_attribute13,
p_rec.lbr_attribute14,
p_rec.lbr_attribute15,
p_rec.lbr_attribute16,
p_rec.lbr_attribute17,
p_rec.lbr_attribute18,
p_rec.lbr_attribute19,
p_rec.lbr_attribute20,
p_rec.lbr_attribute21,
p_rec.lbr_attribute22,
p_rec.lbr_attribute23,
p_rec.lbr_attribute24,
p_rec.lbr_attribute25,
p_rec.lbr_attribute26,
p_rec.lbr_attribute27,
p_rec.lbr_attribute28,
p_rec.lbr_attribute29,
p_rec.lbr_attribute30,
p_rec.susp_if_ctfn_not_prvd_flag,
p_rec.ctfn_determine_cd,
p_rec.object_version_number
, l_created_by,
l_creation_date,
l_last_update_date,
l_last_updated_by,
l_last_update_login
);
End dt_insert_dml;
Procedure insert_dml
(p_rec in out nocopy ben_lbr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'insert_dml';
dt_insert_dml(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End insert_dml;
Procedure pre_insert
(p_rec in out nocopy ben_lbr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'pre_insert';
select ben_ler_bnft_rstrn_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_lbr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'post_insert';
ben_lbr_rki.after_insert
(
p_ler_bnft_rstrn_id =>p_rec.ler_bnft_rstrn_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_no_mx_cvg_amt_apls_flag =>p_rec.no_mx_cvg_amt_apls_flag
,p_no_mn_cvg_incr_apls_flag =>p_rec.no_mn_cvg_incr_apls_flag
,p_no_mx_cvg_incr_apls_flag =>p_rec.no_mx_cvg_incr_apls_flag
,p_mx_cvg_incr_wcf_alwd_amt =>p_rec.mx_cvg_incr_wcf_alwd_amt
,p_mx_cvg_incr_alwd_amt =>p_rec.mx_cvg_incr_alwd_amt
,p_mx_cvg_alwd_amt =>p_rec.mx_cvg_alwd_amt
,p_mx_cvg_mlt_incr_num =>p_rec.mx_cvg_mlt_incr_num
,p_mx_cvg_mlt_incr_wcf_num =>p_rec.mx_cvg_mlt_incr_wcf_num
,p_mx_cvg_rl =>p_rec.mx_cvg_rl
,p_mx_cvg_wcfn_amt =>p_rec.mx_cvg_wcfn_amt
,p_mx_cvg_wcfn_mlt_num =>p_rec.mx_cvg_wcfn_mlt_num
,p_mn_cvg_amt =>p_rec.mn_cvg_amt
,p_mn_cvg_rl =>p_rec.mn_cvg_rl
,p_cvg_incr_r_decr_only_cd =>p_rec.cvg_incr_r_decr_only_cd
,p_unsspnd_enrt_cd =>p_rec.unsspnd_enrt_cd
,p_dflt_to_asn_pndg_ctfn_cd =>p_rec.dflt_to_asn_pndg_ctfn_cd
,p_dflt_to_asn_pndg_ctfn_rl =>p_rec.dflt_to_asn_pndg_ctfn_rl
,p_ler_id =>p_rec.ler_id
,p_pl_id =>p_rec.pl_id
,p_business_group_id =>p_rec.business_group_id
,p_plip_id =>p_rec.plip_id
,p_lbr_attribute_category =>p_rec.lbr_attribute_category
,p_lbr_attribute1 =>p_rec.lbr_attribute1
,p_lbr_attribute2 =>p_rec.lbr_attribute2
,p_lbr_attribute3 =>p_rec.lbr_attribute3
,p_lbr_attribute4 =>p_rec.lbr_attribute4
,p_lbr_attribute5 =>p_rec.lbr_attribute5
,p_lbr_attribute6 =>p_rec.lbr_attribute6
,p_lbr_attribute7 =>p_rec.lbr_attribute7
,p_lbr_attribute8 =>p_rec.lbr_attribute8
,p_lbr_attribute9 =>p_rec.lbr_attribute9
,p_lbr_attribute10 =>p_rec.lbr_attribute10
,p_lbr_attribute11 =>p_rec.lbr_attribute11
,p_lbr_attribute12 =>p_rec.lbr_attribute12
,p_lbr_attribute13 =>p_rec.lbr_attribute13
,p_lbr_attribute14 =>p_rec.lbr_attribute14
,p_lbr_attribute15 =>p_rec.lbr_attribute15
,p_lbr_attribute16 =>p_rec.lbr_attribute16
,p_lbr_attribute17 =>p_rec.lbr_attribute17
,p_lbr_attribute18 =>p_rec.lbr_attribute18
,p_lbr_attribute19 =>p_rec.lbr_attribute19
,p_lbr_attribute20 =>p_rec.lbr_attribute20
,p_lbr_attribute21 =>p_rec.lbr_attribute21
,p_lbr_attribute22 =>p_rec.lbr_attribute22
,p_lbr_attribute23 =>p_rec.lbr_attribute23
,p_lbr_attribute24 =>p_rec.lbr_attribute24
,p_lbr_attribute25 =>p_rec.lbr_attribute25
,p_lbr_attribute26 =>p_rec.lbr_attribute26
,p_lbr_attribute27 =>p_rec.lbr_attribute27
,p_lbr_attribute28 =>p_rec.lbr_attribute28
,p_lbr_attribute29 =>p_rec.lbr_attribute29
,p_lbr_attribute30 =>p_rec.lbr_attribute30
,p_susp_if_ctfn_not_prvd_flag =>p_rec.susp_if_ctfn_not_prvd_flag
,p_ctfn_determine_cd =>p_rec.ctfn_determine_cd
,p_object_version_number =>p_rec.object_version_number
,p_effective_date =>p_effective_date
,p_validation_start_date =>p_validation_start_date
,p_validation_end_date =>p_validation_end_date
);
End post_insert;
l_datetrack_mode varchar2(30) := 'INSERT';
ben_lbr_bus.insert_validate
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
pre_insert
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
insert_dml
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
post_insert
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);