The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_ctp_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_ptip_f t
where t.ptip_id = p_rec.ptip_id
and t.effective_start_date =
ben_ctp_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_ptip_f.last_update_date%TYPE;
l_last_updated_by ben_ptip_f.last_updated_by%TYPE;
l_last_update_login ben_ptip_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_ptip_f
( ptip_id,
effective_start_date,
effective_end_date,
business_group_id,
pgm_id,
cmbn_ptip_id,
cmbn_ptip_opt_id,
acrs_ptip_cvg_id,
pl_typ_id,
coord_cvg_for_all_pls_flag,
dpnt_dsgn_cd,
dpnt_cvg_strt_dt_rl,
dpnt_cvg_end_dt_rl,
postelcn_edit_rl,
rt_end_dt_rl,
rt_strt_dt_rl,
enrt_cvg_end_dt_rl,
enrt_cvg_strt_dt_rl,
rqd_perd_enrt_nenrt_rl,
auto_enrt_mthd_rl,
enrt_mthd_cd,
enrt_cd,
enrt_rl,
dflt_enrt_cd,
dflt_enrt_det_rl,
drvbl_fctr_apls_rts_flag,
drvbl_fctr_prtn_elig_flag,
elig_apls_flag,
prtn_elig_ovrid_alwd_flag,
trk_inelig_per_flag,
dpnt_cvg_strt_dt_cd,
rt_end_dt_cd,
rt_strt_dt_cd,
enrt_cvg_end_dt_cd,
enrt_cvg_strt_dt_cd,
dpnt_cvg_end_dt_cd,
crs_this_pl_typ_only_flag,
ptip_stat_cd,
mx_cvg_alwd_amt,
mx_enrd_alwd_ovrid_num,
mn_enrd_rqd_ovrid_num,
no_mx_pl_typ_ovrid_flag,
ordr_num,
prvds_cr_flag,
rqd_perd_enrt_nenrt_val,
rqd_perd_enrt_nenrt_tm_uom,
wvbl_flag,
dpnt_adrs_rqd_flag,
dpnt_cvg_no_ctfn_rqd_flag,
dpnt_dob_rqd_flag,
dpnt_legv_id_rqd_flag,
susp_if_dpnt_ssn_nt_prv_cd,
susp_if_dpnt_dob_nt_prv_cd,
susp_if_dpnt_adr_nt_prv_cd,
susp_if_ctfn_not_dpnt_flag,
dpnt_ctfn_determine_cd,
drvd_fctr_dpnt_cvg_flag,
no_mn_pl_typ_overid_flag,
sbj_to_sps_lf_ins_mx_flag,
sbj_to_dpnt_lf_ins_mx_flag,
use_to_sum_ee_lf_ins_flag,
per_cvrd_cd,
short_name,
short_code ,
legislation_code ,
legislation_subgroup ,
vrfy_fmly_mmbr_cd,
vrfy_fmly_mmbr_rl,
ivr_ident,
url_ref_name,
rqd_enrt_perd_tco_cd,
ctp_attribute_category,
ctp_attribute1,
ctp_attribute2,
ctp_attribute3,
ctp_attribute4,
ctp_attribute5,
ctp_attribute6,
ctp_attribute7,
ctp_attribute8,
ctp_attribute9,
ctp_attribute10,
ctp_attribute11,
ctp_attribute12,
ctp_attribute13,
ctp_attribute14,
ctp_attribute15,
ctp_attribute16,
ctp_attribute17,
ctp_attribute18,
ctp_attribute19,
ctp_attribute20,
ctp_attribute21,
ctp_attribute22,
ctp_attribute23,
ctp_attribute24,
ctp_attribute25,
ctp_attribute26,
ctp_attribute27,
ctp_attribute28,
ctp_attribute29,
ctp_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.ptip_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.business_group_id,
p_rec.pgm_id,
p_rec.cmbn_ptip_id,
p_rec.cmbn_ptip_opt_id,
p_rec.acrs_ptip_cvg_id,
p_rec.pl_typ_id,
p_rec.coord_cvg_for_all_pls_flag,
p_rec.dpnt_dsgn_cd,
p_rec.dpnt_cvg_strt_dt_rl,
p_rec.dpnt_cvg_end_dt_rl,
p_rec.postelcn_edit_rl,
p_rec.rt_end_dt_rl,
p_rec.rt_strt_dt_rl,
p_rec.enrt_cvg_end_dt_rl,
p_rec.enrt_cvg_strt_dt_rl,
p_rec.rqd_perd_enrt_nenrt_rl,
p_rec.auto_enrt_mthd_rl,
p_rec.enrt_mthd_cd,
p_rec.enrt_cd,
p_rec.enrt_rl,
p_rec.dflt_enrt_cd,
p_rec.dflt_enrt_det_rl,
p_rec.drvbl_fctr_apls_rts_flag,
p_rec.drvbl_fctr_prtn_elig_flag,
p_rec.elig_apls_flag,
p_rec.prtn_elig_ovrid_alwd_flag,
p_rec.trk_inelig_per_flag,
p_rec.dpnt_cvg_strt_dt_cd,
p_rec.rt_end_dt_cd,
p_rec.rt_strt_dt_cd,
p_rec.enrt_cvg_end_dt_cd,
p_rec.enrt_cvg_strt_dt_cd,
p_rec.dpnt_cvg_end_dt_cd,
p_rec.crs_this_pl_typ_only_flag,
p_rec.ptip_stat_cd,
p_rec.mx_cvg_alwd_amt,
p_rec.mx_enrd_alwd_ovrid_num,
p_rec.mn_enrd_rqd_ovrid_num,
p_rec.no_mx_pl_typ_ovrid_flag,
p_rec.ordr_num,
p_rec.prvds_cr_flag,
p_rec.rqd_perd_enrt_nenrt_val,
p_rec.rqd_perd_enrt_nenrt_tm_uom,
p_rec.wvbl_flag,
p_rec.dpnt_adrs_rqd_flag,
p_rec.dpnt_cvg_no_ctfn_rqd_flag,
p_rec.dpnt_dob_rqd_flag,
p_rec.dpnt_legv_id_rqd_flag,
p_rec.susp_if_dpnt_ssn_nt_prv_cd,
p_rec.susp_if_dpnt_dob_nt_prv_cd,
p_rec.susp_if_dpnt_adr_nt_prv_cd,
p_rec.susp_if_ctfn_not_dpnt_flag,
p_rec.dpnt_ctfn_determine_cd,
p_rec.drvd_fctr_dpnt_cvg_flag,
p_rec.no_mn_pl_typ_overid_flag,
p_rec.sbj_to_sps_lf_ins_mx_flag,
p_rec.sbj_to_dpnt_lf_ins_mx_flag,
p_rec.use_to_sum_ee_lf_ins_flag,
p_rec.per_cvrd_cd,
p_rec.short_name,
p_rec.short_code,
p_rec.legislation_code,
p_rec.legislation_subgroup,
p_rec.vrfy_fmly_mmbr_cd,
p_rec.vrfy_fmly_mmbr_rl,
p_rec.ivr_ident,
p_rec.url_ref_name,
p_rec.rqd_enrt_perd_tco_cd,
p_rec.ctp_attribute_category,
p_rec.ctp_attribute1,
p_rec.ctp_attribute2,
p_rec.ctp_attribute3,
p_rec.ctp_attribute4,
p_rec.ctp_attribute5,
p_rec.ctp_attribute6,
p_rec.ctp_attribute7,
p_rec.ctp_attribute8,
p_rec.ctp_attribute9,
p_rec.ctp_attribute10,
p_rec.ctp_attribute11,
p_rec.ctp_attribute12,
p_rec.ctp_attribute13,
p_rec.ctp_attribute14,
p_rec.ctp_attribute15,
p_rec.ctp_attribute16,
p_rec.ctp_attribute17,
p_rec.ctp_attribute18,
p_rec.ctp_attribute19,
p_rec.ctp_attribute20,
p_rec.ctp_attribute21,
p_rec.ctp_attribute22,
p_rec.ctp_attribute23,
p_rec.ctp_attribute24,
p_rec.ctp_attribute25,
p_rec.ctp_attribute26,
p_rec.ctp_attribute27,
p_rec.ctp_attribute28,
p_rec.ctp_attribute29,
p_rec.ctp_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_ctp_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_ctp_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_ptip_f_s.nextval
from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_ctp_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_ctp_rki.after_insert
(
p_ptip_id =>p_rec.ptip_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_cmbn_ptip_id =>p_rec.cmbn_ptip_id
,p_cmbn_ptip_opt_id =>p_rec.cmbn_ptip_opt_id
,p_acrs_ptip_cvg_id =>p_rec.acrs_ptip_cvg_id
,p_pl_typ_id =>p_rec.pl_typ_id
,p_coord_cvg_for_all_pls_flag =>p_rec.coord_cvg_for_all_pls_flag
,p_dpnt_dsgn_cd =>p_rec.dpnt_dsgn_cd
,p_dpnt_cvg_strt_dt_rl =>p_rec.dpnt_cvg_strt_dt_rl
,p_dpnt_cvg_end_dt_rl =>p_rec.dpnt_cvg_end_dt_rl
,p_postelcn_edit_rl =>p_rec.postelcn_edit_rl
,p_rt_end_dt_rl =>p_rec.rt_end_dt_rl
,p_rt_strt_dt_rl =>p_rec.rt_strt_dt_rl
,p_enrt_cvg_end_dt_rl =>p_rec.enrt_cvg_end_dt_rl
,p_enrt_cvg_strt_dt_rl =>p_rec.enrt_cvg_strt_dt_rl
,p_rqd_perd_enrt_nenrt_rl =>p_rec.rqd_perd_enrt_nenrt_rl
,p_auto_enrt_mthd_rl =>p_rec.auto_enrt_mthd_rl
,p_enrt_mthd_cd =>p_rec.enrt_mthd_cd
,p_enrt_cd =>p_rec.enrt_cd
,p_enrt_rl =>p_rec.enrt_rl
,p_dflt_enrt_cd =>p_rec.dflt_enrt_cd
,p_dflt_enrt_det_rl =>p_rec.dflt_enrt_det_rl
,p_drvbl_fctr_apls_rts_flag =>p_rec.drvbl_fctr_apls_rts_flag
,p_drvbl_fctr_prtn_elig_flag =>p_rec.drvbl_fctr_prtn_elig_flag
,p_elig_apls_flag =>p_rec.elig_apls_flag
,p_prtn_elig_ovrid_alwd_flag =>p_rec.prtn_elig_ovrid_alwd_flag
,p_trk_inelig_per_flag =>p_rec.trk_inelig_per_flag
,p_rt_end_dt_cd =>p_rec.rt_end_dt_cd
,p_rt_strt_dt_cd =>p_rec.rt_strt_dt_cd
,p_enrt_cvg_end_dt_cd =>p_rec.enrt_cvg_end_dt_cd
,p_enrt_cvg_strt_dt_cd =>p_rec.enrt_cvg_strt_dt_cd
,p_dpnt_cvg_end_dt_cd =>p_rec.dpnt_cvg_end_dt_cd
,p_dpnt_cvg_strt_dt_cd =>p_rec.dpnt_cvg_strt_dt_cd
,p_crs_this_pl_typ_only_flag =>p_rec.crs_this_pl_typ_only_flag
,p_ptip_stat_cd =>p_rec.ptip_stat_cd
,p_mx_cvg_alwd_amt =>p_rec.mx_cvg_alwd_amt
,p_mx_enrd_alwd_ovrid_num =>p_rec.mx_enrd_alwd_ovrid_num
,p_mn_enrd_rqd_ovrid_num =>p_rec.mn_enrd_rqd_ovrid_num
,p_no_mx_pl_typ_ovrid_flag =>p_rec.no_mx_pl_typ_ovrid_flag
,p_ordr_num =>p_rec.ordr_num
,p_prvds_cr_flag =>p_rec.prvds_cr_flag
,p_rqd_perd_enrt_nenrt_val =>p_rec.rqd_perd_enrt_nenrt_val
,p_rqd_perd_enrt_nenrt_tm_uom =>p_rec.rqd_perd_enrt_nenrt_tm_uom
,p_wvbl_flag =>p_rec.wvbl_flag
,p_dpnt_adrs_rqd_flag =>p_rec.dpnt_adrs_rqd_flag
,p_dpnt_cvg_no_ctfn_rqd_flag =>p_rec.dpnt_cvg_no_ctfn_rqd_flag
,p_dpnt_dob_rqd_flag =>p_rec.dpnt_dob_rqd_flag
,p_dpnt_legv_id_rqd_flag =>p_rec.dpnt_legv_id_rqd_flag
,p_susp_if_dpnt_ssn_nt_prv_cd =>p_rec.susp_if_dpnt_ssn_nt_prv_cd
,p_susp_if_dpnt_dob_nt_prv_cd =>p_rec.susp_if_dpnt_dob_nt_prv_cd
,p_susp_if_dpnt_adr_nt_prv_cd =>p_rec.susp_if_dpnt_adr_nt_prv_cd
,p_susp_if_ctfn_not_dpnt_flag =>p_rec.susp_if_ctfn_not_dpnt_flag
,p_dpnt_ctfn_determine_cd =>p_rec.dpnt_ctfn_determine_cd
,p_drvd_fctr_dpnt_cvg_flag =>p_rec.drvd_fctr_dpnt_cvg_flag
,p_no_mn_pl_typ_overid_flag =>p_rec.no_mn_pl_typ_overid_flag
,p_sbj_to_sps_lf_ins_mx_flag =>p_rec.sbj_to_sps_lf_ins_mx_flag
,p_sbj_to_dpnt_lf_ins_mx_flag =>p_rec.sbj_to_dpnt_lf_ins_mx_flag
,p_use_to_sum_ee_lf_ins_flag =>p_rec.use_to_sum_ee_lf_ins_flag
,p_per_cvrd_cd =>p_rec.per_cvrd_cd
,p_short_name =>p_rec.short_name
,p_short_code =>p_rec.short_code
,p_legislation_code =>p_rec.legislation_code
,p_legislation_subgroup =>p_rec.legislation_subgroup
,p_vrfy_fmly_mmbr_cd =>p_rec.vrfy_fmly_mmbr_cd
,p_vrfy_fmly_mmbr_rl =>p_rec.vrfy_fmly_mmbr_rl
,p_ivr_ident =>p_rec.ivr_ident
,p_url_ref_name =>p_rec.url_ref_name
,p_rqd_enrt_perd_tco_cd =>p_rec.rqd_enrt_perd_tco_cd
,p_ctp_attribute_category =>p_rec.ctp_attribute_category
,p_ctp_attribute1 =>p_rec.ctp_attribute1
,p_ctp_attribute2 =>p_rec.ctp_attribute2
,p_ctp_attribute3 =>p_rec.ctp_attribute3
,p_ctp_attribute4 =>p_rec.ctp_attribute4
,p_ctp_attribute5 =>p_rec.ctp_attribute5
,p_ctp_attribute6 =>p_rec.ctp_attribute6
,p_ctp_attribute7 =>p_rec.ctp_attribute7
,p_ctp_attribute8 =>p_rec.ctp_attribute8
,p_ctp_attribute9 =>p_rec.ctp_attribute9
,p_ctp_attribute10 =>p_rec.ctp_attribute10
,p_ctp_attribute11 =>p_rec.ctp_attribute11
,p_ctp_attribute12 =>p_rec.ctp_attribute12
,p_ctp_attribute13 =>p_rec.ctp_attribute13
,p_ctp_attribute14 =>p_rec.ctp_attribute14
,p_ctp_attribute15 =>p_rec.ctp_attribute15
,p_ctp_attribute16 =>p_rec.ctp_attribute16
,p_ctp_attribute17 =>p_rec.ctp_attribute17
,p_ctp_attribute18 =>p_rec.ctp_attribute18
,p_ctp_attribute19 =>p_rec.ctp_attribute19
,p_ctp_attribute20 =>p_rec.ctp_attribute20
,p_ctp_attribute21 =>p_rec.ctp_attribute21
,p_ctp_attribute22 =>p_rec.ctp_attribute22
,p_ctp_attribute23 =>p_rec.ctp_attribute23
,p_ctp_attribute24 =>p_rec.ctp_attribute24
,p_ctp_attribute25 =>p_rec.ctp_attribute25
,p_ctp_attribute26 =>p_rec.ctp_attribute26
,p_ctp_attribute27 =>p_rec.ctp_attribute27
,p_ctp_attribute28 =>p_rec.ctp_attribute28
,p_ctp_attribute29 =>p_rec.ctp_attribute29
,p_ctp_attribute30 =>p_rec.ctp_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_ctp_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);