DBA Data[Home] [Help]

APPS.HR_APPLICANT_API SQL Statements

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

Line: 16

    SELECT asg.assignment_id
          ,asg.object_version_number
      FROM per_assignments_f asg
     WHERE asg.person_id             = csr_future_asgs.p_person_id
       AND asg.effective_start_date >= csr_future_asgs.p_effective_date;
Line: 194

  ,p_resume_last_updated          in     date     --default null
  ,p_student_status               in     varchar2 --default null
  ,p_work_schedule                in     varchar2 --default null
  ,p_suffix                       in     varchar2 --default null
  ,p_date_of_death                in     date     --default null
  ,p_benefit_group_id             in     number   --default null
  ,p_receipt_of_death_cert_date   in     date     --default null
  ,p_coord_ben_med_pln_no         in     varchar2 --default null
  ,p_coord_ben_no_cvg_flag        in     varchar2 --default 'N'
  ,p_uses_tobacco_flag            in     varchar2 --default null
  ,p_dpdnt_adoption_date          in     date     --default null
  ,p_dpdnt_vlntry_svce_flag       in     varchar2 --default 'N'
  ,p_original_date_of_hire        in     date     --default null
  ,p_town_of_birth                in     varchar2 --default null
  ,p_region_of_birth              in     varchar2 --default null
  ,p_country_of_birth             in     varchar2 --default null
  ,p_global_person_id             in     varchar2 --default null
  ,p_party_id                     in     number   --default null
  ,p_vacancy_id                   in     number  -- Added for bug 3680947.
  ,p_person_id                       out nocopy number
  ,p_assignment_id                   out nocopy number
  ,p_application_id                  out nocopy number
  ,p_per_object_version_number       out nocopy number
  ,p_asg_object_version_number       out nocopy number
  ,p_apl_object_version_number       out nocopy number
  ,p_per_effective_start_date        out nocopy date
  ,p_per_effective_end_date          out nocopy date
  ,p_full_name                       out nocopy varchar2
  ,p_per_comment_id                  out nocopy number
  ,p_assignment_sequence             out nocopy number
  ,p_name_combination_warning        out nocopy boolean
  ,p_orig_hire_warning               out nocopy boolean
  ) is
  --
  -- Declare cursors and local variables
  --
  l_proc                        varchar2(72) := g_package||'create_applicant';
Line: 238

  l_resume_last_updated         per_all_people_f.resume_last_updated%TYPE;
Line: 286

  l_resume_last_updated         := trunc(p_resume_last_updated);
Line: 407

      ,p_resume_last_updated           => l_resume_last_updated
      ,p_student_status                => p_student_status
      ,p_work_schedule                 => p_work_schedule
      ,p_suffix                        => p_suffix
      ,p_date_of_death                 => l_date_of_death
      ,p_benefit_group_id              => p_benefit_group_id
      ,p_receipt_of_death_cert_date    => l_receipt_of_death_cert_date
      ,p_coord_ben_med_pln_no          => p_coord_ben_med_pln_no
      ,p_coord_ben_no_cvg_flag         => p_coord_ben_no_cvg_flag
      ,p_uses_tobacco_flag             => p_uses_tobacco_flag
      ,p_dpdnt_adoption_date           => l_dpdnt_adoption_date
      ,p_dpdnt_vlntry_svce_flag        => p_dpdnt_vlntry_svce_flag
      ,p_original_date_of_hire         => l_original_date_of_hire
         ,p_town_of_birth                 => p_town_of_birth
         ,p_region_of_birth               => p_region_of_birth
         ,p_country_of_birth              => p_country_of_birth
         ,p_global_person_id              => p_global_person_id
         ,p_party_id                      => p_party_id
         ,p_vacancy_id                    => p_vacancy_id
      );
