DBA Data[Home] [Help]

APPS.BEN_MANAGE_UNRES_LIFE_EVENTS SQL Statements

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

Line: 15

        04 Apr 02        kmahendr  115.1      Bug#2090319 - added a cursor in update_in_pend_flag
                                              to update in_pending_flag to N before update to Y
        08 Apr 02        kmahendr  115.2      Bug#2187697 - update in_pndg_wkflow_flag to
                                              S so that rates are not calculated again if
                                              there is any comp. object in pending or suspend
                                              status.
        16 Dec 02        hnarayan  115.3      Added NOCOPY hint
        02-Jul-03        maagrawa  115.4      Modified c_pending cursor for performance.
                                              Bug 3026837.
        23-Sep-03        pbodla
                         kmahendr  115.5      3152322 : Modified
                                              c_elig_per_elctbl_chc_3 to avoid
                                              selecting pending in wf rows.
        29        hnarayan  115.3      Added NOCOPY hint
        30 Sep 03        mmudigon  115.6      bug 3170345 - Performance changes. Bulk
                                              binding in procedure
                                              delete_elctbl_choice.
        09 Oct 03  kmahendr  115.7            Added cursor c_pl_nip to bypass
                                              update_pending flag for performance
                                              Added table count before deletes.
        14 Oct 03  kmahendr  115.8            Removed c_enrt_rt cursor as the
                                              data is not used at all.
        30 Oct 03  mmudigon  115.9            Close c_elig_per_elctbl_chc_3
        25 May 04  bmanyam   115.10           Bug 3638279: Added OVN to column list in the
                                              cursor c_sspndd_enrts
        27 Jul 04  nhunur    115.11           delete elig_dpnt for unrestricted as epe is deleted.
        15 Nov 04  kmahendr  115.12           Unrest. enh changes
        01-dec-04  kmahendr  115.13           Unrest. enh changes
        09-dec-04  kmahendr  115.14           Bug#4056365 - enrt_rslt_id on epe updated
        23-Sep-05  maagrawa  115.15           Bug 4483353. Remove hardcoding of
                                              item type for ICD transactions.
        06-Oct-05  rbingi    115.16           Bug#4640014. added proc clear_epe_cache to
                                                delete EPEs that marked delete
        05-dec-05  ssarkar   115.17           4761065 :Modified proc clear_epe_cache - Need to delete epe regardless
	                                                 whether its elctbl_flag is Y/N
        18-Jan-05  rbingi    115.18           4717052 : Not updating epe when already marked delete 'Y'
                                               returning from the proc.
        04-APR-06  ssarkar   115.19           Bug 5055119 - added end_date_elig_per_rows
	      10-apr-06  ssarkar   115.20           5055119 - redesigned the code of end_date_elig_per_rows
				29-Nov-06  gsehgal   115.21           Bug 5658405 - modified procedure end_date_elig_per_rows
*/

--------------------------------------------------------------------------------
--
g_package             varchar2(80) := 'ben_manage_unres_life_events';
Line: 61

procedure update_in_pend_flag
  (p_person_id         in     number
  ,p_per_in_ler_id     in     number
  ,p_business_group_id in     number
  ,p_effective_date    in     date
  )
is
  --
  l_pending    number;
Line: 70

  l_package    varchar2(100) := 'update_in_pend_flag';
Line: 73

     SELECT vlv_choice.number_value elig_per_elctbl_chc_id
     from wf_item_activity_statuses process ,
          wf_process_activities activity ,
          hr_api_transactions txn,
          hr_api_transaction_steps step ,
          hr_api_transaction_values vlv_choice
     WHERE activity.process_name = 'ROOT'
     and activity.process_item_type = activity.activity_item_type
     and activity.instance_id = process.process_activity
     and process.activity_status = 'ACTIVE'
     and txn.item_type = process.item_type
     and txn.item_key  = process.item_key
     and txn.selected_person_id = p_person_id
     and txn.transaction_id = step.transaction_id
     and step.api_name = 'BEN_PROCESS_COMPENSATION_W.PROCESS_API'
     and step.transaction_step_id = vlv_choice.transaction_step_id
     and vlv_choice.name = 'P_ELIG_PER_ELCTBL_CHC_ID';
Line: 95

       delete the electable choises data and other data if the
       enrollment is in suspended state.
       Temporarily mark the in_pndg_wkflow_flag of electable choices
       with 'Z' value and set the flag back to 'N' after deleting
       the electable choice data and other data.
       Conditions which may cause problems. :
       1. Make enrollments on 10-oct-01 and come back and run
          unrestricted on 10-may-01. How to deal with future
          suspended rows.
       2.
    --
   */
   cursor c_sspndd_enrts is
   select epe.elig_per_elctbl_chc_id, epe.object_version_number -- 3638279: Added ovn;
Line: 130

    select object_version_number
    from  ben_elig_per_elctbl_chc
    where elig_per_elctbl_chc_id = l_pending;
Line: 135

    select elig_per_elctbl_chc_id,
           object_version_number
    from  ben_elig_per_elctbl_chc
    where per_in_ler_id  = p_per_in_ler_id
    and   in_pndg_wkflow_flag = 'Y';
Line: 142

    select elig_per_elctbl_chc_id,
           object_version_number
    from  ben_elig_per_elctbl_chc
    where per_in_ler_id  = p_per_in_ler_id
    and   in_pndg_wkflow_flag <> 'Y'
    and   pil_elctbl_chc_popl_id in
           (select pil_elctbl_chc_popl_id
            from ben_pil_elctbl_chc_popl pel
            where pel.per_in_ler_id = p_per_in_ler_id and
            exists
                 ( select null
                   from ben_elig_per_elctbl_chc epe
                   where pel.pil_elctbl_chc_popl_id = epe.pil_elctbl_chc_popl_id
                   and   nvl(epe.in_pndg_wkflow_flag,'N') in ('Y', 'S') ));
Line: 172

       ben_ELIG_PER_ELC_CHC_api.update_ELIG_PER_ELC_CHC
        (p_validate                => FALSE
        ,p_elig_per_elctbl_chc_id  => l_elig_per_elctbl_chc_id
        ,p_object_version_number   => l_object_version_number
        ,p_in_pndg_wkflow_flag     => 'N'
        ,p_effective_date          => p_effective_date
        );
Line: 197

        ben_ELIG_PER_ELC_CHC_api.update_ELIG_PER_ELC_CHC
          (p_validate                => FALSE
          ,p_elig_per_elctbl_chc_id  => l_pending
          ,p_object_version_number   => l_object_version_number
          ,p_in_pndg_wkflow_flag     => 'Y'
          ,p_effective_date          => p_effective_date);
Line: 214

    ben_ELIG_PER_ELC_CHC_api.update_ELIG_PER_ELC_CHC
        (p_validate                => FALSE
        ,p_elig_per_elctbl_chc_id  => l_epe_rec.elig_per_elctbl_chc_id
        ,p_object_version_number   => l_epe_rec.object_version_number
        ,p_in_pndg_wkflow_flag     => 'S'
        ,p_effective_date          => p_effective_date
        );
Line: 224

      update ben_elig_per_elctbl_chc
      set in_pndg_wkflow_flag = 'S'
      where elig_per_elctbl_chc_id = l_epe_rec.elig_per_elctbl_chc_id;
Line: 241

     ben_elig_per_elc_chc_api.update_perf_ELIG_PER_ELC_CHC
      (p_elig_per_elctbl_chc_id    => l_elig_per_elctbl_chc_id
      ,p_object_version_number      => l_object_version_number
      ,p_in_pndg_wkflow_flag        => 'S'
      ,p_effective_date             => p_effective_date
    );
Line: 254

end update_in_pend_flag;
Line: 256

procedure delete_elctbl_choice
  (p_person_id         in     number
  ,p_effective_date    in     date
  ,p_business_group_id in     number
  ,p_rec                  out nocopy benutils.g_active_life_event
  )
