DBA Data[Home] [Help]

APPS.GHR_API SQL Statements

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

Line: 17

	select asg.position_id
	  from per_all_assignments_f asg
	 where asg.person_id = per_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date
	   and asg.primary_flag = 'Y';
Line: 26

	select asg.position_id
	  from per_all_assignments_f asg
	 where asg.assignment_id = asg_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date;
Line: 34

	select asg.job_id
	  from per_all_assignments_f asg
	 where asg.person_id = per_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date
	   and asg.primary_flag = 'Y';
Line: 43

	select asg.job_id
	  from per_all_assignments_f asg
	 where asg.assignment_id = asg_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date;
Line: 52

        Select ppt.system_person_type
        from   per_all_people_f per,per_person_types ppt
        where  per.person_id      =  per_id
        and    trunc(eff_date) between per.effective_start_date
                               and     per.effective_end_date
        and    per.person_type_id = ppt.person_type_id;
Line: 110

	select per.business_group_id
	  from per_all_people_f per
	 where per.person_id = per_id
	   and trunc(eff_date) between per.effective_start_date
				   and per.effective_end_date;
Line: 117

	select asg.business_group_id
	  from per_all_assignments_f asg
	 where asg.assignment_id = asg_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date;
Line: 261

	select oi.org_information1,
	       oi.org_information2,
	       oi.org_information3,
	       oi.org_information4,
	       oi.org_information5
	  from hr_organization_information oi
	 where oi.organization_id = org_id
	   and oi.org_information_context = 'GHR_US_ORG_INFORMATION';
Line: 431

	select pdf.segment1
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 438

	select pdf.segment2
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 445

	select pdf.segment3
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 452

	select pdf.segment4
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 459

	select pdf.segment5
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 466

	select pdf.segment6
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 473

	select pdf.segment7
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 480

	select pdf.segment8
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 487

	select pdf.segment9
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 494

	select pdf.segment10
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 501

	select pdf.segment11
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 508

	select pdf.segment12
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 515

	select pdf.segment13
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 522

	select pdf.segment14
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 529

	select pdf.segment15
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 536

	select pdf.segment16
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 543

	select pdf.segment17
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 550

	select pdf.segment18
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 557

	select pdf.segment19
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 564

	select pdf.segment20
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 571

	select pdf.segment21
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 578

	select pdf.segment22
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 585

	select pdf.segment23
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 592

	select pdf.segment24
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 599

	select pdf.segment25
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 606

	select pdf.segment26
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 613

	select pdf.segment27
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 620

	select pdf.segment28
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 627

	select pdf.segment29
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 634

	select pdf.segment30
	  from hr_all_positions_f pos, per_position_definitions pdf
	 where pos.position_definition_id = pdf.position_definition_id
	   and pos.position_id = pos_id
           and p_effective_date between pos.effective_start_date and pos.effective_end_date;
Line: 644

	select jdf.segment1
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 650

	select jdf.segment2
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 656

	select jdf.segment3
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 662

	select jdf.segment4
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 668

	select jdf.segment5
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 674

	select jdf.segment6
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 680

	select jdf.segment7
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 686

	select jdf.segment8
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 692

	select jdf.segment9
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 698

	select jdf.segment10
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 704

	select jdf.segment11
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 710

	select jdf.segment12
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 716

	select jdf.segment13
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 722

	select jdf.segment14
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 728

	select jdf.segment15
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 734

	select jdf.segment16
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 740

	select jdf.segment17
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 746

	select jdf.segment18
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 752

	select jdf.segment19
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 758

	select jdf.segment20
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 764

	select jdf.segment21
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 770

	select jdf.segment22
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 776

	select jdf.segment23
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 782

	select jdf.segment24
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 788

	select jdf.segment25
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 794

	select jdf.segment26
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 800

	select jdf.segment27
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 806

	select jdf.segment28
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 812

	select jdf.segment29
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 818

	select jdf.segment30
	  from per_jobs job, per_job_definitions jdf
	 where job.job_definition_id = jdf.job_definition_id
	   and job.job_id = p_job_id;
Line: 835

    l_select_string
	:= 'select pdf.' || p_information
	   || ' from per_positions pos, per_position_definitions pdf'
	   || ' where pos.position_definition_id = pdf.position_definition_id'
	   || ' and pos.position_id = ' || p_id;
Line: 841

    l_select_string
	:= 'select jdf.' || p_information
	   || ' from per_jobs job, per_job_definitions jdf'
	   || ' where job.job_definition_id = jdf.job_definition_id'
	   || ' and job.job_id = ' || p_id;
Line: 852

  DBMS_SQL.PARSE(l_cursor_id, l_select_string, DBMS_SQL.V7);
