DBA Data[Home] [Help]

APPS.BEN_CPP_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_cpp_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_plip_f t
    where  t.plip_id       = p_rec.plip_id
    and    t.effective_start_date =
             ben_cpp_shd.g_old_rec.effective_start_date
    and    t.effective_end_date   = (p_validation_start_date - 1);
Line: 75

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

  l_last_update_date   	ben_plip_f.last_update_date%TYPE;
Line: 79

  l_last_updated_by     ben_plip_f.last_updated_by%TYPE;
Line: 80

  l_last_update_login   ben_plip_f.last_update_login%TYPE;
Line: 102

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

    l_last_update_date   := sysdate;
Line: 125

    l_last_updated_by    := fnd_global.user_id;
Line: 126

    l_last_update_login  := fnd_global.login_id;
Line: 133

  insert into ben_plip_f
  (	plip_id,
	effective_start_date,
	effective_end_date,
	business_group_id,
	pgm_id,
	pl_id,
	cmbn_plip_id,
	dflt_flag,
	plip_stat_cd,
	dflt_enrt_cd,
	dflt_enrt_det_rl,
	ordr_num,
        alws_unrstrctd_enrt_flag,
        auto_enrt_mthd_rl,
        enrt_cd,
        enrt_mthd_cd,
        enrt_rl,
	ivr_ident,
        url_ref_name,
        enrt_cvg_strt_dt_cd,
        enrt_cvg_strt_dt_rl,
        enrt_cvg_end_dt_cd,
        enrt_cvg_end_dt_rl,
        rt_strt_dt_cd,
        rt_strt_dt_rl,
        rt_end_dt_cd,
        rt_end_dt_rl,
        drvbl_fctr_apls_rts_flag,
        drvbl_fctr_prtn_elig_flag,
        elig_apls_flag,
        prtn_elig_ovrid_alwd_flag,
        trk_inelig_per_flag,
        postelcn_edit_rl,
 	dflt_to_asn_pndg_ctfn_cd,
        dflt_to_asn_pndg_ctfn_rl,
        mn_cvg_amt,
        mn_cvg_rl,
        mx_cvg_alwd_amt,
	mx_cvg_incr_alwd_amt,
	mx_cvg_incr_wcf_alwd_amt,
	mx_cvg_mlt_incr_num,
	mx_cvg_mlt_incr_wcf_num,
	mx_cvg_rl,
	mx_cvg_wcfn_amt,
	mx_cvg_wcfn_mlt_num,
	no_mn_cvg_amt_apls_flag,
	no_mn_cvg_incr_apls_flag,
	no_mx_cvg_amt_apls_flag,
	no_mx_cvg_incr_apls_flag,
	unsspnd_enrt_cd,
	prort_prtl_yr_cvg_rstrn_cd,
	prort_prtl_yr_cvg_rstrn_rl,
        cvg_incr_r_decr_only_cd,
        bnft_or_option_rstrctn_cd,
        per_cvrd_cd  ,
        short_name  ,
        short_code  ,
                legislation_code  ,
                legislation_subgroup  ,
        vrfy_fmly_mmbr_rl,
        vrfy_fmly_mmbr_cd,
        use_csd_rsd_prccng_cd,
	cpp_attribute_category,
	cpp_attribute1,
	cpp_attribute2,
	cpp_attribute3,
	cpp_attribute4,
	cpp_attribute5,
	cpp_attribute6,
	cpp_attribute7,
	cpp_attribute8,
	cpp_attribute9,
	cpp_attribute10,
	cpp_attribute11,
	cpp_attribute12,
	cpp_attribute13,
	cpp_attribute14,
	cpp_attribute15,
	cpp_attribute16,
	cpp_attribute17,
	cpp_attribute18,
	cpp_attribute19,
	cpp_attribute20,
	cpp_attribute21,
	cpp_attribute22,
	cpp_attribute23,
	cpp_attribute24,
	cpp_attribute25,
	cpp_attribute26,
	cpp_attribute27,
	cpp_attribute28,
	cpp_attribute29,
	cpp_attribute30,
	object_version_number
   	, created_by,
   	creation_date,
   	last_update_date,
   	last_updated_by,
   	last_update_login,
	all_inelig
  )
  Values
  (	p_rec.plip_id,
	p_rec.effective_start_date,
	p_rec.effective_end_date,
	p_rec.business_group_id,
	p_rec.pgm_id,
	p_rec.pl_id,
	p_rec.cmbn_plip_id,
	p_rec.dflt_flag,
	p_rec.plip_stat_cd,
	p_rec.dflt_enrt_cd,
	p_rec.dflt_enrt_det_rl,
	p_rec.ordr_num,
        p_rec.alws_unrstrctd_enrt_flag,
        p_rec.auto_enrt_mthd_rl,
        p_rec.enrt_cd,
        p_rec.enrt_mthd_cd,
        p_rec.enrt_rl,
	p_rec.ivr_ident,
        p_rec.url_ref_name,
        p_rec.enrt_cvg_strt_dt_cd,
        p_rec.enrt_cvg_strt_dt_rl,
        p_rec.enrt_cvg_end_dt_cd,
        p_rec.enrt_cvg_end_dt_rl,
        p_rec.rt_strt_dt_cd,
        p_rec.rt_strt_dt_rl,
        p_rec.rt_end_dt_cd,
        p_rec.rt_end_dt_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.postelcn_edit_rl,
 	p_rec.dflt_to_asn_pndg_ctfn_cd,
        p_rec.dflt_to_asn_pndg_ctfn_rl,
        p_rec.mn_cvg_amt,
        p_rec.mn_cvg_rl,
        p_rec.mx_cvg_alwd_amt,
	p_rec.mx_cvg_incr_alwd_amt,
	p_rec.mx_cvg_incr_wcf_alwd_amt,
	p_rec.mx_cvg_mlt_incr_num,
	p_rec.mx_cvg_mlt_incr_wcf_num,
	p_rec.mx_cvg_rl,
	p_rec.mx_cvg_wcfn_amt,
	p_rec.mx_cvg_wcfn_mlt_num,
	p_rec.no_mn_cvg_amt_apls_flag,
	p_rec.no_mn_cvg_incr_apls_flag,
	p_rec.no_mx_cvg_amt_apls_flag,
	p_rec.no_mx_cvg_incr_apls_flag,
	p_rec.unsspnd_enrt_cd,
	p_rec.prort_prtl_yr_cvg_rstrn_cd,
	p_rec.prort_prtl_yr_cvg_rstrn_rl,
        p_rec.cvg_incr_r_decr_only_cd,
        p_rec.bnft_or_option_rstrctn_cd,
        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_rl,
        P_rec.vrfy_fmly_mmbr_cd,
        P_rec.use_csd_rsd_prccng_cd,
	p_rec.cpp_attribute_category,
	p_rec.cpp_attribute1,
	p_rec.cpp_attribute2,
	p_rec.cpp_attribute3,
	p_rec.cpp_attribute4,
	p_rec.cpp_attribute5,
	p_rec.cpp_attribute6,
	p_rec.cpp_attribute7,
	p_rec.cpp_attribute8,
	p_rec.cpp_attribute9,
	p_rec.cpp_attribute10,
	p_rec.cpp_attribute11,
	p_rec.cpp_attribute12,
	p_rec.cpp_attribute13,
	p_rec.cpp_attribute14,
	p_rec.cpp_attribute15,
	p_rec.cpp_attribute16,
	p_rec.cpp_attribute17,
	p_rec.cpp_attribute18,
	p_rec.cpp_attribute19,
	p_rec.cpp_attribute20,
	p_rec.cpp_attribute21,
	p_rec.cpp_attribute22,
	p_rec.cpp_attribute23,
	p_rec.cpp_attribute24,
	p_rec.cpp_attribute25,
	p_rec.cpp_attribute26,
	p_rec.cpp_attribute27,
	p_rec.cpp_attribute28,
	p_rec.cpp_attribute29,
	p_rec.cpp_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.all_inelig
  );
