DBA Data[Home] [Help]

APPS.BEN_ABR_INS SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 57

Procedure dt_insert_dml
	(p_rec 			 in out nocopy ben_abr_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_acty_base_rt_f t
    where  t.acty_base_rt_id       = p_rec.acty_base_rt_id
    and    t.effective_start_date =
             ben_abr_shd.g_old_rec.effective_start_date
    and    t.effective_end_date   = (p_validation_start_date - 1);
Line: 77

     select pl_id
     from   ben_oipl_f
     where  oipl_id = p_rec.oipl_id
     and    p_effective_date between effective_start_date and effective_end_date;
Line: 83

     select pl_id
     from   ben_plip_f
     where  plip_id = p_rec.plip_id
     and    p_effective_date between effective_start_date and effective_end_date;
Line: 89

select pl_id
from ben_oiplip_f opp,
     ben_oipl_f   op
where opp.oiplip_id = p_rec.oiplip_id
     and opp.oipl_id = op.oipl_id
     and  p_effective_date between opp.effective_start_date and opp.effective_end_date
     and  p_effective_date between op.effective_start_date and op.effective_end_date;
Line: 98

  select opt_typ_cd
  from   ben_pl_typ_f ptp,
         ben_pl_f pln
  where  pln.pl_id = p_pl_id
  and	 ptp.pl_typ_id = pln.pl_typ_id
  and    p_effective_date between pln.effective_start_date and pln.effective_end_date
  and    p_effective_date between ptp.effective_start_date and ptp.effective_end_date;
Line: 111

  l_proc		varchar2(72) := g_package||'dt_insert_dml';
Line: 114

  l_last_update_date   	ben_acty_base_rt_f.last_update_date%TYPE;
Line: 115

  l_last_updated_by     ben_acty_base_rt_f.last_updated_by%TYPE;
Line: 116

  l_last_update_login   ben_acty_base_rt_f.last_update_login%TYPE;
Line: 138

  If (p_datetrack_mode <> 'INSERT') then
    hr_utility.set_location(l_proc, 10);
Line: 160

    l_last_update_date   := sysdate;
Line: 161

    l_last_updated_by    := fnd_global.user_id;
Line: 162

    l_last_update_login  := fnd_global.login_id;
Line: 169

  hr_utility.set_location('total rate befr insert '||p_rec.TTL_COMP_LVL_FCTR_ID, 99);
Line: 214

   insert into ben_acty_base_rt_f
   (	acty_base_rt_id,
	effective_start_date,
	effective_end_date,
	ordr_num,
	acty_typ_cd,
	sub_acty_typ_cd,
	element_type_id,
        input_value_id,
        input_va_calc_rl,
        comp_lvl_fctr_id,
        parnt_acty_base_rt_id,
	pgm_id,
	pl_id,
	oipl_id,
        opt_id,
        oiplip_id,
	plip_id,
	ptip_id,
	cmbn_ptip_opt_id,
	vstg_for_acty_rt_id,
        actl_prem_id,
        ALWS_CHG_CD,
        ele_entry_val_cd,
        TTL_COMP_LVL_FCTR_ID,
        COST_ALLOCATION_KEYFLEX_ID,
	rt_typ_cd,
        bnft_rt_typ_cd,
	tx_typ_cd,
	use_to_calc_net_flx_cr_flag,
	asn_on_enrt_flag,
	abv_mx_elcn_val_alwd_flag,
	blw_mn_elcn_alwd_flag,
	parnt_chld_cd,
	use_calc_acty_bs_rt_flag,
	uses_ded_sched_flag,
	uses_varbl_rt_flag,
	vstg_sched_apls_flag,
	rt_mlt_cd,
	proc_each_pp_dflt_flag,
	prdct_flx_cr_when_elig_flag,
	no_std_rt_used_flag,
	rcrrg_cd,
	mn_elcn_val,
	mx_elcn_val,
        lwr_lmt_val,
        lwr_lmt_calc_rl,
        upr_lmt_val,
        upr_lmt_calc_rl,
        ptd_comp_lvl_fctr_id,
        clm_comp_lvl_fctr_id,
        entr_ann_val_flag,
        ann_mn_elcn_val,
        ann_mx_elcn_val,
        wsh_rl_dy_mo_num,
	uses_pymt_sched_flag,
	nnmntry_uom,
	val,
	incrmt_elcn_val,
	rndg_cd,
	val_ovrid_alwd_flag,
	prtl_mo_det_mthd_cd,
	acty_base_rt_stat_cd,
	procg_src_cd,
	dflt_val,
        dflt_flag,
	frgn_erg_ded_typ_cd,
	frgn_erg_ded_name,
	frgn_erg_ded_ident,
	no_mx_elcn_val_dfnd_flag,
	cmbn_plip_id,
	cmbn_ptip_id,
	prtl_mo_det_mthd_rl,
	entr_val_at_enrt_flag,
	prtl_mo_eff_dt_det_rl,
	rndg_rl,
	val_calc_rl,
	no_mn_elcn_val_dfnd_flag,
	prtl_mo_eff_dt_det_cd,
        pay_rate_grade_rule_id,
        rate_periodization_cd,
        rate_periodization_rl,
	business_group_id,
        only_one_bal_typ_alwd_flag,
        rt_usg_cd,
        prort_mn_ann_elcn_val_cd,
        prort_mn_ann_elcn_val_rl,
        prort_mx_ann_elcn_val_cd,
        prort_mx_ann_elcn_val_rl,
        one_ann_pymt_cd,
        det_pl_ytd_cntrs_cd,
        asmt_to_use_cd,
        ele_rqd_flag,
        subj_to_imptd_incm_flag,
        name,
        dsply_on_enrt_flag,
	mn_mx_elcn_rl,
	mapping_table_name,
        mapping_table_pk_id,
        context_pgm_id,
	context_pl_id,
	context_opt_id,
	element_det_rl,
	currency_det_cd,
	abr_attribute_category,
	abr_attribute1,
	abr_attribute2,
	abr_attribute3,
	abr_attribute4,
	abr_attribute5,
	abr_attribute6,
	abr_attribute7,
	abr_attribute8,
	abr_attribute9,
	abr_attribute10,
	abr_attribute11,
	abr_attribute12,
	abr_attribute13,
	abr_attribute14,
	abr_attribute15,
	abr_attribute16,
	abr_attribute17,
	abr_attribute18,
	abr_attribute19,
	abr_attribute20,
	abr_attribute21,
	abr_attribute22,
	abr_attribute23,
	abr_attribute24,
	abr_attribute25,
	abr_attribute26,
	abr_attribute27,
	abr_attribute28,
	abr_attribute29,
	abr_attribute30,
	abr_seq_num,
	object_version_number,
   	created_by,
   	creation_date,
   	last_update_date,
   	last_updated_by,
   	last_update_login
  )
  Values
  (	p_rec.acty_base_rt_id,
	p_rec.effective_start_date,
	p_rec.effective_end_date,
	p_rec.ordr_num,
	p_rec.acty_typ_cd,
	p_rec.sub_acty_typ_cd,
	null,
	null,
	null,
        p_rec.comp_lvl_fctr_id,
        p_rec.parnt_acty_base_rt_id,
	p_rec.pgm_id,
	p_rec.pl_id,
	p_rec.oipl_id,
        p_rec.opt_id,
        p_rec.oiplip_id,
	p_rec.plip_id,
	p_rec.ptip_id,
	p_rec.cmbn_ptip_opt_id,
	p_rec.vstg_for_acty_rt_id,
        p_rec.actl_prem_id,
        p_rec.ALWS_CHG_CD,
        null,
        p_rec.TTL_COMP_LVL_FCTR_ID,
        p_rec.COST_ALLOCATION_KEYFLEX_ID,
	p_rec.rt_typ_cd,
        p_rec.bnft_rt_typ_cd,
	p_rec.tx_typ_cd,
	p_rec.use_to_calc_net_flx_cr_flag,
	p_rec.asn_on_enrt_flag,
	p_rec.abv_mx_elcn_val_alwd_flag,
	p_rec.blw_mn_elcn_alwd_flag,
	p_rec.parnt_chld_cd,
	p_rec.use_calc_acty_bs_rt_flag,
	p_rec.uses_ded_sched_flag,
	p_rec.uses_varbl_rt_flag,
	p_rec.vstg_sched_apls_flag,
	p_rec.rt_mlt_cd,
	p_rec.proc_each_pp_dflt_flag,
	p_rec.prdct_flx_cr_when_elig_flag,
	p_rec.no_std_rt_used_flag,
	p_rec.rcrrg_cd,
	p_rec.mn_elcn_val,
	p_rec.mx_elcn_val,
        p_rec.lwr_lmt_val,
        p_rec.lwr_lmt_calc_rl,
        p_rec.upr_lmt_val,
        p_rec.upr_lmt_calc_rl,
        p_rec.ptd_comp_lvl_fctr_id,
        p_rec.clm_comp_lvl_fctr_id,
        p_rec.entr_ann_val_flag,
        p_rec.ann_mn_elcn_val,
        p_rec.ann_mx_elcn_val,
        p_rec.wsh_rl_dy_mo_num,
	p_rec.uses_pymt_sched_flag,
	p_rec.nnmntry_uom,
	p_rec.val,
	p_rec.incrmt_elcn_val,
	p_rec.rndg_cd,
	p_rec.val_ovrid_alwd_flag,
	p_rec.prtl_mo_det_mthd_cd,
	p_rec.acty_base_rt_stat_cd,
	p_rec.procg_src_cd,
	p_rec.dflt_val,
        p_rec.dflt_flag,
	p_rec.frgn_erg_ded_typ_cd,
	p_rec.frgn_erg_ded_name,
	p_rec.frgn_erg_ded_ident,
	p_rec.no_mx_elcn_val_dfnd_flag,
	p_rec.cmbn_plip_id,
	p_rec.cmbn_ptip_id,
	p_rec.prtl_mo_det_mthd_rl,
	p_rec.entr_val_at_enrt_flag,
	p_rec.prtl_mo_eff_dt_det_rl,
	p_rec.rndg_rl,
	p_rec.val_calc_rl,
	p_rec.no_mn_elcn_val_dfnd_flag,
	p_rec.prtl_mo_eff_dt_det_cd,
        p_rec.pay_rate_grade_rule_id,
        p_rec.rate_periodization_cd,
        p_rec.rate_periodization_rl,
	p_rec.business_group_id,
        p_rec.only_one_bal_typ_alwd_flag,
        p_rec.rt_usg_cd,
        p_rec.prort_mn_ann_elcn_val_cd,
        p_rec.prort_mn_ann_elcn_val_rl,
        p_rec.prort_mx_ann_elcn_val_cd,
        p_rec.prort_mx_ann_elcn_val_rl,
        p_rec.one_ann_pymt_cd,
        p_rec.det_pl_ytd_cntrs_cd,
        p_rec.asmt_to_use_cd,
        'N',
        p_rec.subj_to_imptd_incm_flag,
        p_rec.name,
        p_rec.dsply_on_enrt_flag,
	p_rec.mn_mx_elcn_rl,
	p_rec.mapping_table_name,
	p_rec.mapping_table_pk_id,
        p_rec.context_pgm_id,
	p_rec.context_pl_id,
	p_rec.context_opt_id,
	null,
	p_rec.currency_det_cd,
	p_rec.abr_attribute_category,
	p_rec.abr_attribute1,
	p_rec.abr_attribute2,
	p_rec.abr_attribute3,
	p_rec.abr_attribute4,
	p_rec.abr_attribute5,
	p_rec.abr_attribute6,
	p_rec.abr_attribute7,
	p_rec.abr_attribute8,
	p_rec.abr_attribute9,
	p_rec.abr_attribute10,
	p_rec.abr_attribute11,
	p_rec.abr_attribute12,
	p_rec.abr_attribute13,
	p_rec.abr_attribute14,
	p_rec.abr_attribute15,
	p_rec.abr_attribute16,
	p_rec.abr_attribute17,
	p_rec.abr_attribute18,
	p_rec.abr_attribute19,
	p_rec.abr_attribute20,
	p_rec.abr_attribute21,
	p_rec.abr_attribute22,
	p_rec.abr_attribute23,
	p_rec.abr_attribute24,
	p_rec.abr_attribute25,
	p_rec.abr_attribute26,
	p_rec.abr_attribute27,
	p_rec.abr_attribute28,
	p_rec.abr_attribute29,
	p_rec.abr_attribute30,
	p_rec.abr_seq_num,
	p_rec.object_version_number,
	l_created_by,
   	l_creation_date,
   	l_last_update_date,
   	l_last_updated_by,
   	l_last_update_login
  );
Line: 501

     insert into ben_acty_base_rt_f
  (	acty_base_rt_id,
	effective_start_date,
	effective_end_date,
	ordr_num,
	acty_typ_cd,
	sub_acty_typ_cd,
	element_type_id,
        input_value_id,
        input_va_calc_rl,
        comp_lvl_fctr_id,
        parnt_acty_base_rt_id,
	pgm_id,
	pl_id,
	oipl_id,
        opt_id,
        oiplip_id,
	plip_id,
	ptip_id,
	cmbn_ptip_opt_id,
	vstg_for_acty_rt_id,
        actl_prem_id,
        ALWS_CHG_CD,
        ele_entry_val_cd,
        TTL_COMP_LVL_FCTR_ID,
        COST_ALLOCATION_KEYFLEX_ID,
	rt_typ_cd,
        bnft_rt_typ_cd,
	tx_typ_cd,
	use_to_calc_net_flx_cr_flag,
	asn_on_enrt_flag,
	abv_mx_elcn_val_alwd_flag,
	blw_mn_elcn_alwd_flag,
	parnt_chld_cd,
	use_calc_acty_bs_rt_flag,
	uses_ded_sched_flag,
	uses_varbl_rt_flag,
	vstg_sched_apls_flag,
	rt_mlt_cd,
	proc_each_pp_dflt_flag,
	prdct_flx_cr_when_elig_flag,
	no_std_rt_used_flag,
	rcrrg_cd,
	mn_elcn_val,
	mx_elcn_val,
        lwr_lmt_val,
        lwr_lmt_calc_rl,
        upr_lmt_val,
        upr_lmt_calc_rl,
        ptd_comp_lvl_fctr_id,
        clm_comp_lvl_fctr_id,
        entr_ann_val_flag,
        ann_mn_elcn_val,
        ann_mx_elcn_val,
        wsh_rl_dy_mo_num,
	uses_pymt_sched_flag,
	nnmntry_uom,
	val,
	incrmt_elcn_val,
	rndg_cd,
	val_ovrid_alwd_flag,
	prtl_mo_det_mthd_cd,
	acty_base_rt_stat_cd,
	procg_src_cd,
	dflt_val,
        dflt_flag,
	frgn_erg_ded_typ_cd,
	frgn_erg_ded_name,
	frgn_erg_ded_ident,
	no_mx_elcn_val_dfnd_flag,
	cmbn_plip_id,
	cmbn_ptip_id,
	prtl_mo_det_mthd_rl,
	entr_val_at_enrt_flag,
	prtl_mo_eff_dt_det_rl,
	rndg_rl,
	val_calc_rl,
	no_mn_elcn_val_dfnd_flag,
	prtl_mo_eff_dt_det_cd,
        pay_rate_grade_rule_id,
        rate_periodization_cd,
        rate_periodization_rl,
	business_group_id,
        only_one_bal_typ_alwd_flag,
        rt_usg_cd,
        prort_mn_ann_elcn_val_cd,
        prort_mn_ann_elcn_val_rl,
        prort_mx_ann_elcn_val_cd,
        prort_mx_ann_elcn_val_rl,
        one_ann_pymt_cd,
        det_pl_ytd_cntrs_cd,
        asmt_to_use_cd,
        ele_rqd_flag,
        subj_to_imptd_incm_flag,
        name,
        dsply_on_enrt_flag,
	mn_mx_elcn_rl,
	mapping_table_name,
        mapping_table_pk_id,
        context_pgm_id,
	context_pl_id,
	context_opt_id,
	element_det_rl,
	currency_det_cd,
	abr_attribute_category,
	abr_attribute1,
	abr_attribute2,
	abr_attribute3,
	abr_attribute4,
	abr_attribute5,
	abr_attribute6,
	abr_attribute7,
	abr_attribute8,
	abr_attribute9,
	abr_attribute10,
	abr_attribute11,
	abr_attribute12,
	abr_attribute13,
	abr_attribute14,
	abr_attribute15,
	abr_attribute16,
	abr_attribute17,
	abr_attribute18,
	abr_attribute19,
	abr_attribute20,
	abr_attribute21,
	abr_attribute22,
	abr_attribute23,
	abr_attribute24,
	abr_attribute25,
	abr_attribute26,
	abr_attribute27,
	abr_attribute28,
	abr_attribute29,
	abr_attribute30,
	abr_seq_num,
	object_version_number,
   	created_by,
   	creation_date,
   	last_update_date,
   	last_updated_by,
   	last_update_login
  )
  Values
  (	p_rec.acty_base_rt_id,
	p_rec.effective_start_date,
	p_rec.effective_end_date,
	p_rec.ordr_num,
	p_rec.acty_typ_cd,
	p_rec.sub_acty_typ_cd,
	p_rec.element_type_id,
	p_rec.input_value_id,
	p_rec.input_va_calc_rl,
        p_rec.comp_lvl_fctr_id,
        p_rec.parnt_acty_base_rt_id,
	p_rec.pgm_id,
	p_rec.pl_id,
	p_rec.oipl_id,
        p_rec.opt_id,
        p_rec.oiplip_id,
	p_rec.plip_id,
	p_rec.ptip_id,
	p_rec.cmbn_ptip_opt_id,
	p_rec.vstg_for_acty_rt_id,
        p_rec.actl_prem_id,
        p_rec.ALWS_CHG_CD,
        p_rec.ele_entry_val_cd,
        p_rec.TTL_COMP_LVL_FCTR_ID,
        p_rec.COST_ALLOCATION_KEYFLEX_ID,
	p_rec.rt_typ_cd,
        p_rec.bnft_rt_typ_cd,
	p_rec.tx_typ_cd,
	p_rec.use_to_calc_net_flx_cr_flag,
	p_rec.asn_on_enrt_flag,
	p_rec.abv_mx_elcn_val_alwd_flag,
	p_rec.blw_mn_elcn_alwd_flag,
	p_rec.parnt_chld_cd,
	p_rec.use_calc_acty_bs_rt_flag,
	p_rec.uses_ded_sched_flag,
	p_rec.uses_varbl_rt_flag,
	p_rec.vstg_sched_apls_flag,
	p_rec.rt_mlt_cd,
	p_rec.proc_each_pp_dflt_flag,
	p_rec.prdct_flx_cr_when_elig_flag,
	p_rec.no_std_rt_used_flag,
	p_rec.rcrrg_cd,
	p_rec.mn_elcn_val,
	p_rec.mx_elcn_val,
        p_rec.lwr_lmt_val,
        p_rec.lwr_lmt_calc_rl,
        p_rec.upr_lmt_val,
        p_rec.upr_lmt_calc_rl,
        p_rec.ptd_comp_lvl_fctr_id,
        p_rec.clm_comp_lvl_fctr_id,
        p_rec.entr_ann_val_flag,
        p_rec.ann_mn_elcn_val,
        p_rec.ann_mx_elcn_val,
        p_rec.wsh_rl_dy_mo_num,
	p_rec.uses_pymt_sched_flag,
	p_rec.nnmntry_uom,
	p_rec.val,
	p_rec.incrmt_elcn_val,
	p_rec.rndg_cd,
	p_rec.val_ovrid_alwd_flag,
	p_rec.prtl_mo_det_mthd_cd,
	p_rec.acty_base_rt_stat_cd,
	p_rec.procg_src_cd,
	p_rec.dflt_val,
        p_rec.dflt_flag,
	p_rec.frgn_erg_ded_typ_cd,
	p_rec.frgn_erg_ded_name,
	p_rec.frgn_erg_ded_ident,
	p_rec.no_mx_elcn_val_dfnd_flag,
	p_rec.cmbn_plip_id,
	p_rec.cmbn_ptip_id,
	p_rec.prtl_mo_det_mthd_rl,
	p_rec.entr_val_at_enrt_flag,
	p_rec.prtl_mo_eff_dt_det_rl,
	p_rec.rndg_rl,
	p_rec.val_calc_rl,
	p_rec.no_mn_elcn_val_dfnd_flag,
	p_rec.prtl_mo_eff_dt_det_cd,
        p_rec.pay_rate_grade_rule_id,
        p_rec.rate_periodization_cd,
        p_rec.rate_periodization_rl,
	p_rec.business_group_id,
        p_rec.only_one_bal_typ_alwd_flag,
        p_rec.rt_usg_cd,
        p_rec.prort_mn_ann_elcn_val_cd,
        p_rec.prort_mn_ann_elcn_val_rl,
        p_rec.prort_mx_ann_elcn_val_cd,
        p_rec.prort_mx_ann_elcn_val_rl,
        p_rec.one_ann_pymt_cd,
        p_rec.det_pl_ytd_cntrs_cd,
        p_rec.asmt_to_use_cd,
        p_rec.ele_rqd_flag,
        p_rec.subj_to_imptd_incm_flag,
        p_rec.name,
        p_rec.dsply_on_enrt_flag,
	p_rec.mn_mx_elcn_rl,
	p_rec.mapping_table_name,
	p_rec.mapping_table_pk_id,
        p_rec.context_pgm_id,
	p_rec.context_pl_id,
	p_rec.context_opt_id,
	p_rec.element_det_rl,
	p_rec.currency_det_cd,
	p_rec.abr_attribute_category,
	p_rec.abr_attribute1,
	p_rec.abr_attribute2,
	p_rec.abr_attribute3,
	p_rec.abr_attribute4,
	p_rec.abr_attribute5,
	p_rec.abr_attribute6,
	p_rec.abr_attribute7,
	p_rec.abr_attribute8,
	p_rec.abr_attribute9,
	p_rec.abr_attribute10,
	p_rec.abr_attribute11,
	p_rec.abr_attribute12,
	p_rec.abr_attribute13,
	p_rec.abr_attribute14,
	p_rec.abr_attribute15,
	p_rec.abr_attribute16,
	p_rec.abr_attribute17,
	p_rec.abr_attribute18,
	p_rec.abr_attribute19,
	p_rec.abr_attribute20,
	p_rec.abr_attribute21,
	p_rec.abr_attribute22,
	p_rec.abr_attribute23,
	p_rec.abr_attribute24,
	p_rec.abr_attribute25,
	p_rec.abr_attribute26,
	p_rec.abr_attribute27,
	p_rec.abr_attribute28,
	p_rec.abr_attribute29,
	p_rec.abr_attribute30,
	p_rec.abr_seq_num,
	p_rec.object_version_number,
	l_created_by,
   	l_creation_date,
   	l_last_update_date,
   	l_last_updated_by,
   	l_last_update_login
  );
Line: 808

End dt_insert_dml;
Line: 813

Procedure insert_dml
	(p_rec 			 in out nocopy ben_abr_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';
Line: 825

  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);
Line: 832

End insert_dml;
Line: 873

Procedure pre_insert
	(p_rec  			in out nocopy ben_abr_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';
Line: 883

    select BEN_ACTY_BASE_RT_F_S.nextval
    from   sys.dual;
Line: 887

     select opt_id, pl_id
     from ben_oipl_f
     where oipl_id = p_rec.oipl_id
     and   p_effective_date between effective_start_date and effective_end_date;
Line: 895

     select pgm_id, pl_id
     from ben_plip_f
     where plip_id = p_rec.plip_id
     and   p_effective_date between effective_start_date and effective_end_date;
Line: 903

     select plip.pgm_id, oipl.pl_id, oipl.opt_id
     from ben_oiplip_f oiplip, ben_oipl_f oipl, ben_plip_f plip
     where oiplip.oiplip_id = p_rec.oiplip_id
     and   oiplip.oipl_id = oipl.oipl_id
     and   oiplip.plip_id = plip.plip_id
     and   oipl.pl_id = plip.pl_id
     and   p_effective_date between oiplip.effective_start_date and oiplip.effective_end_date
     and   p_effective_date between plip.effective_start_date and plip.effective_end_date
     and   p_effective_date between oipl.effective_start_date and oipl.effective_end_date ;
Line: 982

End pre_insert;
Line: 1016

Procedure post_insert
	(p_rec 			 in ben_abr_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';
Line: 1043

   ben_abr_rki.after_insert
   (
     p_acty_base_rt_id               => p_rec.acty_base_rt_id
    ,p_effective_start_date          => p_rec.effective_start_date
    ,p_effective_end_date            => p_rec.effective_end_date
    ,p_ordr_num			     => p_rec.ordr_num
    ,p_acty_typ_cd                   => p_rec.acty_typ_cd
    ,p_sub_acty_typ_cd               => p_rec.sub_acty_typ_cd
    ,p_name                          => p_rec.name
    ,p_rt_typ_cd                     => p_rec.rt_typ_cd
    ,p_bnft_rt_typ_cd                => p_rec.bnft_rt_typ_cd
    ,p_tx_typ_cd                     => p_rec.tx_typ_cd
    ,p_use_to_calc_net_flx_cr_flag   => p_rec.use_to_calc_net_flx_cr_flag
    ,p_asn_on_enrt_flag              => p_rec.asn_on_enrt_flag
    ,p_abv_mx_elcn_val_alwd_flag     => p_rec.abv_mx_elcn_val_alwd_flag
    ,p_blw_mn_elcn_alwd_flag         => p_rec.blw_mn_elcn_alwd_flag
    ,p_dsply_on_enrt_flag            => p_rec.dsply_on_enrt_flag
    ,p_parnt_chld_cd                 => p_rec.parnt_chld_cd
    ,p_use_calc_acty_bs_rt_flag      => p_rec.use_calc_acty_bs_rt_flag
    ,p_uses_ded_sched_flag           => p_rec.uses_ded_sched_flag
    ,p_uses_varbl_rt_flag            => p_rec.uses_varbl_rt_flag
    ,p_vstg_sched_apls_flag          => p_rec.vstg_sched_apls_flag
    ,p_rt_mlt_cd                     => p_rec.rt_mlt_cd
    ,p_proc_each_pp_dflt_flag        => p_rec.proc_each_pp_dflt_flag
    ,p_prdct_flx_cr_when_elig_flag   => p_rec.prdct_flx_cr_when_elig_flag
    ,p_no_std_rt_used_flag           => p_rec.no_std_rt_used_flag
    ,p_rcrrg_cd                      => p_rec.rcrrg_cd
    ,p_mn_elcn_val                   => p_rec.mn_elcn_val
    ,p_mx_elcn_val                   => p_rec.mx_elcn_val
    ,p_lwr_lmt_val                   => p_rec.lwr_lmt_val
    ,p_lwr_lmt_calc_rl               => p_rec.lwr_lmt_calc_rl
    ,p_upr_lmt_val                   => p_rec.upr_lmt_val
    ,p_upr_lmt_calc_rl               => p_rec.upr_lmt_calc_rl
    ,p_ptd_comp_lvl_fctr_id          => p_rec.ptd_comp_lvl_fctr_id
    ,p_clm_comp_lvl_fctr_id          => p_rec.clm_comp_lvl_fctr_id
    ,p_entr_ann_val_flag             => p_rec.entr_ann_val_flag
    ,p_ann_mn_elcn_val               => p_rec.ann_mn_elcn_val
    ,p_ann_mx_elcn_val               => p_rec.ann_mx_elcn_val
    ,p_wsh_rl_dy_mo_num              => p_rec.wsh_rl_dy_mo_num
    ,p_uses_pymt_sched_flag          => p_rec.uses_pymt_sched_flag
    ,p_nnmntry_uom                   => p_rec.nnmntry_uom
    ,p_val                           => p_rec.val
    ,p_incrmt_elcn_val               => p_rec.incrmt_elcn_val
    ,p_rndg_cd                       => p_rec.rndg_cd
    ,p_val_ovrid_alwd_flag           => p_rec.val_ovrid_alwd_flag
    ,p_prtl_mo_det_mthd_cd           => p_rec.prtl_mo_det_mthd_cd
    ,p_acty_base_rt_stat_cd          => p_rec.acty_base_rt_stat_cd
    ,p_procg_src_cd                  => p_rec.procg_src_cd
    ,p_dflt_val                      => p_rec.dflt_val
    ,p_dflt_flag                     => p_rec.dflt_flag
    ,p_frgn_erg_ded_typ_cd           => p_rec.frgn_erg_ded_typ_cd
    ,p_frgn_erg_ded_name             => p_rec.frgn_erg_ded_name
    ,p_frgn_erg_ded_ident            => p_rec.frgn_erg_ded_ident
    ,p_no_mx_elcn_val_dfnd_flag      => p_rec.no_mx_elcn_val_dfnd_flag
    ,p_prtl_mo_det_mthd_rl           => p_rec.prtl_mo_det_mthd_rl
    ,p_entr_val_at_enrt_flag         => p_rec.entr_val_at_enrt_flag
    ,p_prtl_mo_eff_dt_det_rl         => p_rec.prtl_mo_eff_dt_det_rl
    ,p_rndg_rl                       => p_rec.rndg_rl
    ,p_val_calc_rl                   => p_rec.val_calc_rl
    ,p_no_mn_elcn_val_dfnd_flag      => p_rec.no_mn_elcn_val_dfnd_flag
    ,p_prtl_mo_eff_dt_det_cd         => p_rec.prtl_mo_eff_dt_det_cd
    ,p_only_one_bal_typ_alwd_flag    => p_rec.only_one_bal_typ_alwd_flag
    ,p_rt_usg_cd                     => p_rec.rt_usg_cd
    ,p_prort_mn_ann_elcn_val_cd      => p_rec.prort_mn_ann_elcn_val_cd
    ,p_prort_mn_ann_elcn_val_rl      => p_rec.prort_mn_ann_elcn_val_rl
    ,p_prort_mx_ann_elcn_val_cd      => p_rec.prort_mx_ann_elcn_val_cd
    ,p_prort_mx_ann_elcn_val_rl      => p_rec.prort_mx_ann_elcn_val_rl
    ,p_one_ann_pymt_cd               => p_rec.one_ann_pymt_cd
    ,p_det_pl_ytd_cntrs_cd           => p_rec.det_pl_ytd_cntrs_cd
    ,p_asmt_to_use_cd                => p_rec.asmt_to_use_cd
    ,p_ele_rqd_flag                  => p_rec.ele_rqd_flag
    ,p_subj_to_imptd_incm_flag       => p_rec.subj_to_imptd_incm_flag
    ,p_element_type_id               => p_rec.element_type_id
    ,p_input_value_id                => p_rec.input_value_id
    ,p_input_va_calc_rl             => p_rec.input_va_calc_rl
    ,p_comp_lvl_fctr_id              => p_rec.comp_lvl_fctr_id
    ,p_parnt_acty_base_rt_id         => p_rec.parnt_acty_base_rt_id
    ,p_pgm_id                        => p_rec.pgm_id
    ,p_pl_id                         => p_rec.pl_id
    ,p_oipl_id                       => p_rec.oipl_id
    ,p_opt_id                        => p_rec.opt_id
    ,p_oiplip_id                     => p_rec.oiplip_id
    ,p_plip_id                       => p_rec.plip_id
    ,p_ptip_id                       => p_rec.ptip_id
    ,p_cmbn_plip_id                  => p_rec.cmbn_plip_id
    ,p_cmbn_ptip_id                  => p_rec.cmbn_ptip_id
    ,p_cmbn_ptip_opt_id              => p_rec.cmbn_ptip_opt_id
    ,p_vstg_for_acty_rt_id           => p_rec.vstg_for_acty_rt_id
    ,p_actl_prem_id                  => p_rec.actl_prem_id
    ,p_TTL_COMP_LVL_FCTR_ID          => p_rec.TTL_COMP_LVL_FCTR_ID
    ,p_COST_ALLOCATION_KEYFLEX_ID    => p_rec.COST_ALLOCATION_KEYFLEX_ID
    ,p_ALWS_CHG_CD                   => p_rec.ALWS_CHG_CD
    ,p_ele_entry_val_cd              => p_rec.ele_entry_val_cd
    ,p_pay_rate_grade_rule_id        => p_rec.pay_rate_grade_rule_id
    ,p_rate_periodization_cd         => p_rec.rate_periodization_cd
    ,p_rate_periodization_rl         => p_rec.rate_periodization_rl
    ,p_mn_mx_elcn_rl                 => p_rec.mn_mx_elcn_rl
    ,p_mapping_table_name            => p_rec.mapping_table_name
    ,p_mapping_table_pk_id           => p_rec.mapping_table_pk_id
    ,p_business_group_id             => p_rec.business_group_id
    ,p_context_pgm_id                => p_rec.context_pgm_id
    ,p_context_pl_id                => p_rec.context_pl_id
    ,p_context_opt_id                => p_rec.context_opt_id
    ,p_element_det_rl               => p_rec.element_det_rl
    ,p_currency_det_cd              => p_rec.currency_det_cd
    ,P_ABR_ATTRIBUTE_CATEGORY        => p_rec.ABR_ATTRIBUTE_CATEGORY
    ,P_ABR_ATTRIBUTE1                => p_rec.ABR_ATTRIBUTE1
    ,P_ABR_ATTRIBUTE2                => p_rec.ABR_ATTRIBUTE2
    ,P_ABR_ATTRIBUTE3                => p_rec.ABR_ATTRIBUTE3
    ,P_ABR_ATTRIBUTE4                => p_rec.ABR_ATTRIBUTE4
    ,P_ABR_ATTRIBUTE5                => p_rec.ABR_ATTRIBUTE5
    ,P_ABR_ATTRIBUTE6                => p_rec.ABR_ATTRIBUTE6
    ,P_ABR_ATTRIBUTE7                => p_rec.ABR_ATTRIBUTE7
    ,P_ABR_ATTRIBUTE8                => p_rec.ABR_ATTRIBUTE8
    ,P_ABR_ATTRIBUTE9                => p_rec.ABR_ATTRIBUTE9
    ,P_ABR_ATTRIBUTE10                => p_rec.ABR_ATTRIBUTE10
    ,P_ABR_ATTRIBUTE11                => p_rec.ABR_ATTRIBUTE11
    ,P_ABR_ATTRIBUTE12                => p_rec.ABR_ATTRIBUTE12
    ,P_ABR_ATTRIBUTE13                => p_rec.ABR_ATTRIBUTE13
    ,P_ABR_ATTRIBUTE14                => p_rec.ABR_ATTRIBUTE14
    ,P_ABR_ATTRIBUTE15                => p_rec.ABR_ATTRIBUTE15
    ,P_ABR_ATTRIBUTE16                => p_rec.ABR_ATTRIBUTE16
    ,P_ABR_ATTRIBUTE17                => p_rec.ABR_ATTRIBUTE17
    ,P_ABR_ATTRIBUTE18                => p_rec.ABR_ATTRIBUTE18
    ,P_ABR_ATTRIBUTE19                => p_rec.ABR_ATTRIBUTE19
    ,P_ABR_ATTRIBUTE20                => p_rec.ABR_ATTRIBUTE20
    ,P_ABR_ATTRIBUTE21                => p_rec.ABR_ATTRIBUTE21
    ,P_ABR_ATTRIBUTE22                => p_rec.ABR_ATTRIBUTE22
    ,P_ABR_ATTRIBUTE23                => p_rec.ABR_ATTRIBUTE23
    ,P_ABR_ATTRIBUTE24                => p_rec.ABR_ATTRIBUTE24
    ,P_ABR_ATTRIBUTE25                => p_rec.ABR_ATTRIBUTE25
    ,P_ABR_ATTRIBUTE26                => p_rec.ABR_ATTRIBUTE26
    ,P_ABR_ATTRIBUTE27                => p_rec.ABR_ATTRIBUTE27
    ,P_ABR_ATTRIBUTE28                => p_rec.ABR_ATTRIBUTE28
    ,P_ABR_ATTRIBUTE29                => p_rec.ABR_ATTRIBUTE29
    ,P_ABR_ATTRIBUTE30                => p_rec.ABR_ATTRIBUTE30
    ,P_ABR_SEQ_NUM                    => p_rec.abr_seq_num
    ,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
    );
Line: 1199

End post_insert;
Line: 1358

  l_datetrack_mode		varchar2(30) := 'INSERT';
Line: 1376

  ben_abr_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);
Line: 1385

  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);
Line: 1394

  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);
Line: 1403

  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);