is
  --
  l_rec                   benutils.g_active_life_event;
Line: 270

  l_package                varchar2(100):= 'delete_elctbl_choice';
Line: 275

    select *
    from ben_enrt_rt
    where elig_per_elctbl_chc_id in
       (select elig_per_elctbl_chc_id from ben_elig_per_elctbl_chc
          where per_in_ler_id = p_rec.per_in_ler_id)
  union
    select *
    from ben_enrt_rt
     where enrt_bnft_id in
       (select enrt_bnft_id from ben_enrt_bnft
          where elig_per_elctbl_chc_id in
          (select elig_per_elctbl_chc_id from ben_elig_per_elctbl_chc
             where per_in_ler_id = p_rec.per_in_ler_id));
Line: 291

    select *
    from ben_pil_elctbl_chc_popl
    where per_in_ler_id = p_rec.per_in_ler_id;
Line: 296

    select null
    from ben_pil_elctbl_chc_popl
    where per_in_ler_id = p_rec.per_in_ler_id
    and   pl_id is not null;
Line: 302

  select epe.elig_per_elctbl_chc_id
    from ben_elig_per_elctbl_chc epe
   where epe.per_in_ler_id = p_per_in_ler_id
     and epe.pil_elctbl_chc_popl_id in
         (select pel.pil_elctbl_chc_popl_id
            from ben_pil_elctbl_chc_popl pel
           where pel.per_in_ler_id = p_per_in_ler_id
             and not exists
                 (select null
                    from ben_elig_per_elctbl_chc epe2
                   where pel.pil_elctbl_chc_popl_id=epe2.pil_elctbl_chc_popl_id
                     and nvl(epe2.in_pndg_wkflow_flag,'N') in ('Y', 'S')));
Line: 316

    select FONM_CVG_STRT_DT
          ,PGM_ID
          ,PL_ID
          ,PL_TYP_ID
          ,PLIP_ID
          ,PTIP_ID
          ,ENRT_CVG_STRT_DT_CD
          ,ENRT_CVG_STRT_DT_RL
          ,PRTT_ENRT_RSLT_ID
          ,DPNT_CVG_STRT_DT_CD
          ,DPNT_CVG_STRT_DT_RL
          ,ENRT_CVG_STRT_DT
          ,DPNT_DSGN_CD
          ,LER_CHG_DPNT_CVG_CD
          ,ERLST_DEENRT_DT
          ,PROCG_END_DT
          ,CRYFWD_ELIG_DPNT_CD
          ,ELIG_FLAG
          ,ELIG_OVRID_DT
          ,ELIG_OVRID_PERSON_ID
          ,INELIG_RSN_CD
          ,MGR_OVRID_DT
          ,MGR_OVRID_PERSON_ID
          ,WS_MGR_ID
          ,ASSIGNMENT_ID
          ,ROLL_CRS_FLAG
          ,CRNTLY_ENRD_FLAG
          ,DFLT_FLAG
          ,ELCTBL_FLAG
          ,MNDTRY_FLAG
          ,ALWS_DPNT_DSGN_FLAG
          ,COMP_LVL_CD
          ,AUTO_ENRT_FLAG
          ,CTFN_RQD_FLAG
          ,PER_IN_LER_ID
          ,YR_PERD_ID
          ,OIPLIP_ID
          ,PL_ORDR_NUM
          ,PLIP_ORDR_NUM
          ,PTIP_ORDR_NUM
          ,OIPL_ORDR_NUM
          ,MUST_ENRL_ANTHR_PL_ID
          ,SPCL_RT_PL_ID
          ,SPCL_RT_OIPL_ID
          ,BNFT_PRVDR_POOL_ID
          ,CMBN_PTIP_ID
          ,CMBN_PTIP_OPT_ID
          ,CMBN_PLIP_ID
          ,OIPL_ID
          ,APPROVAL_STATUS_CD
          ,elig_per_elctbl_chc_id
          ,object_version_number
          ,null  mark_delete
      from ben_elig_per_elctbl_chc
      where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id;
Line: 373

     select enrt_bnft_id
           ,ELIG_PER_ELCTBL_CHC_ID
           ,ORDR_NUM
           ,OBJECT_VERSION_NUMBER
           ,null mark_delete
  from ben_enrt_bnft
  where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id;
Line: 382

    select enrt_rt_id
           ,ELIG_PER_ELCTBL_CHC_ID
           ,ENRT_BNFT_ID
           ,OBJECT_VERSION_NUMBER
           ,ACTY_BASE_RT_ID
           ,null mark_delete
    from ben_enrt_rt
    where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id
    union
    select enrt_rt_id
           ,ELIG_PER_ELCTBL_CHC_ID
           ,ENRT_BNFT_ID
           ,OBJECT_VERSION_NUMBER
           ,ACTY_BASE_RT_ID
           ,null mark_delete
    from ben_enrt_rt
    where enrt_bnft_id in  (select enrt_bnft_id
                          from ben_enrt_bnft
                          where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id
                          );
Line: 404

    select enrt_prem_id
           ,actl_prem_id
           ,ELIG_PER_ELCTBL_CHC_ID
           ,ENRT_BNFT_ID
           ,OBJECT_VERSION_NUMBER
           ,null mark_delete
    from ben_enrt_prem
    where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id;
Line: 414

    select elig_dpnt_id
          ,ELIG_PER_ELCTBL_CHC_ID
          ,PER_IN_LER_ID
          ,ELIG_PER_ID
          ,ELIG_PER_OPT_ID
          ,ELIG_CVRD_DPNT_ID
          ,DPNT_INELIG_FLAG
          ,OVRDN_FLAG
          ,DPNT_PERSON_ID
          ,OBJECT_VERSION_NUMBER
          ,null mark_delete
   from ben_elig_dpnt
   where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id;
Line: 429

    select elctbl_chc_ctfn_id
           ,enrt_ctfn_typ_cd
           ,ELIG_PER_ELCTBL_CHC_ID
           ,ENRT_BNFT_ID
           ,OBJECT_VERSION_NUMBER
           ,null mark_delete
    from ben_elctbl_chc_ctfn
    where elig_per_elctbl_chc_id = p_elig_per_elctbl_chc_id;
Line: 444

   g_unrest_epe_instance.delete;
Line: 445

   g_unrest_enb_instance.delete;
Line: 446

   g_unrest_ecr_instance.delete;
Line: 447

   g_unrest_egd_instance.delete;
Line: 448

   g_unrest_ecc_instance.delete;
Line: 449

   g_unrest_epr_instance.delete;
Line: 466

       update_in_pend_flag(p_person_id             => p_person_id
                          ,p_per_in_ler_id         => p_rec.per_in_ler_id
                          ,p_business_group_id     => p_business_group_id
                          ,p_effective_date        => p_effective_date
                          );
Line: 487

     that too user explicitly not selected the default one as part of first enrollment.

     if p_effective_date >= p_rec.lf_evt_ocrd_dt then
        ben_manage_default_enrt.Process_default_enrt
                     (p_person_id             => p_person_id
                     ,p_object_version_number => l_object_version_number
                     ,p_business_group_id     => p_business_group_id
                     ,p_effective_date        => p_effective_date
                     );
Line: 529

        delete from ben_enrt_rt
        where elig_per_elctbl_chc_id = t_epe_tbl(i);
Line: 533

        delete from ben_enrt_rt
        where enrt_bnft_id in
        (select enrt_bnft_id
           from ben_enrt_bnft
          where elig_per_elctbl_chc_id = t_epe_tbl(i));
Line: 540

        delete from ben_elctbl_chc_ctfn
        where elig_per_elctbl_chc_id  =  t_epe_tbl(i);
