<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: PAY Deductions -->
 <REPORTS_ROW>
  <GUID>C6E085D4714D51A9E05362FB09050512</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>            select distinct &amp;p_hint
               Consolidation_set_id ,
               consolidation_set_name ,
               payroll_id  ,
               payroll_name ,
               payroll_effective_start_date ,
               payroll_effective_end_date ,
               payroll_action_id ,
               payroll_action_effective_date ,
               payroll_action_date_earned ,
               time_period_id ,
               period_name ,
               period_num ,
               period_type,
               period_start_date,
               period_end_date ,
               assignment_action_id ,
               assignment_id ,
               tax_unit_id ,
               GRE ,
               person_id ,
               employee_number ,
               full_name ,
               organization_id ,
               organization_name ,
               location_id ,
               location_code ,
               location_description ,
               assignment_sequence ,
               assignment_number ,
               element_type_id ,
               element_name ,
               element_description ,
               business_group_id ,
               primary_balance_id ,
               hours_balance_id ,
               classification_id ,
               classification_name ,
               primary_balance ,
               not_taken_balance ,
               arrears_balance ,
               accrued_balance ,
               total_owed ,
               decode(:P_SORT_OPTION1_L,&apos;GRE&apos;,&apos;GRE&apos;,
                                             &apos;Organization&apos;,&apos;Organization&apos;,
                                             &apos;Location&apos;,&apos;Location&apos;,
                                              null) Sort_option1,
                decode(:P_SORT_OPTION2,&apos;GRE&apos;,&apos;GRE&apos;,
                                             &apos;Organization&apos;,&apos;Organization&apos;,
                                             &apos;Location&apos;,&apos;Location&apos;,
                                              null) Sort_option2,
               decode(:P_SORT_OPTION3,&apos;GRE&apos;,&apos;GRE&apos;,
                                             &apos;Organization&apos;,&apos;Organization&apos;,
                                             &apos;Location&apos;,&apos;Location&apos;,
                                              null) Sort_option3,
              decode(:P_SORT_OPTION1_L,&apos;GRE&apos;,GRE,
                                             &apos;Organization&apos;,Organization_name,
                                             &apos;Location&apos;,Location_code,
                                              null)  sort_option1_value,
            decode(:P_SORT_OPTION2,&apos;GRE&apos;,GRE,
                                             &apos;Organization&apos;,Organization_name,
                                             &apos;Location&apos;,Location_code,
                                              null)  sort_option2_value,
            decode(:P_SORT_OPTION3,&apos;GRE&apos;,GRE,
                                             &apos;Organization&apos;,Organization_name,
                                             &apos;Location&apos;,Location_code,
                                              null)  sort_option3_value,
                PAY_PAYUSDED_XMLP_PKG.cf_sort1formula(decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , &apos;GRE&apos; , &apos;Organization&apos; , &apos;Organization&apos; , &apos;Location&apos; , &apos;Location&apos; , null )) CF_Sort1,
                PAY_PAYUSDED_XMLP_PKG.cf_sort2formula(decode ( :P_SORT_OPTION2 , &apos;GRE&apos; , &apos;GRE&apos; , &apos;Organization&apos; , &apos;Organization&apos; , &apos;Location&apos; , &apos;Location&apos; , null )) CF_Sort2,
                PAY_PAYUSDED_XMLP_PKG.cf_sort3formula(decode ( :P_SORT_OPTION3 , &apos;GRE&apos; , &apos;GRE&apos; , &apos;Organization&apos; , &apos;Organization&apos; , &apos;Location&apos; , &apos;Location&apos; , null )) CF_Sort3,
                PAY_PAYUSDED_XMLP_PKG.cf_sort1_valueformula(decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null )) CF_Sort1_value,
                PAY_PAYUSDED_XMLP_PKG.cf_sort2_valueformula(decode ( :P_SORT_OPTION2 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null )) CF_Sort2_value,
                PAY_PAYUSDED_XMLP_PKG.cf_sort3_valueformula(decode ( :P_SORT_OPTION3 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null )) CF_Sort3_value,
                PAY_PAYUSDED_XMLP_PKG.s1_total_textformula(decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null )) s1_total_text,
                PAY_PAYUSDED_XMLP_PKG.s2_total_textformula(decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null ), decode ( :P_SORT_OPTION2 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null )) s2_total_text,
                PAY_PAYUSDED_XMLP_PKG.s3_total_textformula(decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null ), decode ( :P_SORT_OPTION2 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null ), decode ( :P_SORT_OPTION3 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null )) s3_total_text,
                PAY_PAYUSDED_XMLP_PKG.s3_textformula(decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null ), decode ( :P_SORT_OPTION1_L , &apos;GRE&apos; , &apos;GRE&apos; , &apos;Organization&apos; , &apos;Organization&apos; , &apos;Location&apos; , &apos;Location&apos; , null ), decode ( :P_SORT_OPTION2 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null ), decode ( :P_SORT_OPTION2 , &apos;GRE&apos; , &apos;GRE&apos; , &apos;Organization&apos; , &apos;Organization&apos; , &apos;Location&apos; , &apos;Location&apos; , null ), decode ( :P_SORT_OPTION3 , &apos;GRE&apos; , GRE , &apos;Organization&apos; , Organization_name , &apos;Location&apos; , Location_code , null ), decode ( :P_SORT_OPTION3 , &apos;GRE&apos; , &apos;GRE&apos; , &apos;Organization&apos; , &apos;Organization&apos; , &apos;Location&apos; , &apos;Location&apos; , null )) S3_Text,
                PAY_PAYUSDED_XMLP_PKG.classification_total_textformu(classification_name) Classification_total_text,
                PAY_PAYUSDED_XMLP_PKG.element_total_textformula(element_name) Element_total_text,
                PAY_PAYUSDED_XMLP_PKG.person_total_textformula(full_name) Person_total_text,
                PAY_PAYUSDED_XMLP_PKG.scheduled_dednformula(primary_balance, not_taken_balance, :arrears_taken) scheduled_dedn,
                PAY_PAYUSDED_XMLP_PKG.current_arrearsformula(arrears_balance) current_arrears,
                PAY_PAYUSDED_XMLP_PKG.arrears_takenformula(arrears_balance) arrears_taken,
                PAY_PAYUSDED_XMLP_PKG.remainingformula(total_owed, PAY_PAYUSDED_XMLP_PKG.cf_accruedformula(accrued_balance, primary_balance, total_owed)) remaining,
                PAY_PAYUSDED_XMLP_PKG.cf_accruedformula(accrued_balance, primary_balance, total_owed) CF_Accrued
            from pay_us_deductions_report_v pudr
            where  consolidation_set_id = to_number(:P_CONSOLIDATION_SET_ID)
               and payroll_action_effective_date  between :P_START_DATE and :P_END_DATE
               and business_group_id = to_number(:P_BUSINESS_GROUP_ID)
               &amp;p_where_clause
			    order by 2, 33, 1, 4, 5, 6, 46, 43, 47, 44, 48, 45,
			            36, 37, 31 , 30 , 32, 22, 29, 20, 17, 21, 28, 25, 27,
			            24, 19, 18, 26, 23, 8, 9, 11, 13, 10, 12, 15, 14, 7,
            			16, 34, 35, 38, 42, 41, 39, 40
           /* order by Consolidation_set_id, element_description, payroll_id,payroll_name,payroll_effective_start_date,decode(:P_SORT_OPTION3,&apos;GRE&apos;,&apos;GRE&apos;,
                                             &apos;Organization&apos;,&apos;Organization&apos;,
                                             &apos;Location&apos;,&apos;Location&apos;,
                                              null), total_owed,decode(:P_SORT_OPTION1_L,&apos;GRE&apos;,GRE,
                                             &apos;Organization&apos;,Organization_name,
                                             &apos;Location&apos;,Location_code,
                                              null),decode(:P_SORT_OPTION1_L,&apos;GRE&apos;,&apos;GRE&apos;,
                                             &apos;Organization&apos;,&apos;Organization&apos;,
                                             &apos;Location&apos;,&apos;Location&apos;,
                                              null),decode(:P_SORT_OPTION2,&apos;GRE&apos;,GRE,
                                             &apos;Organization&apos;,Organization_name,
                                             &apos;Location&apos;,Location_code,
                                              null), decode(:P_SORT_OPTION2,&apos;GRE&apos;,&apos;GRE&apos;,
                                             &apos;Organization&apos;,&apos;Organization&apos;,
                                             &apos;Location&apos;,&apos;Location&apos;,
                                              null),
			            hours_balance_id, classification_id,element_type_id,assignment_number ,element_name,employee_number,assignment_sequence,GRE,assignment_action_id,person_id, location_description,organization_name,location_code,
			            organization_id,tax_unit_id, assignment_id, location_id,full_name,payroll_action_id,payroll_action_effective_date,time_period_id,period_num,payroll_action_date_earned,period_name,period_start_date,period_type,payroll_effective_end_date,
            			period_end_date,business_group_id,primary_balance_id,classification_name,accrued_balance, arrears_balance,primary_balance,not_taken_balance*/
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>PAY</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>PAYUSDED_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PAY Deductions</REPORT_NAME>
    <DESCRIPTION>Imported from BI Publisher