Line: 545

              ,p_resume_last_updated          => l_resume_last_updated
              ,p_student_status               => p_student_status
              ,p_work_schedule                => p_work_schedule
              ,p_suffix                       => p_suffix
              ,p_date_of_death                => l_date_of_death
              ,p_benefit_group_id             => p_benefit_group_id
              ,p_receipt_of_death_cert_date   => l_receipt_of_death_cert_date
              ,p_coord_ben_med_pln_no         => p_coord_ben_med_pln_no
              ,p_coord_ben_no_cvg_flag        => p_coord_ben_no_cvg_flag
              ,p_uses_tobacco_flag            => p_uses_tobacco_flag
              ,p_dpdnt_adoption_date          => l_dpdnt_adoption_date
              ,p_dpdnt_vlntry_svce_flag       => p_dpdnt_vlntry_svce_flag
              ,p_original_date_of_hire        => p_original_date_of_hire
                 ,p_town_of_birth                => p_town_of_birth
                 ,p_region_of_birth              => p_region_of_birth
                 ,p_country_of_birth             => p_country_of_birth
                 ,p_global_person_id             => p_global_person_id
                 ,p_party_id                     => p_party_id
              ,p_npw_number                   => l_npw_number
              ,p_object_version_number        => p_per_object_version_number
              ,p_effective_date               => l_date_received
              ,p_name_combination_warning     => l_name_combination_warning
              ,p_dob_null_warning             => l_dob_null_warning
              ,p_orig_hire_warning            => l_orig_hire_warning
              );
Line: 734

      ,p_resume_last_updated           => l_resume_last_updated
      ,p_student_status                => p_student_status
      ,p_work_schedule                 => p_work_schedule
      ,p_suffix                        => p_suffix
      ,p_date_of_death                 => l_date_of_death
      ,p_benefit_group_id              => p_benefit_group_id
      ,p_receipt_of_death_cert_date    => l_receipt_of_death_cert_date
      ,p_coord_ben_med_pln_no          => p_coord_ben_med_pln_no
      ,p_coord_ben_no_cvg_flag         => p_coord_ben_no_cvg_flag
      ,p_uses_tobacco_flag             => p_uses_tobacco_flag
      ,p_dpdnt_adoption_date           => l_dpdnt_adoption_date
      ,p_dpdnt_vlntry_svce_flag        => p_dpdnt_vlntry_svce_flag
      ,p_original_date_of_hire         => l_original_date_of_hire
         ,p_town_of_birth                 => p_town_of_birth
         ,p_region_of_birth               => p_region_of_birth
         ,p_country_of_birth              => p_country_of_birth
         ,p_global_person_id              => p_global_person_id
         ,p_party_id                      => p_party_id
         ,p_vacancy_id                    => p_vacancy_id
      ,p_person_id                     => l_person_id
      ,p_assignment_id                 => l_assignment_id
      ,p_application_id                => l_application_id
      ,p_per_object_version_number     => l_per_object_version_number
      ,p_asg_object_version_number     => l_asg_object_version_number
      ,p_apl_object_version_number     => l_apl_object_version_number
      ,p_per_effective_start_date      => l_per_effective_start_date
      ,p_per_effective_end_date        => l_per_effective_end_date
      ,p_full_name                     => l_full_name
      ,p_per_comment_id                => l_per_comment_id
      ,p_assignment_sequence           => l_assignment_sequence
      ,p_name_combination_warning      => l_name_combination_warning
      ,p_orig_hire_warning             => l_orig_hire_warning
      );
Line: 790

  SELECT object_version_number
        INTO p_per_object_Version_number
        FROM per_all_people_f
        WHERE person_id = l_person_id
        And effective_start_Date = l_per_effective_start_date
        and effective_end_Date = l_per_effective_end_date;
