DBA Data[Home] [Help]

APPS.PAY_CA_MAG_ROE SQL Statements

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

Line: 28

  select user_entity_id
  from   ff_user_entities fue
  where  fue.user_entity_name = p_user_entity_name
  and    fue.legislation_code = 'CA';
Line: 63

  select ppa.start_date,
         ppa.effective_date,
         pay_core_utils.get_parameter('PERSON_ID',ppa.legislative_parameters),
         pay_core_utils.get_parameter('ASSIGNMENT_SET',ppa.legislative_parameters)
  from   pay_payroll_actions ppa
  where  payroll_action_id = p_pactid;
Line: 141

            p_sqlstr := 'select distinct person_id from
                        per_assignments_f paf,
                        ff_archive_items fai,
                        pay_payroll_actions ppa,
                        pay_assignment_actions paa
                        where
                        fai.user_entity_id = ' || l_roe_date_uid || ' and
                        fnd_date.canonical_to_date(fai.value) between
                            ppa.start_date and
                            ppa.effective_date and
                        ppa.payroll_action_id = :p_pactid and
                        ppa.business_group_id = paf.business_group_id and
                        paa.assignment_action_id = fai.context1 and
                        paf.assignment_id = paa.assignment_id and
                        fnd_date.canonical_to_date(fai.value) between
                          paf.effective_start_date and
                          paf.effective_end_date and
                        person_id = '|| p_person_id;
Line: 160

            p_sqlstr := 'select distinct paf.person_id from
                        per_assignments_f paf,
                        ff_archive_items fai,
                        pay_payroll_actions ppa,
                        pay_assignment_actions paa,
                        HR_ASSIGNMENT_SET_AMENDMENTS haa
                        where
                        fai.user_entity_id = ' || l_roe_date_uid || ' and
                        fnd_date.canonical_to_date(fai.value) between
                            ppa.start_date and
                            ppa.effective_date and
                        ppa.payroll_action_id = :p_pactid and
                        ppa.business_group_id = paf.business_group_id and
                        paa.assignment_action_id = fai.context1 and
                        paf.assignment_id = paa.assignment_id and
                        fnd_date.canonical_to_date(fai.value) between
                          paf.effective_start_date and
                          paf.effective_end_date and
                          haa.assignment_id = paf.assignment_id and
                          haa.include_or_exclude = ''I'' and
                        haa.assignment_set_id = '|| p_assignment_set;
Line: 182

            p_sqlstr := 'select distinct person_id from
                        per_assignments_f paf,
                        ff_archive_items fai,
                        pay_payroll_actions ppa,
                        pay_assignment_actions paa
                        where
                        fai.user_entity_id = ' || l_roe_date_uid || ' and
                        fnd_date.canonical_to_date(fai.value) between
                            ppa.start_date and
                            ppa.effective_date and
                        ppa.payroll_action_id = :p_pactid and
                        ppa.business_group_id = paf.business_group_id and
                        paa.assignment_action_id = fai.context1 and
                        paf.assignment_id = paa.assignment_id and
                        fnd_date.canonical_to_date(fai.value) between
                          paf.effective_start_date and
                          paf.effective_end_date';
Line: 252

	select 	pay_assignment_actions_s.nextval
	from	dual;
Line: 263

        select
          paa.assignment_id assignment_id,
          paa.tax_unit_id   gre_id,
          fai2.value        payroll_id
        from
          pay_payroll_actions ppa,
          pay_assignment_actions paa,
          ff_archive_items fai1,
          ff_archive_items fai2,
          per_assignments_f paf
        where
          ppa.report_type = 'ROE' and
          ppa.report_category = 'ROEC' and
          ppa.report_qualifier = 'ROEQ' and
          ppa.payroll_action_id = paa.payroll_action_id and
          paa.assignment_action_id = fai1.context1 and
          fai1.user_entity_id=l_roe_date_id and
          fnd_date.canonical_to_date(fai1.value) between
            fnd_date.canonical_to_date(to_char(p_start_date,'yyyy/mm/dd hh24:mi:ss')) and
              fnd_date.canonical_to_date(to_char(p_end_date,'yyyy/mm/dd hh24:mi:ss')) and
          fai1.context1 = fai2.context1 and
          fai2.user_entity_id = l_roe_payroll_id and
          paa.assignment_id = paf.assignment_id and
          fnd_date.canonical_to_date(fai1.value) between
           paf.effective_start_date and
           paf.effective_end_date and
          paf.assignment_type = 'E' and
          paf.person_id between
            p_stperson and
            p_endperson;
Line: 295

        select
          paa.assignment_id assignment_id,
          paa.tax_unit_id   gre_id,
          fai2.value        payroll_id
        from
          pay_payroll_actions ppa,
          pay_assignment_actions paa,
          ff_archive_items fai1,
          ff_archive_items fai2,
          per_assignments_f paf,
	  pay_population_ranges ppr
        where
          ppa.report_type = 'ROE' and
          ppa.report_category = 'ROEC' and
          ppa.report_qualifier = 'ROEQ' and
          ppa.payroll_action_id = paa.payroll_action_id and
          paa.assignment_action_id = fai1.context1 and
          fai1.user_entity_id=l_roe_date_id and
          fnd_date.canonical_to_date(fai1.value) between
            fnd_date.canonical_to_date(to_char(p_start_date,'yyyy/mm/dd hh24:mi:ss')) and
              fnd_date.canonical_to_date(to_char(p_end_date,'yyyy/mm/dd hh24:mi:ss')) and
          fai1.context1 = fai2.context1 and
          fai2.user_entity_id = l_roe_payroll_id and
          paa.assignment_id = paf.assignment_id and
          fnd_date.canonical_to_date(fai1.value) between
           paf.effective_start_date and
           paf.effective_end_date and
          paf.assignment_type = 'E' and
	  ppr.payroll_action_id = p_pactid
        AND ppr.chunk_number = p_chunk
        AND paf.person_id = ppr.person_id;
Line: 330

           select
             paa.assignment_action_id locked_action_id
           from
             pay_payroll_actions ppa,
             pay_assignment_actions paa,
             ff_archive_items fai1,
             ff_archive_items fai2
           where
             ppa.report_type = 'ROE' and
             ppa.report_category = 'ROEC' and
             ppa.report_qualifier = 'ROEQ' and
             ppa.payroll_action_id = paa.payroll_action_id and
             paa.tax_unit_id = l_gre_id and
             paa.assignment_id = l_assignment_id and
             paa.assignment_action_id = fai1.context1 and
             fai1.user_entity_id =  l_roe_date_id and
  	     fnd_date.canonical_to_date(fai1.value) between
               fnd_date.canonical_to_date(to_char(p_start_date,'yyyy/mm/dd hh24:mi:ss')) and
               fnd_date.canonical_to_date(to_char(p_end_date,'yyyy/mm/dd hh24:mi:ss')) and
            fai1.context1 = fai2.context1 and
            fai2.user_entity_id = l_roe_payroll_id and
            fai2.value = l_payroll_id;
Line: 356

	  select 'x'  from pay_action_interlocks
	  where locked_action_id = l_locked_action_id;