The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_cbs_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_prem_cstg_by_sgmt_f t
where t.prem_cstg_by_sgmt_id = p_rec.prem_cstg_by_sgmt_id
and t.effective_start_date =
ben_cbs_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_prem_cstg_by_sgmt_f.last_update_date%TYPE;
l_last_updated_by ben_prem_cstg_by_sgmt_f.last_updated_by%TYPE;
l_last_update_login ben_prem_cstg_by_sgmt_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_prem_cstg_by_sgmt_f
( prem_cstg_by_sgmt_id,
effective_start_date,
effective_end_date,
sgmt_num,
sgmt_cstg_mthd_cd,
sgmt_cstg_mthd_rl,
business_group_id,
actl_prem_id,
cbs_attribute_category,
cbs_attribute1,
cbs_attribute2,
cbs_attribute3,
cbs_attribute4,
cbs_attribute5,
cbs_attribute6,
cbs_attribute7,
cbs_attribute8,
cbs_attribute9,
cbs_attribute10,
cbs_attribute11,
cbs_attribute12,
cbs_attribute13,
cbs_attribute14,
cbs_attribute15,
cbs_attribute16,
cbs_attribute17,
cbs_attribute18,
cbs_attribute19,
cbs_attribute20,
cbs_attribute21,
cbs_attribute22,
cbs_attribute23,
cbs_attribute24,
cbs_attribute25,
cbs_attribute26,
cbs_attribute27,
cbs_attribute28,
cbs_attribute29,
cbs_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.prem_cstg_by_sgmt_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.sgmt_num,
p_rec.sgmt_cstg_mthd_cd,
p_rec.sgmt_cstg_mthd_rl,
p_rec.business_group_id,
p_rec.actl_prem_id,
p_rec.cbs_attribute_category,
p_rec.cbs_attribute1,
p_rec.cbs_attribute2,
p_rec.cbs_attribute3,
p_rec.cbs_attribute4,
p_rec.cbs_attribute5,
p_rec.cbs_attribute6,
p_rec.cbs_attribute7,
p_rec.cbs_attribute8,
p_rec.cbs_attribute9,
p_rec.cbs_attribute10,
p_rec.cbs_attribute11,
p_rec.cbs_attribute12,
p_rec.cbs_attribute13,
p_rec.cbs_attribute14,
p_rec.cbs_attribute15,
p_rec.cbs_attribute16,
p_rec.cbs_attribute17,
p_rec.cbs_attribute18,
p_rec.cbs_attribute19,
p_rec.cbs_attribute20,
p_rec.cbs_attribute21,
p_rec.cbs_attribute22,
p_rec.cbs_attribute23,
p_rec.cbs_attribute24,
p_rec.cbs_attribute25,
p_rec.cbs_attribute26,
p_rec.cbs_attribute27,
p_rec.cbs_attribute28,
p_rec.cbs_attribute29,
p_rec.cbs_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_cbs_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_cbs_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_prem_cstg_by_sgmt_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_cbs_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_cbs_rki.after_insert
(
p_prem_cstg_by_sgmt_id =>p_rec.prem_cstg_by_sgmt_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_sgmt_num =>p_rec.sgmt_num
,p_sgmt_cstg_mthd_cd =>p_rec.sgmt_cstg_mthd_cd
,p_sgmt_cstg_mthd_rl =>p_rec.sgmt_cstg_mthd_rl
,p_business_group_id =>p_rec.business_group_id
,p_actl_prem_id =>p_rec.actl_prem_id
,p_cbs_attribute_category =>p_rec.cbs_attribute_category
,p_cbs_attribute1 =>p_rec.cbs_attribute1
,p_cbs_attribute2 =>p_rec.cbs_attribute2
,p_cbs_attribute3 =>p_rec.cbs_attribute3
,p_cbs_attribute4 =>p_rec.cbs_attribute4
,p_cbs_attribute5 =>p_rec.cbs_attribute5
,p_cbs_attribute6 =>p_rec.cbs_attribute6
,p_cbs_attribute7 =>p_rec.cbs_attribute7
,p_cbs_attribute8 =>p_rec.cbs_attribute8
,p_cbs_attribute9 =>p_rec.cbs_attribute9
,p_cbs_attribute10 =>p_rec.cbs_attribute10
,p_cbs_attribute11 =>p_rec.cbs_attribute11
,p_cbs_attribute12 =>p_rec.cbs_attribute12
,p_cbs_attribute13 =>p_rec.cbs_attribute13
,p_cbs_attribute14 =>p_rec.cbs_attribute14
,p_cbs_attribute15 =>p_rec.cbs_attribute15
,p_cbs_attribute16 =>p_rec.cbs_attribute16
,p_cbs_attribute17 =>p_rec.cbs_attribute17
,p_cbs_attribute18 =>p_rec.cbs_attribute18
,p_cbs_attribute19 =>p_rec.cbs_attribute19
,p_cbs_attribute20 =>p_rec.cbs_attribute20
,p_cbs_attribute21 =>p_rec.cbs_attribute21
,p_cbs_attribute22 =>p_rec.cbs_attribute22
,p_cbs_attribute23 =>p_rec.cbs_attribute23
,p_cbs_attribute24 =>p_rec.cbs_attribute24
,p_cbs_attribute25 =>p_rec.cbs_attribute25
,p_cbs_attribute26 =>p_rec.cbs_attribute26
,p_cbs_attribute27 =>p_rec.cbs_attribute27
,p_cbs_attribute28 =>p_rec.cbs_attribute28
,p_cbs_attribute29 =>p_rec.cbs_attribute29
,p_cbs_attribute30 =>p_rec.cbs_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_cbs_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);