Line: 951

  ,p_resume_last_updated           in     date     --default null
  ,p_student_status                in     varchar2 --default null
  ,p_work_schedule                 in     varchar2 --default null
  ,p_suffix                        in     varchar2 --default null
  ,p_date_of_death                in     date     --default null
  ,p_benefit_group_id             in     number   --default null
  ,p_receipt_of_death_cert_date   in     date     --default null
  ,p_coord_ben_med_pln_no         in     varchar2 --default null
  ,p_coord_ben_no_cvg_flag        in     varchar2 --default 'N'
  ,p_uses_tobacco_flag            in     varchar2 --default null
  ,p_dpdnt_adoption_date          in     date     --default null
  ,p_dpdnt_vlntry_svce_flag       in     varchar2 --default 'N'
  ,p_original_date_of_hire        in     date     --default null
  ,p_town_of_birth                in     varchar2 --default null
  ,p_region_of_birth              in     varchar2 --default null
  ,p_country_of_birth             in     varchar2 --default null
  ,p_global_person_id             in     varchar2 --default null
  ,p_party_id                     in     number --default null
  ,p_person_id                        out nocopy number
  ,p_assignment_id                    out nocopy number
  ,p_application_id                   out nocopy number
  ,p_per_object_version_number        out nocopy number
  ,p_asg_object_version_number        out nocopy number
  ,p_apl_object_version_number        out nocopy number
  ,p_per_effective_start_date         out nocopy date
  ,p_per_effective_end_date           out nocopy date
  ,p_full_name                        out nocopy varchar2
  ,p_per_comment_id                   out nocopy number
  ,p_assignment_sequence              out nocopy number
  ,p_name_combination_warning         out nocopy boolean
  ,p_orig_hire_warning                out nocopy boolean
  ) is
  --
  -- Declare cursors and local variables
  --
  l_proc                 varchar2(72) := g_package||'create_gb_applicant';
Line: 990

    select legislation_code
    from per_business_groups pbg
    where pbg.business_group_id = p_business_group_id;
Line: 1098

  ,p_resume_last_updated          => p_resume_last_updated
  ,p_student_status               => p_student_status
  ,p_work_schedule                => p_work_schedule
  ,p_suffix                       => p_suffix
  ,p_date_of_death                => p_date_of_death
  ,p_benefit_group_id             => p_benefit_group_id
  ,p_receipt_of_death_cert_date   => p_receipt_of_death_cert_date
  ,p_coord_ben_med_pln_no         => p_coord_ben_med_pln_no
  ,p_coord_ben_no_cvg_flag        => p_coord_ben_no_cvg_flag
  ,p_uses_tobacco_flag            => p_uses_tobacco_flag
  ,p_dpdnt_adoption_date          => p_dpdnt_adoption_date
  ,p_dpdnt_vlntry_svce_flag       => p_dpdnt_vlntry_svce_flag
  ,p_original_date_of_hire        => p_original_date_of_hire
  ,p_town_of_birth                 => p_town_of_birth
  ,p_region_of_birth               => p_region_of_birth
  ,p_country_of_birth              => p_country_of_birth
  ,p_global_person_id              => p_global_person_id
  ,p_party_id                      => p_party_id
  --
  ,p_person_id                    => p_person_id
  ,p_assignment_id                => p_assignment_id
  ,p_application_id               => p_application_id
  ,p_per_object_version_number    => p_per_object_version_number
  ,p_asg_object_version_number    => p_asg_object_version_number
  ,p_apl_object_version_number    => p_apl_object_version_number
  ,p_per_effective_start_date     => p_per_effective_start_date
  ,p_per_effective_end_date       => p_per_effective_end_date
  ,p_full_name                    => p_full_name
  ,p_per_comment_id               => p_per_comment_id
  ,p_assignment_sequence          => p_assignment_sequence
  ,p_name_combination_warning     => p_name_combination_warning
  ,p_orig_hire_warning            => p_orig_hire_warning
  );
Line: 1214

  ,p_resume_last_updated           in     date     --default null
  ,p_student_status                in     varchar2 --default null
  ,p_work_schedule                 in     varchar2 --default null
  ,p_suffix                        in     varchar2 --default null
  ,p_date_of_death                in     date     --default null
  ,p_benefit_group_id             in     number   --default null
  ,p_receipt_of_death_cert_date   in     date     --default null
  ,p_coord_ben_med_pln_no         in     varchar2 --default null
  ,p_coord_ben_no_cvg_flag        in     varchar2 --default 'N'
  ,p_uses_tobacco_flag            in     varchar2 --default null
  ,p_dpdnt_adoption_date          in     date     --default null
  ,p_dpdnt_vlntry_svce_flag       in     varchar2 --default 'N'
  ,p_original_date_of_hire        in     date     --default null
  ,p_town_of_birth                in     varchar2 --default null
  ,p_region_of_birth              in     varchar2 --default null
  ,p_country_of_birth             in     varchar2 --default null
  ,p_global_person_id             in     varchar2 --default null
  ,p_party_id                     in     number --default null
  ,p_person_id                        out nocopy number
  ,p_assignment_id                    out nocopy number
  ,p_application_id                   out nocopy number
  ,p_per_object_version_number        out nocopy number
  ,p_asg_object_version_number        out nocopy number
  ,p_apl_object_version_number        out nocopy number
  ,p_per_effective_start_date         out nocopy date
  ,p_per_effective_end_date           out nocopy date
  ,p_full_name                        out nocopy varchar2
  ,p_per_comment_id                   out nocopy number
  ,p_assignment_sequence              out nocopy number
  ,p_name_combination_warning         out nocopy boolean
  ,p_orig_hire_warning                out nocopy boolean
  )