Line: 1673

	select elt.processing_type
	  from pay_element_types_f elt
	 where trunc(eff_date) between elt.effective_start_date
				   and elt.effective_end_date
	   and upper(elt.element_name) = upper(ele_name)
	  --Ashley
	   and (elt.business_group_id is null or elt.business_group_id = bg_id);
Line: 1686

	select eev.screen_entry_value screen_entry_value
	  from pay_element_types_f elt,
	       pay_input_values_f ipv,
	       pay_element_entries_f ele,
	       pay_element_entry_values_f eev
	 where trunc(eff_date) between elt.effective_start_date
				   and elt.effective_end_date
	   and trunc(eff_date) between ipv.effective_start_date
				   and ipv.effective_end_date
	   and trunc(eff_date) between ele.effective_start_date
				   and ele.effective_end_date
	   and trunc(eff_date) between eev.effective_start_date
				   and eev.effective_end_date
	   and elt.element_type_id = ipv.element_type_id
	   and upper(elt.element_name) = upper(ele_name)
	   and ipv.input_value_id = eev.input_value_id
	   and ele.assignment_id = asg_id
	   and ele.element_entry_id + 0 = eev.element_entry_id
	   and upper(ipv.name) = upper(input_name)
--	   and NVL(elt.business_group_id,0) = NVL(ipv.business_group_id,0)   --Ashley
	   and (elt.business_group_id is null or elt.business_group_id = bg_id);
Line: 1713

	select eev.screen_entry_value screen_entry_value
	  from pay_element_types_f elt,
	       pay_input_values_f ipv,
	       pay_element_entries_f ele,
	       pay_element_entry_values_f eev
	 where trunc(eff_date) between elt.effective_start_date
				   and elt.effective_end_date
	   and trunc(eff_date) between ipv.effective_start_date
				   and ipv.effective_end_date
	   and ele.effective_end_date =
			(select max(ele2.effective_end_date)
			   from pay_element_entries_f ele2
			  where ele2.element_entry_id = ele.element_entry_id)
	   and eev.effective_end_date =
			(select max(eev2.effective_end_date)
			   from pay_element_entries_f eev2
			  where eev2.element_entry_id = eev.element_entry_id)
	   and elt.element_type_id = ipv.element_type_id
	   and upper(elt.element_name) = upper(ele_name)
	   and ipv.input_value_id = eev.input_value_id
	   and ele.assignment_id = asg_id
	   and ele.element_entry_id + 0 = eev.element_entry_id
	   and upper(ipv.name) = upper(input_name)
--	   and NVL(elt.business_group_id,0) = NVL(ipv.business_group_id,0)   --Ashley
	   and (elt.business_group_id is null or elt.business_group_id = bg_id);
Line: 1741

       Select distinct business_group_id bg
       from  per_assignments_f
       where assignment_id = p_assignment_id
       and   p_eff_date between effective_start_date
             and effective_end_date;
Line: 2698

  l_update34_date       date;
Line: 2707

    select system_person_type
    from   per_all_people_f ppf,
           per_person_types ppt
    where  ppf.person_id      = p_person_id
    and    ppt.person_type_id = ppf.person_type_id;
Line: 2714

	select asg.assignment_id,
	       asg.organization_id,
	       asg.job_id,
	       asg.position_id,
	       asg.grade_id,
             asg.location_id
	  from per_all_assignments_f asg
	 where asg.person_id = per_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date
	   and asg.primary_flag = 'Y';
Line: 2728

   select asg.effective_end_date,asg.assignment_id,asg.organization_id,
               asg.job_id,
               asg.position_id,
               asg.grade_id,
             asg.location_id
          from per_all_assignments_f asg
         where asg.person_id = p_person_id
           and asg.assignment_type <> 'B'
           and asg.effective_start_date < p_effective_date
           and asg.primary_flag = 'Y'
          order by asg.effective_start_date desc;
Line: 2741

    SELECT asg.assignment_id,
           asg.organization_id,
           asg.job_id,
           asg.position_id,
           asg.grade_id,
           asg.location_id
    FROM   per_all_assignments_f asg
    WHERE  asg.person_id = p_per_id
    AND    asg.assignment_type <> 'B'
    AND    trunc(p_eff_date) BETWEEN asg.effective_start_date AND asg.effective_end_date
    ORDER BY asg.assignment_id;
Line: 2754

	select asg.organization_id,
	       asg.job_id,
	       asg.position_id,
	       asg.grade_id,
             asg.location_id
	  from per_all_assignments_f asg
	 where asg.assignment_id = asg_id
           and asg.assignment_type <> 'B'
	   and trunc(eff_date) between asg.effective_start_date
				   and asg.effective_end_date;
