The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_shr_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_schedd_hrs_rt_f t
where t.schedd_hrs_rt_id = p_rec.schedd_hrs_rt_id
and t.effective_start_date =
ben_shr_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_schedd_hrs_rt_f.last_update_date%TYPE;
l_last_updated_by ben_schedd_hrs_rt_f.last_updated_by%TYPE;
l_last_update_login ben_schedd_hrs_rt_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_schedd_hrs_rt_f
( schedd_hrs_rt_id,
effective_start_date,
effective_end_date,
vrbl_rt_prfl_id,
excld_flag,
ordr_num,
freq_cd,
hrs_num,
max_hrs_num,
schedd_hrs_rl,
determination_cd,
determination_rl,
rounding_cd,
rounding_rl,
business_group_id,
shr_attribute_category,
shr_attribute1,
shr_attribute2,
shr_attribute3,
shr_attribute4,
shr_attribute5,
shr_attribute6,
shr_attribute7,
shr_attribute8,
shr_attribute9,
shr_attribute10,
shr_attribute11,
shr_attribute12,
shr_attribute13,
shr_attribute14,
shr_attribute15,
shr_attribute16,
shr_attribute17,
shr_attribute18,
shr_attribute19,
shr_attribute20,
shr_attribute21,
shr_attribute22,
shr_attribute23,
shr_attribute24,
shr_attribute25,
shr_attribute26,
shr_attribute27,
shr_attribute28,
shr_attribute29,
shr_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.schedd_hrs_rt_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.vrbl_rt_prfl_id,
p_rec.excld_flag,
p_rec.ordr_num,
p_rec.freq_cd,
p_rec.hrs_num,
p_rec.max_hrs_num,
p_rec.schedd_hrs_rl,
p_rec.determination_cd,
p_rec.determination_rl,
p_rec.rounding_cd,
p_rec.rounding_rl,
p_rec.business_group_id,
p_rec.shr_attribute_category,
p_rec.shr_attribute1,
p_rec.shr_attribute2,
p_rec.shr_attribute3,
p_rec.shr_attribute4,
p_rec.shr_attribute5,
p_rec.shr_attribute6,
p_rec.shr_attribute7,
p_rec.shr_attribute8,
p_rec.shr_attribute9,
p_rec.shr_attribute10,
p_rec.shr_attribute11,
p_rec.shr_attribute12,
p_rec.shr_attribute13,
p_rec.shr_attribute14,
p_rec.shr_attribute15,
p_rec.shr_attribute16,
p_rec.shr_attribute17,
p_rec.shr_attribute18,
p_rec.shr_attribute19,
p_rec.shr_attribute20,
p_rec.shr_attribute21,
p_rec.shr_attribute22,
p_rec.shr_attribute23,
p_rec.shr_attribute24,
p_rec.shr_attribute25,
p_rec.shr_attribute26,
p_rec.shr_attribute27,
p_rec.shr_attribute28,
p_rec.shr_attribute29,
p_rec.shr_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_shr_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_shr_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_schedd_hrs_rt_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_shr_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_shr_rki.after_insert
(
p_schedd_hrs_rt_id =>p_rec.schedd_hrs_rt_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_vrbl_rt_prfl_id =>p_rec.vrbl_rt_prfl_id
,p_excld_flag =>p_rec.excld_flag
,p_ordr_num =>p_rec.ordr_num
,p_freq_cd =>p_rec.freq_cd
,p_hrs_num =>p_rec.hrs_num
,p_max_hrs_num => p_rec.max_hrs_num
,p_schedd_hrs_rl => p_rec.schedd_hrs_rl
,p_determination_cd => p_rec.determination_cd
,p_determination_rl => p_rec.determination_rl
,p_rounding_cd => p_rec.rounding_cd
,p_rounding_rl => p_rec.rounding_rl
,p_business_group_id =>p_rec.business_group_id
,p_shr_attribute_category =>p_rec.shr_attribute_category
,p_shr_attribute1 =>p_rec.shr_attribute1
,p_shr_attribute2 =>p_rec.shr_attribute2
,p_shr_attribute3 =>p_rec.shr_attribute3
,p_shr_attribute4 =>p_rec.shr_attribute4
,p_shr_attribute5 =>p_rec.shr_attribute5
,p_shr_attribute6 =>p_rec.shr_attribute6
,p_shr_attribute7 =>p_rec.shr_attribute7
,p_shr_attribute8 =>p_rec.shr_attribute8
,p_shr_attribute9 =>p_rec.shr_attribute9
,p_shr_attribute10 =>p_rec.shr_attribute10
,p_shr_attribute11 =>p_rec.shr_attribute11
,p_shr_attribute12 =>p_rec.shr_attribute12
,p_shr_attribute13 =>p_rec.shr_attribute13
,p_shr_attribute14 =>p_rec.shr_attribute14
,p_shr_attribute15 =>p_rec.shr_attribute15
,p_shr_attribute16 =>p_rec.shr_attribute16
,p_shr_attribute17 =>p_rec.shr_attribute17
,p_shr_attribute18 =>p_rec.shr_attribute18
,p_shr_attribute19 =>p_rec.shr_attribute19
,p_shr_attribute20 =>p_rec.shr_attribute20
,p_shr_attribute21 =>p_rec.shr_attribute21
,p_shr_attribute22 =>p_rec.shr_attribute22
,p_shr_attribute23 =>p_rec.shr_attribute23
,p_shr_attribute24 =>p_rec.shr_attribute24
,p_shr_attribute25 =>p_rec.shr_attribute25
,p_shr_attribute26 =>p_rec.shr_attribute26
,p_shr_attribute27 =>p_rec.shr_attribute27
,p_shr_attribute28 =>p_rec.shr_attribute28
,p_shr_attribute29 =>p_rec.shr_attribute29
,p_shr_attribute30 =>p_rec.shr_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_shr_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);