is
  --
  -- Declare cursors and local variables
  --
  l_proc                 varchar2(72) := g_package||'create_us_applicant';
Line: 1254

    select legislation_code
    from per_business_groups pbg
    where pbg.business_group_id = p_business_group_id;
Line: 1363

  ,p_resume_last_updated          => p_resume_last_updated
  ,p_student_status               => p_student_status
  ,p_work_schedule                => p_work_schedule
  ,p_suffix                       => p_suffix
  ,p_date_of_death                => p_date_of_death
  ,p_benefit_group_id             => p_benefit_group_id
  ,p_receipt_of_death_cert_date   => p_receipt_of_death_cert_date
  ,p_coord_ben_med_pln_no         => p_coord_ben_med_pln_no
  ,p_coord_ben_no_cvg_flag        => p_coord_ben_no_cvg_flag
  ,p_uses_tobacco_flag            => p_uses_tobacco_flag
  ,p_dpdnt_adoption_date          => p_dpdnt_adoption_date
  ,p_dpdnt_vlntry_svce_flag       => p_dpdnt_vlntry_svce_flag
  ,p_original_date_of_hire        => p_original_date_of_hire
  ,p_town_of_birth                => p_town_of_birth
  ,p_region_of_birth              => p_region_of_birth
  ,p_country_of_birth             => p_country_of_birth
  ,p_global_person_id             => p_global_person_id
  ,p_party_id                     => p_party_id
  --
  ,p_person_id                    => p_person_id
  ,p_assignment_id                => p_assignment_id
  ,p_application_id               => p_application_id
  ,p_per_object_version_number    => p_per_object_version_number
  ,p_asg_object_version_number    => p_asg_object_version_number
  ,p_apl_object_version_number    => p_apl_object_version_number
  ,p_per_effective_start_date     => p_per_effective_start_date
  ,p_per_effective_end_date       => p_per_effective_end_date
  ,p_full_name                    => p_full_name
  ,p_per_comment_id               => p_per_comment_id
  ,p_assignment_sequence          => p_assignment_sequence
  ,p_name_combination_warning     => p_name_combination_warning
  ,p_orig_hire_warning            => p_orig_hire_warning
  );
Line: 1552

  l_payroll_id_updated         boolean;
Line: 1561

l_datetrack_mode  			varchar2(10):='UPDATE';
Line: 1564

  select final_process_date
  from  per_periods_of_service pps
  where pps.person_id  = p_person_id
  and pps.actual_termination_date = p_hire_date-1;
Line: 1582

    select date_of_birth
    from per_all_people_f ppf
    where ppf.person_id = p_person_id
    and l_business_group_id = ppf.business_group_id
    and p_hire_date between effective_start_date
            and nvl(effective_end_date,p_hire_date);
Line: 1590

    select hoi1.org_information12, hoi1.org_information13
    from hr_organization_information hoi1
    where l_business_group_id +0 = hoi1.organization_id
    and    hoi1.org_information_context = 'Business Group Information';
Line: 1599

    select 'x'
      from per_assignments_f asg
     where asg.person_id = p_person_id
--bug no 5105005
       and asg.effective_start_date > p_hire_date;
Line: 1607

    select ppt.system_person_type,
           per.business_group_id,
           bus.legislation_code,
           per.applicant_number,
           pap.application_id,
           pap.object_version_number,
           per.npw_number,
           per.original_date_of_hire   -- #2978566
      from per_all_people_f per,
           per_business_groups bus,
           per_person_types ppt,
           per_applications pap
     where per.person_type_id    = ppt.person_type_id
       and per.business_group_id = bus.business_group_id
       and per.person_id         = pap.person_id
       and per.person_id         = p_person_id
       and l_hire_date       between per.effective_start_date
                               and per.effective_end_date
       and l_hire_date       between pap.date_received
                               and nvl(pap.date_end,hr_api.g_eot);