Line: 544

        delete from ben_elctbl_chc_ctfn
        where  enrt_bnft_id in
              (select enrt_bnft_id
                 from ben_enrt_bnft
                where elig_per_elctbl_chc_id = t_epe_tbl(i));
Line: 551

        delete from ben_enrt_bnft
        where elig_per_elctbl_chc_id  =  t_epe_tbl(i);
Line: 555

        delete from ben_elig_dpnt
        where elig_per_elctbl_chc_id  =  t_epe_tbl(i);
Line: 559

        delete from ben_elig_per_elctbl_chc
        where elig_per_elctbl_chc_id  =  t_epe_tbl(i);
Line: 567

        update ben_elig_per_elctbl_chc set prtt_enrt_rslt_id = null
          where elig_per_elctbl_chc_id = t_epe_tbl(i);
Line: 659

     delete from ben_pil_elctbl_chc_popl pel
       where per_in_ler_id = p_rec.per_in_ler_id
       and not exists
           (select null
              from ben_elig_per_elctbl_chc epe
             where pel.pil_elctbl_chc_popl_id = epe.pil_elctbl_chc_popl_id
               and nvl(epe.in_pndg_wkflow_flag,'N') in ('Y', 'S') ) ;
Line: 672

     update ben_elig_per_elctbl_chc
     set in_pndg_wkflow_flag = 'N'
     where in_pndg_wkflow_flag = 'Z'
       and per_in_ler_id = p_rec.per_in_ler_id;
Line: 698

procedure update_elig_per_elctbl_choice
  (
   p_elig_per_elctbl_chc_id         in  number
  ,p_enrt_cvg_strt_dt_cd            in  varchar2
  ,p_enrt_cvg_strt_dt_rl            in  varchar2
  ,p_ctfn_rqd_flag                  in  varchar2
  ,p_pil_elctbl_chc_popl_id         in  number
  ,p_roll_crs_flag                  in  varchar2
  ,p_crntly_enrd_flag               in  varchar2
  ,p_dflt_flag                      in  varchar2
  ,p_elctbl_flag                    in  varchar2
  ,p_mndtry_flag                    in  varchar2
  ,p_in_pndg_wkflow_flag            in  varchar2
  ,p_dpnt_cvg_strt_dt_cd            in  varchar2
  ,p_dpnt_cvg_strt_dt_rl            in  varchar2
  ,p_enrt_cvg_strt_dt               in  date
  ,p_alws_dpnt_dsgn_flag            in  varchar2
  ,p_dpnt_dsgn_cd                   in  varchar2
  ,p_ler_chg_dpnt_cvg_cd            in  varchar2
  ,p_erlst_deenrt_dt                in  date
  ,p_procg_end_dt                   in  date
  ,p_comp_lvl_cd                    in  varchar2
  ,p_pl_id                          in  number
  ,p_oipl_id                        in  number
  ,p_pgm_id                         in  number
  ,p_plip_id                        in  number
  ,p_ptip_id                        in  number
  ,p_pl_typ_id                      in  number
  ,p_oiplip_id                      in  number
  ,p_cmbn_plip_id                   in  number
  ,p_cmbn_ptip_id                   in  number
  ,p_cmbn_ptip_opt_id               in  number
  ,p_assignment_id                  in  number
  ,p_spcl_rt_pl_id                  in  number
  ,p_spcl_rt_oipl_id                in  number
  ,p_must_enrl_anthr_pl_id          in  number
  ,p_int_elig_per_elctbl_chc_id     in  number
  ,p_prtt_enrt_rslt_id              in  number
  ,p_bnft_prvdr_pool_id             in  number
  ,p_per_in_ler_id                  in  number
  ,p_yr_perd_id                     in  number
  ,p_auto_enrt_flag                 in  varchar2
  ,p_business_group_id              in  number
  ,p_pl_ordr_num                    in  number
  ,p_plip_ordr_num                  in  number
  ,p_ptip_ordr_num                  in  number
  ,p_oipl_ordr_num                  in  number
  ,p_comments                       in  varchar2
  ,p_elig_flag                      in  varchar2
  ,p_elig_ovrid_dt                  in  date
  ,p_elig_ovrid_person_id           in  number
  ,p_inelig_rsn_cd                  in  varchar2
  ,p_mgr_ovrid_dt                   in  date
  ,p_mgr_ovrid_person_id            in  number
  ,p_ws_mgr_id                      in  number
  ,p_approval_status_cd             in  varchar2
  ,p_fonm_cvg_strt_dt               in  date
  ,p_cryfwd_elig_dpnt_cd            in  varchar2
  ,p_effective_date                 in  date
  ,p_pgm_typ_cd                     in  varchar2
  ,p_enrt_perd_end_dt               in  date
  ,p_enrt_perd_strt_dt              in  date
  ,p_dflt_enrt_dt                   in  varchar2
  ,p_uom                            in  varchar2
  ,p_acty_ref_perd_cd               in  varchar2
  ,p_lee_rsn_id                     in  number
  ,p_enrt_perd_id                   in  number
  ,p_cls_enrt_dt_to_use_cd          in  varchar2
  ) is
  --
  l_package varchar2(30) := '.Update_elig_per_elecatble';
Line: 801

    ,p_program_update_date     => sysdate
    --
    ,p_pil_elctbl_chc_popl_id => l_pil_elctbl_chc_popl_id
    ,p_oiplip_id              => l_oiplip_id
    );
Line: 811

        if g_unrest_epe_instance(i).mark_delete = 'Y' then -- Bug 4717052, Added this IF
          return;
Line: 815

          g_unrest_epe_instance(i).mark_delete := 'Y';
Line: 837

 ben_elig_per_elc_chc_api.update_perf_elig_per_elc_chc
          (p_elig_per_elctbl_chc_id  => p_elig_per_elctbl_chc_id,
           p_dflt_flag               => p_dflt_flag,
           p_elctbl_flag             => p_elctbl_flag,
           p_object_version_number   => l_object_version_number,
           p_effective_date          => p_effective_date,
           p_program_application_id  => fnd_global.prog_appl_id,
           p_program_id              => fnd_global.conc_program_id,
           p_request_id              => fnd_global.conc_request_id,
           p_program_update_date     => sysdate
          ,p_enrt_cvg_strt_dt_cd     => p_enrt_cvg_strt_dt_cd
          ,p_enrt_cvg_strt_dt_rl     => p_enrt_cvg_strt_dt_rl
          ,p_ctfn_rqd_flag           => p_ctfn_rqd_flag
          ,p_pil_elctbl_chc_popl_id  => l_pil_elctbl_chc_popl_id
          ,p_roll_crs_flag           => p_roll_crs_flag
          ,p_crntly_enrd_flag        => p_crntly_enrd_flag
          ,p_mndtry_flag             => p_mndtry_flag
          ,p_dpnt_cvg_strt_dt_cd     => p_dpnt_cvg_strt_dt_cd
          ,p_dpnt_cvg_strt_dt_rl     => p_dpnt_cvg_strt_dt_rl
          ,p_enrt_cvg_strt_dt        => p_enrt_cvg_strt_dt
          ,p_alws_dpnt_dsgn_flag     => p_alws_dpnt_dsgn_flag
          ,p_dpnt_dsgn_cd            => p_dpnt_dsgn_cd
          ,p_ler_chg_dpnt_cvg_cd     => p_ler_chg_dpnt_cvg_cd
          ,p_erlst_deenrt_dt         => p_erlst_deenrt_dt
          ,p_procg_end_dt            => p_procg_end_dt
          ,p_comp_lvl_cd             => p_comp_lvl_cd
          ,p_pl_id                   => p_pl_id
          ,p_oipl_id                 => p_oipl_id
          ,p_pgm_id                  => p_pgm_id
          ,p_plip_id                 => p_plip_id
          ,p_ptip_id                 => p_ptip_id
          ,p_pl_typ_id               => p_pl_typ_id
          ,p_oiplip_id               => p_oiplip_id
          ,p_cmbn_plip_id            => p_cmbn_plip_id
          ,p_cmbn_ptip_id            => p_cmbn_ptip_id
          ,p_cmbn_ptip_opt_id        => p_cmbn_ptip_opt_id
          ,p_assignment_id           => p_assignment_id
          ,p_spcl_rt_pl_id           => p_spcl_rt_pl_id
          ,p_spcl_rt_oipl_id         => p_spcl_rt_oipl_id
          ,p_must_enrl_anthr_pl_id   => p_must_enrl_anthr_pl_id
          ,p_prtt_enrt_rslt_id       => p_prtt_enrt_rslt_id
          ,p_bnft_prvdr_pool_id      => p_bnft_prvdr_pool_id
          ,p_per_in_ler_id           => p_per_in_ler_id
          ,p_yr_perd_id              => p_yr_perd_id
          ,p_auto_enrt_flag          => p_auto_enrt_flag
          ,p_business_group_id       => p_business_group_id
          ,p_pl_ordr_num             => p_pl_ordr_num
          ,p_plip_ordr_num           => p_plip_ordr_num
          ,p_ptip_ordr_num           => p_ptip_ordr_num
          ,p_oipl_ordr_num           => p_oipl_ordr_num
          ,p_fonm_cvg_strt_dt        => p_fonm_cvg_strt_dt
        );
