The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_otp_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_optip_f t
where t.optip_id = p_rec.optip_id
and t.effective_start_date =
ben_otp_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_optip_f.last_update_date%TYPE;
l_last_updated_by ben_optip_f.last_updated_by%TYPE;
l_last_update_login ben_optip_f.last_update_login%TYPE;
If (p_datetrack_mode <> hr_api.g_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_optip_f
(optip_id
,effective_start_date
,effective_end_date
,business_group_id
,pgm_id
,ptip_id
,pl_typ_id
,opt_id
,cmbn_ptip_opt_id
,legislation_code
,legislation_subgroup
,otp_attribute_category
,otp_attribute1
,otp_attribute2
,otp_attribute3
,otp_attribute4
,otp_attribute5
,otp_attribute6
,otp_attribute7
,otp_attribute8
,otp_attribute9
,otp_attribute10
,otp_attribute11
,otp_attribute12
,otp_attribute13
,otp_attribute14
,otp_attribute15
,otp_attribute16
,otp_attribute17
,otp_attribute18
,otp_attribute19
,otp_attribute20
,otp_attribute21
,otp_attribute22
,otp_attribute23
,otp_attribute24
,otp_attribute25
,otp_attribute26
,otp_attribute27
,otp_attribute28
,otp_attribute29
,otp_attribute30
,object_version_number
,created_by
,creation_date
,last_update_date
,last_updated_by
,last_update_login
)
Values
(p_rec.optip_id
,p_rec.effective_start_date
,p_rec.effective_end_date
,p_rec.business_group_id
,p_rec.pgm_id
,p_rec.ptip_id
,p_rec.pl_typ_id
,p_rec.opt_id
,p_rec.cmbn_ptip_opt_id
,p_rec.legislation_code
,p_rec.legislation_subgroup
,p_rec.otp_attribute_category
,p_rec.otp_attribute1
,p_rec.otp_attribute2
,p_rec.otp_attribute3
,p_rec.otp_attribute4
,p_rec.otp_attribute5
,p_rec.otp_attribute6
,p_rec.otp_attribute7
,p_rec.otp_attribute8
,p_rec.otp_attribute9
,p_rec.otp_attribute10
,p_rec.otp_attribute11
,p_rec.otp_attribute12
,p_rec.otp_attribute13
,p_rec.otp_attribute14
,p_rec.otp_attribute15
,p_rec.otp_attribute16
,p_rec.otp_attribute17
,p_rec.otp_attribute18
,p_rec.otp_attribute19
,p_rec.otp_attribute20
,p_rec.otp_attribute21
,p_rec.otp_attribute22
,p_rec.otp_attribute23
,p_rec.otp_attribute24
,p_rec.otp_attribute25
,p_rec.otp_attribute26
,p_rec.otp_attribute27
,p_rec.otp_attribute28
,p_rec.otp_attribute29
,p_rec.otp_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_otp_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';
ben_otp_ins.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_otp_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_optip_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_otp_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_otp_rki.after_insert
(p_effective_date
=> p_effective_date
,p_validation_start_date
=> p_validation_start_date
,p_validation_end_date
=> p_validation_end_date
,p_optip_id
=> p_rec.optip_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_pgm_id
=> p_rec.pgm_id
,p_ptip_id
=> p_rec.ptip_id
,p_pl_typ_id
=> p_rec.pl_typ_id
,p_opt_id
=> p_rec.opt_id
,p_cmbn_ptip_opt_id
=> p_rec.cmbn_ptip_opt_id
,p_legislation_code
=> p_rec.legislation_code
,p_legislation_subgroup
=> p_rec.legislation_subgroup
,p_otp_attribute_category
=> p_rec.otp_attribute_category
,p_otp_attribute1
=> p_rec.otp_attribute1
,p_otp_attribute2
=> p_rec.otp_attribute2
,p_otp_attribute3
=> p_rec.otp_attribute3
,p_otp_attribute4
=> p_rec.otp_attribute4
,p_otp_attribute5
=> p_rec.otp_attribute5
,p_otp_attribute6
=> p_rec.otp_attribute6
,p_otp_attribute7
=> p_rec.otp_attribute7
,p_otp_attribute8
=> p_rec.otp_attribute8
,p_otp_attribute9
=> p_rec.otp_attribute9
,p_otp_attribute10
=> p_rec.otp_attribute10
,p_otp_attribute11
=> p_rec.otp_attribute11
,p_otp_attribute12
=> p_rec.otp_attribute12
,p_otp_attribute13
=> p_rec.otp_attribute13
,p_otp_attribute14
=> p_rec.otp_attribute14
,p_otp_attribute15
=> p_rec.otp_attribute15
,p_otp_attribute16
=> p_rec.otp_attribute16
,p_otp_attribute17
=> p_rec.otp_attribute17
,p_otp_attribute18
=> p_rec.otp_attribute18
,p_otp_attribute19
=> p_rec.otp_attribute19
,p_otp_attribute20
=> p_rec.otp_attribute20
,p_otp_attribute21
=> p_rec.otp_attribute21
,p_otp_attribute22
=> p_rec.otp_attribute22
,p_otp_attribute23
=> p_rec.otp_attribute23
,p_otp_attribute24
=> p_rec.otp_attribute24
,p_otp_attribute25
=> p_rec.otp_attribute25
,p_otp_attribute26
=> p_rec.otp_attribute26
,p_otp_attribute27
=> p_rec.otp_attribute27
,p_otp_attribute28
=> p_rec.otp_attribute28
,p_otp_attribute29
=> p_rec.otp_attribute29
,p_otp_attribute30
=> p_rec.otp_attribute30
,p_object_version_number
=> p_rec.object_version_number
);
End post_insert;
l_datetrack_mode varchar2(30) := hr_api.g_insert;
ben_otp_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
);
ben_otp_ins.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
);
ben_otp_ins.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
);
ben_otp_ins.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
);