The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_pbb_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_per_bnfts_bal_f t
where t.per_bnfts_bal_id = p_rec.per_bnfts_bal_id
and t.effective_start_date =
ben_pbb_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_per_bnfts_bal_f.last_update_date%TYPE;
l_last_updated_by ben_per_bnfts_bal_f.last_updated_by%TYPE;
l_last_update_login ben_per_bnfts_bal_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_per_bnfts_bal_f
( per_bnfts_bal_id,
effective_start_date,
effective_end_date,
val,
bnfts_bal_id,
person_id,
business_group_id,
pbb_attribute_category,
pbb_attribute1,
pbb_attribute2,
pbb_attribute3,
pbb_attribute4,
pbb_attribute5,
pbb_attribute6,
pbb_attribute7,
pbb_attribute8,
pbb_attribute9,
pbb_attribute10,
pbb_attribute11,
pbb_attribute12,
pbb_attribute13,
pbb_attribute14,
pbb_attribute15,
pbb_attribute16,
pbb_attribute17,
pbb_attribute18,
pbb_attribute19,
pbb_attribute20,
pbb_attribute21,
pbb_attribute22,
pbb_attribute23,
pbb_attribute24,
pbb_attribute25,
pbb_attribute26,
pbb_attribute27,
pbb_attribute28,
pbb_attribute29,
pbb_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.per_bnfts_bal_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.val,
p_rec.bnfts_bal_id,
p_rec.person_id,
p_rec.business_group_id,
p_rec.pbb_attribute_category,
p_rec.pbb_attribute1,
p_rec.pbb_attribute2,
p_rec.pbb_attribute3,
p_rec.pbb_attribute4,
p_rec.pbb_attribute5,
p_rec.pbb_attribute6,
p_rec.pbb_attribute7,
p_rec.pbb_attribute8,
p_rec.pbb_attribute9,
p_rec.pbb_attribute10,
p_rec.pbb_attribute11,
p_rec.pbb_attribute12,
p_rec.pbb_attribute13,
p_rec.pbb_attribute14,
p_rec.pbb_attribute15,
p_rec.pbb_attribute16,
p_rec.pbb_attribute17,
p_rec.pbb_attribute18,
p_rec.pbb_attribute19,
p_rec.pbb_attribute20,
p_rec.pbb_attribute21,
p_rec.pbb_attribute22,
p_rec.pbb_attribute23,
p_rec.pbb_attribute24,
p_rec.pbb_attribute25,
p_rec.pbb_attribute26,
p_rec.pbb_attribute27,
p_rec.pbb_attribute28,
p_rec.pbb_attribute29,
p_rec.pbb_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_pbb_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_pbb_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_per_bnfts_bal_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_pbb_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';
select session_id, effective_date
from fnd_sessions
where session_id = userenv('SESSIONID');
insert into fnd_sessions (SESSION_ID, effective_date)
values (userenv('SESSIONID'), trunc(p_effective_date));
update fnd_sessions set effective_date = trunc(p_effective_date)
where SESSION_ID = userenv('SESSIONID');
update fnd_sessions set effective_date = l_sess_effective_date
where SESSION_ID = userenv('SESSIONID');
ben_pbb_rki.after_insert
(
p_per_bnfts_bal_id =>p_rec.per_bnfts_bal_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_val =>p_rec.val
,p_bnfts_bal_id =>p_rec.bnfts_bal_id
,p_person_id =>p_rec.person_id
,p_business_group_id =>p_rec.business_group_id
,p_pbb_attribute_category =>p_rec.pbb_attribute_category
,p_pbb_attribute1 =>p_rec.pbb_attribute1
,p_pbb_attribute2 =>p_rec.pbb_attribute2
,p_pbb_attribute3 =>p_rec.pbb_attribute3
,p_pbb_attribute4 =>p_rec.pbb_attribute4
,p_pbb_attribute5 =>p_rec.pbb_attribute5
,p_pbb_attribute6 =>p_rec.pbb_attribute6
,p_pbb_attribute7 =>p_rec.pbb_attribute7
,p_pbb_attribute8 =>p_rec.pbb_attribute8
,p_pbb_attribute9 =>p_rec.pbb_attribute9
,p_pbb_attribute10 =>p_rec.pbb_attribute10
,p_pbb_attribute11 =>p_rec.pbb_attribute11
,p_pbb_attribute12 =>p_rec.pbb_attribute12
,p_pbb_attribute13 =>p_rec.pbb_attribute13
,p_pbb_attribute14 =>p_rec.pbb_attribute14
,p_pbb_attribute15 =>p_rec.pbb_attribute15
,p_pbb_attribute16 =>p_rec.pbb_attribute16
,p_pbb_attribute17 =>p_rec.pbb_attribute17
,p_pbb_attribute18 =>p_rec.pbb_attribute18
,p_pbb_attribute19 =>p_rec.pbb_attribute19
,p_pbb_attribute20 =>p_rec.pbb_attribute20
,p_pbb_attribute21 =>p_rec.pbb_attribute21
,p_pbb_attribute22 =>p_rec.pbb_attribute22
,p_pbb_attribute23 =>p_rec.pbb_attribute23
,p_pbb_attribute24 =>p_rec.pbb_attribute24
,p_pbb_attribute25 =>p_rec.pbb_attribute25
,p_pbb_attribute26 =>p_rec.pbb_attribute26
,p_pbb_attribute27 =>p_rec.pbb_attribute27
,p_pbb_attribute28 =>p_rec.pbb_attribute28
,p_pbb_attribute29 =>p_rec.pbb_attribute29
,p_pbb_attribute30 =>p_rec.pbb_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_pbb_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);