DBA Data[Home] [Help]

APPS.BEN_COP_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_cop_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_oipl_f t
    where  t.oipl_id       = p_rec.oipl_id
    and    t.effective_start_date =
             ben_cop_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_oipl_f.last_update_date%TYPE;
Line: 79

  l_last_updated_by     ben_oipl_f.last_updated_by%TYPE;
Line: 80

  l_last_update_login   ben_oipl_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_oipl_f
  (	oipl_id,
	effective_start_date,
	effective_end_date,
	ivr_ident,
        url_ref_name,
	opt_id,
	business_group_id,
	pl_id,
	ordr_num,
	rqd_perd_enrt_nenrt_val,
	actl_prem_id,
	dflt_flag,
	mndtry_flag,
	oipl_stat_cd,
      pcp_dsgn_cd,
      pcp_dpnt_dsgn_cd,
	rqd_perd_enrt_nenrt_uom,
	elig_apls_flag,
	dflt_enrt_det_rl,
	trk_inelig_per_flag,
	drvbl_fctr_prtn_elig_flag,
	mndtry_rl,
	rqd_perd_enrt_nenrt_rl,
	dflt_enrt_cd,
	prtn_elig_ovrid_alwd_flag,
	drvbl_fctr_apls_rts_flag,
        per_cvrd_cd,
        postelcn_edit_rl,
        vrfy_fmly_mmbr_cd,
        vrfy_fmly_mmbr_rl,
        enrt_cd,
        enrt_rl,
        auto_enrt_flag,
        auto_enrt_mthd_rl,
        short_name,		/*FHR*/
        short_code,		/*FHR*/
                legislation_code,		/*FHR*/
                legislation_subgroup,		/*FHR*/
        hidden_flag,
        susp_if_ctfn_not_prvd_flag,
        ctfn_determine_cd,
	cop_attribute_category,
	cop_attribute1,
	cop_attribute2,
	cop_attribute3,
	cop_attribute4,
	cop_attribute5,
	cop_attribute6,
	cop_attribute7,
	cop_attribute8,
	cop_attribute9,
	cop_attribute10,
	cop_attribute11,
	cop_attribute12,
	cop_attribute13,
	cop_attribute14,
	cop_attribute15,
	cop_attribute16,
	cop_attribute17,
	cop_attribute18,
	cop_attribute19,
	cop_attribute20,
	cop_attribute21,
	cop_attribute22,
	cop_attribute23,
	cop_attribute24,
	cop_attribute25,
	cop_attribute26,
	cop_attribute27,
	cop_attribute28,
	cop_attribute29,
	cop_attribute30,
	object_version_number
   	, created_by,
   	creation_date,
   	last_update_date,
   	last_updated_by,
   	last_update_login
  )
  Values
  (	p_rec.oipl_id,
	p_rec.effective_start_date,
	p_rec.effective_end_date,
	p_rec.ivr_ident,
        p_rec.url_ref_name,
	p_rec.opt_id,
	p_rec.business_group_id,
	p_rec.pl_id,
	p_rec.ordr_num,
	p_rec.rqd_perd_enrt_nenrt_val,
	p_rec.actl_prem_id,
	p_rec.dflt_flag,
	p_rec.mndtry_flag,
	p_rec.oipl_stat_cd,
      p_rec.pcp_dsgn_cd,
      p_rec.pcp_dpnt_dsgn_cd,
	p_rec.rqd_perd_enrt_nenrt_uom,
	p_rec.elig_apls_flag,
	p_rec.dflt_enrt_det_rl,
	p_rec.trk_inelig_per_flag,
	p_rec.drvbl_fctr_prtn_elig_flag,
	p_rec.mndtry_rl,
	p_rec.rqd_perd_enrt_nenrt_rl,
	p_rec.dflt_enrt_cd,
	p_rec.prtn_elig_ovrid_alwd_flag,
	p_rec.drvbl_fctr_apls_rts_flag,
        p_rec.per_cvrd_cd,
        p_rec.postelcn_edit_rl,
        p_rec.vrfy_fmly_mmbr_cd,
        p_rec.vrfy_fmly_mmbr_rl,
        p_rec.enrt_cd,
        p_rec.enrt_rl,
        p_rec.auto_enrt_flag,
        p_rec.auto_enrt_mthd_rl,
        p_rec.short_name,		/*FHR*/
        p_rec.short_code,		/*FHR*/
                p_rec.legislation_code,		/*FHR*/
                p_rec.legislation_subgroup,		/*FHR*/
        nvl(p_rec.hidden_flag,'N'),
        p_rec.susp_if_ctfn_not_prvd_flag,
        p_rec.ctfn_determine_cd,
	p_rec.cop_attribute_category,
	p_rec.cop_attribute1,
	p_rec.cop_attribute2,
	p_rec.cop_attribute3,
	p_rec.cop_attribute4,
	p_rec.cop_attribute5,
	p_rec.cop_attribute6,
	p_rec.cop_attribute7,
	p_rec.cop_attribute8,
	p_rec.cop_attribute9,
	p_rec.cop_attribute10,
	p_rec.cop_attribute11,
	p_rec.cop_attribute12,
	p_rec.cop_attribute13,
	p_rec.cop_attribute14,
	p_rec.cop_attribute15,
	p_rec.cop_attribute16,
	p_rec.cop_attribute17,
	p_rec.cop_attribute18,
	p_rec.cop_attribute19,
	p_rec.cop_attribute20,
	p_rec.cop_attribute21,
	p_rec.cop_attribute22,
	p_rec.cop_attribute23,
	p_rec.cop_attribute24,
	p_rec.cop_attribute25,
	p_rec.cop_attribute26,
	p_rec.cop_attribute27,
	p_rec.cop_attribute28,
	p_rec.cop_attribute29,
	p_rec.cop_attribute30,
	p_rec.object_version_number,
	l_created_by,
   	l_creation_date,
   	l_last_update_date,
   	l_last_updated_by,
   	l_last_update_login
  );
