DBA Data[Home] [Help]

APPS.BEN_PL_BNF_CTFN_PRVDD_API SQL Statements

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

Line: 17

  select pen.prtt_enrt_rslt_id,
         plb.bnf_person_id,
	 plb.organization_id,                   -- Bug 5156111
         plb.pl_bnf_id,
         pea.prtt_enrt_actn_id,
         pea.actn_typ_id,
         pea.cmpltd_dt,
         pen.object_version_number rslt_ovn,
         pea.object_version_number
    from ben_prtt_enrt_rslt_f pen,
         ben_prtt_enrt_actn_f pea,
         ben_pl_bnf_f plb
   where pea.prtt_enrt_actn_id = p_prtt_enrt_actn_id
     and pea.pl_bnf_id         = plb.pl_bnf_id
     and plb.prtt_enrt_rslt_id = pen.prtt_enrt_rslt_id
     and pea.prtt_enrt_rslt_id = pen.prtt_enrt_rslt_id
     and pen.prtt_enrt_rslt_stat_cd is null
     and pea.business_group_id  = p_business_group_id
     and p_effective_date between pea.effective_start_date
                              and pea.effective_end_date
     and plb.business_group_id  = p_business_group_id
     and p_effective_date between plb.effective_start_date
                              and plb.effective_end_date
     and pen.business_group_id  = p_business_group_id
     and p_effective_date between pen.effective_start_date
                              and pen.effective_end_date;
Line: 135

  ,p_program_update_date            in  date      default null
  ,p_object_version_number          out nocopy number
  ,p_effective_date                 in  date
  ) is
  --
  -- Declare cursors and local variables
  --
  l_pl_bnf_ctfn_prvdd_id ben_pl_bnf_ctfn_prvdd_f.pl_bnf_ctfn_prvdd_id%TYPE;
Line: 152

     select pbn.prtt_enrt_rslt_id
     from   ben_pl_bnf_f pbn
     where  pbn.pl_bnf_id = p_pl_bnf_id
     and    pbn.business_group_id = p_business_group_id
     and    p_effective_date between
            pbn.effective_start_date and pbn.effective_end_date;
Line: 264

      ,p_program_update_date            =>  p_program_update_date
      ,p_effective_date                 => trunc(p_effective_date)
      );
Line: 324

    ,p_program_update_date           => p_program_update_date
    ,p_object_version_number         => l_object_version_number
    ,p_effective_date                => trunc(p_effective_date)
    );
Line: 378

      ,p_program_update_date            =>  p_program_update_date
      ,p_object_version_number          =>  l_object_version_number
      ,p_effective_date                      => trunc(p_effective_date)
      );
Line: 445

procedure update_PL_BNF_CTFN_PRVDD
  (p_validate                       in  boolean   default false
  ,p_pl_bnf_ctfn_prvdd_id           in  number
  ,p_effective_start_date           out nocopy date
  ,p_effective_end_date             out nocopy date
  ,p_bnf_ctfn_typ_cd                in  varchar2  default hr_api.g_varchar2
  ,p_bnf_ctfn_recd_dt               in  date      default hr_api.g_date
  ,p_bnf_ctfn_rqd_flag              in  varchar2  default hr_api.g_varchar2
  ,p_pl_bnf_id                      in  number    default hr_api.g_number
  ,p_prtt_enrt_actn_id              in  number    default hr_api.g_number
  ,p_business_group_id              in  number    default hr_api.g_number
  ,p_pbc_attribute_category         in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute1                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute2                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute3                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute4                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute5                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute6                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute7                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute8                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute9                 in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute10                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute11                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute12                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute13                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute14                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute15                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute16                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute17                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute18                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute19                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute20                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute21                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute22                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute23                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute24                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute25                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute26                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute27                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute28                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute29                in  varchar2  default hr_api.g_varchar2
  ,p_pbc_attribute30                in  varchar2  default hr_api.g_varchar2
  ,p_request_id                     in  number    default hr_api.g_number
  ,p_program_application_id         in  number    default hr_api.g_number
  ,p_program_id                     in  number    default hr_api.g_number
  ,p_program_update_date            in  date      default hr_api.g_date
  ,p_object_version_number          in out nocopy number
  ,p_effective_date                 in  date
  ,p_datetrack_mode                 in  varchar2
  ) is
  --
  -- Declare cursors and local variables
  --
  l_proc varchar2(72) := g_package||'update_PL_BNF_CTFN_PRVDD';