Line: 894

procedure update_enrt_bnft
 ( p_enrt_bnft_id                   in  number
  ,p_dflt_flag                      in  varchar2
  ,p_val_has_bn_prortd_flag         in  varchar2
  ,p_bndry_perd_cd                  in  varchar2
  ,p_val                            in  number
  ,p_nnmntry_uom                    in  varchar2
  ,p_bnft_typ_cd                    in  varchar2
  ,p_entr_val_at_enrt_flag          in  varchar2
  ,p_mn_val                         in  number
  ,p_mx_val                         in  number
  ,p_incrmt_val                     in  number
  ,p_dflt_val                       in  number
  ,p_rt_typ_cd                      in  varchar2
  ,p_cvg_mlt_cd                     in  varchar2
  ,p_ctfn_rqd_flag                  in  varchar2
  ,p_ordr_num                       in  number
  ,p_crntly_enrld_flag              in  varchar2
  ,p_elig_per_elctbl_chc_id         in  number
  ,p_prtt_enrt_rslt_id              in  number
  ,p_comp_lvl_fctr_id               in  number
  ,p_business_group_id              in  number
  ,p_enb_attribute_category         in  varchar2
  ,p_enb_attribute1                 in  varchar2
  ,p_enb_attribute2                 in  varchar2
  ,p_enb_attribute3                 in  varchar2
  ,p_enb_attribute4                 in  varchar2
  ,p_enb_attribute5                 in  varchar2
  ,p_enb_attribute6                 in  varchar2
  ,p_enb_attribute7                 in  varchar2
  ,p_enb_attribute8                 in  varchar2
  ,p_enb_attribute9                 in  varchar2
  ,p_enb_attribute10                in  varchar2
  ,p_enb_attribute11                in  varchar2
  ,p_enb_attribute12                in  varchar2
  ,p_enb_attribute13                in  varchar2
  ,p_enb_attribute14                in  varchar2
  ,p_enb_attribute15                in  varchar2
  ,p_enb_attribute16                in  varchar2
  ,p_enb_attribute17                in  varchar2
  ,p_enb_attribute18                in  varchar2
  ,p_enb_attribute19                in  varchar2
  ,p_enb_attribute20                in  varchar2
  ,p_enb_attribute21                in  varchar2
  ,p_enb_attribute22                in  varchar2
  ,p_enb_attribute23                in  varchar2
  ,p_enb_attribute24                in  varchar2
  ,p_enb_attribute25                in  varchar2
  ,p_enb_attribute26                in  varchar2
  ,p_enb_attribute27                in  varchar2
  ,p_enb_attribute28                in  varchar2
  ,p_enb_attribute29                in  varchar2
  ,p_enb_attribute30                in  varchar2
  ,p_request_id                     in  number
  ,p_program_application_id         in  number
  ,p_program_id                     in  number
  ,p_program_update_date            in  date
  ,p_mx_wout_ctfn_val               in number
  ,p_mx_wo_ctfn_flag                in varchar2
  ,p_effective_date                 in  date
  ) is
  --
  l_object_version_number           number;
Line: 965

        g_unrest_enb_instance(i).mark_delete := 'Y';
Line: 972

 ben_enrt_bnft_api.update_enrt_bnft
      (p_enrt_bnft_id                  => p_enrt_bnft_id
      ,p_dflt_flag                     => p_dflt_flag
      ,p_val_has_bn_prortd_flag        => p_val_has_bn_prortd_flag
      ,p_bndry_perd_cd                 => p_bndry_perd_cd
      ,p_val                           => p_val
      ,p_nnmntry_uom                   => p_nnmntry_uom
      ,p_bnft_typ_cd                   => p_bnft_typ_cd
      ,p_entr_val_at_enrt_flag         => p_entr_val_at_enrt_flag
      ,p_mn_val                        => p_mn_val
      ,p_mx_val                        => p_mx_val
      ,p_incrmt_val                    => p_incrmt_val
      ,p_dflt_val                      => p_dflt_val
      ,p_rt_typ_cd                     => p_rt_typ_cd
      ,p_cvg_mlt_cd                    => p_cvg_mlt_cd
      ,p_ctfn_rqd_flag                 => p_ctfn_rqd_flag
      ,p_ordr_num                      => p_ordr_num
      ,p_crntly_enrld_flag             => p_crntly_enrld_flag
      ,p_elig_per_elctbl_chc_id        => p_elig_per_elctbl_chc_id
      ,p_prtt_enrt_rslt_id             => p_prtt_enrt_rslt_id
      ,p_comp_lvl_fctr_id              => p_comp_lvl_fctr_id
      ,p_business_group_id             => p_business_group_id
      ,p_enb_attribute_category        => p_enb_attribute_category
      ,p_enb_attribute1                => p_enb_attribute1
      ,p_enb_attribute2                => p_enb_attribute2
      ,p_enb_attribute3                => p_enb_attribute3
      ,p_enb_attribute4                => p_enb_attribute4
      ,p_enb_attribute5                => p_enb_attribute5
      ,p_enb_attribute6                => p_enb_attribute6
      ,p_enb_attribute7                => p_enb_attribute7
      ,p_enb_attribute8                => p_enb_attribute8
      ,p_enb_attribute9                => p_enb_attribute9
      ,p_enb_attribute10               => p_enb_attribute10
      ,p_enb_attribute11               => p_enb_attribute11
      ,p_enb_attribute12               => p_enb_attribute12
      ,p_enb_attribute13               => p_enb_attribute13
      ,p_enb_attribute14               => p_enb_attribute14
      ,p_enb_attribute15               => p_enb_attribute15
      ,p_enb_attribute16               => p_enb_attribute16
      ,p_enb_attribute17               => p_enb_attribute17
      ,p_enb_attribute18               => p_enb_attribute18
      ,p_enb_attribute19               => p_enb_attribute19
      ,p_enb_attribute20               => p_enb_attribute20
      ,p_enb_attribute21               => p_enb_attribute21
      ,p_enb_attribute22               => p_enb_attribute22
      ,p_enb_attribute23               => p_enb_attribute23
      ,p_enb_attribute24               => p_enb_attribute24
      ,p_enb_attribute25               => p_enb_attribute25
      ,p_enb_attribute26               => p_enb_attribute26
      ,p_enb_attribute27               => p_enb_attribute27
      ,p_enb_attribute28               => p_enb_attribute28
      ,p_enb_attribute29               => p_enb_attribute29
      ,p_enb_attribute30               => p_enb_attribute30
      ,p_request_id                    => p_request_id
      ,p_program_application_id        => p_program_application_id
      ,p_program_id                    => p_program_id
      ,p_program_update_date           => p_program_update_date
      ,p_mx_wout_ctfn_val              => p_mx_wout_ctfn_val
      ,p_mx_wo_ctfn_flag               => p_mx_wo_ctfn_flag
      ,p_object_version_number         => l_object_version_number
      ,p_effective_date                => trunc(p_effective_date));