Description: Deductions Report.
Application: Payroll
Source: Deductions Report (XML)
Short Name: PAYUSDED_XML
DB package: PAY_PAYUSDED_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_hint</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_where_clause</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:arrears_taken</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_business_group_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_classification</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_consolidation_set</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_element_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_element_set</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_gre</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_location</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_organization</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_payroll</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_person</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:c_report_subtitle</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_business_group_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_classification_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_consolidation_set_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_element_set_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_element_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_end_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_hint</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_location_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_organization_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_payroll_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_person_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_title</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_selection_criterion</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_session_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_sort_option1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_sort_option1_l</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_sort_option2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_sort_option3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_start_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_tax_unit_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_where_clause</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-70</DISPLAY_SEQUENCE>
    <ANCHOR>:p_dummy</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select &apos;SCT&apos;||:$flex$.selection_criterion from sys.dual</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Selection_Criteria_Dummy</PARAMETER_NAME>
      <DESCRIPTION>Dummy</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-40</DISPLAY_SEQUENCE>
    <ANCHOR>:is_ele</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select &apos;1&apos; from dual where :$flex$.selection_criterion:NULL=&apos;Deduction Element&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PER_CHAR</PARAMETER_NAME>
      <DESCRIPTION>Is Element</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>-50</DISPLAY_SEQUENCE>
    <ANCHOR>:is_ele_class</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select &apos;1&apos; from dual where :$flex$.selection_criterion:NULL=&apos;Deduction Classification&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PER_CHAR</PARAMETER_NAME>
      <DESCRIPTION>Is Element Classification</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>-60</DISPLAY_SEQUENCE>
    <ANCHOR>:is_element_set</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select &apos;1&apos; from dual where :$flex$.selection_criterion:NULL=&apos;Element Set&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PER_CHAR</PARAMETER_NAME>
      <DESCRIPTION>Is Element Set</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>-30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_business_group_id</ANCHOR>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;PER_BUSINESS_GROUP_ID&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Business Group Name</PARAMETER_NAME>
      <DESCRIPTION>Business Group</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_session_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE> SELECT TO_CHAR(effective_date, &apos;DD-MON-YYYY&apos;) FROM fnd_sessions WHERE session_id = USERENV(&apos;SESSIONID&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Session Date</PARAMETER_NAME>
      <DESCRIPTION>Session Date</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_start_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Starting Pay Date</PARAMETER_NAME>
      <DESCRIPTION>Payment Start Date</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_end_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PER_DATES</PARAMETER_NAME>
      <DESCRIPTION>Payment End Date</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_payroll_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_SRS_PAYROLL</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
pay.payroll_id id,
pay.payroll_name value,
null description
from
pay_payrolls_f pay,fnd_sessions fnd
where pay.business_group_id=
fnd_global.per_business_group_id
and fnd.session_id=userenv(&apos;sessionid&apos;)
and fnd.effective_date between pay.effective_start_date
and pay.effective_end_date
order by pay.payroll_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Payroll</PARAMETER_NAME>
      <DESCRIPTION>Payroll</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>:p_consolidation_set_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_SRS_CONSOLIDATION_SET</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
con.consolidation_set_id id,
con.consolidation_set_name value,
null description
from
pay_consolidation_sets con
where con.business_group_id
=fnd_global.per_business_group_id
order by con.consolidation_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select c.consolidation_set_name from pay_consolidation_sets c,pay_payrolls p where p.consolidation_set_id = c.consolidation_set_id and p.payroll_id=:$flex$.payroll</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Consolidation Set</PARAMETER_NAME>
      <DESCRIPTION>Consolidation Set</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>:p_selection_criterion</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_US_REPORT_SELECTION_CRITERIA</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
fcl.meaning id,
fcl.meaning value,
null description
from
fnd_common_lookups fcl
where fcl.application_id=800
and fcl.lookup_type=&apos;REPORT_SELECT_SORT_CODE&apos;
and fcl.enabled_flag=&apos;Y&apos;
and
(
(:work_order.concurrent_program_name:null
in (&apos;PAYUSOLT&apos;,&apos;PAYUSUNB&apos;) and
fcl.lookup_code in (&apos;04&apos;,&apos;05&apos;)
)
or
(:work_order.concurrent_program_name:null
in(&apos;PAYUSDED&apos;,&apos;PAYUSDED_XML&apos;) and
fcl.lookup_code in (&apos;09&apos;,&apos;10&apos;,&apos;11&apos;)
)
or
(:work_order.concurrent_program_name:null
in (&apos;PYUSW2CA&apos;,&apos;PAYUSW2C&apos;,&apos;PAYUSW2CPDF&apos;,&apos;PAYUSW2CDTL&apos;,&apos;PYUS1099RC&apos;,&apos;EMP_1099RC_PDF&apos;) and
fcl.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;18&apos;)
)
or
(:work_order.concurrent_program_name:null
=&apos;PAYERRE&apos; and
fcl.lookup_code in (&apos;03&apos;,&apos;21&apos;,&apos;25&apos;,&apos;27&apos;,&apos;28&apos;)
)
or
(:work_order.concurrent_program_name:null
=&apos;PYUSARLV&apos; and
fcl.lookup_code in (&apos;03&apos;,&apos;21&apos;,&apos;29&apos;,&apos;30&apos;,&apos;31&apos;)
)
or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSOLT&apos;,&apos;PAYUSUNB&apos;) and
fcl.lookup_code in (&apos;04&apos;,&apos;05&apos;)
)
or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in(&apos;PAYUSDED&apos;,&apos;PAYUSDED_XML&apos;) and
fcl.lookup_code in (&apos;09&apos;,&apos;10&apos;,&apos;11&apos;)
)
or
(substr(:set_requests.descriptive_flexfield_name:null,7)
=&apos;PAYUSPW2&apos; and
fcl.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;18&apos;)
)
or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYUSW2CA&apos;,&apos;PAYUSW2C&apos;) and
fcl.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;18&apos;)
)
)
order by fcl.lookup_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Selection Criterion</PARAMETER_NAME>
      <DESCRIPTION>Selection Criterion</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>:p_element_set_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PAY_REPORT_ELEMENT_SET</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