Line: 1629

    select count(asg.assignment_id)
      from per_assignments_f asg,
           per_assignment_status_types pas
     where asg.assignment_status_type_id = pas.assignment_status_type_id
       and asg.person_id                 = p_person_id
       and pas.per_system_status         = 'ACCEPTED'
       and l_hire_date             between asg.effective_start_date
                                                   and asg.effective_end_date;
Line: 1639

    select per.person_id,
           pas.per_system_status
      from per_all_people_f per,
           per_assignments_f asg,
           per_assignment_status_types pas
     where asg.assignment_status_type_id = pas.assignment_status_type_id
       and per.person_id                 = asg.person_id
       and l_hire_date             between per.effective_start_date
                                       and per.effective_end_date
       and asg.assignment_id             = p_assignment_id
       and l_hire_date             between asg.effective_start_date
                                       and asg.effective_end_date;
Line: 1653

    select asg.assignment_id,
           asg.object_version_number
      from per_assignments_f asg,
           per_assignment_status_types pas
     where asg.assignment_status_type_id = pas.assignment_status_type_id
       and asg.person_id                 = p_person_id
       and l_hire_date             between asg.effective_start_date
                                       and asg.effective_end_date
       and pas.per_system_status        <> 'ACCEPTED'
       and asg.assignment_type          =  'A' --Fix for bug 2881076
     order by asg.assignment_id;
Line: 1666

    select asg.assignment_id,
           asg.object_version_number,
           asg.vacancy_id
      from per_assignments_f asg,
           per_assignment_status_types pas
     where asg.assignment_status_type_id = pas.assignment_status_type_id
       and asg.person_id                 = p_person_id
       and l_hire_date             between asg.effective_start_date
                                       and asg.effective_end_date
       and pas.per_system_status         = 'ACCEPTED'
	  and asg.assignment_type = 'A' --changed for bug 6501961
       order by asg.assignment_id;
Line: 1681

    select asg.assignment_id,
           asg.object_version_number,
           asg.vacancy_id
      from per_assignments_f asg,
           per_assignment_status_types pas
     where asg.assignment_status_type_id = pas.assignment_status_type_id
       and asg.person_id                 = p_person_id
       and l_hire_date             between asg.effective_start_date
                                       and asg.effective_end_date
       and pas.per_system_status         = 'ACCEPTED'
        and asg.assignment_id=p_assignment_id;
Line: 1694

    select asg.assignment_id,
           asg.object_version_number,
           asg.vacancy_id
      from per_assignments_f asg,
           per_assignment_status_types pas
     where asg.assignment_status_type_id = pas.assignment_status_type_id
       and asg.person_id                 = p_person_id
       and l_hire_date             between asg.effective_start_date
                                       and asg.effective_end_date
       and pas.per_system_status         = 'ACCEPTED'
        and  asg.assignment_id <> p_assignment_id
	   and asg.assignment_type = 'A' --changed for bug 6501961
       order by asg.assignment_id;
Line: 1710

  select 1
  from per_all_vacancies vac
  where vac.vacancy_id=p_vacancy_id
  and vac.number_of_openings <
    (select count(distinct assignment_id)
     from per_all_assignments_f asg
     where asg.vacancy_id=p_vacancy_id
     and asg.assignment_type='E');
Line: 1724

  select address_id, object_version_number
  from per_addresses
  where party_id=p_party_id
  and person_id is null;
Line: 1733

  select phone_id, object_version_number
  from per_phones
  where party_id=p_party_id
  and parent_id is null;
Line: 1742

  select previous_employer_id, object_version_number
  from per_previous_employers
  where party_id=p_party_id
  and person_id is null;
Line: 1751

  select qualification_id, object_version_number
  from per_qualifications
  where party_id=p_party_id
  and person_id is null;
Line: 1760

  select attendance_id, object_version_number
  from per_establishment_attendances
  where party_id=p_party_id
  and person_id is null;