Line: 1035

procedure update_enrt_rt
( p_enrt_rt_id                  in NUMBER,
  p_ordr_num           	        in  number     ,
  p_acty_typ_cd                 in  VARCHAR2   ,
  p_tx_typ_cd                   in  VARCHAR2   ,
  p_ctfn_rqd_flag               in  VARCHAR2   ,
  p_dflt_flag                   in  VARCHAR2   ,
  p_dflt_pndg_ctfn_flag         in  VARCHAR2   ,
  p_dsply_on_enrt_flag          in  VARCHAR2   ,
  p_use_to_calc_net_flx_cr_flag in  VARCHAR2   ,
  p_entr_val_at_enrt_flag       in  VARCHAR2   ,
  p_asn_on_enrt_flag            in  VARCHAR2   ,
  p_rl_crs_only_flag            in  VARCHAR2   ,
  p_dflt_val                    in  NUMBER     ,
  p_ann_val                     in  NUMBER     ,
  p_ann_mn_elcn_val             in  NUMBER     ,
  p_ann_mx_elcn_val             in  NUMBER     ,
  p_val                         in  NUMBER     ,
  p_nnmntry_uom                 in  VARCHAR2   ,
  p_mx_elcn_val                 in  NUMBER     ,
  p_mn_elcn_val                 in  NUMBER     ,
  p_incrmt_elcn_val             in  NUMBER     ,
  p_cmcd_acty_ref_perd_cd       in  VARCHAR2   ,
  p_cmcd_mn_elcn_val            in  NUMBER     ,
  p_cmcd_mx_elcn_val            in  NUMBER     ,
  p_cmcd_val                    in  NUMBER     ,
  p_cmcd_dflt_val               in  NUMBER     ,
  p_rt_usg_cd                   in  VARCHAR2   ,
  p_ann_dflt_val                in  NUMBER     ,
  p_bnft_rt_typ_cd              in  VARCHAR2   ,
  p_rt_mlt_cd                   in  VARCHAR2   ,
  p_dsply_mn_elcn_val           in  NUMBER     ,
  p_dsply_mx_elcn_val           in  NUMBER     ,
  p_entr_ann_val_flag           in  VARCHAR2,
  p_rt_strt_dt                  in  DATE       ,
  p_rt_strt_dt_cd               in  VARCHAR2   ,
  p_rt_strt_dt_rl               in  NUMBER     ,
  p_rt_typ_cd                   in  VARCHAR2   ,
  p_elig_per_elctbl_chc_id      in  NUMBER     ,
  p_acty_base_rt_id             in  NUMBER     ,
  p_spcl_rt_enrt_rt_id          in  NUMBER     ,
  p_enrt_bnft_id                in  NUMBER     ,
  p_prtt_rt_val_id              in  NUMBER     ,
  p_decr_bnft_prvdr_pool_id     in  NUMBER     ,
  p_cvg_amt_calc_mthd_id        in  NUMBER     ,
  p_actl_prem_id                in  NUMBER     ,
  p_comp_lvl_fctr_id            in  NUMBER     ,
  p_ptd_comp_lvl_fctr_id        in  NUMBER     ,
  p_clm_comp_lvl_fctr_id        in  NUMBER     ,
  p_business_group_id           in  NUMBER,
  p_perf_min_max_edit           in  VARCHAR2   ,
  p_iss_val                     in  number     ,
  p_val_last_upd_date           in  date       ,
  p_val_last_upd_person_id      in  number     ,
  p_pp_in_yr_used_num           in  number     ,
  p_ecr_attribute_category      in  VARCHAR2   ,
  p_ecr_attribute1              in  VARCHAR2   ,
  p_ecr_attribute2              in  VARCHAR2   ,
  p_ecr_attribute3              in  VARCHAR2   ,
  p_ecr_attribute4              in  VARCHAR2   ,
  p_ecr_attribute5              in  VARCHAR2   ,
  p_ecr_attribute6              in  VARCHAR2   ,
  p_ecr_attribute7              in  VARCHAR2   ,
  p_ecr_attribute8              in  VARCHAR2   ,
  p_ecr_attribute9              in  VARCHAR2   ,
  p_ecr_attribute10             in  VARCHAR2   ,
  p_ecr_attribute11             in  VARCHAR2   ,
  p_ecr_attribute12             in  VARCHAR2   ,
  p_ecr_attribute13             in  VARCHAR2   ,
  p_ecr_attribute14             in  VARCHAR2   ,
  p_ecr_attribute15             in  VARCHAR2   ,
  p_ecr_attribute16             in  VARCHAR2   ,
  p_ecr_attribute17             in  VARCHAR2   ,
  p_ecr_attribute18             in  VARCHAR2   ,
  p_ecr_attribute19             in  VARCHAR2   ,
  p_ecr_attribute20             in  VARCHAR2   ,
  p_ecr_attribute21             in  VARCHAR2   ,
  p_ecr_attribute22             in  VARCHAR2   ,
  p_ecr_attribute23             in  VARCHAR2   ,
  p_ecr_attribute24             in  VARCHAR2   ,
  p_ecr_attribute25             in  VARCHAR2   ,
  p_ecr_attribute26             in  VARCHAR2   ,
  p_ecr_attribute27             in  VARCHAR2   ,
  p_ecr_attribute28             in  VARCHAR2   ,
  p_ecr_attribute29             in  VARCHAR2   ,
  p_ecr_attribute30             in  VARCHAR2   ,
  p_request_id                  in  NUMBER     ,
  p_program_application_id      in  NUMBER     ,
  p_program_id                  in  NUMBER     ,
  p_program_update_date         in  DATE       ,
  p_effective_date              in  date
  ) is
  --
  l_object_version_number  number;
Line: 1137

        g_unrest_ecr_instance(i).mark_delete := 'Y';
