The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_ccm_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_cvg_amt_calc_mthd_f t
where t.cvg_amt_calc_mthd_id = p_rec.cvg_amt_calc_mthd_id
and t.effective_start_date =
ben_ccm_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_cvg_amt_calc_mthd_f.last_update_date%TYPE;
l_last_updated_by ben_cvg_amt_calc_mthd_f.last_updated_by%TYPE;
l_last_update_login ben_cvg_amt_calc_mthd_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_cvg_amt_calc_mthd_f
( cvg_amt_calc_mthd_id,
effective_start_date,
effective_end_date,
name,
incrmt_val,
mx_val,
mn_val,
no_mx_val_dfnd_flag,
no_mn_val_dfnd_flag,
rndg_cd,
rndg_rl,
lwr_lmt_val,
lwr_lmt_calc_rl,
upr_lmt_val,
upr_lmt_calc_rl,
val,
val_ovrid_alwd_flag,
val_calc_rl,
uom,
nnmntry_uom,
bndry_perd_cd,
bnft_typ_cd,
cvg_mlt_cd,
rt_typ_cd,
dflt_val,
entr_val_at_enrt_flag,
dflt_flag,
comp_lvl_fctr_id,
oipl_id,
pl_id,
plip_id,
business_group_id,
ccm_attribute_category,
ccm_attribute1,
ccm_attribute2,
ccm_attribute3,
ccm_attribute4,
ccm_attribute5,
ccm_attribute6,
ccm_attribute7,
ccm_attribute8,
ccm_attribute9,
ccm_attribute10,
ccm_attribute11,
ccm_attribute12,
ccm_attribute13,
ccm_attribute14,
ccm_attribute15,
ccm_attribute16,
ccm_attribute17,
ccm_attribute18,
ccm_attribute19,
ccm_attribute20,
ccm_attribute21,
ccm_attribute22,
ccm_attribute23,
ccm_attribute24,
ccm_attribute25,
ccm_attribute26,
ccm_attribute27,
ccm_attribute28,
ccm_attribute29,
ccm_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.cvg_amt_calc_mthd_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.name,
p_rec.incrmt_val,
p_rec.mx_val,
p_rec.mn_val,
p_rec.no_mx_val_dfnd_flag,
p_rec.no_mn_val_dfnd_flag,
p_rec.rndg_cd,
p_rec.rndg_rl,
p_rec.lwr_lmt_val,
p_rec.lwr_lmt_calc_rl,
p_rec.upr_lmt_val,
p_rec.upr_lmt_calc_rl,
p_rec.val,
p_rec.val_ovrid_alwd_flag,
p_rec.val_calc_rl,
p_rec.uom,
p_rec.nnmntry_uom,
p_rec.bndry_perd_cd,
p_rec.bnft_typ_cd,
p_rec.cvg_mlt_cd,
p_rec.rt_typ_cd,
p_rec.dflt_val,
p_rec.entr_val_at_enrt_flag,
p_rec.dflt_flag,
p_rec.comp_lvl_fctr_id,
p_rec.oipl_id,
p_rec.pl_id,
p_rec.plip_id,
p_rec.business_group_id,
p_rec.ccm_attribute_category,
p_rec.ccm_attribute1,
p_rec.ccm_attribute2,
p_rec.ccm_attribute3,
p_rec.ccm_attribute4,
p_rec.ccm_attribute5,
p_rec.ccm_attribute6,
p_rec.ccm_attribute7,
p_rec.ccm_attribute8,
p_rec.ccm_attribute9,
p_rec.ccm_attribute10,
p_rec.ccm_attribute11,
p_rec.ccm_attribute12,
p_rec.ccm_attribute13,
p_rec.ccm_attribute14,
p_rec.ccm_attribute15,
p_rec.ccm_attribute16,
p_rec.ccm_attribute17,
p_rec.ccm_attribute18,
p_rec.ccm_attribute19,
p_rec.ccm_attribute20,
p_rec.ccm_attribute21,
p_rec.ccm_attribute22,
p_rec.ccm_attribute23,
p_rec.ccm_attribute24,
p_rec.ccm_attribute25,
p_rec.ccm_attribute26,
p_rec.ccm_attribute27,
p_rec.ccm_attribute28,
p_rec.ccm_attribute29,
p_rec.ccm_attribute30,
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_ccm_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_ccm_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';
Cursor C_Sel1 is select ben_cvg_amt_calc_mthd_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_ccm_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_ccm_rki.after_insert
(
p_cvg_amt_calc_mthd_id =>p_rec.cvg_amt_calc_mthd_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_name =>p_rec.name
,p_incrmt_val =>p_rec.incrmt_val
,p_mx_val =>p_rec.mx_val
,p_mn_val =>p_rec.mn_val
,p_no_mx_val_dfnd_flag =>p_rec.no_mx_val_dfnd_flag
,p_no_mn_val_dfnd_flag =>p_rec.no_mn_val_dfnd_flag
,p_rndg_cd =>p_rec.rndg_cd
,p_rndg_rl =>p_rec.rndg_rl
,p_lwr_lmt_val =>p_rec.lwr_lmt_val
,p_lwr_lmt_calc_rl =>p_rec.lwr_lmt_calc_rl
,p_upr_lmt_val =>p_rec.upr_lmt_val
,p_upr_lmt_calc_rl =>p_rec.upr_lmt_calc_rl
,p_val =>p_rec.val
,p_val_ovrid_alwd_flag =>p_rec.val_ovrid_alwd_flag
,p_val_calc_rl =>p_rec.val_calc_rl
,p_uom =>p_rec.uom
,p_nnmntry_uom =>p_rec.nnmntry_uom
,p_bndry_perd_cd =>p_rec.bndry_perd_cd
,p_bnft_typ_cd =>p_rec.bnft_typ_cd
,p_cvg_mlt_cd =>p_rec.cvg_mlt_cd
,p_rt_typ_cd =>p_rec.rt_typ_cd
,p_dflt_val =>p_rec.dflt_val
,p_entr_val_at_enrt_flag =>p_rec.entr_val_at_enrt_flag
,p_dflt_flag =>p_rec.dflt_flag
,p_comp_lvl_fctr_id =>p_rec.comp_lvl_fctr_id
,p_oipl_id =>p_rec.oipl_id
,p_pl_id =>p_rec.pl_id
,p_plip_id =>p_rec.plip_id
,p_business_group_id =>p_rec.business_group_id
,p_ccm_attribute_category =>p_rec.ccm_attribute_category
,p_ccm_attribute1 =>p_rec.ccm_attribute1
,p_ccm_attribute2 =>p_rec.ccm_attribute2
,p_ccm_attribute3 =>p_rec.ccm_attribute3
,p_ccm_attribute4 =>p_rec.ccm_attribute4
,p_ccm_attribute5 =>p_rec.ccm_attribute5
,p_ccm_attribute6 =>p_rec.ccm_attribute6
,p_ccm_attribute7 =>p_rec.ccm_attribute7
,p_ccm_attribute8 =>p_rec.ccm_attribute8
,p_ccm_attribute9 =>p_rec.ccm_attribute9
,p_ccm_attribute10 =>p_rec.ccm_attribute10
,p_ccm_attribute11 =>p_rec.ccm_attribute11
,p_ccm_attribute12 =>p_rec.ccm_attribute12
,p_ccm_attribute13 =>p_rec.ccm_attribute13
,p_ccm_attribute14 =>p_rec.ccm_attribute14
,p_ccm_attribute15 =>p_rec.ccm_attribute15
,p_ccm_attribute16 =>p_rec.ccm_attribute16
,p_ccm_attribute17 =>p_rec.ccm_attribute17
,p_ccm_attribute18 =>p_rec.ccm_attribute18
,p_ccm_attribute19 =>p_rec.ccm_attribute19
,p_ccm_attribute20 =>p_rec.ccm_attribute20
,p_ccm_attribute21 =>p_rec.ccm_attribute21
,p_ccm_attribute22 =>p_rec.ccm_attribute22
,p_ccm_attribute23 =>p_rec.ccm_attribute23
,p_ccm_attribute24 =>p_rec.ccm_attribute24
,p_ccm_attribute25 =>p_rec.ccm_attribute25
,p_ccm_attribute26 =>p_rec.ccm_attribute26
,p_ccm_attribute27 =>p_rec.ccm_attribute27
,p_ccm_attribute28 =>p_rec.ccm_attribute28
,p_ccm_attribute29 =>p_rec.ccm_attribute29
,p_ccm_attribute30 =>p_rec.ccm_attribute30
,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_ccm_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);