es.element_set_id id,
estl.element_set_name value,
null description
from
pay_element_sets es,pay_element_sets_tl estl
where (es.business_group_id=fnd_global.per_business_group_id
or (es.business_group_id is null
and es.legislation_code=(select legislation_code
from per_business_groups
where business_group_id=
fnd_global.per_business_group_id)
))
and es.element_set_type=&apos;C&apos;
and :$flex$.per_char=&apos;1&apos;
and estl.element_set_id=es.element_set_id
and estl.language=userenv(&apos;LANG&apos;)
order by estl.element_set_name</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Element Set</PARAMETER_NAME>
      <DESCRIPTION>Element Set</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>:p_classification_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_US_DED_SRS_ELEMENT_CLASSIFICATION</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
classification_id id,
classification_name value,
null description
from
pay_element_classifications
where nvl(business_group_id,fnd_global.per_business_group_id)
=fnd_global.per_business_group_id
and (legislation_code is null
or legislation_code=(
select legislation_code
from per_business_groups b
where b.business_group_id=
fnd_global.per_business_group_id))
and classification_name in (&apos;Pre-Tax Deductions&apos;,
&apos;Involuntary Deductions&apos;,
&apos;Voluntary Deductions&apos;,
&apos;Employer Liabilities&apos;)
and :$flex$.per_char=&apos;1&apos;
order by value,description</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Deduction Classification</PARAMETER_NAME>
      <DESCRIPTION>Deduction Classification</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>:p_element_type_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_US_DED_SRS_DEDUCTION_ELEMENT</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