Line: 1144

  ben_Enrollment_Rate_api.update_Enrollment_Rate
  (   p_enrt_rt_id              => p_enrt_rt_id
    , p_acty_typ_cd             =>p_acty_typ_cd
    , p_tx_typ_cd               =>p_tx_typ_cd
    , p_ctfn_rqd_flag           =>p_ctfn_rqd_flag
    , p_dflt_flag               =>p_dflt_flag
    , p_dflt_pndg_ctfn_flag     =>p_dflt_pndg_ctfn_flag
    , p_dsply_on_enrt_flag      =>p_dsply_on_enrt_flag
    , p_use_to_calc_net_flx_cr_flag =>p_use_to_calc_net_flx_cr_flag
    , p_entr_val_at_enrt_flag    =>p_entr_val_at_enrt_flag
    , p_asn_on_enrt_flag         =>p_asn_on_enrt_flag
    , p_rl_crs_only_flag         =>p_rl_crs_only_flag
    , p_dflt_val                 =>p_dflt_val
    , p_ann_val                  =>p_ann_val
    , p_ann_mn_elcn_val          =>p_ann_mn_elcn_val
    , p_ann_mx_elcn_val          =>p_ann_mx_elcn_val
    , p_val                      =>p_val
    , p_nnmntry_uom              =>p_nnmntry_uom
    , p_mx_elcn_val              =>p_mx_elcn_val
    , p_mn_elcn_val              =>p_mn_elcn_val
    , p_incrmt_elcn_val          =>p_incrmt_elcn_val
    , p_cmcd_acty_ref_perd_cd    =>p_cmcd_acty_ref_perd_cd
    , p_cmcd_mn_elcn_val         =>p_cmcd_mn_elcn_val
    , p_cmcd_mx_elcn_val         =>p_cmcd_mx_elcn_val
    , p_cmcd_val                 =>p_cmcd_val
    , p_cmcd_dflt_val            =>p_cmcd_dflt_val
    , p_rt_usg_cd                =>p_rt_usg_cd
    , p_ann_dflt_val             =>p_ann_dflt_val
    , p_bnft_rt_typ_cd           =>p_bnft_rt_typ_cd
    , p_rt_mlt_cd                =>p_rt_mlt_cd
    , p_dsply_mn_elcn_val        =>p_dsply_mn_elcn_val
    , p_dsply_mx_elcn_val        =>p_dsply_mx_elcn_val
    , p_entr_ann_val_flag        =>p_entr_ann_val_flag
    , p_rt_strt_dt               =>p_rt_strt_dt
    , p_rt_strt_dt_cd            =>p_rt_strt_dt_cd
    , p_rt_strt_dt_rl            =>p_rt_strt_dt_rl
    , p_rt_typ_cd                =>p_rt_typ_cd
    , p_elig_per_elctbl_chc_id   =>p_elig_per_elctbl_chc_id
    , p_acty_base_rt_id          =>p_acty_base_rt_id
    , p_spcl_rt_enrt_rt_id       =>p_spcl_rt_enrt_rt_id
    , p_enrt_bnft_id             =>p_enrt_bnft_id
    , p_prtt_rt_val_id           =>p_prtt_rt_val_id
    , p_decr_bnft_prvdr_pool_id  =>p_decr_bnft_prvdr_pool_id
    , p_cvg_amt_calc_mthd_id     =>p_cvg_amt_calc_mthd_id
    , p_actl_prem_id             =>p_actl_prem_id
    , p_comp_lvl_fctr_id         =>p_comp_lvl_fctr_id
    , p_ptd_comp_lvl_fctr_id     =>p_ptd_comp_lvl_fctr_id
    , p_clm_comp_lvl_fctr_id     =>p_clm_comp_lvl_fctr_id
    , p_business_group_id        =>p_business_group_id
    , p_request_id               =>p_request_id
    , p_program_application_id   =>p_program_application_id
    , p_program_id               =>p_program_id
    , p_program_update_date      =>p_program_update_date
    , p_effective_date           =>p_effective_date
    , p_pp_in_yr_used_num        =>p_pp_in_yr_used_num
    , p_ordr_num                 =>p_ordr_num
    , p_iss_val                  =>p_iss_val
    , p_object_version_number    => l_object_version_number
    );
Line: 1207

procedure update_elig_dpnt
  (p_elig_dpnt_id                   in  number
  ,p_create_dt                      in  date
  ,p_elig_strt_dt                   in  date
  ,p_elig_thru_dt                   in  date
  ,p_ovrdn_flag                     in  varchar2
  ,p_ovrdn_thru_dt                  in  date
  ,p_inelg_rsn_cd                   in  varchar2
  ,p_dpnt_inelig_flag               in  varchar2
  ,p_elig_per_elctbl_chc_id         in  number
  ,p_per_in_ler_id                  in  number
  ,p_elig_per_id                    in  number
  ,p_elig_per_opt_id                in  number
  ,p_elig_cvrd_dpnt_id              in  number
  ,p_dpnt_person_id                 in  number
  ,p_business_group_id              in  number
  ,p_egd_attribute_category         in  varchar2
  ,p_egd_attribute1                 in  varchar2
  ,p_egd_attribute2                 in  varchar2
  ,p_egd_attribute3                 in  varchar2
  ,p_egd_attribute4                 in  varchar2
  ,p_egd_attribute5                 in  varchar2
  ,p_egd_attribute6                 in  varchar2
  ,p_egd_attribute7                 in  varchar2
  ,p_egd_attribute8                 in  varchar2
  ,p_egd_attribute9                 in  varchar2
  ,p_egd_attribute10                in  varchar2
  ,p_egd_attribute11                in  varchar2
  ,p_egd_attribute12                in  varchar2
  ,p_egd_attribute13                in  varchar2
  ,p_egd_attribute14                in  varchar2
  ,p_egd_attribute15                in  varchar2
  ,p_egd_attribute16                in  varchar2
  ,p_egd_attribute17                in  varchar2
  ,p_egd_attribute18                in  varchar2
  ,p_egd_attribute19                in  varchar2
  ,p_egd_attribute20                in  varchar2
  ,p_egd_attribute21                in  varchar2
  ,p_egd_attribute22                in  varchar2
  ,p_egd_attribute23                in  varchar2
  ,p_egd_attribute24                in  varchar2
  ,p_egd_attribute25                in  varchar2
  ,p_egd_attribute26                in  varchar2
  ,p_egd_attribute27                in  varchar2
  ,p_egd_attribute28                in  varchar2
  ,p_egd_attribute29                in  varchar2
  ,p_egd_attribute30                in  varchar2
  ,p_request_id                     in  number
  ,p_program_application_id         in  number
  ,p_program_id                     in  number
  ,p_program_update_date            in  date
  ,p_object_version_number          in out nocopy number
  ,p_effective_date            in  date
  )  is
  --
  l_object_version_number  number;
Line: 1271

        g_unrest_egd_instance(i).mark_delete := 'Y';
Line: 1278

  ben_ELIG_DPNT_api.update_perf_ELIG_DPNT
                 (p_elig_dpnt_id           => p_elig_dpnt_id
                 ,p_create_dt              => p_create_dt
                 ,p_business_group_id      => p_business_group_id
                 ,p_elig_per_elctbl_chc_id => p_elig_per_elctbl_chc_id
                 ,p_dpnt_person_id         => p_dpnt_person_id
                 ,p_per_in_ler_id          => p_per_in_ler_id
                 ,p_elig_cvrd_dpnt_id      => p_elig_cvrd_dpnt_id
                 ,p_elig_strt_dt           => p_elig_strt_dt
                 ,p_elig_thru_dt           => p_elig_thru_dt
                 ,p_elig_per_id            => p_elig_per_id
                 ,p_elig_per_opt_id        => p_elig_per_opt_id
                 ,p_ovrdn_flag             => p_ovrdn_flag
                 ,p_ovrdn_thru_dt          => p_ovrdn_thru_dt
                 ,p_object_version_number  => l_object_version_number
                 ,p_effective_date         => p_effective_date
                 ,p_program_application_id => p_program_application_id
                 ,p_program_id             => p_program_id
                 ,p_request_id             => p_request_id
                 ,p_program_update_date    => p_program_update_date
                 );
Line: 1304

procedure update_enrt_prem
 ( p_enrt_prem_id                   in  number
  ,p_val                            in  number
  ,p_uom                            in  varchar2
  ,p_elig_per_elctbl_chc_id         in  number
  ,p_enrt_bnft_id                   in  number
  ,p_actl_prem_id                   in  number
  ,p_business_group_id              in  number
  ,p_epr_attribute_category         in  varchar2
  ,p_epr_attribute1                 in  varchar2
  ,p_epr_attribute2                 in  varchar2
  ,p_epr_attribute3                 in  varchar2
  ,p_epr_attribute4                 in  varchar2
  ,p_epr_attribute5                 in  varchar2
  ,p_epr_attribute6                 in  varchar2
  ,p_epr_attribute7                 in  varchar2
  ,p_epr_attribute8                 in  varchar2
  ,p_epr_attribute9                 in  varchar2
  ,p_epr_attribute10                in  varchar2
  ,p_epr_attribute11                in  varchar2
  ,p_epr_attribute12                in  varchar2
  ,p_epr_attribute13                in  varchar2
  ,p_epr_attribute14                in  varchar2
  ,p_epr_attribute15                in  varchar2
  ,p_epr_attribute16                in  varchar2
  ,p_epr_attribute17                in  varchar2
  ,p_epr_attribute18                in  varchar2
  ,p_epr_attribute19                in  varchar2
  ,p_epr_attribute20                in  varchar2
  ,p_epr_attribute21                in  varchar2
  ,p_epr_attribute22                in  varchar2
  ,p_epr_attribute23                in  varchar2
  ,p_epr_attribute24                in  varchar2
  ,p_epr_attribute25                in  varchar2
  ,p_epr_attribute26                in  varchar2
  ,p_epr_attribute27                in  varchar2
  ,p_epr_attribute28                in  varchar2
  ,p_epr_attribute29                in  varchar2
  ,p_epr_attribute30                in  varchar2
  ,p_object_version_number          in out nocopy number
  ,p_request_id                     in  number
  ,p_program_application_id         in  number
  ,p_program_id                     in  number
  ,p_program_update_date            in  date
  ) is
  --
  l_object_version_number   number;
