The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_mtr_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_mtchg_rt_f t
where t.mtchg_rt_id = p_rec.mtchg_rt_id
and t.effective_start_date =
ben_mtr_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_mtchg_rt_f.last_update_date%TYPE;
l_last_updated_by ben_mtchg_rt_f.last_updated_by%TYPE;
l_last_update_login ben_mtchg_rt_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_mtchg_rt_f
( mtchg_rt_id,
effective_start_date,
effective_end_date,
acty_base_rt_id,
comp_lvl_fctr_id,
ordr_num,
from_pct_val,
to_pct_val,
pct_val,
mx_amt_of_py_num,
mx_pct_of_py_num,
mx_mtch_amt,
mn_mtch_amt,
mtchg_rt_calc_rl,
no_mx_mtch_amt_flag,
no_mx_pct_of_py_num_flag,
cntnu_mtch_aftr_mx_rl_flag,
no_mx_amt_of_py_num_flag,
business_group_id,
mtr_attribute_category,
mtr_attribute1,
mtr_attribute2,
mtr_attribute3,
mtr_attribute4,
mtr_attribute5,
mtr_attribute6,
mtr_attribute7,
mtr_attribute8,
mtr_attribute9,
mtr_attribute10,
mtr_attribute11,
mtr_attribute12,
mtr_attribute13,
mtr_attribute14,
mtr_attribute15,
mtr_attribute16,
mtr_attribute17,
mtr_attribute18,
mtr_attribute19,
mtr_attribute20,
mtr_attribute21,
mtr_attribute22,
mtr_attribute23,
mtr_attribute24,
mtr_attribute25,
mtr_attribute26,
mtr_attribute27,
mtr_attribute28,
mtr_attribute29,
mtr_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.mtchg_rt_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.acty_base_rt_id,
p_rec.comp_lvl_fctr_id,
p_rec.ordr_num,
p_rec.from_pct_val,
p_rec.to_pct_val,
p_rec.pct_val,
p_rec.mx_amt_of_py_num,
p_rec.mx_pct_of_py_num,
p_rec.mx_mtch_amt,
p_rec.mn_mtch_amt,
p_rec.mtchg_rt_calc_rl,
p_rec.no_mx_mtch_amt_flag,
p_rec.no_mx_pct_of_py_num_flag,
p_rec.cntnu_mtch_aftr_mx_rl_flag,
p_rec.no_mx_amt_of_py_num_flag,
p_rec.business_group_id,
p_rec.mtr_attribute_category,
p_rec.mtr_attribute1,
p_rec.mtr_attribute2,
p_rec.mtr_attribute3,
p_rec.mtr_attribute4,
p_rec.mtr_attribute5,
p_rec.mtr_attribute6,
p_rec.mtr_attribute7,
p_rec.mtr_attribute8,
p_rec.mtr_attribute9,
p_rec.mtr_attribute10,
p_rec.mtr_attribute11,
p_rec.mtr_attribute12,
p_rec.mtr_attribute13,
p_rec.mtr_attribute14,
p_rec.mtr_attribute15,
p_rec.mtr_attribute16,
p_rec.mtr_attribute17,
p_rec.mtr_attribute18,
p_rec.mtr_attribute19,
p_rec.mtr_attribute20,
p_rec.mtr_attribute21,
p_rec.mtr_attribute22,
p_rec.mtr_attribute23,
p_rec.mtr_attribute24,
p_rec.mtr_attribute25,
p_rec.mtr_attribute26,
p_rec.mtr_attribute27,
p_rec.mtr_attribute28,
p_rec.mtr_attribute29,
p_rec.mtr_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_mtr_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_mtr_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_MTCHG_RT_F_S.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_mtr_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_mtr_rki.after_insert
(
p_mtchg_rt_id =>p_rec.mtchg_rt_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_acty_base_rt_id =>p_rec.acty_base_rt_id
,p_comp_lvl_fctr_id =>p_rec.comp_lvl_fctr_id
,p_ordr_num =>p_rec.ordr_num
,p_from_pct_val =>p_rec.from_pct_val
,p_to_pct_val =>p_rec.to_pct_val
,p_pct_val =>p_rec.pct_val
,p_mx_amt_of_py_num =>p_rec.mx_amt_of_py_num
,p_mx_pct_of_py_num =>p_rec.mx_pct_of_py_num
,p_mx_mtch_amt =>p_rec.mx_mtch_amt
,p_mn_mtch_amt =>p_rec.mn_mtch_amt
,p_mtchg_rt_calc_rl =>p_rec.mtchg_rt_calc_rl
,p_no_mx_mtch_amt_flag =>p_rec.no_mx_mtch_amt_flag
,p_no_mx_pct_of_py_num_flag =>p_rec.no_mx_pct_of_py_num_flag
,p_cntnu_mtch_aftr_mx_rl_flag =>p_rec.cntnu_mtch_aftr_mx_rl_flag
,p_no_mx_amt_of_py_num_flag =>p_rec.no_mx_amt_of_py_num_flag
,p_business_group_id =>p_rec.business_group_id
,p_mtr_attribute_category =>p_rec.mtr_attribute_category
,p_mtr_attribute1 =>p_rec.mtr_attribute1
,p_mtr_attribute2 =>p_rec.mtr_attribute2
,p_mtr_attribute3 =>p_rec.mtr_attribute3
,p_mtr_attribute4 =>p_rec.mtr_attribute4
,p_mtr_attribute5 =>p_rec.mtr_attribute5
,p_mtr_attribute6 =>p_rec.mtr_attribute6
,p_mtr_attribute7 =>p_rec.mtr_attribute7
,p_mtr_attribute8 =>p_rec.mtr_attribute8
,p_mtr_attribute9 =>p_rec.mtr_attribute9
,p_mtr_attribute10 =>p_rec.mtr_attribute10
,p_mtr_attribute11 =>p_rec.mtr_attribute11
,p_mtr_attribute12 =>p_rec.mtr_attribute12
,p_mtr_attribute13 =>p_rec.mtr_attribute13
,p_mtr_attribute14 =>p_rec.mtr_attribute14
,p_mtr_attribute15 =>p_rec.mtr_attribute15
,p_mtr_attribute16 =>p_rec.mtr_attribute16
,p_mtr_attribute17 =>p_rec.mtr_attribute17
,p_mtr_attribute18 =>p_rec.mtr_attribute18
,p_mtr_attribute19 =>p_rec.mtr_attribute19
,p_mtr_attribute20 =>p_rec.mtr_attribute20
,p_mtr_attribute21 =>p_rec.mtr_attribute21
,p_mtr_attribute22 =>p_rec.mtr_attribute22
,p_mtr_attribute23 =>p_rec.mtr_attribute23
,p_mtr_attribute24 =>p_rec.mtr_attribute24
,p_mtr_attribute25 =>p_rec.mtr_attribute25
,p_mtr_attribute26 =>p_rec.mtr_attribute26
,p_mtr_attribute27 =>p_rec.mtr_attribute27
,p_mtr_attribute28 =>p_rec.mtr_attribute28
,p_mtr_attribute29 =>p_rec.mtr_attribute29
,p_mtr_attribute30 =>p_rec.mtr_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_mtr_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);