pet.element_type_id id,
pet.element_name value,
null description
from
pay_element_types_f pet
where nvl(business_group_id,fnd_global.per_business_group_id)
=fnd_global.per_business_group_id
and (legislation_code is null
or legislation_code=(
select legislation_code
from per_business_groups b
where b.business_group_id=
fnd_global.per_business_group_id))
and classification_id in (
select classification_id
from pay_element_classifications
where classification_name in (&apos;Voluntary Deductions&apos;,
&apos;Involuntary Deductions&apos;,
&apos;Pre-Tax Deductions&apos;,
&apos;Employer Liabilities&apos;))
and fnd_date.canonical_to_date(:$flex$.per_dates) between
pet.effective_start_date and pet.effective_end_date
and pet.element_name not like &apos;%Special Features&apos;
and pet.element_name not like &apos;%Special Inputs&apos;
and pet.element_name not like &apos;%Withholding&apos;
and pet.element_name not like &apos;%Calculator&apos;
and pet.element_name not like &apos;%Verifier&apos;
and pet.element_name not like &apos;%Priority&apos;
and :$flex$.per_char=&apos;1&apos;
order by pet.element_name</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Deduction</PARAMETER_NAME>
      <DESCRIPTION>Deduction Name</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>:p_tax_unit_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_US_TAX_UNIT</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