Line: 1359

        g_unrest_epr_instance(i).mark_delete := 'Y';
Line: 1368

  update ben_enrt_prem set val = p_val, uom=p_uom
    where enrt_prem_id = p_enrt_prem_id;
Line: 1371

  ben_enrt_prem_api.update_enrt_prem
    (p_enrt_prem_id                  => p_enrt_prem_id
    ,p_val                           => p_val
    ,p_uom                           => p_uom
    ,p_elig_per_elctbl_chc_id        => p_elig_per_elctbl_chc_id
    ,p_enrt_bnft_id                  => p_enrt_bnft_id
    ,p_actl_prem_id                  => p_actl_prem_id
    ,p_business_group_id             => p_business_group_id
    ,p_epr_attribute_category        => p_epr_attribute_category
    ,p_epr_attribute1                => p_epr_attribute1
    ,p_epr_attribute2                => p_epr_attribute2
    ,p_epr_attribute3                => p_epr_attribute3
    ,p_epr_attribute4                => p_epr_attribute4
    ,p_epr_attribute5                => p_epr_attribute5
    ,p_epr_attribute6                => p_epr_attribute6
    ,p_epr_attribute7                => p_epr_attribute7
    ,p_epr_attribute8                => p_epr_attribute8
    ,p_epr_attribute9                => p_epr_attribute9
    ,p_epr_attribute10               => p_epr_attribute10
    ,p_epr_attribute11               => p_epr_attribute11
    ,p_epr_attribute12               => p_epr_attribute12
    ,p_epr_attribute13               => p_epr_attribute13
    ,p_epr_attribute14               => p_epr_attribute14
    ,p_epr_attribute15               => p_epr_attribute15
    ,p_epr_attribute16               => p_epr_attribute16
    ,p_epr_attribute17               => p_epr_attribute17
    ,p_epr_attribute18               => p_epr_attribute18
    ,p_epr_attribute19               => p_epr_attribute19
    ,p_epr_attribute20               => p_epr_attribute20
    ,p_epr_attribute21               => p_epr_attribute21
    ,p_epr_attribute22               => p_epr_attribute22
    ,p_epr_attribute23               => p_epr_attribute23
    ,p_epr_attribute24               => p_epr_attribute24
    ,p_epr_attribute25               => p_epr_attribute25
    ,p_epr_attribute26               => p_epr_attribute26
    ,p_epr_attribute27               => p_epr_attribute27
    ,p_epr_attribute28               => p_epr_attribute28
    ,p_epr_attribute29               => p_epr_attribute29
    ,p_epr_attribute30               => p_epr_attribute30
    ,p_object_version_number         => l_object_version_number
    ,p_request_id                    => p_request_id
    ,p_program_application_id        => p_program_application_id
    ,p_program_id                    => p_program_id
    ,p_program_update_date           => p_program_update_date
    );
Line: 1708

procedure update_enrt_ctfn
(  p_elctbl_chc_ctfn_id             in  number
  ,p_enrt_ctfn_typ_cd               in  varchar2
  ,p_rqd_flag                       in  varchar2
  ,p_elig_per_elctbl_chc_id         in  number
  ,p_enrt_bnft_id                   in  number
  ,p_business_group_id              in  number
  ,p_ecc_attribute_category         in  varchar2
  ,p_ecc_attribute1                 in  varchar2
  ,p_ecc_attribute2                 in  varchar2
  ,p_ecc_attribute3                 in  varchar2
  ,p_ecc_attribute4                 in  varchar2
  ,p_ecc_attribute5                 in  varchar2
  ,p_ecc_attribute6                 in  varchar2
  ,p_ecc_attribute7                 in  varchar2
  ,p_ecc_attribute8                 in  varchar2
  ,p_ecc_attribute9                 in  varchar2
  ,p_ecc_attribute10                in  varchar2
  ,p_ecc_attribute11                in  varchar2
  ,p_ecc_attribute12                in  varchar2
  ,p_ecc_attribute13                in  varchar2
  ,p_ecc_attribute14                in  varchar2
  ,p_ecc_attribute15                in  varchar2
  ,p_ecc_attribute16                in  varchar2
  ,p_ecc_attribute17                in  varchar2
  ,p_ecc_attribute18                in  varchar2
  ,p_ecc_attribute19                in  varchar2
  ,p_ecc_attribute20                in  varchar2
  ,p_ecc_attribute21                in  varchar2
  ,p_ecc_attribute22                in  varchar2
  ,p_ecc_attribute23                in  varchar2
  ,p_ecc_attribute24                in  varchar2
  ,p_ecc_attribute25                in  varchar2
  ,p_ecc_attribute26                in  varchar2
  ,p_ecc_attribute27                in  varchar2
  ,p_ecc_attribute28                in  varchar2
  ,p_ecc_attribute29                in  varchar2
  ,p_ecc_attribute30                in  varchar2
  ,p_susp_if_ctfn_not_prvd_flag     in  varchar2
  ,p_ctfn_determine_cd              in  varchar2
  ,p_request_id                     in  number
  ,p_program_application_id         in  number
  ,p_program_id                     in  number
  ,p_program_update_date            in  date
  ,p_object_version_number          in out nocopy number
  ,p_effective_date            in  date
  ) is
  --
  l_object_version_number   number;
Line: 1765

        g_unrest_ecc_instance(i).mark_delete := 'Y';
Line: 1772

   ben_ELTBL_CHC_CTFN_api.update_ELTBL_CHC_CTFN
    (p_elctbl_chc_ctfn_id            => p_elctbl_chc_ctfn_id
    ,p_enrt_ctfn_typ_cd              => p_enrt_ctfn_typ_cd
    ,p_rqd_flag                      => p_rqd_flag
    ,p_elig_per_elctbl_chc_id        => p_elig_per_elctbl_chc_id
    ,p_enrt_bnft_id                  => p_enrt_bnft_id
    ,p_business_group_id             => p_business_group_id
    ,p_ecc_attribute_category        => p_ecc_attribute_category
    ,p_ecc_attribute1                => p_ecc_attribute1
    ,p_ecc_attribute2                => p_ecc_attribute2
    ,p_ecc_attribute3                => p_ecc_attribute3
    ,p_ecc_attribute4                => p_ecc_attribute4
    ,p_ecc_attribute5                => p_ecc_attribute5
    ,p_ecc_attribute6                => p_ecc_attribute6
    ,p_ecc_attribute7                => p_ecc_attribute7
    ,p_ecc_attribute8                => p_ecc_attribute8
    ,p_ecc_attribute9                => p_ecc_attribute9
    ,p_ecc_attribute10               => p_ecc_attribute10
    ,p_ecc_attribute11               => p_ecc_attribute11
    ,p_ecc_attribute12               => p_ecc_attribute12
    ,p_ecc_attribute13               => p_ecc_attribute13
    ,p_ecc_attribute14               => p_ecc_attribute14
    ,p_ecc_attribute15               => p_ecc_attribute15
    ,p_ecc_attribute16               => p_ecc_attribute16
    ,p_ecc_attribute17               => p_ecc_attribute17
    ,p_ecc_attribute18               => p_ecc_attribute18
    ,p_ecc_attribute19               => p_ecc_attribute19
    ,p_ecc_attribute20               => p_ecc_attribute20
    ,p_ecc_attribute21               => p_ecc_attribute21
    ,p_ecc_attribute22               => p_ecc_attribute22
    ,p_ecc_attribute23               => p_ecc_attribute23
    ,p_ecc_attribute24               => p_ecc_attribute24
    ,p_ecc_attribute25               => p_ecc_attribute25
    ,p_ecc_attribute26               => p_ecc_attribute26
    ,p_ecc_attribute27               => p_ecc_attribute27
    ,p_ecc_attribute28               => p_ecc_attribute28
    ,p_ecc_attribute29               => p_ecc_attribute29
    ,p_ecc_attribute30               => p_ecc_attribute30
    ,p_susp_if_ctfn_not_prvd_flag    => p_susp_if_ctfn_not_prvd_flag
    ,p_ctfn_determine_cd             => p_ctfn_determine_cd
    ,p_request_id                    => p_request_id
    ,p_program_application_id        => p_program_application_id
    ,p_program_id                    => p_program_id
    ,p_program_update_date           => p_program_update_date
    ,p_object_version_number         => l_object_version_number
    ,p_effective_date                => trunc(p_effective_date)
    );
