DBA Data[Home] [Help]

APPS.BEN_PREMIUM_PLAN_CONCURRENT SQL Statements

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

Line: 72

   Select ran.range_id
         ,ran.starting_person_action_id
         ,ran.ending_person_action_id
     From ben_batch_ranges ran
    Where ran.range_status_cd = 'U'
      And ran.BENEFIT_ACTION_ID  = P_BENEFIT_ACTION_ID
      And rownum < 2
      For update of ran.range_status_cd
         ;
Line: 82

    Select ben.person_id
          ,ben.person_action_id
          ,ben.object_version_number
          ,ben.ler_id
      From ben_person_actions ben
     Where ben.benefit_action_id = p_benefit_action_id
       And ben.action_status_cd <> 'P'
       And ben.person_action_id between
              l_start_person_action_id and l_end_person_action_id
     Order by ben.person_action_id
          ;
Line: 94

    Select *
      From ben_benefit_actions ben
     Where ben.benefit_action_id = p_benefit_action_id
          ;
Line: 161

          ,p_person_selection_rule_id => null
          ,p_comp_selection_rule_id   => l_parm.comp_selection_rl
          ,p_pgm_id                   => l_parm.pgm_id
          ,p_pl_typ_id                => l_parm.pl_typ_id
          ,p_pl_id                    => l_parm.pl_id
          ,p_person_type_id           => l_parm.person_type_id
          ,p_ler_id                   => null
          ,p_organization_id          => null
          ,p_benfts_grp_id            => null
          ,p_location_id              => null
          ,p_legal_entity_id          => null
          ,p_payroll_id               => null
          );
Line: 199

      update ben_batch_ranges ran set ran.range_status_cd = 'P'
         where ran.range_id = l_range_id;
Line: 210

    g_cache_person_process.delete;
Line: 310

                 ,p_comp_selection_rule_id   in     number   default null
                 ,p_debug_messages           in     varchar2 default 'N'
                 ,p_first_day_of_month       in     varchar2
                 ,p_mo_num                   in     number
                 ,p_yr_num                   in     number
                 ,p_threads            in     number
                 ,p_chunk_size         in     number
                 ,p_max_errors         in     number
                 ,p_restart            in     boolean default FALSE ) is
  --
  -- Cursors declaration.
  --

  -- Premiums to be processed:
  cursor c_prems (p_effective_date date) is
    select apr.actl_prem_id, apr.oipl_id, apr.pl_id
    from   ben_actl_prem_f apr
    where  apr.prem_asnmt_cd = 'PROC'  -- ENRT are dealt with in benprprm.pkb
    and    apr.business_group_id = p_business_group_id
    and    p_effective_date between
           apr.effective_start_date and apr.effective_end_date;
Line: 399

      l_actn := 'Calling ben_batch_utils.comp_obj_selection_rule...';
Line: 412

         or p_comp_selection_rule_id is not null then
         rl_ret := 'Y';
Line: 430

         elsif rl_ret = 'Y' and p_comp_selection_rule_id is not null then
            l_actn := 'found a comp object rule...';
Line: 433

            rl_ret:=ben_maintain_designee_elig.comp_selection_rule(
                p_person_id                => null -- we have no person_id
               ,p_business_group_id        => p_business_group_id
               ,p_pgm_id                   => l_pgm_id
               ,p_pl_id                    => l_pl_id
               ,p_pl_typ_id                => l_pl_typ_id
               ,p_opt_id                   => l_opt_id
               ,p_oipl_id                  => l_prems.oipl_id
               ,p_ler_id                   => null -- we have no ler_id
               ,p_comp_selection_rule_id   => p_comp_selection_rule_id
               ,p_effective_date           => l_effective_date);
Line: 457

        hr_utility.set_location('not skip...Inserting Ben_person_actions',28);
Line: 458

        l_actn := 'Inserting Ben_person_actions...';
Line: 459

        select ben_person_actions_s.nextval
        into   l_person_action_id
        from   sys.dual;
Line: 463

        insert into ben_person_actions
              (person_action_id,
               person_id,
               ler_id,
               benefit_action_id,
               action_status_cd,
               object_version_number,
               chunk_number,
               non_person_cd)
            values
              (l_person_action_id,
               l_prems.actl_prem_id,
               0,
               p_benefit_action_id,
               'U',
               1,
               l_chunk_num,
               'PREM');
Line: 492

          l_actn := 'Inserting Ben_batch_ranges.......';
Line: 493

          hr_utility.set_location('Inserting Ben_batch_ranges',32);
Line: 496

          select ben_batch_ranges_s.nextval
          into   l_range_id
          from   sys.dual;
Line: 500

          insert into ben_batch_ranges
            (range_id,
             benefit_action_id,
             range_status_cd,
             starting_person_action_id,
             ending_person_action_id,
             object_version_number)
          values
            (l_range_id,
             p_benefit_action_id,
             'U',
             l_start_person_action_id,
             l_end_person_action_id,
             1);
Line: 525

      l_actn := 'Inserting Final Ben_batch_ranges...';
Line: 526

      hr_utility.set_location('Inserting Final Ben_batch_ranges',38);
Line: 528

          select ben_batch_ranges_s.nextval
          into   l_range_id
          from   sys.dual;
Line: 532

          insert into ben_batch_ranges
            (range_id,
             benefit_action_id,
             range_status_cd,
             starting_person_action_id,
             ending_person_action_id,
             object_version_number)
          values
            (l_range_id,
             p_benefit_action_id,
             'U',
             l_start_person_action_id,
             l_end_person_action_id,
             1);
Line: 603

      ,p_comp_selection_rule_id   => p_comp_selection_rule_id
      ,p_pgm_id                   => p_pgm_id
      ,p_pl_typ_id                => p_pl_typ_id
      ,p_pl_id                    => p_pl_id
      ,p_popl_enrt_typ_cycl_id    => null
      ,p_person_id                => null
      ,p_person_selection_rule_id => null
      ,p_person_type_id           => null
      ,p_ler_id                   => null
      ,p_organization_id          => null
      ,p_benfts_grp_id            => null
      ,p_location_id              => null
      ,p_legal_entity_id          => null
      ,p_payroll_id               => null
      );
Line: 623

          '<< No Process Premiums were selected with above selection criteria >>' );
Line: 648

                             ,p_person_selected   => l_person_cnt
                             ,p_business_group_id => p_business_group_id
                             ,p_non_person_cd     => 'PREM');
Line: 667

                                  ,p_person_selected   => l_person_cnt
                                  ,p_business_group_id => p_business_group_id
       ) ;