Line: 1781

  select final_process_date
  from  per_periods_of_service pps
  where pps.person_id  = p_person_id
  and pps.actual_termination_date is not null
  and   pps.date_start < p_hire_date
  and nvl(pps.final_process_date,p_hire_date) >= p_hire_date;
Line: 1796

    select legislation_code
    from per_business_groups_perf pbg
        ,per_all_people_f    ppf
    where ppf.person_id = p_person_id
    and   pbg.business_group_id+0 = ppf.business_group_id;
Line: 1803

    SELECT per_information7
          FROM per_all_people_f
          WHERE person_id = p_person_id
          AND effective_start_date =
            (select max(effective_start_date)
             from per_all_people_f
             where person_id = p_person_id
          );
Line: 1816

    select soft_coding_keyflex_id,payroll_id
    from per_all_assignments_f asg
    where asg.assignment_id = crs_asg_id
 -- and asg.primary_flag = 'Y'
    and trunc(sysdate) between asg.effective_start_date
    and asg.effective_end_date;
Line: 1825

    select soft_coding_keyflex_id
    from hr_soft_coding_keyflex
    where rownum=1;
Line: 1838

  PROCEDURE update_salary_proposal(p_assignment_id number
                                 , p_effective_date date) IS

     l_pay_proposal_id           per_pay_proposals.pay_proposal_id%TYPE;
Line: 1858

        select pay_proposal_id, object_version_number, change_date
              ,PROPOSED_SALARY_N
          from per_pay_proposals
          where assignment_id = p_assignment_id
          order by change_date DESC;
Line: 1891

  END update_salary_proposal;
Line: 2318

    ,p_datetrack_mode             => 'DELETE'
    ,p_org_now_no_manager_warning => l_org_now_no_manager_warning
    );
Line: 2379

  ,p_datetrack_mode               => 'UPDATE'
  ,p_effective_start_date         => l_per_effective_start_date
  ,p_effective_end_date           => l_per_effective_end_date
  ,p_comment_id                   => l_comment_id
  ,p_current_applicant_flag       => l_current_applicant_flag
  ,p_current_emp_or_apl_flag      => l_current_emp_or_apl_flag
  ,p_current_employee_flag        => l_current_employee_flag
  ,p_full_name                    => l_full_name
  ,p_name_combination_warning     => l_name_combination_warning
  ,p_dob_null_warning             => p_assign_payroll_warning
  ,p_orig_hire_warning            => l_orig_hire_warning
  ,p_npw_number                   => l_npw_number
  ,p_original_date_of_hire        => l_original_date_of_hire
 );
Line: 2452

,p_datetrack_update_mode=> l_datetrack_mode
--bug no 5105005
  );
Line: 2571

         p_datetrack_mode               => 'UPDATE',
         p_assignment_status_type_id    => l_assignment_status_type_id,
         p_assignment_type              => 'E',
         p_primary_flag                 => l_primary_flag,
         p_period_of_service_id         => l_period_of_service_id,
         --
         p_effective_start_date         => l_effective_start_date,
         p_effective_end_date           => l_effective_end_date,
         p_business_group_id            => l_business_group_id,
         p_comment_id                   => l_comment_id,
         p_validation_start_date        => l_validation_start_date,
         p_validation_end_date          => l_validation_end_date,
         p_payroll_id_updated           => l_payroll_id_updated,
         p_other_manager_warning        => l_other_manager_warning,
         p_no_managers_warning          => l_no_managers_warning,
         p_org_now_no_manager_warning   => l_org_now_no_manager_warning,
         p_hourly_salaried_warning      => l_hourly_salaried_warning,
         p_soft_coding_keyflex_id       => l_soft_coding_keyflex_id  --Fix For Bug 5749371
        );
Line: 2648

                  update_salary_proposal(l_assignment_id, l_hire_date);
Line: 2708

     p_datetrack_mode               => 'UPDATE',
     p_assignment_status_type_id    => l_assignment_status_type_id,
     p_assignment_type              => 'E',
     p_primary_flag                 => l_primary_flag,
     p_period_of_service_id         => l_period_of_service_id,
     --
     p_effective_start_date         => l_effective_start_date,
     p_effective_end_date           => l_effective_end_date,
     p_business_group_id            => l_business_group_id,
     p_comment_id                   => l_comment_id,
     p_validation_start_date        => l_validation_start_date,
     p_validation_end_date          => l_validation_end_date,
     p_payroll_id_updated           => l_payroll_id_updated,
     p_other_manager_warning        => l_other_manager_warning,
     p_no_managers_warning          => l_no_managers_warning,
     p_org_now_no_manager_warning   => l_org_now_no_manager_warning,
     p_hourly_salaried_warning      => l_hourly_salaried_warning,
     p_soft_coding_keyflex_id       => l_soft_coding_keyflex_id  --Fix For Bug 5749371
    );
