The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_epn_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_ELIG_PRBTN_PERD_PRTE_f t
where t.ELIG_PRBTN_PERD_PRTE_id = p_rec.ELIG_PRBTN_PERD_PRTE_id
and t.effective_start_date =
ben_epn_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_ELIG_PRBTN_PERD_PRTE_f.last_update_date%TYPE;
l_last_updated_by ben_ELIG_PRBTN_PERD_PRTE_f.last_updated_by%TYPE;
l_last_update_login ben_ELIG_PRBTN_PERD_PRTE_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_ELIG_PRBTN_PERD_PRTE_f
( ELIG_PRBTN_PERD_PRTE_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
PROBATION_PERIOD,
probation_unit,
eligy_prfl_id,
business_group_id,
epn_attribute_category,
epn_attribute1,
epn_attribute2,
epn_attribute3,
epn_attribute4,
epn_attribute5,
epn_attribute6,
epn_attribute7,
epn_attribute8,
epn_attribute9,
epn_attribute10,
epn_attribute11,
epn_attribute12,
epn_attribute13,
epn_attribute14,
epn_attribute15,
epn_attribute16,
epn_attribute17,
epn_attribute18,
epn_attribute19,
epn_attribute20,
epn_attribute21,
epn_attribute22,
epn_attribute23,
epn_attribute24,
epn_attribute25,
epn_attribute26,
epn_attribute27,
epn_attribute28,
epn_attribute29,
epn_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login,
criteria_score,
criteria_weight
)
Values
( p_rec.ELIG_PRBTN_PERD_PRTE_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.excld_flag,
p_rec.ordr_num,
p_rec.PROBATION_PERIOD,
p_rec.probation_unit,
p_rec.eligy_prfl_id,
p_rec.business_group_id,
p_rec.epn_attribute_category,
p_rec.epn_attribute1,
p_rec.epn_attribute2,
p_rec.epn_attribute3,
p_rec.epn_attribute4,
p_rec.epn_attribute5,
p_rec.epn_attribute6,
p_rec.epn_attribute7,
p_rec.epn_attribute8,
p_rec.epn_attribute9,
p_rec.epn_attribute10,
p_rec.epn_attribute11,
p_rec.epn_attribute12,
p_rec.epn_attribute13,
p_rec.epn_attribute14,
p_rec.epn_attribute15,
p_rec.epn_attribute16,
p_rec.epn_attribute17,
p_rec.epn_attribute18,
p_rec.epn_attribute19,
p_rec.epn_attribute20,
p_rec.epn_attribute21,
p_rec.epn_attribute22,
p_rec.epn_attribute23,
p_rec.epn_attribute24,
p_rec.epn_attribute25,
p_rec.epn_attribute26,
p_rec.epn_attribute27,
p_rec.epn_attribute28,
p_rec.epn_attribute29,
p_rec.epn_attribute30,
p_rec.object_version_number
, l_created_by,
l_creation_date,
l_last_update_date,
l_last_updated_by,
l_last_update_login,
p_rec.criteria_score,
p_rec.criteria_weight
);
End dt_insert_dml;
Procedure insert_dml
(p_rec in out nocopy ben_epn_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_epn_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_ELIG_PRBTN_PERD_PRTE_F_S.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_epn_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_epn_rki.after_insert
(
p_ELIG_PRBTN_PERD_PRTE_id =>p_rec.ELIG_PRBTN_PERD_PRTE_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_excld_flag =>p_rec.excld_flag
,p_ordr_num =>p_rec.ordr_num
,p_PROBATION_PERIOD =>p_rec.PROBATION_PERIOD
,p_probation_unit =>p_rec.probation_unit
,p_eligy_prfl_id =>p_rec.eligy_prfl_id
,p_business_group_id =>p_rec.business_group_id
,p_epn_attribute_category =>p_rec.epn_attribute_category
,p_epn_attribute1 =>p_rec.epn_attribute1
,p_epn_attribute2 =>p_rec.epn_attribute2
,p_epn_attribute3 =>p_rec.epn_attribute3
,p_epn_attribute4 =>p_rec.epn_attribute4
,p_epn_attribute5 =>p_rec.epn_attribute5
,p_epn_attribute6 =>p_rec.epn_attribute6
,p_epn_attribute7 =>p_rec.epn_attribute7
,p_epn_attribute8 =>p_rec.epn_attribute8
,p_epn_attribute9 =>p_rec.epn_attribute9
,p_epn_attribute10 =>p_rec.epn_attribute10
,p_epn_attribute11 =>p_rec.epn_attribute11
,p_epn_attribute12 =>p_rec.epn_attribute12
,p_epn_attribute13 =>p_rec.epn_attribute13
,p_epn_attribute14 =>p_rec.epn_attribute14
,p_epn_attribute15 =>p_rec.epn_attribute15
,p_epn_attribute16 =>p_rec.epn_attribute16
,p_epn_attribute17 =>p_rec.epn_attribute17
,p_epn_attribute18 =>p_rec.epn_attribute18
,p_epn_attribute19 =>p_rec.epn_attribute19
,p_epn_attribute20 =>p_rec.epn_attribute20
,p_epn_attribute21 =>p_rec.epn_attribute21
,p_epn_attribute22 =>p_rec.epn_attribute22
,p_epn_attribute23 =>p_rec.epn_attribute23
,p_epn_attribute24 =>p_rec.epn_attribute24
,p_epn_attribute25 =>p_rec.epn_attribute25
,p_epn_attribute26 =>p_rec.epn_attribute26
,p_epn_attribute27 =>p_rec.epn_attribute27
,p_epn_attribute28 =>p_rec.epn_attribute28
,p_epn_attribute29 =>p_rec.epn_attribute29
,p_epn_attribute30 =>p_rec.epn_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
,p_criteria_score =>p_rec.criteria_score
,p_criteria_weight =>p_rec.criteria_weight
);
End post_insert;
l_datetrack_mode varchar2(30) := 'INSERT';
ben_epn_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);