Line: 2767

	select gdf.segment1,
	       gdf.segment2
	  from per_grades grd,
	       per_grade_definitions gdf
	 where grd.grade_id = grd_id
	   and grd.grade_definition_id = gdf.grade_definition_id;
Line: 2775

	select aei.aei_information3,
	       aei.aei_information6
	  from per_assignment_extra_info aei
	 where aei.assignment_id = asg_id
	   and aei.information_type = 'GHR_US_ASG_SF52';
Line: 2782

	select poi.poei_information6
	  from per_position_extra_info poi
	 where poi.position_id = pos_id
	   and poi.information_type = 'GHR_US_POS_VALID_GRADE';
Line: 2789

	select oi.org_information5,
	       oi.org_information6,
	       oi.org_information7,
	       oi.org_information8,
	       oi.org_information9,
             oi.org_information10
	  from hr_organization_information oi
	 where oi.organization_id = org_id
	   and oi.org_information_context = 'GHR_US_ORG_REPORTING_INFO';
Line: 2806

     select job_id, business_group_id
     from   ghr_assignments_h_v
     where  pa_request_id =
           (select min(pa_request_id)
            from   ghr_pa_requests
            connect by pa_request_id  = prior altered_pa_request_id
            start with  pa_request_id = p_altered_pa_request_id
            and nature_of_action_id   = p_noa_id_corrected
             );
Line: 2820

     select job_id, business_group_id
     from   ghr_assignments_h_v
     where  pa_request_id =
           (select min(pa_request_id)
            from   ghr_pa_requests
            connect by pa_request_id  = prior altered_pa_request_id
            start with  pa_request_id = p_altered_pa_request_id
             );
Line: 2831

    select      min(pa_request_id) pa_request_id
                from            ghr_pa_requests
                connect by      pa_request_id = prior altered_pa_request_id
                start with      pa_request_id = p_altered_pa_request_id;
Line: 2837

    Select par.employee_assignment_id,
          par.from_adj_basic_pay,
          par.from_basic_pay,
          par.from_grade_or_level,
          par.from_locality_adj,
          par.from_occ_code,
          par.from_office_symbol,
          par.from_other_pay_amount,
          par.from_pay_basis,
          par.from_pay_plan,
          par.from_position_id,
          par.from_position_org_line1,
          par.from_position_org_line2,
          par.from_position_org_line3,
          par.from_position_org_line4,
          par.from_position_org_line5,
          par.from_position_org_line6,
          par.from_position_seq_no,
          par.from_position_title,
          par.from_position_number,
	  -- FWFA Changes Bug#4444609
	  par.from_pay_table_identifier,
	  -- FWFA Changes
          par.from_step_or_rate,
          par.from_total_salary
   from   ghr_pa_requests par
   where  pa_request_id = l_pa_request_id;
Line: 3275

    l_update34_date := ghr_pay_caps.update34_implemented_date(p_person_id);
Line: 3276

   hr_utility.set_location('Update 34 date is ' ||l_update34_date,10);
Line: 3278

    if l_update34_date is not null AND l_effective_date >= l_update34_date then
       p_pay_basis := l_retained_grade.pay_basis;
Line: 3652

  select    flx.id_flex_num
  from      fnd_id_flex_structures_tl flx
  where     flx.id_flex_code           = 'PEA'  --
  and       flx.application_id         =  800   --
  and       flx.id_flex_structure_name =  p_structure_name
  and	    flx.language	       = 'US';
Line: 3660

   select  pea.analysis_criteria_id,
           pan.date_from, -- added for bug fix : 609285
           pan.person_analysis_id,
           pan.object_version_number,
           pea.start_date_active,
           pea.segment1,
           pea.segment2,
           pea.segment3,
           pea.segment4,
           pea.segment5,
           pea.segment6,
           pea.segment7,
           pea.segment8,
           pea.segment9,
           pea.segment10,
           pea.segment11,
           pea.segment12,
           pea.segment13,
           pea.segment14,
           pea.segment15,
           pea.segment16,
           pea.segment17,
           pea.segment18,
           pea.segment19,
           pea.segment20,
           pea.segment21,
           pea.segment22,
           pea.segment23,
           pea.segment24,
           pea.segment25,
           pea.segment26,
           pea.segment27,
           pea.segment28,
           pea.segment29,
           pea.segment30
   from    per_analysis_Criteria pea,
           per_person_analyses   pan
   where   pan.person_id            =  p_person_id
   and     pan.id_flex_num          =  l_id_flex_num
   and     pea.analysis_Criteria_id =  pan.analysis_criteria_id
   and     p_effective_date
   between nvl(pan.date_from,p_effective_date)
   and     nvl(pan.date_to,p_effective_date)
   and     p_effective_date
   between nvl(pea.start_date_active,p_effective_date)
   and     nvl(pea.end_date_active,p_effective_date)
   order   by  2 desc, 3 desc;