Line: 2784

    update_salary_proposal(l_assignment_id, l_hire_date);
Line: 2831

     p_datetrack_mode               => 'UPDATE',
     p_assignment_status_type_id    => l_assignment_status_type_id,
     p_assignment_type              => 'E',
     p_primary_flag                 => l_primary_flag,
     p_period_of_service_id         => l_period_of_service_id,
     --
     p_effective_start_date         => l_effective_start_date,
     p_effective_end_date           => l_effective_end_date,
     p_business_group_id            => l_business_group_id,
     p_comment_id                   => l_comment_id,
     p_validation_start_date        => l_validation_start_date,
     p_validation_end_date          => l_validation_end_date,
     p_payroll_id_updated           => l_payroll_id_updated,
     p_other_manager_warning        => l_other_manager_warning,
     p_no_managers_warning          => l_no_managers_warning,
     p_org_now_no_manager_warning   => l_org_now_no_manager_warning,
     p_hourly_salaried_warning      => l_hourly_salaried_warning
    );
Line: 2905

    update_salary_proposal(l_assignment_id, l_hire_date);
Line: 2926

  hr_assignment.update_assgn_context_value (l_business_group_id,
				   p_person_id,
				   l_assignment_id,
				   p_hire_date);
Line: 2931

  SELECT object_version_number
  INTO l_asg_object_Version_number
  FROM per_all_assignments_f
  WHERE business_group_id  = l_business_group_id
  and person_id = p_person_id
  and assignment_id = l_assignment_id
  and effective_start_Date = p_hire_date;
Line: 3191

  Select vacancy_id
  From per_all_assignments_f
  Where assignment_id = l_assg_id
  And p_effective_date between effective_start_date and effective_end_date;
Line: 3202

    SELECT apl.application_id
          ,apl.object_version_number
          ,per.business_group_id
          ,per.applicant_number
          ,per.employee_number
          ,pet.system_person_type
          ,per.npw_number
      FROM per_applications apl
          ,per_person_types pet
          ,per_people_f per
     WHERE p_effective_date BETWEEN apl.date_received
                                AND NVL(apl.date_end,p_effective_date)
       AND apl.person_id = per.person_id
       AND pet.person_type_id = per.person_type_id
       AND p_effective_date BETWEEN per.effective_start_date
                                AND per.effective_end_date
       AND per.person_id = p_person_id;
Line: 3226

    SELECT asg.assignment_id
          ,asg.object_version_number
          ,asg.effective_end_date     -- 3652025
          ,asg.assignment_status_type_id --7229710
      FROM per_all_assignments_f asg
     WHERE asg.person_id = p_person_id
       AND p_effective_date+1 BETWEEN asg.effective_start_date
                                AND asg.effective_end_date
       AND asg.assignment_type = 'A';
Line: 3240

    SELECT as2.assignment_id, as2.effective_start_date, as2.object_version_number
    FROM per_all_assignments_f as2
    WHERE as2.person_id     = cp_person_id
    AND as2.application_id  = cp_application_id
    AND as2.assignment_type = 'A'
    AND as2.effective_start_date > cp_effective_date
    AND not exists
    (select 'N'
       from per_all_assignments_f as1
      where as1.assignment_id = as2.assignment_id
        and as1.effective_start_date < as2.effective_start_date)
    ORDER BY as2.effective_start_date, as2.assignment_id ASC;
Line: 3254

        SELECT null
          FROM per_all_people_f
         WHERE person_id = cp_person_id
           AND (effective_start_date > cp_termination_date
                OR
                cp_termination_date between effective_start_date
                                        and effective_end_date)
         for update nowait;
