The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_pyd_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_ptip_dpnt_cvg_ctfn_f t
where t.ptip_dpnt_cvg_ctfn_id = p_rec.ptip_dpnt_cvg_ctfn_id
and t.effective_start_date =
ben_pyd_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_ptip_dpnt_cvg_ctfn_f.last_update_date%TYPE;
l_last_updated_by ben_ptip_dpnt_cvg_ctfn_f.last_updated_by%TYPE;
l_last_update_login ben_ptip_dpnt_cvg_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_ptip_dpnt_cvg_ctfn_f
( ptip_dpnt_cvg_ctfn_id,
effective_start_date,
effective_end_date,
business_group_id,
ptip_id,
pfd_flag,
lack_ctfn_sspnd_enrt_flag,
ctfn_rqd_when_rl,
dpnt_cvg_ctfn_typ_cd,
rlshp_typ_cd,
rqd_flag,
pyd_attribute_category,
pyd_attribute1,
pyd_attribute2,
pyd_attribute3,
pyd_attribute4,
pyd_attribute5,
pyd_attribute6,
pyd_attribute7,
pyd_attribute8,
pyd_attribute9,
pyd_attribute10,
pyd_attribute11,
pyd_attribute12,
pyd_attribute13,
pyd_attribute14,
pyd_attribute15,
pyd_attribute16,
pyd_attribute17,
pyd_attribute18,
pyd_attribute19,
pyd_attribute20,
pyd_attribute21,
pyd_attribute22,
pyd_attribute23,
pyd_attribute24,
pyd_attribute25,
pyd_attribute26,
pyd_attribute27,
pyd_attribute28,
pyd_attribute29,
pyd_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.ptip_dpnt_cvg_ctfn_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.business_group_id,
p_rec.ptip_id,
p_rec.pfd_flag,
p_rec.lack_ctfn_sspnd_enrt_flag,
p_rec.ctfn_rqd_when_rl,
p_rec.dpnt_cvg_ctfn_typ_cd,
p_rec.rlshp_typ_cd,
p_rec.rqd_flag,
p_rec.pyd_attribute_category,
p_rec.pyd_attribute1,
p_rec.pyd_attribute2,
p_rec.pyd_attribute3,
p_rec.pyd_attribute4,
p_rec.pyd_attribute5,
p_rec.pyd_attribute6,
p_rec.pyd_attribute7,
p_rec.pyd_attribute8,
p_rec.pyd_attribute9,
p_rec.pyd_attribute10,
p_rec.pyd_attribute11,
p_rec.pyd_attribute12,
p_rec.pyd_attribute13,
p_rec.pyd_attribute14,
p_rec.pyd_attribute15,
p_rec.pyd_attribute16,
p_rec.pyd_attribute17,
p_rec.pyd_attribute18,
p_rec.pyd_attribute19,
p_rec.pyd_attribute20,
p_rec.pyd_attribute21,
p_rec.pyd_attribute22,
p_rec.pyd_attribute23,
p_rec.pyd_attribute24,
p_rec.pyd_attribute25,
p_rec.pyd_attribute26,
p_rec.pyd_attribute27,
p_rec.pyd_attribute28,
p_rec.pyd_attribute29,
p_rec.pyd_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_pyd_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_pyd_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_ptip_dpnt_cvg_ctfn_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_pyd_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_pyd_rki.after_insert
(
p_ptip_dpnt_cvg_ctfn_id =>p_rec.ptip_dpnt_cvg_ctfn_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_business_group_id =>p_rec.business_group_id
,p_ptip_id =>p_rec.ptip_id
,p_pfd_flag =>p_rec.pfd_flag
,p_lack_ctfn_sspnd_enrt_flag =>p_rec.lack_ctfn_sspnd_enrt_flag
,p_ctfn_rqd_when_rl =>p_rec.ctfn_rqd_when_rl
,p_dpnt_cvg_ctfn_typ_cd =>p_rec.dpnt_cvg_ctfn_typ_cd
,p_rlshp_typ_cd =>p_rec.rlshp_typ_cd
,p_rqd_flag =>p_rec.rqd_flag
,p_pyd_attribute_category =>p_rec.pyd_attribute_category
,p_pyd_attribute1 =>p_rec.pyd_attribute1
,p_pyd_attribute2 =>p_rec.pyd_attribute2
,p_pyd_attribute3 =>p_rec.pyd_attribute3
,p_pyd_attribute4 =>p_rec.pyd_attribute4
,p_pyd_attribute5 =>p_rec.pyd_attribute5
,p_pyd_attribute6 =>p_rec.pyd_attribute6
,p_pyd_attribute7 =>p_rec.pyd_attribute7
,p_pyd_attribute8 =>p_rec.pyd_attribute8
,p_pyd_attribute9 =>p_rec.pyd_attribute9
,p_pyd_attribute10 =>p_rec.pyd_attribute10
,p_pyd_attribute11 =>p_rec.pyd_attribute11
,p_pyd_attribute12 =>p_rec.pyd_attribute12
,p_pyd_attribute13 =>p_rec.pyd_attribute13
,p_pyd_attribute14 =>p_rec.pyd_attribute14
,p_pyd_attribute15 =>p_rec.pyd_attribute15
,p_pyd_attribute16 =>p_rec.pyd_attribute16
,p_pyd_attribute17 =>p_rec.pyd_attribute17
,p_pyd_attribute18 =>p_rec.pyd_attribute18
,p_pyd_attribute19 =>p_rec.pyd_attribute19
,p_pyd_attribute20 =>p_rec.pyd_attribute20
,p_pyd_attribute21 =>p_rec.pyd_attribute21
,p_pyd_attribute22 =>p_rec.pyd_attribute22
,p_pyd_attribute23 =>p_rec.pyd_attribute23
,p_pyd_attribute24 =>p_rec.pyd_attribute24
,p_pyd_attribute25 =>p_rec.pyd_attribute25
,p_pyd_attribute26 =>p_rec.pyd_attribute26
,p_pyd_attribute27 =>p_rec.pyd_attribute27
,p_pyd_attribute28 =>p_rec.pyd_attribute28
,p_pyd_attribute29 =>p_rec.pyd_attribute29
,p_pyd_attribute30 =>p_rec.pyd_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_pyd_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);