Line: 355

End dt_insert_dml;
Line: 360

Procedure insert_dml
	(p_rec 			 in out nocopy ben_cpp_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: 372

  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: 379

End insert_dml;
Line: 420

Procedure pre_insert
	(p_rec  			in out nocopy ben_cpp_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: 431

    select ben_plip_f_s.nextval
    from   sys.dual;
Line: 446

End pre_insert;
Line: 480

Procedure post_insert
	(p_rec 			 in ben_cpp_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: 506

    ben_cpp_rki.after_insert
      (
  p_plip_id                       =>p_rec.plip_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_pl_id                         =>p_rec.pl_id
 ,p_cmbn_plip_id                  =>p_rec.cmbn_plip_id
 ,p_dflt_flag                     =>p_rec.dflt_flag
 ,p_plip_stat_cd                  =>p_rec.plip_stat_cd
 ,p_dflt_enrt_cd                  =>p_rec.dflt_enrt_cd
 ,p_dflt_enrt_det_rl              =>p_rec.dflt_enrt_det_rl
 ,p_ordr_num                      =>p_rec.ordr_num
 ,p_alws_unrstrctd_enrt_flag      =>p_rec.alws_unrstrctd_enrt_flag
 ,p_auto_enrt_mthd_rl             =>p_rec.auto_enrt_mthd_rl
 ,p_enrt_cd                       =>p_rec.enrt_cd
 ,p_enrt_mthd_cd                  =>p_rec.enrt_mthd_cd
 ,p_enrt_rl                       =>p_rec.enrt_rl
 ,p_ivr_ident                     =>p_rec.ivr_ident
 ,p_url_ref_name                  =>p_rec.url_ref_name
 ,p_enrt_cvg_strt_dt_cd           =>p_rec.enrt_cvg_strt_dt_cd
 ,p_enrt_cvg_strt_dt_rl           =>p_rec.enrt_cvg_strt_dt_rl
 ,p_enrt_cvg_end_dt_cd            =>p_rec.enrt_cvg_end_dt_cd
 ,p_enrt_cvg_end_dt_rl            =>p_rec.enrt_cvg_end_dt_rl
 ,p_rt_strt_dt_cd                 =>p_rec.rt_strt_dt_cd
 ,p_rt_strt_dt_rl                 =>p_rec.rt_strt_dt_rl
 ,p_rt_end_dt_cd                  =>p_rec.rt_end_dt_cd
 ,p_rt_end_dt_rl                  =>p_rec.rt_end_dt_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_postelcn_edit_rl              =>p_rec.postelcn_edit_rl
 ,p_dflt_to_asn_pndg_ctfn_cd      =>p_rec.dflt_to_asn_pndg_ctfn_cd
 ,p_dflt_to_asn_pndg_ctfn_rl      =>p_rec.dflt_to_asn_pndg_ctfn_rl
 ,p_mn_cvg_amt                    =>p_rec.mn_cvg_amt
 ,p_mn_cvg_rl                     => p_rec.mn_cvg_rl
 ,p_mx_cvg_alwd_amt               => p_rec.mx_cvg_alwd_amt
 ,p_mx_cvg_incr_alwd_amt          =>p_rec.mx_cvg_incr_alwd_amt
 ,p_mx_cvg_incr_wcf_alwd_amt      =>p_rec.mx_cvg_incr_wcf_alwd_amt
 ,p_mx_cvg_mlt_incr_num           =>p_rec.mx_cvg_mlt_incr_num
 ,p_mx_cvg_mlt_incr_wcf_num       =>p_rec.mx_cvg_mlt_incr_wcf_num
 ,p_mx_cvg_rl                     =>p_rec.mx_cvg_rl
 ,p_mx_cvg_wcfn_amt               =>p_rec.mx_cvg_wcfn_amt
 ,p_mx_cvg_wcfn_mlt_num           =>p_rec.mx_cvg_wcfn_mlt_num
 ,p_no_mn_cvg_amt_apls_flag       =>p_rec.no_mn_cvg_amt_apls_flag
 ,p_no_mn_cvg_incr_apls_flag      =>p_rec.no_mn_cvg_incr_apls_flag
 ,p_no_mx_cvg_amt_apls_flag       =>p_rec.no_mx_cvg_amt_apls_flag
 ,p_no_mx_cvg_incr_apls_flag      =>p_rec.no_mx_cvg_incr_apls_flag
 ,p_unsspnd_enrt_cd               =>p_rec.unsspnd_enrt_cd
 ,p_prort_prtl_yr_cvg_rstrn_cd    =>p_rec.prort_prtl_yr_cvg_rstrn_cd
 ,p_prort_prtl_yr_cvg_rstrn_rl    =>p_rec.prort_prtl_yr_cvg_rstrn_rl
 ,p_cvg_incr_r_decr_only_cd       =>p_rec.cvg_incr_r_decr_only_cd
 ,p_bnft_or_option_rstrctn_cd     =>p_rec.bnft_or_option_rstrctn_cd
 ,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_rl             =>p_rec.vrfy_fmly_mmbr_rl
 ,p_vrfy_fmly_mmbr_cd             =>p_rec.vrfy_fmly_mmbr_cd
 ,p_use_csd_rsd_prccng_cd         =>p_rec.use_csd_rsd_prccng_cd
 ,p_cpp_attribute_category        =>p_rec.cpp_attribute_category
 ,p_cpp_attribute1                =>p_rec.cpp_attribute1
 ,p_cpp_attribute2                =>p_rec.cpp_attribute2
 ,p_cpp_attribute3                =>p_rec.cpp_attribute3
 ,p_cpp_attribute4                =>p_rec.cpp_attribute4
 ,p_cpp_attribute5                =>p_rec.cpp_attribute5
 ,p_cpp_attribute6                =>p_rec.cpp_attribute6
 ,p_cpp_attribute7                =>p_rec.cpp_attribute7
 ,p_cpp_attribute8                =>p_rec.cpp_attribute8
 ,p_cpp_attribute9                =>p_rec.cpp_attribute9
 ,p_cpp_attribute10               =>p_rec.cpp_attribute10
 ,p_cpp_attribute11               =>p_rec.cpp_attribute11
 ,p_cpp_attribute12               =>p_rec.cpp_attribute12
 ,p_cpp_attribute13               =>p_rec.cpp_attribute13
 ,p_cpp_attribute14               =>p_rec.cpp_attribute14
 ,p_cpp_attribute15               =>p_rec.cpp_attribute15
 ,p_cpp_attribute16               =>p_rec.cpp_attribute16
 ,p_cpp_attribute17               =>p_rec.cpp_attribute17
 ,p_cpp_attribute18               =>p_rec.cpp_attribute18
 ,p_cpp_attribute19               =>p_rec.cpp_attribute19
 ,p_cpp_attribute20               =>p_rec.cpp_attribute20
 ,p_cpp_attribute21               =>p_rec.cpp_attribute21
 ,p_cpp_attribute22               =>p_rec.cpp_attribute22
 ,p_cpp_attribute23               =>p_rec.cpp_attribute23
 ,p_cpp_attribute24               =>p_rec.cpp_attribute24
 ,p_cpp_attribute25               =>p_rec.cpp_attribute25
 ,p_cpp_attribute26               =>p_rec.cpp_attribute26
 ,p_cpp_attribute27               =>p_rec.cpp_attribute27
 ,p_cpp_attribute28               =>p_rec.cpp_attribute28
 ,p_cpp_attribute29               =>p_rec.cpp_attribute29
 ,p_cpp_attribute30               =>p_rec.cpp_attribute30
 ,p_all_inelig                     =>p_rec.all_inelig
 ,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: 622

End post_insert;
Line: 719

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

  ben_cpp_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: 746

  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: 755

  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: 764

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