txu.tax_unit_id id,
txu.name value,
null description
from
hr_tax_units_v txu
where txu.business_group_id=
fnd_global.per_business_group_id
order by value,description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GRE</PARAMETER_NAME>
      <DESCRIPTION>Government Reporting Entity</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>:p_organization_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_US_ORGANIZATIONS</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hou.organization_id id,
hou.name value,
null description
from
hr_organization_units hou,hr_organization_information hoi
where hou.business_group_id=fnd_global.per_business_group_id
and hou.organization_id=hoi.organization_id
and hoi.org_information_context=&apos;CLASS&apos;
and hoi.org_information1=&apos;HR_ORG&apos;
order by hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization</PARAMETER_NAME>
      <DESCRIPTION>Organization</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>:p_location_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_US_LOCATIONS</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hl.location_id id,
hl.location_code value,
null description
from
hr_locations hl
where location_use=&apos;HR&apos;
order by location_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Location</PARAMETER_NAME>
      <DESCRIPTION>Location</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>:p_person_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_US_PERSON</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
ppf.person_id id,
ppf.full_name||&apos; (Person ID=&apos;||ppf.person_id||&apos;)&apos; value,
null description
from
per_people_f ppf,per_person_types ppt
where ppf.business_group_id+0=
fnd_global.per_business_group_id
and ppt.person_type_id=ppf.person_type_id+0
and ppt.system_person_type in (&apos;EMP&apos;,&apos;EMP_APL&apos;,&apos;EX_EMP&apos;,&apos;EX_EMP_APL&apos;)
and ppf.effective_start_date=
(select max(effective_start_date)
from per_people_f ppf1
where ppf1.person_id=ppf.person_id)
order by nvl(ppf.order_name,ppf.full_name)</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Employee Name</PARAMETER_NAME>
      <DESCRIPTION>Person</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>:p_sort_option1</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_SRS_SORT_ONE</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hlu.meaning id,
