DBA Data[Home] [Help]

APPS.BEN_CPR_BUS SQL Statements

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

Line: 116

       select 'x'
       from    ben_popl_org_f    pof
              ,ben_pl_f pln
       Where   pof.popl_org_id = p_popl_org_id
       and     p_effective_date between pof.effective_start_date
               and pof.effective_end_date
       and     pof.pl_id = pln.pl_id
       and     p_effective_date between pln.effective_start_date
               and pln.effective_end_date
       and     pln.pl_cd = 'MSTBPGM';  -- must be in program
Line: 218

   select cpo.pl_id, cpo.plcy_r_grp
   from   ben_popl_org_f cpo
   where  cpo.popl_org_id = p_popl_org_id
     and  cpo.business_group_id = p_business_group_id
     and  p_effective_date between
          cpo.effective_start_date and cpo.effective_end_date;
Line: 227

       select count('x')
       from    ben_popl_org_f      cpo
              ,ben_popl_org_role_f cpr
       Where   cpo.popl_org_id = cpr.popl_org_id
       and     cpo.pl_id = p_pl_id
       and     cpo.business_group_id = p_business_group_id
       and     cpr.org_role_typ_cd = 'PCP'
       and     (cpr.popl_org_role_id <> p_popl_org_role_id
               or p_popl_org_role_id is null)
       and     p_effective_date between cpo.effective_start_date
               and cpo.effective_end_date
       and     p_effective_date between cpr.effective_start_date
               and cpr.effective_end_date;
Line: 311

Procedure dt_update_validate
            (
	     p_datetrack_mode		     in varchar2,
             p_validation_start_date	     in date,
	     p_validation_end_date	     in date) Is
--
  l_proc	    varchar2(72) := g_package||'dt_update_validate';
Line: 371

End dt_update_validate;
Line: 408

Procedure dt_delete_validate
            (p_popl_org_role_id		in number,
             p_datetrack_mode		in varchar2,
	     p_validation_start_date	in date,
	     p_validation_end_date	in date) Is
--
  l_proc	varchar2(72) 	:= g_package||'dt_delete_validate';
Line: 431

  If (p_datetrack_mode = 'DELETE' or
      p_datetrack_mode = 'ZAP') then
    --
    --
    -- Ensure the arguments are not null
    --
    hr_api.mandatory_arg_error
      (p_api_name       => l_proc,
       p_argument       => 'validation_start_date',
       p_argument_value => p_validation_start_date);
Line: 473

End dt_delete_validate;
Line: 478

Procedure insert_validate
	(p_rec 			 in ben_cpr_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_validate';
Line: 515

End insert_validate;
Line: 520

Procedure update_validate
	(p_rec 			 in ben_cpr_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||'update_validate';
Line: 557

  dt_update_validate
    (
     p_datetrack_mode                => p_datetrack_mode,
     p_validation_start_date	     => p_validation_start_date,
     p_validation_end_date	     => p_validation_end_date);
Line: 564

End update_validate;
Line: 569

Procedure delete_validate
	(p_rec 			 in ben_cpr_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||'delete_validate';
Line: 583

  dt_delete_validate
    (p_datetrack_mode		=> p_datetrack_mode,
     p_validation_start_date	=> p_validation_start_date,
     p_validation_end_date	=> p_validation_end_date,
     p_popl_org_role_id		=> p_rec.popl_org_role_id);
Line: 590

End delete_validate;
Line: 603

    select a.legislation_code
    from   per_business_groups a,
           ben_popl_org_role_f b
    where b.popl_org_role_id      = p_popl_org_role_id
    and   a.business_group_id = b.business_group_id;