Line: 3782

  select    flx.id_flex_num
  from      fnd_id_flex_structures_tl flx
  where     flx.id_flex_code           = 'PEA'  --
  and       flx.application_id         =  800   --
  and       flx.id_flex_structure_name =  'US Fed Education'
  and       flx.language	       =  'US';
Line: 3793

   select  pea.segment1,
           pea.segment2,
           pea.segment3,
           pea.segment4,
           pea.segment5,
           pea.segment6,
           pea.segment7,
           pea.segment8,
           pea.segment9,
           pea.segment10,
           pea.segment11,
           pea.segment12,
           pea.segment13,
           pea.segment14,
           pea.segment15,
           pea.segment16,
           pea.segment17,
           pea.segment18,
           pea.segment19,
           pea.segment20
  from     per_analysis_criteria pea,
           per_person_analyses pan
   where   pan.person_id             = p_person_id
   and     pan.id_flex_num           =  l_id_flex_num
   and     pea.id_flex_num           =  pan.id_flex_num
   and     p_effective_date
   between nvl(pan.date_from,p_effective_date)
   and     nvl(pan.date_to,p_effective_date)
   and     p_effective_date
   between nvl(pea.start_date_active,p_effective_date)
   and     nvl(pea.end_date_active,p_effective_date)
   and     pan.analysis_criteria_id     =  pea.analysis_criteria_id
   order by 1 desc;
Line: 3878

  select   par.object_version_number
  from     ghr_pa_requests par
  where    par.pa_request_id = p_pa_request_id;
Line: 3883

  select  count(*) cnt
  from    ghr_pa_routing_history
  where   pa_request_id  = p_pa_request_id;
Line: 3888

  select  count(1) act_cnt
  from    ghr_pa_routing_history
  where   pa_request_id  = p_pa_request_id
  and     action_taken = 'INITIATED';
Line: 3897

  select pa_routing_history_id,
         pa_request_id,
         initiator_flag,
         requester_flag,
         authorizer_flag,
         personnelist_flag,
         approver_flag,
         reviewer_flag,
         approved_flag,
         user_name,
         user_name_employee_id,
         user_name_emp_first_name,
         user_name_emp_last_name,
         user_name_emp_middle_names,
         groupbox_id,
         notepad ,
         routing_list_id,
         routing_seq_number,
         nature_of_action_id,
         noa_family_code,
         second_nature_of_action_id,
         object_version_number
  from   ghr_pa_routing_history
  where  pa_request_id  = p_pa_request_id
  order  by pa_routing_history_id desc;
Line: 3924

  select name
  from   ghr_groupboxes
  where  groupbox_id = l_pa_routing_history_rec.groupbox_id;
Line: 3932

    If p_action_taken not in ('NOT_ROUTED','UPDATE_HR','CONTINUE') then
        hr_utility.set_location(l_proc || p_action_taken,10);
Line: 3952

                If (p_action_taken = 'UPDATE_HR_COMPLETE'or p_action_taken = 'ENDED') and
                    p_old_action_taken = 'FUTURE_ACTION' then
                    hr_utility.set_location('nothing',1);
Line: 3956

                Else --(p_action_taken = 'UPDATE_HR_COMPLETE'or p_action_taken = 'ENDED')
                    hr_utility.set_location('else not Update Coplete',1);
Line: 3985

                End if; --(p_action_taken = 'UPDATE_HR_COMPLETE'or p_action_taken = 'ENDED')
Line: 4001

                p_action_taken ='UPDATE_HR_COMPLETE' then
                ghr_wf_pkg.completeblockingoffutureaction
                (p_pa_request_id       => p_pa_request_id,
                p_action_taken        => p_action_taken,
                p_error_msg           => p_error);
Line: 4012

    End if; -- p_action_taken not in ('NOT_ROUTED','UPDATE_HR','CONTINUE')
Line: 4125

      SELECT rpm.restricted_proc_method
      FROM   FND_USER USR
           , PER_PEOPLE_EXTRA_INFO PEI
           , GHR_RESTRICTED_PROC_METHODS RPM
           , GHR_PA_DATA_FIELDS PDF
      WHERE  usr.user_name = p_user_name
      AND    pdf.name      = p_attribute
      AND    pei.person_id = usr.employee_id
      AND    pei.information_type = 'GHR_US_PER_USER_INFO'
      AND    rpm.restricted_form = pei.pei_information3
      AND    rpm.pa_data_field_id = pdf.pa_data_field_id;