Line: 524

  savepoint update_PL_BNF_CTFN_PRVDD;
Line: 536

    ben_PL_BNF_CTFN_PRVDD_bk2.update_PL_BNF_CTFN_PRVDD_b
      (
       p_pl_bnf_ctfn_prvdd_id           =>  p_pl_bnf_ctfn_prvdd_id
      ,p_bnf_ctfn_typ_cd                =>  p_bnf_ctfn_typ_cd
      ,p_bnf_ctfn_recd_dt               =>  p_bnf_ctfn_recd_dt
      ,p_bnf_ctfn_rqd_flag              =>  p_bnf_ctfn_rqd_flag
      ,p_pl_bnf_id                      =>  p_pl_bnf_id
      ,p_prtt_enrt_actn_id              =>  p_prtt_enrt_actn_id
      ,p_business_group_id              =>  p_business_group_id
      ,p_pbc_attribute_category         =>  p_pbc_attribute_category
      ,p_pbc_attribute1                 =>  p_pbc_attribute1
      ,p_pbc_attribute2                 =>  p_pbc_attribute2
      ,p_pbc_attribute3                 =>  p_pbc_attribute3
      ,p_pbc_attribute4                 =>  p_pbc_attribute4
      ,p_pbc_attribute5                 =>  p_pbc_attribute5
      ,p_pbc_attribute6                 =>  p_pbc_attribute6
      ,p_pbc_attribute7                 =>  p_pbc_attribute7
      ,p_pbc_attribute8                 =>  p_pbc_attribute8
      ,p_pbc_attribute9                 =>  p_pbc_attribute9
      ,p_pbc_attribute10                =>  p_pbc_attribute10
      ,p_pbc_attribute11                =>  p_pbc_attribute11
      ,p_pbc_attribute12                =>  p_pbc_attribute12
      ,p_pbc_attribute13                =>  p_pbc_attribute13
      ,p_pbc_attribute14                =>  p_pbc_attribute14
      ,p_pbc_attribute15                =>  p_pbc_attribute15
      ,p_pbc_attribute16                =>  p_pbc_attribute16
      ,p_pbc_attribute17                =>  p_pbc_attribute17
      ,p_pbc_attribute18                =>  p_pbc_attribute18
      ,p_pbc_attribute19                =>  p_pbc_attribute19
      ,p_pbc_attribute20                =>  p_pbc_attribute20
      ,p_pbc_attribute21                =>  p_pbc_attribute21
      ,p_pbc_attribute22                =>  p_pbc_attribute22
      ,p_pbc_attribute23                =>  p_pbc_attribute23
      ,p_pbc_attribute24                =>  p_pbc_attribute24
      ,p_pbc_attribute25                =>  p_pbc_attribute25
      ,p_pbc_attribute26                =>  p_pbc_attribute26
      ,p_pbc_attribute27                =>  p_pbc_attribute27
      ,p_pbc_attribute28                =>  p_pbc_attribute28
      ,p_pbc_attribute29                =>  p_pbc_attribute29
      ,p_pbc_attribute30                =>  p_pbc_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_object_version_number          =>  p_object_version_number
      ,p_effective_date                 => trunc(p_effective_date)
      ,p_datetrack_mode                 => p_datetrack_mode
      );
Line: 587

        (p_module_name => 'UPDATE_PL_BNF_CTFN_PRVDD'
        ,p_hook_type   => 'BP'
        );
Line: 640

    ,p_program_update_date           => p_program_update_date
    ,p_object_version_number         => l_object_version_number
    ,p_effective_date                => trunc(p_effective_date)
    ,p_datetrack_mode                => p_datetrack_mode
    );
