The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_wpn_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_wv_prtn_rsn_pl_f t
where t.wv_prtn_rsn_pl_id = p_rec.wv_prtn_rsn_pl_id
and t.effective_start_date =
ben_wpn_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_wv_prtn_rsn_pl_f.last_update_date%TYPE;
l_last_updated_by ben_wv_prtn_rsn_pl_f.last_updated_by%TYPE;
l_last_update_login ben_wv_prtn_rsn_pl_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_wv_prtn_rsn_pl_f
( wv_prtn_rsn_pl_id,
effective_start_date,
effective_end_date,
business_group_id,
pl_id,
dflt_flag,
wv_prtn_rsn_cd,
wpn_attribute_category,
wpn_attribute1,
wpn_attribute2,
wpn_attribute3,
wpn_attribute4,
wpn_attribute5,
wpn_attribute6,
wpn_attribute7,
wpn_attribute8,
wpn_attribute9,
wpn_attribute10,
wpn_attribute11,
wpn_attribute12,
wpn_attribute13,
wpn_attribute14,
wpn_attribute15,
wpn_attribute16,
wpn_attribute17,
wpn_attribute18,
wpn_attribute19,
wpn_attribute20,
wpn_attribute21,
wpn_attribute22,
wpn_attribute23,
wpn_attribute24,
wpn_attribute25,
wpn_attribute26,
wpn_attribute27,
wpn_attribute28,
wpn_attribute29,
wpn_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.wv_prtn_rsn_pl_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.business_group_id,
p_rec.pl_id,
p_rec.dflt_flag,
p_rec.wv_prtn_rsn_cd,
p_rec.wpn_attribute_category,
p_rec.wpn_attribute1,
p_rec.wpn_attribute2,
p_rec.wpn_attribute3,
p_rec.wpn_attribute4,
p_rec.wpn_attribute5,
p_rec.wpn_attribute6,
p_rec.wpn_attribute7,
p_rec.wpn_attribute8,
p_rec.wpn_attribute9,
p_rec.wpn_attribute10,
p_rec.wpn_attribute11,
p_rec.wpn_attribute12,
p_rec.wpn_attribute13,
p_rec.wpn_attribute14,
p_rec.wpn_attribute15,
p_rec.wpn_attribute16,
p_rec.wpn_attribute17,
p_rec.wpn_attribute18,
p_rec.wpn_attribute19,
p_rec.wpn_attribute20,
p_rec.wpn_attribute21,
p_rec.wpn_attribute22,
p_rec.wpn_attribute23,
p_rec.wpn_attribute24,
p_rec.wpn_attribute25,
p_rec.wpn_attribute26,
p_rec.wpn_attribute27,
p_rec.wpn_attribute28,
p_rec.wpn_attribute29,
p_rec.wpn_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_wpn_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_wpn_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_wv_prtn_rsn_pl_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_wpn_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_wpn_rki.after_insert
(
p_wv_prtn_rsn_pl_id =>p_rec.wv_prtn_rsn_pl_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_pl_id =>p_rec.pl_id
,p_dflt_flag =>p_rec.dflt_flag
,p_wv_prtn_rsn_cd =>p_rec.wv_prtn_rsn_cd
,p_wpn_attribute_category =>p_rec.wpn_attribute_category
,p_wpn_attribute1 =>p_rec.wpn_attribute1
,p_wpn_attribute2 =>p_rec.wpn_attribute2
,p_wpn_attribute3 =>p_rec.wpn_attribute3
,p_wpn_attribute4 =>p_rec.wpn_attribute4
,p_wpn_attribute5 =>p_rec.wpn_attribute5
,p_wpn_attribute6 =>p_rec.wpn_attribute6
,p_wpn_attribute7 =>p_rec.wpn_attribute7
,p_wpn_attribute8 =>p_rec.wpn_attribute8
,p_wpn_attribute9 =>p_rec.wpn_attribute9
,p_wpn_attribute10 =>p_rec.wpn_attribute10
,p_wpn_attribute11 =>p_rec.wpn_attribute11
,p_wpn_attribute12 =>p_rec.wpn_attribute12
,p_wpn_attribute13 =>p_rec.wpn_attribute13
,p_wpn_attribute14 =>p_rec.wpn_attribute14
,p_wpn_attribute15 =>p_rec.wpn_attribute15
,p_wpn_attribute16 =>p_rec.wpn_attribute16
,p_wpn_attribute17 =>p_rec.wpn_attribute17
,p_wpn_attribute18 =>p_rec.wpn_attribute18
,p_wpn_attribute19 =>p_rec.wpn_attribute19
,p_wpn_attribute20 =>p_rec.wpn_attribute20
,p_wpn_attribute21 =>p_rec.wpn_attribute21
,p_wpn_attribute22 =>p_rec.wpn_attribute22
,p_wpn_attribute23 =>p_rec.wpn_attribute23
,p_wpn_attribute24 =>p_rec.wpn_attribute24
,p_wpn_attribute25 =>p_rec.wpn_attribute25
,p_wpn_attribute26 =>p_rec.wpn_attribute26
,p_wpn_attribute27 =>p_rec.wpn_attribute27
,p_wpn_attribute28 =>p_rec.wpn_attribute28
,p_wpn_attribute29 =>p_rec.wpn_attribute29
,p_wpn_attribute30 =>p_rec.wpn_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_wpn_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);