Line: 3264

        SELECT null
          FROM per_person_type_usages_f ptu
              ,per_person_types         ppt
         WHERE person_id = cp_person_id
           AND (effective_start_date > cp_termination_date
                OR
                cp_termination_date between effective_start_date
                                        and effective_end_date)
           AND ptu.person_type_id = ppt.person_type_id
           AND ppt.system_person_type in ('APL','EX_APL')
         -- for update nowait;     for bug 6433245
Line: 3275

  	    for update of ptu.person_id nowait;
Line: 3393

    ,p_datetrack_mode           => hr_api.g_update
    ,p_person_id                => p_person_id
    ,p_object_version_number    => p_object_version_number
    ,p_validation_start_date    => l_validation_start_date
    ,p_validation_end_date      => l_validation_end_date
    );
Line: 3460

         ,p_datetrack_mode               => hr_api.g_delete
         ,p_effective_start_date         => l_effective_start_date
         ,p_effective_end_date           => l_effective_end_date
         ,p_business_group_id            => l_business_group_id
         ,p_validation_start_date        => l_validation_start_date
         ,p_validation_end_date          => l_validation_end_date
         ,p_org_now_no_manager_warning   => l_org_now_no_manager_warning
         );
Line: 3475

         ,p_datetrack_mode               => hr_api.g_delete
         ,p_effective_start_date         => l_effective_start_date
         ,p_effective_end_date           => l_effective_end_date
         ,p_business_group_id            => l_business_group_id
         ,p_validation_start_date        => l_validation_start_date
         ,p_validation_end_date          => l_validation_end_date
         ,p_org_now_no_manager_warning   => l_org_now_no_manager_warning
         );
Line: 3511

    delete from per_letter_request_lines plrl
    where plrl.assignment_id = l_assignment.assignment_id
    and   plrl.assignment_status_type_id = l_assignment.assignment_status_type_id
    and   exists
         (select null
          from per_letter_requests plr
          where plr.letter_request_id = plrl.letter_request_id
          and   plr.request_status = 'PENDING'
          and   plr.auto_or_manual = 'AUTO');
Line: 3575

  hr_applicant_internal.Update_PER_PTU_To_EX_APL
     (p_business_group_id         => l_application.business_group_id
     ,p_person_id                 => p_person_id
     ,p_effective_date            => l_effective_date+1 -- when becomes EX_APL
     ,p_person_type_id            => l_person_type_id
     ,p_per_effective_start_date  => l_effective_start_date
     ,p_per_effective_end_date    => l_effective_end_date
     );
Line: 3588

  UPDATE per_applications
    set date_end = l_effective_date
       ,termination_reason = p_termination_reason
   WHERE application_id = l_application.application_id;
Line: 3828

    SELECT pet.person_type_id
          ,pet.system_person_type
          ,per.effective_start_date
          ,per.effective_end_date
          ,per.applicant_number
          ,per.employee_number
          ,per.npw_number
          ,bus.business_group_id
          ,bus.legislation_code
      FROM per_people_f per
          ,per_business_groups bus
          ,per_person_types pet
     WHERE per.person_type_id      = pet.person_type_id
       AND per.business_group_id+0 = bus.business_group_id
       AND per.person_id           = csr_per_details.p_person_id
       AND csr_per_details.p_effective_date BETWEEN per.effective_start_date
                                                AND per.effective_end_date;
Line: 4052

    select application_id
    from per_applications
    where person_id = p_person_id
    and   date_received > p_effective_date
    order by date_received asc;
Line: 4059

    select application_id
    from per_applications
    where person_id = p_person_id
    and   date_received < p_effective_date
    and   nvl(date_end,hr_api.g_eot) >= p_effective_date;
Line: 4066

    select application_id
    from per_applications
    where person_id = p_person_id
    and   date_end = p_effective_date-1;
Line: 4177

      select   ppf.business_group_id
              ,ppf.employee_number
              ,ppf.npw_number
              ,ppt.system_person_type
      from     per_person_types ppt
              ,per_people_f ppf
      where   ppf.person_id = p_person_id
      and     ppt.person_type_id        = ppf.person_type_id
      and     ppt.business_group_id + 0 = ppf.business_group_id
      and     (l_effective_date
      between ppf.effective_start_date
      and     ppf.effective_end_date or ppf.effective_start_date > l_effective_date);