Line: 659

    ben_PL_BNF_CTFN_PRVDD_bk2.update_PL_BNF_CTFN_PRVDD_a
      (
       p_pl_bnf_ctfn_prvdd_id           =>  p_pl_bnf_ctfn_prvdd_id
      ,p_effective_start_date           =>  l_effective_start_date
      ,p_effective_end_date             =>  l_effective_end_date
      ,p_bnf_ctfn_typ_cd                =>  p_bnf_ctfn_typ_cd
      ,p_bnf_ctfn_recd_dt               =>  p_bnf_ctfn_recd_dt
      ,p_bnf_ctfn_rqd_flag              =>  p_bnf_ctfn_rqd_flag
      ,p_pl_bnf_id                      =>  p_pl_bnf_id
      ,p_prtt_enrt_actn_id              =>  p_prtt_enrt_actn_id
      ,p_business_group_id              =>  p_business_group_id
      ,p_pbc_attribute_category         =>  p_pbc_attribute_category
      ,p_pbc_attribute1                 =>  p_pbc_attribute1
      ,p_pbc_attribute2                 =>  p_pbc_attribute2
      ,p_pbc_attribute3                 =>  p_pbc_attribute3
      ,p_pbc_attribute4                 =>  p_pbc_attribute4
      ,p_pbc_attribute5                 =>  p_pbc_attribute5
      ,p_pbc_attribute6                 =>  p_pbc_attribute6
      ,p_pbc_attribute7                 =>  p_pbc_attribute7
      ,p_pbc_attribute8                 =>  p_pbc_attribute8
      ,p_pbc_attribute9                 =>  p_pbc_attribute9
      ,p_pbc_attribute10                =>  p_pbc_attribute10
      ,p_pbc_attribute11                =>  p_pbc_attribute11
      ,p_pbc_attribute12                =>  p_pbc_attribute12
      ,p_pbc_attribute13                =>  p_pbc_attribute13
      ,p_pbc_attribute14                =>  p_pbc_attribute14
      ,p_pbc_attribute15                =>  p_pbc_attribute15
      ,p_pbc_attribute16                =>  p_pbc_attribute16
      ,p_pbc_attribute17                =>  p_pbc_attribute17
      ,p_pbc_attribute18                =>  p_pbc_attribute18
      ,p_pbc_attribute19                =>  p_pbc_attribute19
      ,p_pbc_attribute20                =>  p_pbc_attribute20
      ,p_pbc_attribute21                =>  p_pbc_attribute21
      ,p_pbc_attribute22                =>  p_pbc_attribute22
      ,p_pbc_attribute23                =>  p_pbc_attribute23
      ,p_pbc_attribute24                =>  p_pbc_attribute24
      ,p_pbc_attribute25                =>  p_pbc_attribute25
      ,p_pbc_attribute26                =>  p_pbc_attribute26
      ,p_pbc_attribute27                =>  p_pbc_attribute27
      ,p_pbc_attribute28                =>  p_pbc_attribute28
      ,p_pbc_attribute29                =>  p_pbc_attribute29
      ,p_pbc_attribute30                =>  p_pbc_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_object_version_number          =>  l_object_version_number
      ,p_effective_date                     => trunc(p_effective_date)
      ,p_datetrack_mode                     => p_datetrack_mode
      );
Line: 712

        (p_module_name => 'UPDATE_PL_BNF_CTFN_PRVDD'
        ,p_hook_type   => 'AP'
        );
Line: 743

    ROLLBACK TO update_PL_BNF_CTFN_PRVDD;
Line: 757

    ROLLBACK TO update_PL_BNF_CTFN_PRVDD;
Line: 762

end update_PL_BNF_CTFN_PRVDD;
Line: 767

