The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_pbm_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_pl_r_oipl_prem_by_mo_f t
where t.pl_r_oipl_prem_by_mo_id = p_rec.pl_r_oipl_prem_by_mo_id
and t.effective_start_date =
ben_pbm_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_pl_r_oipl_prem_by_mo_f.last_update_date%TYPE;
l_last_updated_by ben_pl_r_oipl_prem_by_mo_f.last_updated_by%TYPE;
l_last_update_login ben_pl_r_oipl_prem_by_mo_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_pl_r_oipl_prem_by_mo_f
( pl_r_oipl_prem_by_mo_id,
effective_start_date,
effective_end_date,
mnl_adj_flag,
mo_num,
yr_num,
val,
uom,
prtts_num,
actl_prem_id,
cost_allocation_keyflex_id,
business_group_id,
pbm_attribute_category,
pbm_attribute1,
pbm_attribute2,
pbm_attribute3,
pbm_attribute4,
pbm_attribute5,
pbm_attribute6,
pbm_attribute7,
pbm_attribute8,
pbm_attribute9,
pbm_attribute10,
pbm_attribute11,
pbm_attribute12,
pbm_attribute13,
pbm_attribute14,
pbm_attribute15,
pbm_attribute16,
pbm_attribute17,
pbm_attribute18,
pbm_attribute19,
pbm_attribute20,
pbm_attribute21,
pbm_attribute22,
pbm_attribute23,
pbm_attribute24,
pbm_attribute25,
pbm_attribute26,
pbm_attribute27,
pbm_attribute28,
pbm_attribute29,
pbm_attribute30,
object_version_number,
request_id,
program_id,
program_application_id,
program_update_date,
created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.pl_r_oipl_prem_by_mo_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.mnl_adj_flag,
p_rec.mo_num,
p_rec.yr_num,
p_rec.val,
p_rec.uom,
p_rec.prtts_num,
p_rec.actl_prem_id,
p_rec.cost_allocation_keyflex_id,
p_rec.business_group_id,
p_rec.pbm_attribute_category,
p_rec.pbm_attribute1,
p_rec.pbm_attribute2,
p_rec.pbm_attribute3,
p_rec.pbm_attribute4,
p_rec.pbm_attribute5,
p_rec.pbm_attribute6,
p_rec.pbm_attribute7,
p_rec.pbm_attribute8,
p_rec.pbm_attribute9,
p_rec.pbm_attribute10,
p_rec.pbm_attribute11,
p_rec.pbm_attribute12,
p_rec.pbm_attribute13,
p_rec.pbm_attribute14,
p_rec.pbm_attribute15,
p_rec.pbm_attribute16,
p_rec.pbm_attribute17,
p_rec.pbm_attribute18,
p_rec.pbm_attribute19,
p_rec.pbm_attribute20,
p_rec.pbm_attribute21,
p_rec.pbm_attribute22,
p_rec.pbm_attribute23,
p_rec.pbm_attribute24,
p_rec.pbm_attribute25,
p_rec.pbm_attribute26,
p_rec.pbm_attribute27,
p_rec.pbm_attribute28,
p_rec.pbm_attribute29,
p_rec.pbm_attribute30,
p_rec.object_version_number,
p_rec.request_id,
p_rec.program_id,
p_rec.program_application_id,
p_rec.program_update_date,
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_pbm_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_pbm_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 c1 is select ben_pl_r_oipl_prem_by_mo_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_pbm_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_pbm_rki.after_insert
(
p_pl_r_oipl_prem_by_mo_id =>p_rec.pl_r_oipl_prem_by_mo_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_mnl_adj_flag =>p_rec.mnl_adj_flag
,p_mo_num =>p_rec.mo_num
,p_yr_num =>p_rec.yr_num
,p_val =>p_rec.val
,p_uom =>p_rec.uom
,p_prtts_num =>p_rec.prtts_num
,p_actl_prem_id =>p_rec.actl_prem_id
,p_cost_allocation_keyflex_id =>p_rec.cost_allocation_keyflex_id
,p_business_group_id =>p_rec.business_group_id
,p_pbm_attribute_category =>p_rec.pbm_attribute_category
,p_pbm_attribute1 =>p_rec.pbm_attribute1
,p_pbm_attribute2 =>p_rec.pbm_attribute2
,p_pbm_attribute3 =>p_rec.pbm_attribute3
,p_pbm_attribute4 =>p_rec.pbm_attribute4
,p_pbm_attribute5 =>p_rec.pbm_attribute5
,p_pbm_attribute6 =>p_rec.pbm_attribute6
,p_pbm_attribute7 =>p_rec.pbm_attribute7
,p_pbm_attribute8 =>p_rec.pbm_attribute8
,p_pbm_attribute9 =>p_rec.pbm_attribute9
,p_pbm_attribute10 =>p_rec.pbm_attribute10
,p_pbm_attribute11 =>p_rec.pbm_attribute11
,p_pbm_attribute12 =>p_rec.pbm_attribute12
,p_pbm_attribute13 =>p_rec.pbm_attribute13
,p_pbm_attribute14 =>p_rec.pbm_attribute14
,p_pbm_attribute15 =>p_rec.pbm_attribute15
,p_pbm_attribute16 =>p_rec.pbm_attribute16
,p_pbm_attribute17 =>p_rec.pbm_attribute17
,p_pbm_attribute18 =>p_rec.pbm_attribute18
,p_pbm_attribute19 =>p_rec.pbm_attribute19
,p_pbm_attribute20 =>p_rec.pbm_attribute20
,p_pbm_attribute21 =>p_rec.pbm_attribute21
,p_pbm_attribute22 =>p_rec.pbm_attribute22
,p_pbm_attribute23 =>p_rec.pbm_attribute23
,p_pbm_attribute24 =>p_rec.pbm_attribute24
,p_pbm_attribute25 =>p_rec.pbm_attribute25
,p_pbm_attribute26 =>p_rec.pbm_attribute26
,p_pbm_attribute27 =>p_rec.pbm_attribute27
,p_pbm_attribute28 =>p_rec.pbm_attribute28
,p_pbm_attribute29 =>p_rec.pbm_attribute29
,p_pbm_attribute30 =>p_rec.pbm_attribute30
,p_object_version_number =>p_rec.object_version_number
,p_request_id =>p_rec.request_id
,p_program_id =>p_rec.program_id
,p_program_application_id =>p_rec.program_application_id
,p_program_update_date =>p_rec.program_update_date
,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_pbm_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);
p_program_update_date in date default null,
p_effective_date in date
) is
--
l_rec ben_pbm_shd.g_rec_type;
p_program_update_date
);