hlu.meaning value,
null description
from
hr_lookups hlu
where hlu.application_id=800
and hlu.lookup_type=&apos;REPORT_SELECT_SORT_CODE&apos;
and hlu.enabled_flag=&apos;Y&apos;
and (((:work_order.concurrent_program_name:null
in (&apos;PAYRPCSR&apos;,&apos;PYRPCSR&apos;,&apos;PYRPCSRUS&apos;,&apos;PYXMLCSR&apos;,&apos;PYRPCPSR&apos;) and
hlu.lookup_code in (&apos;08&apos;,&apos;12&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW4R&apos;,&apos;PAYUSTXA&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;20&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2C&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PYUSYRNEG&apos;,&apos;PYUSW2RG&apos;,&apos;PYUSW2EX&apos;,
&apos;PYUS99RG&apos;,&apos;PYUS99EX&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSOLT&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSUNB&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;EMP_1099R&apos;,&apos;EMP_1099R_PDF&apos;,&apos;EMP_1099RC_PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2E&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSDED&apos;) and
hlu.lookup_code in (&apos;04&apos;,&apos;05&apos;,&apos;08&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSEW2&apos;,&apos;PYUSERW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYRPENP&apos;,&apos;PYXMLENP&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;08&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PYENPGEN&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSPW2&apos;,&apos;PAYUSW2CPDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)))
or
((substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYRPCSR&apos;,&apos;PYRPCPSR&apos;,&apos;PYXMLCSR&apos;) and
hlu.lookup_code in (&apos;08&apos;,&apos;12&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW4R&apos;,&apos;PAYUSTXA&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;20&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW2C&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYUSYRNEG&apos;,&apos;PYUSW2RG&apos;,&apos;PYUSW2EX&apos;,
&apos;PYUS99RG&apos;,&apos;PYUS99EX&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSOLT&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSUNB&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;EMP_1099R&apos;,&apos;EMP_1099R_PDF&apos;,&apos;EMP_1099RC_PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW2E&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSDED&apos;) and
hlu.lookup_code in (&apos;04&apos;,&apos;05&apos;,&apos;08&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSEW2&apos;,&apos;PYUSERW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYRPENP&apos;,&apos;PYXMLENP&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;08&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYENPGEN&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSPW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;))) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;))
)
order by hlu.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sort Option One</PARAMETER_NAME>
      <DESCRIPTION>First Sort Parameter</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>:p_sort_option2</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_SRS_SORT_TWO</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hlu.meaning id,
hlu.meaning value,
null description
from
hr_lookups hlu
where hlu.application_id=800
and hlu.lookup_type=&apos;REPORT_SELECT_SORT_CODE&apos;
and hlu.enabled_flag=&apos;Y&apos;
and hlu.meaning&lt;&gt;:$flex$.hr_srs_sort_one
and hlu.meaning&lt;&gt;
decode(:$flex$.hr_srs_sort_one,
&apos;Social Security Number&apos;,&apos;Employee Name&apos;,
&apos;Employee Number&apos;,&apos;Employee Name&apos;,
&apos;Assignment Number&apos;,&apos;Employee Name&apos;,
:$flex$.hr_srs_sort_one)
and (((:work_order.concurrent_program_name:null
in (&apos;PAYRPCSR&apos;,&apos;PYRPCSR&apos;,&apos;PYRPCSRUS&apos;,&apos;PYXMLCSR&apos;) and
hlu.lookup_code in (&apos;08&apos;,&apos;12&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW4R&apos;,&apos;PAYUSTXA&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;20&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2C&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PYUSYRNEG&apos;,&apos;PYUSW2RG&apos;,&apos;PYUSW2EX&apos;,
&apos;PYUS99RG&apos;,&apos;PYUS99EX&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSOLT&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSUNB&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;EMP_1099R&apos;,&apos;EMP_1099R_PDF&apos;,&apos;EMP_1099RC_PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2E&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSDED&apos;) and
hlu.lookup_code in (&apos;04&apos;,&apos;05&apos;,&apos;08&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSEW2&apos;,&apos;PYUSERW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYRPENP&apos;,&apos;PYXMLENP&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;08&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PYENPGEN&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSPW2&apos;,&apos;PAYUSW2CPDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)))
or
((substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYRPCSR&apos;,&apos;PYXMLCSR&apos;) and
hlu.lookup_code in (&apos;08&apos;,&apos;12&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW4R&apos;,&apos;PAYUSTXA&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;20&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW2C&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYUSYRNEG&apos;,&apos;PYUSW2RG&apos;,&apos;PYUSW2EX&apos;,
&apos;PYUS99RG&apos;,&apos;PYUS99EX&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSOLT&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSUNB&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;EMP_1099R&apos;,&apos;EMP_1099R_PDF&apos;,&apos;EMP_1099RC_PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW2E&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSDED&apos;) and
hlu.lookup_code in (&apos;04&apos;,&apos;05&apos;,&apos;08&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSEW2&apos;,&apos;PYUSERW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYRPENP&apos;,&apos;PYXMLENP&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;08&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYENPGEN&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSPW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;))) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;))
)
order by hlu.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sort Option Two</PARAMETER_NAME>
      <DESCRIPTION>Second Sort Parameter</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>:p_sort_option3</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR_SRS_SORT_THREE</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hlu.meaning id,
