The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_pcx_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_pl_bnf_ctfn_f t
where t.pl_bnf_ctfn_id = p_rec.pl_bnf_ctfn_id
and t.effective_start_date =
ben_pcx_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_pl_bnf_ctfn_f.last_update_date%TYPE;
l_last_updated_by ben_pl_bnf_ctfn_f.last_updated_by%TYPE;
l_last_update_login ben_pl_bnf_ctfn_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_pl_bnf_ctfn_f
( pl_bnf_ctfn_id,
effective_start_date,
effective_end_date,
pl_id,
bnf_ctfn_typ_cd,
lack_ctfn_sspnd_enrt_flag,
pfd_flag,
rqd_flag,
ctfn_rqd_when_rl,
bnf_typ_cd,
rlshp_typ_cd,
object_version_number,
business_group_id,
pcx_attribute_category,
pcx_attribute1,
pcx_attribute2,
pcx_attribute3,
pcx_attribute4,
pcx_attribute5,
pcx_attribute6,
pcx_attribute7,
pcx_attribute8,
pcx_attribute9,
pcx_attribute10,
pcx_attribute11,
pcx_attribute12,
pcx_attribute13,
pcx_attribute14,
pcx_attribute15,
pcx_attribute16,
pcx_attribute17,
pcx_attribute18,
pcx_attribute19,
pcx_attribute20,
pcx_attribute21,
pcx_attribute22,
pcx_attribute23,
pcx_attribute24,
pcx_attribute25,
pcx_attribute26,
pcx_attribute27,
pcx_attribute28,
pcx_attribute29,
pcx_attribute30
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.pl_bnf_ctfn_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.pl_id,
p_rec.bnf_ctfn_typ_cd,
p_rec.lack_ctfn_sspnd_enrt_flag,
p_rec.pfd_flag,
p_rec.rqd_flag,
p_rec.ctfn_rqd_when_rl,
p_rec.bnf_typ_cd,
p_rec.rlshp_typ_cd,
p_rec.object_version_number,
p_rec.business_group_id,
p_rec.pcx_attribute_category,
p_rec.pcx_attribute1,
p_rec.pcx_attribute2,
p_rec.pcx_attribute3,
p_rec.pcx_attribute4,
p_rec.pcx_attribute5,
p_rec.pcx_attribute6,
p_rec.pcx_attribute7,
p_rec.pcx_attribute8,
p_rec.pcx_attribute9,
p_rec.pcx_attribute10,
p_rec.pcx_attribute11,
p_rec.pcx_attribute12,
p_rec.pcx_attribute13,
p_rec.pcx_attribute14,
p_rec.pcx_attribute15,
p_rec.pcx_attribute16,
p_rec.pcx_attribute17,
p_rec.pcx_attribute18,
p_rec.pcx_attribute19,
p_rec.pcx_attribute20,
p_rec.pcx_attribute21,
p_rec.pcx_attribute22,
p_rec.pcx_attribute23,
p_rec.pcx_attribute24,
p_rec.pcx_attribute25,
p_rec.pcx_attribute26,
p_rec.pcx_attribute27,
p_rec.pcx_attribute28,
p_rec.pcx_attribute29,
p_rec.pcx_attribute30
, 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_pcx_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_pcx_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_pl_bnf_ctfn_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_pcx_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_pcx_rki.after_insert
(
p_pl_bnf_ctfn_id =>p_rec.pl_bnf_ctfn_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_pl_id =>p_rec.pl_id
,p_bnf_ctfn_typ_cd =>p_rec.bnf_ctfn_typ_cd
,p_lack_ctfn_sspnd_enrt_flag =>p_rec.lack_ctfn_sspnd_enrt_flag
,p_pfd_flag =>p_rec.pfd_flag
,p_rqd_flag =>p_rec.rqd_flag
,p_ctfn_rqd_when_rl =>p_rec.ctfn_rqd_when_rl
,p_bnf_typ_cd =>p_rec.bnf_typ_cd
,p_rlshp_typ_cd =>p_rec.rlshp_typ_cd
,p_object_version_number =>p_rec.object_version_number
,p_business_group_id =>p_rec.business_group_id
,p_pcx_attribute_category =>p_rec.pcx_attribute_category
,p_pcx_attribute1 =>p_rec.pcx_attribute1
,p_pcx_attribute2 =>p_rec.pcx_attribute2
,p_pcx_attribute3 =>p_rec.pcx_attribute3
,p_pcx_attribute4 =>p_rec.pcx_attribute4
,p_pcx_attribute5 =>p_rec.pcx_attribute5
,p_pcx_attribute6 =>p_rec.pcx_attribute6
,p_pcx_attribute7 =>p_rec.pcx_attribute7
,p_pcx_attribute8 =>p_rec.pcx_attribute8
,p_pcx_attribute9 =>p_rec.pcx_attribute9
,p_pcx_attribute10 =>p_rec.pcx_attribute10
,p_pcx_attribute11 =>p_rec.pcx_attribute11
,p_pcx_attribute12 =>p_rec.pcx_attribute12
,p_pcx_attribute13 =>p_rec.pcx_attribute13
,p_pcx_attribute14 =>p_rec.pcx_attribute14
,p_pcx_attribute15 =>p_rec.pcx_attribute15
,p_pcx_attribute16 =>p_rec.pcx_attribute16
,p_pcx_attribute17 =>p_rec.pcx_attribute17
,p_pcx_attribute18 =>p_rec.pcx_attribute18
,p_pcx_attribute19 =>p_rec.pcx_attribute19
,p_pcx_attribute20 =>p_rec.pcx_attribute20
,p_pcx_attribute21 =>p_rec.pcx_attribute21
,p_pcx_attribute22 =>p_rec.pcx_attribute22
,p_pcx_attribute23 =>p_rec.pcx_attribute23
,p_pcx_attribute24 =>p_rec.pcx_attribute24
,p_pcx_attribute25 =>p_rec.pcx_attribute25
,p_pcx_attribute26 =>p_rec.pcx_attribute26
,p_pcx_attribute27 =>p_rec.pcx_attribute27
,p_pcx_attribute28 =>p_rec.pcx_attribute28
,p_pcx_attribute29 =>p_rec.pcx_attribute29
,p_pcx_attribute30 =>p_rec.pcx_attribute30
,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_pcx_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);