procedure delete_PL_BNF_CTFN_PRVDD
  (p_validate                       in  boolean  default false
  ,p_pl_bnf_ctfn_prvdd_id           in  number
  ,p_effective_start_date           out nocopy date
  ,p_effective_end_date             out nocopy date
  ,p_object_version_number          in out nocopy number
  ,p_business_group_id              in number
  ,p_effective_date                 in  date
  ,p_datetrack_mode                 in  varchar2
  ,p_check_actions                  in varchar2 default 'Y'
  ) is
  --
  -- Declare cursors and local variables
  --
  l_proc varchar2(72) := g_package||'delete_PL_BNF_CTFN_PRVDD';
Line: 796

      select prtt_enrt_actn_id
        from ben_pl_bnf_ctfn_prvdd_f
      where pl_bnf_ctfn_prvdd_id = p_pl_bnf_ctfn_prvdd_id
       and business_group_id = p_business_group_id
        and p_effective_date between effective_start_date
                                 and effective_end_date;
Line: 804

     select 'Y'
       from ben_pl_bnf_ctfn_prvdd_f
     where prtt_enrt_actn_id = l_prtt_enrt_actn_id
       and business_group_id = p_business_group_id
       and p_effective_date between effective_start_date
                                   and effective_end_date;
Line: 812

     select pea.object_version_number,
            pea.prtt_enrt_rslt_id,
            pen.object_version_number
       from ben_prtt_enrt_actn_f pea,
            ben_prtt_enrt_rslt_f pen
     where pea.prtt_enrt_actn_id = l_prtt_enrt_actn_id
       and pea.business_group_id = p_business_group_id
       and pen.prtt_enrt_rslt_stat_cd is null
       and p_effective_date between pea.effective_start_date
                                and pea.effective_end_date
       and pea.prtt_enrt_rslt_id = pen.prtt_enrt_rslt_id
       and p_effective_date between
           pen.effective_start_date and pen.effective_end_date;
Line: 847

  savepoint delete_PL_BNF_CTFN_PRVDD;
Line: 860

    ben_PL_BNF_CTFN_PRVDD_bk3.delete_PL_BNF_CTFN_PRVDD_b
      (
       p_pl_bnf_ctfn_prvdd_id           =>  p_pl_bnf_ctfn_prvdd_id
      ,p_object_version_number          =>  p_object_version_number
      ,p_effective_date                 => trunc(p_effective_date)
      ,p_datetrack_mode                 => p_datetrack_mode
      );
Line: 870

        (p_module_name => 'DELETE_PL_BNF_CTFN_PRVDD'
        ,p_hook_type   => 'BP'
        );
Line: 911

        ben_prtt_enrt_actn_api.delete_prtt_enrt_actn
          (p_validate              => p_validate,
           p_effective_date        => p_effective_date,
           p_business_group_id     => p_business_group_id,
           p_datetrack_mode        => p_datetrack_mode,
           p_object_version_number => l1_object_version_number,
           p_prtt_enrt_rslt_id     => l_prtt_enrt_rslt_id,
           p_rslt_object_version_number => l_rslt_object_version_number,
           p_post_rslt_flag        => 'N',
           p_unsuspend_enrt_flag   => 'Y',
           p_effective_start_date  => l1_effective_start_date,
           p_effective_end_date    => l1_effective_end_date,
           p_prtt_enrt_actn_id     => l_prtt_enrt_actn_id);
Line: 947

    ben_PL_BNF_CTFN_PRVDD_bk3.delete_PL_BNF_CTFN_PRVDD_a
      (
       p_pl_bnf_ctfn_prvdd_id           =>  p_pl_bnf_ctfn_prvdd_id
      ,p_effective_start_date           =>  l_effective_start_date
      ,p_effective_end_date             =>  l_effective_end_date
      ,p_object_version_number          =>  l_object_version_number
    ,p_effective_date                      => trunc(p_effective_date)
    ,p_datetrack_mode                      => p_datetrack_mode
      );
Line: 959

        (p_module_name => 'DELETE_PL_BNF_CTFN_PRVDD'
        ,p_hook_type   => 'AP'
        );
Line: 984

    ROLLBACK TO delete_PL_BNF_CTFN_PRVDD;
Line: 997

    ROLLBACK TO delete_PL_BNF_CTFN_PRVDD;
Line: 1002

end delete_PL_BNF_CTFN_PRVDD;