Line: 1831

      if g_unrest_ecr_instance(i).mark_delete is null then
        --
        delete from ben_enrt_rt where enrt_rt_id = g_unrest_ecr_instance(i).enrt_rt_id;
Line: 1845

      if g_unrest_epr_instance(i).mark_delete is null then
        --
        delete from ben_enrt_prem where enrt_prem_id = g_unrest_epr_instance(i).enrt_prem_id;
Line: 1859

      if g_unrest_ecc_instance(i).mark_delete is null then
        --
        delete from ben_elctbl_chc_ctfn where elctbl_chc_ctfn_id =
                       g_unrest_ecc_instance(i).elctbl_chc_ctfn_id;
Line: 1874

      if g_unrest_enb_instance(i).mark_delete is null then
        --
        delete from ben_enrt_bnft where enrt_bnft_id = g_unrest_enb_instance(i).enrt_bnft_id;
Line: 1888

      if g_unrest_egd_instance(i).mark_delete is null then
        --
        delete from ben_elig_dpnt where elig_dpnt_id = g_unrest_egd_instance(i).elig_dpnt_id;
Line: 1902

      if g_unrest_epe_instance(i).mark_delete is null then
        --
        hr_utility.set_location ('Delete Elig Id '||g_unrest_epe_instance(i).elig_per_elctbl_chc_id,11);
Line: 1905

        delete from ben_elig_per_elctbl_chc where elig_per_elctbl_chc_id =
               g_unrest_epe_instance(i).elig_per_elctbl_chc_id;
Line: 1914

   g_unrest_epe_instance.delete;
Line: 1915

   g_unrest_enb_instance.delete;
Line: 1916

   g_unrest_ecr_instance.delete;
Line: 1917

   g_unrest_egd_instance.delete;
Line: 1918

   g_unrest_ecc_instance.delete;
Line: 1919

   g_unrest_epr_instance.delete;
Line: 1934

      if g_unrest_epe_instance(i).mark_delete is null
       and g_unrest_epe_instance(i).comp_lvl_cd in ('OIPL','PLAN') then
      -- and g_unrest_epe_instance(i).elctbl_flag = 'Y' -- bug 4761065 : Need to delete epe regardless whether its elctbl_flag is Y/N .
        --
        hr_utility.set_location ('Delete Elig Id in clear_epe '||g_unrest_epe_instance(i).elig_per_elctbl_chc_id,11);
Line: 1939

        delete from ben_elig_per_elctbl_chc where elig_per_elctbl_chc_id =
               g_unrest_epe_instance(i).elig_per_elctbl_chc_id;
Line: 1972

      SELECT   new_pep.elig_per_id, new_pep.object_version_number,
               MIN (old_pep.effective_start_date) - 1 end_date
          FROM ben_elig_per_f new_pep, ben_elig_per_f old_pep
         WHERE new_pep.person_id = p_person_id
           AND old_pep.person_id = new_pep.person_id
           AND new_pep.per_in_ler_id = p_per_in_ler_id
           AND old_pep.per_in_ler_id = new_pep.per_in_ler_id
           AND (   (    NVL (new_pep.pgm_id, -1) = NVL (old_pep.pgm_id, -2)
                    AND new_pep.pl_id IS NULL
                    AND new_pep.plip_id IS NULL
                    AND new_pep.ptip_id IS NULL
                    AND old_pep.pl_id IS NULL
                    AND old_pep.plip_id IS NULL
                    AND old_pep.ptip_id IS NULL
                   )
                OR (    NVL (old_pep.pl_id, -1) = NVL (new_pep.pl_id, -2)
                    -- added bug 5658405
                    AND NVL (new_pep.pgm_id, -1) = NVL (old_pep.pgm_id, -1)
                   )
                OR NVL (old_pep.plip_id, -1) = NVL (new_pep.plip_id, -2)
                OR NVL (old_pep.ptip_id, -1) = NVL (new_pep.ptip_id, -2)
               )
           AND old_pep.effective_start_date > p_effective_date
           AND old_pep.effective_start_date > new_pep.effective_start_date
           AND new_pep.effective_start_date = p_effective_date
           AND new_pep.effective_end_date = hr_api.g_eot
      GROUP BY new_pep.elig_per_id, new_pep.object_version_number;
Line: 2009

      SELECT new_epo.elig_per_opt_id, new_epo.object_version_number,
             effective_start_date, effective_end_date
        FROM ben_elig_per_opt_f new_epo
       WHERE new_epo.elig_per_id = v_elig_per_id
              -- bug 5658405
              -- AND new_epo.per_in_ler_id = p_per_in_ler_id
         -- AND new_epo.effective_start_date = p_effective_date
              -- AND new_epo.effective_end_date = hr_api.g_eot;
Line: 2023

      SELECT future_epo.elig_per_opt_id, future_epo.object_version_number
        FROM ben_elig_per_opt_f future_epo
       WHERE elig_per_id = v_elig_per_id AND effective_end_date > v_end_date;
Line: 2081

         ben_elig_person_option_api.delete_elig_person_option
                      (p_elig_per_opt_id            => l_epo.elig_per_opt_id,
                       p_object_version_number      => l_epo.object_version_number,
                       p_effective_start_date       => l_effective_start_date,
                       p_effective_end_date         => l_effective_end_date,
                       p_effective_date             => l_pep.end_date,
                       p_datetrack_mode             => 'DELETE'
                      );
Line: 2103

         hr_utility.set_location (   'End-dating elig_per_opt_id  update'
                                  || future_epo_rec.elig_per_opt_id
                                  || ' to '
                                  || l_pep.end_date,
                                  9909
                                 );
Line: 2110

         UPDATE ben_elig_per_opt_f
		-- updating the elig_per_opt_f
		-- as these cant be end dated using api.
            SET effective_end_date = l_pep.end_date
          WHERE elig_per_opt_id = future_epo_rec.elig_per_opt_id
            AND object_version_number = future_epo_rec.object_version_number;
Line: 2143

      ben_eligible_person_api.delete_eligible_person
                      (p_elig_per_id                => l_pep.elig_per_id,
                       p_object_version_number      => l_pep.object_version_number,
                       p_effective_date             => l_pep.end_date,
                       p_effective_start_date       => l_effective_start_date,
                       p_effective_end_date         => l_effective_end_date,
                       p_datetrack_mode             => 'DELETE'
                      );