hlu.meaning value,
null description
from
hr_lookups hlu
where hlu.application_id=800
and hlu.lookup_type=&apos;REPORT_SELECT_SORT_CODE&apos;
and hlu.enabled_flag=&apos;Y&apos;
and hlu.meaning&lt;&gt;:$flex$.hr_srs_sort_one
and hlu.meaning&lt;&gt;:$flex$.hr_srs_sort_two
and hlu.meaning&lt;&gt;
decode(:$flex$.hr_srs_sort_one,
&apos;Social Security Number&apos;,&apos;Employee Name&apos;,
&apos;Employee Number&apos;,&apos;Employee Name&apos;,
&apos;Assignment Number&apos;,&apos;Employee Name&apos;,
:$flex$.hr_srs_sort_one)
and hlu.meaning&lt;&gt;
decode(:$flex$.hr_srs_sort_two,
&apos;Social Security Number&apos;,&apos;Employee Name&apos;,
&apos;Employee Number&apos;,&apos;Employee Name&apos;,
&apos;Assignment Number&apos;,&apos;Employee Name&apos;,
:$flex$.hr_srs_sort_two)
and (((:work_order.concurrent_program_name:null
in (&apos;PAYRPCSR&apos;,&apos;PYXMLCSR&apos;) and
hlu.lookup_code in (&apos;08&apos;,&apos;12&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW4R&apos;,&apos;PAYUSTXA&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;20&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2C&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PYUSYRNEG&apos;,&apos;PYUSW2RG&apos;,&apos;PYUSW2EX&apos;,
&apos;PYUS99RG&apos;,&apos;PYUS99EX&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSOLT&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSUNB&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;EMP_1099R&apos;,&apos;EMP_1099R_PDF&apos;,&apos;EMP_1099RC_PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2E&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSDED&apos;) and
hlu.lookup_code in (&apos;04&apos;,&apos;05&apos;,&apos;08&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSEW2&apos;,&apos;PYUSERW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYRPENP&apos;,&apos;PYXMLENP&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;08&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PYENPGEN&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSPW2&apos;,&apos;PAYUSW2CPDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)))
or
((substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYRPCSR&apos;,&apos;PYXMLCSR&apos;) and
hlu.lookup_code in (&apos;08&apos;,&apos;12&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW4R&apos;,&apos;PAYUSTXA&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;20&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW2C&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYUSYRNEG&apos;,&apos;PYUSW2RG&apos;,&apos;PYUSW2EX&apos;,
&apos;PYUS99RG&apos;,&apos;PYUS99EX&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSOLT&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSUNB&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;EMP_1099R&apos;,&apos;EMP_1099R_PDF&apos;,&apos;EMP_1099RC_PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSW2E&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSDED&apos;) and
hlu.lookup_code in (&apos;04&apos;,&apos;05&apos;,&apos;08&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSEW2&apos;,&apos;PYUSERW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYRPENP&apos;,&apos;PYXMLENP&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;08&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PYENPGEN&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;04&apos;,&apos;05&apos;,&apos;12&apos;,&apos;16&apos;,&apos;17&apos;)) or
(substr(:set_requests.descriptive_flexfield_name:null,7)
in (&apos;PAYUSPW2&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;))) or
(:work_order.concurrent_program_name:null
in (&apos;PAYUSW2PDF&apos;) and
hlu.lookup_code in (&apos;01&apos;,&apos;02&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;,&apos;07&apos;))
)
order by hlu.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sort Option Three</PARAMETER_NAME>
      <DESCRIPTION>Third Sort Parameter</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
