The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_pgr_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_ppl_grp_rt_f t
where t.ppl_grp_rt_id = p_rec.ppl_grp_rt_id
and t.effective_start_date =
ben_pgr_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_ppl_grp_rt_f.last_update_date%TYPE;
l_last_updated_by ben_ppl_grp_rt_f.last_updated_by%TYPE;
l_last_update_login ben_ppl_grp_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_ppl_grp_rt_f
( ppl_grp_rt_id,
effective_start_date,
effective_end_date,
ordr_num,
excld_flag,
vrbl_rt_prfl_id,
people_group_id,
business_group_id,
pgr_attribute_category,
pgr_attribute1,
pgr_attribute2,
pgr_attribute3,
pgr_attribute4,
pgr_attribute5,
pgr_attribute6,
pgr_attribute7,
pgr_attribute8,
pgr_attribute9,
pgr_attribute10,
pgr_attribute11,
pgr_attribute12,
pgr_attribute13,
pgr_attribute14,
pgr_attribute15,
pgr_attribute16,
pgr_attribute17,
pgr_attribute18,
pgr_attribute19,
pgr_attribute20,
pgr_attribute21,
pgr_attribute22,
pgr_attribute23,
pgr_attribute24,
pgr_attribute25,
pgr_attribute26,
pgr_attribute27,
pgr_attribute28,
pgr_attribute29,
pgr_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.ppl_grp_rt_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.ordr_num,
p_rec.excld_flag,
p_rec.vrbl_rt_prfl_id,
p_rec.people_group_id,
p_rec.business_group_id,
p_rec.pgr_attribute_category,
p_rec.pgr_attribute1,
p_rec.pgr_attribute2,
p_rec.pgr_attribute3,
p_rec.pgr_attribute4,
p_rec.pgr_attribute5,
p_rec.pgr_attribute6,
p_rec.pgr_attribute7,
p_rec.pgr_attribute8,
p_rec.pgr_attribute9,
p_rec.pgr_attribute10,
p_rec.pgr_attribute11,
p_rec.pgr_attribute12,
p_rec.pgr_attribute13,
p_rec.pgr_attribute14,
p_rec.pgr_attribute15,
p_rec.pgr_attribute16,
p_rec.pgr_attribute17,
p_rec.pgr_attribute18,
p_rec.pgr_attribute19,
p_rec.pgr_attribute20,
p_rec.pgr_attribute21,
p_rec.pgr_attribute22,
p_rec.pgr_attribute23,
p_rec.pgr_attribute24,
p_rec.pgr_attribute25,
p_rec.pgr_attribute26,
p_rec.pgr_attribute27,
p_rec.pgr_attribute28,
p_rec.pgr_attribute29,
p_rec.pgr_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_pgr_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_pgr_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_ppl_grp_rt_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_pgr_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_pgr_rki.after_insert
(
p_ppl_grp_rt_id =>p_rec.ppl_grp_rt_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_ordr_num =>p_rec.ordr_num
,p_excld_flag =>p_rec.excld_flag
,p_vrbl_rt_prfl_id =>p_rec.vrbl_rt_prfl_id
,p_people_group_id =>p_rec.people_group_id
,p_business_group_id =>p_rec.business_group_id
,p_pgr_attribute_category =>p_rec.pgr_attribute_category
,p_pgr_attribute1 =>p_rec.pgr_attribute1
,p_pgr_attribute2 =>p_rec.pgr_attribute2
,p_pgr_attribute3 =>p_rec.pgr_attribute3
,p_pgr_attribute4 =>p_rec.pgr_attribute4
,p_pgr_attribute5 =>p_rec.pgr_attribute5
,p_pgr_attribute6 =>p_rec.pgr_attribute6
,p_pgr_attribute7 =>p_rec.pgr_attribute7
,p_pgr_attribute8 =>p_rec.pgr_attribute8
,p_pgr_attribute9 =>p_rec.pgr_attribute9
,p_pgr_attribute10 =>p_rec.pgr_attribute10
,p_pgr_attribute11 =>p_rec.pgr_attribute11
,p_pgr_attribute12 =>p_rec.pgr_attribute12
,p_pgr_attribute13 =>p_rec.pgr_attribute13
,p_pgr_attribute14 =>p_rec.pgr_attribute14
,p_pgr_attribute15 =>p_rec.pgr_attribute15
,p_pgr_attribute16 =>p_rec.pgr_attribute16
,p_pgr_attribute17 =>p_rec.pgr_attribute17
,p_pgr_attribute18 =>p_rec.pgr_attribute18
,p_pgr_attribute19 =>p_rec.pgr_attribute19
,p_pgr_attribute20 =>p_rec.pgr_attribute20
,p_pgr_attribute21 =>p_rec.pgr_attribute21
,p_pgr_attribute22 =>p_rec.pgr_attribute22
,p_pgr_attribute23 =>p_rec.pgr_attribute23
,p_pgr_attribute24 =>p_rec.pgr_attribute24
,p_pgr_attribute25 =>p_rec.pgr_attribute25
,p_pgr_attribute26 =>p_rec.pgr_attribute26
,p_pgr_attribute27 =>p_rec.pgr_attribute27
,p_pgr_attribute28 =>p_rec.pgr_attribute28
,p_pgr_attribute29 =>p_rec.pgr_attribute29
,p_pgr_attribute30 =>p_rec.pgr_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_pgr_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);