Line: 311

End dt_insert_dml;
Line: 316

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

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

End insert_dml;
Line: 376

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

  Cursor c1 is select ben_oipl_f_s.nextval from sys.dual;
Line: 388

  select ptp.opt_typ_cd
  from   ben_pl_typ_f ptp,ben_pl_f pln
  where  pln.pl_id = p_rec.pl_id
  and    pln.pl_typ_id = ptp.pl_typ_id
  and    pln.business_group_id = p_rec.business_group_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: 414

End pre_insert;
Line: 448

Procedure post_insert
	(p_rec 			 in ben_cop_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: 474

    ben_cop_rki.after_insert
    (p_oipl_id                        => p_rec.oipl_id
    ,p_effective_start_date           => p_rec.effective_start_date
    ,p_effective_end_date             => p_rec.effective_end_date
    ,p_ivr_ident                      => p_rec.ivr_ident
    ,p_url_ref_name                   => p_rec.url_ref_name
    ,p_opt_id                         => p_rec.opt_id
    ,p_business_group_id              => p_rec.business_group_id
    ,p_pl_id                          => p_rec.pl_id
    ,p_ordr_num                       => p_rec.ordr_num
    ,p_rqd_perd_enrt_nenrt_val        => p_rec.rqd_perd_enrt_nenrt_val
    ,p_actl_prem_id                   => p_rec.actl_prem_id
    ,p_dflt_flag                      => p_rec.dflt_flag
    ,p_mndtry_flag                    => p_rec.mndtry_flag
    ,p_oipl_stat_cd                   => p_rec.oipl_stat_cd
    ,p_pcp_dsgn_cd                    => p_rec.pcp_dsgn_cd
    ,p_pcp_dpnt_dsgn_cd               => p_rec.pcp_dpnt_dsgn_cd
    ,p_rqd_perd_enrt_nenrt_uom        => p_rec.rqd_perd_enrt_nenrt_uom
    ,p_elig_apls_flag                 => p_rec.elig_apls_flag
    ,p_dflt_enrt_det_rl               => p_rec.dflt_enrt_det_rl
    ,p_trk_inelig_per_flag            => p_rec.trk_inelig_per_flag
    ,p_drvbl_fctr_prtn_elig_flag      => p_rec.drvbl_fctr_prtn_elig_flag
    ,p_mndtry_rl                      => p_rec.mndtry_rl
    ,p_rqd_perd_enrt_nenrt_rl                      => p_rec.rqd_perd_enrt_nenrt_rl
    ,p_dflt_enrt_cd                   => p_rec.dflt_enrt_cd
    ,p_prtn_elig_ovrid_alwd_flag      => p_rec.prtn_elig_ovrid_alwd_flag
    ,p_drvbl_fctr_apls_rts_flag       => p_rec.drvbl_fctr_apls_rts_flag
    ,p_per_cvrd_cd                    => p_rec.per_cvrd_cd
    ,p_postelcn_edit_rl               => p_rec.postelcn_edit_rl
    ,p_vrfy_fmly_mmbr_cd              => p_rec.vrfy_fmly_mmbr_cd
    ,p_vrfy_fmly_mmbr_rl              => p_rec.vrfy_fmly_mmbr_rl
    ,p_enrt_cd                        => p_rec.enrt_cd
    ,p_enrt_rl                        => p_rec.enrt_rl
    ,p_auto_enrt_flag                 => p_rec.auto_enrt_flag
    ,p_auto_enrt_mthd_rl              => p_rec.auto_enrt_mthd_rl
    ,p_short_name		      => p_rec.short_name		/*FHR*/
    ,p_short_code		      => p_rec.short_code		/*FHR*/
        ,p_legislation_code		      => p_rec.legislation_code		/*FHR*/
        ,p_legislation_subgroup		      => p_rec.legislation_subgroup		/*FHR*/
    ,p_hidden_flag		      => p_rec.hidden_flag
    ,p_susp_if_ctfn_not_prvd_flag     =>  p_rec.susp_if_ctfn_not_prvd_flag
    ,p_ctfn_determine_cd         =>  p_rec.ctfn_determine_cd
    ,p_cop_attribute_category         => p_rec.cop_attribute_category
    ,p_cop_attribute1                 => p_rec.cop_attribute1
    ,p_cop_attribute2                 => p_rec.cop_attribute2
    ,p_cop_attribute3                 => p_rec.cop_attribute3
    ,p_cop_attribute4                 => p_rec.cop_attribute4
    ,p_cop_attribute5                 => p_rec.cop_attribute5
    ,p_cop_attribute6                 => p_rec.cop_attribute6
    ,p_cop_attribute7                 => p_rec.cop_attribute7
    ,p_cop_attribute8                 => p_rec.cop_attribute8
    ,p_cop_attribute9                 => p_rec.cop_attribute9
    ,p_cop_attribute10                => p_rec.cop_attribute10
    ,p_cop_attribute11                => p_rec.cop_attribute11
    ,p_cop_attribute12                => p_rec.cop_attribute12
    ,p_cop_attribute13                => p_rec.cop_attribute13
    ,p_cop_attribute14                => p_rec.cop_attribute14
    ,p_cop_attribute15                => p_rec.cop_attribute15
    ,p_cop_attribute16                => p_rec.cop_attribute16
    ,p_cop_attribute17                => p_rec.cop_attribute17
    ,p_cop_attribute18                => p_rec.cop_attribute18
    ,p_cop_attribute19                => p_rec.cop_attribute19
    ,p_cop_attribute20                => p_rec.cop_attribute20
    ,p_cop_attribute21                => p_rec.cop_attribute21
    ,p_cop_attribute22                => p_rec.cop_attribute22
    ,p_cop_attribute23                => p_rec.cop_attribute23
    ,p_cop_attribute24                => p_rec.cop_attribute24
    ,p_cop_attribute25                => p_rec.cop_attribute25
    ,p_cop_attribute26                => p_rec.cop_attribute26
    ,p_cop_attribute27                => p_rec.cop_attribute27
    ,p_cop_attribute28                => p_rec.cop_attribute28
    ,p_cop_attribute29                => p_rec.cop_attribute29
    ,p_cop_attribute30                => p_rec.cop_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
    );
Line: 566

End post_insert;
Line: 672

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

  ben_cop_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: 699

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

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

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