The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_prd_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_paird_rt_f t
where t.paird_rt_id = p_rec.paird_rt_id
and t.effective_start_date =
ben_prd_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_paird_rt_f.last_update_date%TYPE;
l_last_updated_by ben_paird_rt_f.last_updated_by%TYPE;
l_last_update_login ben_paird_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_paird_rt_f
( paird_rt_id,
effective_start_date,
effective_end_date,
use_parnt_ded_sched_flag,
asn_on_chc_of_parnt_flag,
use_parnt_prtl_mo_cd_flag,
alloc_sme_as_parnt_flag,
use_parnt_pymt_sched_flag,
no_cmbnd_mx_amt_dfnd_flag,
cmbnd_mx_amt,
cmbnd_mn_amt,
cmbnd_mx_pct_num,
cmbnd_mn_pct_num,
no_cmbnd_mn_amt_dfnd_flag,
no_cmbnd_mn_pct_dfnd_flag,
no_cmbnd_mx_pct_dfnd_flag,
parnt_acty_base_rt_id,
chld_acty_base_rt_id,
business_group_id,
prd_attribute_category,
prd_attribute1,
prd_attribute2,
prd_attribute3,
prd_attribute4,
prd_attribute5,
prd_attribute6,
prd_attribute7,
prd_attribute8,
prd_attribute9,
prd_attribute10,
prd_attribute11,
prd_attribute12,
prd_attribute13,
prd_attribute14,
prd_attribute15,
prd_attribute16,
prd_attribute17,
prd_attribute18,
prd_attribute19,
prd_attribute20,
prd_attribute21,
prd_attribute22,
prd_attribute23,
prd_attribute24,
prd_attribute25,
prd_attribute26,
prd_attribute27,
prd_attribute28,
prd_attribute29,
prd_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.paird_rt_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.use_parnt_ded_sched_flag,
p_rec.asn_on_chc_of_parnt_flag,
p_rec.use_parnt_prtl_mo_cd_flag,
p_rec.alloc_sme_as_parnt_flag,
p_rec.use_parnt_pymt_sched_flag,
p_rec.no_cmbnd_mx_amt_dfnd_flag,
p_rec.cmbnd_mx_amt,
p_rec.cmbnd_mn_amt,
p_rec.cmbnd_mx_pct_num,
p_rec.cmbnd_mn_pct_num,
p_rec.no_cmbnd_mn_amt_dfnd_flag,
p_rec.no_cmbnd_mn_pct_dfnd_flag,
p_rec.no_cmbnd_mx_pct_dfnd_flag,
p_rec.parnt_acty_base_rt_id,
p_rec.chld_acty_base_rt_id,
p_rec.business_group_id,
p_rec.prd_attribute_category,
p_rec.prd_attribute1,
p_rec.prd_attribute2,
p_rec.prd_attribute3,
p_rec.prd_attribute4,
p_rec.prd_attribute5,
p_rec.prd_attribute6,
p_rec.prd_attribute7,
p_rec.prd_attribute8,
p_rec.prd_attribute9,
p_rec.prd_attribute10,
p_rec.prd_attribute11,
p_rec.prd_attribute12,
p_rec.prd_attribute13,
p_rec.prd_attribute14,
p_rec.prd_attribute15,
p_rec.prd_attribute16,
p_rec.prd_attribute17,
p_rec.prd_attribute18,
p_rec.prd_attribute19,
p_rec.prd_attribute20,
p_rec.prd_attribute21,
p_rec.prd_attribute22,
p_rec.prd_attribute23,
p_rec.prd_attribute24,
p_rec.prd_attribute25,
p_rec.prd_attribute26,
p_rec.prd_attribute27,
p_rec.prd_attribute28,
p_rec.prd_attribute29,
p_rec.prd_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_prd_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_prd_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 c1 is select ben_paird_rt_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_prd_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_prd_rki.after_insert
(
p_paird_rt_id =>p_rec.paird_rt_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_use_parnt_ded_sched_flag =>p_rec.use_parnt_ded_sched_flag
,p_asn_on_chc_of_parnt_flag =>p_rec.asn_on_chc_of_parnt_flag
,p_use_parnt_prtl_mo_cd_flag =>p_rec.use_parnt_prtl_mo_cd_flag
,p_alloc_sme_as_parnt_flag =>p_rec.alloc_sme_as_parnt_flag
,p_use_parnt_pymt_sched_flag =>p_rec.use_parnt_pymt_sched_flag
,p_no_cmbnd_mx_amt_dfnd_flag =>p_rec.no_cmbnd_mx_amt_dfnd_flag
,p_cmbnd_mx_amt =>p_rec.cmbnd_mx_amt
,p_cmbnd_mn_amt =>p_rec.cmbnd_mn_amt
,p_cmbnd_mx_pct_num =>p_rec.cmbnd_mx_pct_num
,p_cmbnd_mn_pct_num =>p_rec.cmbnd_mn_pct_num
,p_no_cmbnd_mn_amt_dfnd_flag =>p_rec.no_cmbnd_mn_amt_dfnd_flag
,p_no_cmbnd_mn_pct_dfnd_flag =>p_rec.no_cmbnd_mn_pct_dfnd_flag
,p_no_cmbnd_mx_pct_dfnd_flag =>p_rec.no_cmbnd_mx_pct_dfnd_flag
,p_parnt_acty_base_rt_id =>p_rec.parnt_acty_base_rt_id
,p_chld_acty_base_rt_id =>p_rec.chld_acty_base_rt_id
,p_business_group_id =>p_rec.business_group_id
,p_prd_attribute_category =>p_rec.prd_attribute_category
,p_prd_attribute1 =>p_rec.prd_attribute1
,p_prd_attribute2 =>p_rec.prd_attribute2
,p_prd_attribute3 =>p_rec.prd_attribute3
,p_prd_attribute4 =>p_rec.prd_attribute4
,p_prd_attribute5 =>p_rec.prd_attribute5
,p_prd_attribute6 =>p_rec.prd_attribute6
,p_prd_attribute7 =>p_rec.prd_attribute7
,p_prd_attribute8 =>p_rec.prd_attribute8
,p_prd_attribute9 =>p_rec.prd_attribute9
,p_prd_attribute10 =>p_rec.prd_attribute10
,p_prd_attribute11 =>p_rec.prd_attribute11
,p_prd_attribute12 =>p_rec.prd_attribute12
,p_prd_attribute13 =>p_rec.prd_attribute13
,p_prd_attribute14 =>p_rec.prd_attribute14
,p_prd_attribute15 =>p_rec.prd_attribute15
,p_prd_attribute16 =>p_rec.prd_attribute16
,p_prd_attribute17 =>p_rec.prd_attribute17
,p_prd_attribute18 =>p_rec.prd_attribute18
,p_prd_attribute19 =>p_rec.prd_attribute19
,p_prd_attribute20 =>p_rec.prd_attribute20
,p_prd_attribute21 =>p_rec.prd_attribute21
,p_prd_attribute22 =>p_rec.prd_attribute22
,p_prd_attribute23 =>p_rec.prd_attribute23
,p_prd_attribute24 =>p_rec.prd_attribute24
,p_prd_attribute25 =>p_rec.prd_attribute25
,p_prd_attribute26 =>p_rec.prd_attribute26
,p_prd_attribute27 =>p_rec.prd_attribute27
,p_prd_attribute28 =>p_rec.prd_attribute28
,p_prd_attribute29 =>p_rec.prd_attribute29
,p_prd_attribute30 =>p_rec.prd_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_prd_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);