<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: PO Procure to Pay Tracker -->
 <REPORTS_ROW>
  <GUID>6F0B3D9E2A4C4E1B8D7A5C3E9F1B2D40</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
y.operating_unit,
y.supplier,
y.supplier_site,
y.requisition_number,
y.requisition_line,
y.requisition_date,
y.requisition_approved_date,
y.requisition_status,
y.requester,
y.po_number,
y.po_type,
y.po_date,
y.po_approved_date &quot;PO Approved Date&quot;,
y.po_status &quot;PO Status&quot;,
y.buyer,
y.line_number,
y.item,
y.item_description,
y.category,
y.quantity,
y.uom,
y.unit_price,
y.line_amount,
y.currency,
y.need_by_date,
y.promised_date,
y.receipt_number,
y.received_date,
y.quantity_received,
y.quantity_billed,
y.closure_status,
y.invoice_number,
y.invoice_date,
y.invoice_entered_date,
y.invoiced_amount,
xxen_util.meaning(case when y.distribution_status=&apos;APPROVED&apos; and (y.force_revalidation_flag=&apos;Y&apos; or y.hold_name is not null) then &apos;NEEDS REAPPROVAL&apos; else y.distribution_status end,&apos;NLS TRANSLATION&apos;,200) validation_status,
y.hold_name,
y.hold_date,
y.due_date,
case when row_number() over (partition by y.invoice_id order by y.po_header_id, y.line_location_id)=1 then y.invoice_remaining end amount_remaining,
y.accounted_date,
y.gl_posted_date &quot;GL Posted Date&quot;,
y.payment_number,
y.paid_date
from
(
select
x.*,
prha.segment1 requisition_number,
prla.line_num requisition_line,
prha.creation_date requisition_date,
prha.approved_date requisition_approved_date,
xxen_util.meaning(case when prha.requisition_header_id is not null then nvl(prha.authorization_status,&apos;INCOMPLETE&apos;) end,&apos;AUTHORIZATION STATUS&apos;,201) requisition_status,
ppx_r.full_name requester,
aia.invoice_num invoice_number,
aia.invoice_date,
aia.creation_date invoice_entered_date,
aia.force_revalidation_flag,
(
select
case
when count(decode(aida.match_status_flag,&apos;A&apos;,1))=count(*) then &apos;APPROVED&apos;
when count(decode(aida.match_status_flag,null,1,&apos;N&apos;,1))=count(*) then &apos;NEVER APPROVED&apos;
else &apos;NEEDS REAPPROVAL&apos;
end
from
ap_invoice_distributions_all aida
where
aia.invoice_id=aida.invoice_id
having
count(*)&gt;0
) distribution_status,
(
select
regexp_replace(listagg(xxen_util.meaning(aha.hold_lookup_code,&apos;HOLD CODE&apos;,200),&apos;, &apos;) within group (order by aha.hold_lookup_code),&apos;([^,]+)(, \1)+(,|$)&apos;,&apos;\1\3&apos;)
from
ap_holds_all aha
where
aia.invoice_id=aha.invoice_id and
aha.release_lookup_code is null
) hold_name,
(select min(aha.hold_date) from ap_holds_all aha where aia.invoice_id=aha.invoice_id and aha.release_lookup_code is null) hold_date,
(select min(apsa.due_date) from ap_payment_schedules_all apsa where aia.invoice_id=apsa.invoice_id) due_date,
(select sum(apsa.amount_remaining) from ap_payment_schedules_all apsa where aia.invoice_id=apsa.invoice_id) invoice_remaining,
(
select
max(xah.creation_date)
from
xla.xla_transaction_entities xte,
xla_ae_headers xah
where
aia.set_of_books_id=xte.ledger_id and
xte.application_id=200 and
xte.entity_code=&apos;AP_INVOICES&apos; and
nvl(xte.source_id_int_1,-99)=aia.invoice_id and
xte.entity_id=xah.entity_id and
xte.application_id=xah.application_id and
xah.accounting_entry_status_code=&apos;F&apos;
) accounted_date,
(
select
max(gjh.posted_date)
from
xla.xla_transaction_entities xte,
xla_ae_headers xah,
xla_ae_lines xal,
gl_import_references gir,
gl_je_headers gjh
where
aia.set_of_books_id=xte.ledger_id and
xte.application_id=200 and
xte.entity_code=&apos;AP_INVOICES&apos; and
nvl(xte.source_id_int_1,-99)=aia.invoice_id and
xte.entity_id=xah.entity_id and
xte.application_id=xah.application_id and
xah.accounting_entry_status_code=&apos;F&apos; and
xah.gl_transfer_status_code=&apos;Y&apos; and
xah.ae_header_id=xal.ae_header_id and
xah.application_id=xal.application_id and
xal.gl_sl_link_id=gir.gl_sl_link_id and
xal.gl_sl_link_table=gir.gl_sl_link_table and
gir.je_header_id=gjh.je_header_id and
gjh.status=&apos;P&apos;
) gl_posted_date,
(
select
max(aca.check_number) keep (dense_rank last order by aca.check_date, aca.check_id)
from
ap_invoice_payments_all aipa,
ap_checks_all aca
where
aia.invoice_id=aipa.invoice_id and
aipa.check_id=aca.check_id and
aca.void_date is null
) payment_number,
(
select
max(aca.check_date)
from
ap_invoice_payments_all aipa,
ap_checks_all aca
where
aia.invoice_id=aipa.invoice_id and
aia.payment_status_flag=&apos;Y&apos; and
aipa.check_id=aca.check_id and
aca.void_date is null
) paid_date
from
(
select
haouv.name operating_unit,
aps.vendor_name supplier,
assa.vendor_site_code supplier_site,
(select min(prla.requisition_line_id) from po_requisition_lines_all prla where plla.line_location_id=prla.line_location_id) requisition_line_id,
pha.segment1||case when pra.release_num is not null then &apos;-&apos;||pra.release_num end po_number,
xxen_util.meaning(pha.type_lookup_code,&apos;PO TYPE&apos;,201) po_type,
nvl2(pra.po_release_id,pra.creation_date,pha.creation_date) po_date,
nvl2(pra.po_release_id,pra.approved_date,pha.approved_date) po_approved_date,
xxen_util.meaning(nvl(nvl2(pra.po_release_id,pra.authorization_status,pha.authorization_status),&apos;INCOMPLETE&apos;),&apos;AUTHORIZATION STATUS&apos;,201) po_status,
ppx.full_name buyer,
pla.line_num||&apos;.&apos;||plla.shipment_num line_number,
msiv.concatenated_segments item,
pla.item_description,
mck.concatenated_segments category,
plla.quantity-nvl(plla.quantity_cancelled,0) quantity,
pla.unit_meas_lookup_code uom,
plla.price_override unit_price,
nvl(plla.amount-nvl(plla.amount_cancelled,0),(plla.quantity-nvl(plla.quantity_cancelled,0))*plla.price_override) line_amount,
pha.currency_code currency,
plla.need_by_date,
plla.promised_date,
(
select
max(rsh.receipt_num) keep (dense_rank first order by rt.transaction_date, rt.transaction_id)
from
rcv_transactions rt,
rcv_shipment_headers rsh
where
plla.line_location_id=rt.po_line_location_id and
rt.transaction_type=&apos;RECEIVE&apos; and
rt.shipment_header_id=rsh.shipment_header_id
) receipt_number,
(select min(rt.transaction_date) from rcv_transactions rt where plla.line_location_id=rt.po_line_location_id and rt.transaction_type=&apos;RECEIVE&apos;) received_date,
plla.quantity_received,
plla.quantity_billed,
xxen_util.meaning(nvl(plla.closed_code,&apos;OPEN&apos;),&apos;DOCUMENT STATE&apos;,201) closure_status,
(
select
min(aila.invoice_id)
from
ap_invoice_lines_all aila,
ap_invoices_all aia
where
plla.line_location_id=aila.po_line_location_id and
aila.line_type_lookup_code=&apos;ITEM&apos; and
nvl(aila.discarded_flag,&apos;N&apos;)=&apos;N&apos; and
aila.invoice_id=aia.invoice_id and
aia.cancelled_date is null
) invoice_id,
(
select
sum(aila.amount)
from
ap_invoice_lines_all aila,
ap_invoices_all aia
where
plla.line_location_id=aila.po_line_location_id and
aila.line_type_lookup_code=&apos;ITEM&apos; and
nvl(aila.discarded_flag,&apos;N&apos;)=&apos;N&apos; and
aila.invoice_id=aia.invoice_id and
aia.cancelled_date is null
) invoiced_amount,
pha.po_header_id,
plla.line_location_id
from
hr_all_organization_units_vl haouv,
po_headers_all pha,
po_lines_all pla,
po_line_locations_all plla,
po_releases_all pra,
ap_suppliers aps,
ap_supplier_sites_all assa,
per_people_x ppx,
mtl_system_items_vl msiv,
mtl_categories_kfv mck
where
1=1 and
pha.org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
haouv.organization_id=pha.org_id and
pha.type_lookup_code in (&apos;STANDARD&apos;,&apos;BLANKET&apos;,&apos;PLANNED&apos;) and
pha.po_header_id=pla.po_header_id and
pla.po_line_id=plla.po_line_id and
plla.shipment_type in (&apos;STANDARD&apos;,&apos;BLANKET&apos;,&apos;SCHEDULED&apos;) and
nvl(plla.cancel_flag,&apos;N&apos;)=&apos;N&apos; and
plla.po_release_id=pra.po_release_id(+) and
pha.vendor_id=aps.vendor_id and
pha.vendor_site_id=assa.vendor_site_id and
nvl2(pra.po_release_id,pra.agent_id,pha.agent_id)=ppx.person_id(+) and
pla.item_id=msiv.inventory_item_id(+) and
plla.ship_to_organization_id=msiv.organization_id(+) and
pla.category_id=mck.category_id(+)
union all
select
haouv.name operating_unit,
aps.vendor_name supplier,
assa.vendor_site_code supplier_site,
prla.requisition_line_id,
null po_number,
null po_type,
to_date(null) po_date,
to_date(null) po_approved_date,
null po_status,
ppx.full_name buyer,
null line_number,
msiv.concatenated_segments item,
prla.item_description,
mck.concatenated_segments category,
prla.quantity-nvl(prla.quantity_cancelled,0) quantity,
prla.unit_meas_lookup_code uom,
prla.unit_price,
nvl(prla.amount,(prla.quantity-nvl(prla.quantity_cancelled,0))*prla.unit_price) line_amount,
gl.currency_code currency,
prla.need_by_date,
to_date(null) promised_date,
null receipt_number,
to_date(null) received_date,
to_number(null) quantity_received,
to_number(null) quantity_billed,
null closure_status,
to_number(null) invoice_id,
to_number(null) invoiced_amount,
to_number(null) po_header_id,
to_number(null) line_location_id
from
hr_all_organization_units_vl haouv,
po_requisition_headers_all prha,
po_requisition_lines_all prla,
financials_system_params_all fspa,
gl_ledgers gl,
ap_suppliers aps,
ap_supplier_sites_all assa,
per_people_x ppx,
mtl_system_items_vl msiv,
mtl_categories_kfv mck
where
2=2 and
prha.org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
haouv.organization_id=prha.org_id and
prha.type_lookup_code=&apos;PURCHASE&apos; and
nvl(prha.authorization_status,&apos;INCOMPLETE&apos;) not in (&apos;SYSTEM_SAVED&apos;,&apos;CANCELLED&apos;,&apos;REJECTED&apos;,&apos;RETURNED&apos;) and
prha.requisition_header_id=prla.requisition_header_id and
prla.line_location_id is null and
prla.source_type_code=&apos;VENDOR&apos; and
nvl(prla.cancel_flag,&apos;N&apos;)=&apos;N&apos; and
nvl(prla.closed_code,&apos;OPEN&apos;)&lt;&gt;&apos;FINALLY CLOSED&apos; and
prha.org_id=fspa.org_id and
fspa.set_of_books_id=gl.ledger_id and
prla.vendor_id=aps.vendor_id(+) and
prla.vendor_site_id=assa.vendor_site_id(+) and
prla.suggested_buyer_id=ppx.person_id(+) and
prla.item_id=msiv.inventory_item_id(+) and
prla.destination_organization_id=msiv.organization_id(+) and
prla.category_id=mck.category_id(+)
) x,
po_requisition_lines_all prla,
po_requisition_headers_all prha,
per_people_x ppx_r,
ap_invoices_all aia
where
x.requisition_line_id=prla.requisition_line_id(+) and
prla.requisition_header_id=prha.requisition_header_id(+) and
prla.to_person_id=ppx_r.person_id(+) and
x.invoice_id=aia.invoice_id(+)
) y
order by
y.operating_unit,
y.po_header_id,
y.line_location_id,
y.requisition_line_id</SQL_TEXT>
  <VERSION_COMMENTS>New report: one row per purchase order shipment and per requisition line not yet ordered, with the date of each step from requisition to payment.</VERSION_COMMENTS>
  <NUMBER_FORMAT>#,##0.00;[Red]-#,##0.00</NUMBER_FORMAT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PO Procure to Pay Tracker</REPORT_NAME>
    <DESCRIPTION>One row per purchase order shipment, and per requisition line not yet on a purchase order, with the date of each step from requisition to payment and the accounting and GL posting of the invoice.

Requisition columns are those of the first requisition line placed on the shipment. Invoice columns are those of the first invoice matched to the shipment; Invoiced Amount sums its matched item lines. Validation Status reads as in the invoice workbench, Hold Name lists the invoice&apos;s unreleased holds, and Amount Remaining is shown on the invoice&apos;s first row only, so it can be summed. Paid Date is the latest payment date once the invoice is fully paid.

Accounted Date is when final accounting was created for the invoice, GL Posted Date when its journal was posted. Cancelled shipments and requisition lines are left out.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>haouv.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.default_operating_unit,xxen_util.previous_parameter_value(:parameter_id))</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>haouv.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>aps.vendor_name=:supplier_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AP Supplier</LOV_NAME>
    <LOV_GUID>B9847D20A0E4742FE0538931640A6379</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
aps.vendor_name value,
aps.segment1 description
from
ap_suppliers aps
where
(:$flex$.operating_unit is null or aps.vendor_id in (select assa.vendor_id from hr_all_organization_units_vl haouv, ap_supplier_sites_all assa where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos; and haouv.organization_id=assa.org_id)) and
(:$flex$.organization_code is null or aps.vendor_id in (select assa.vendor_id from org_organization_definitions ood, ap_supplier_sites_all assa where xxen_util.contains(:$flex$.organization_code,ood.organization_code)=&apos;Y&apos; and ood.operating_unit=assa.org_id))
order by
aps.vendor_name,
aps.vendor_id</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Supplier</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>aps.vendor_name=:supplier_name</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Supplier</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ppx.full_name=:buyer</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PO Buyer</LOV_NAME>
    <LOV_GUID>8E2FF36EDF2F79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
ppx.full_name value,
ppx.employee_number description
from
per_people_x ppx
where
ppx.current_employee_flag=&apos;Y&apos; and
ppx.person_id in (select pa.agent_id from po_agents pa where sysdate between nvl(pa.start_date_active,sysdate) and nvl(pa.end_date_active,sysdate)) and
ppx.person_id in
(
select
paaf.person_id
from
per_all_assignments_f paaf
where
trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date and
(:$flex$.organization_code is null or paaf.business_group_id in (select ood.business_group_id from org_organization_definitions ood where xxen_util.contains(:$flex$.organization_code,ood.organization_code)=&apos;Y&apos;)
)
)
order by
ppx.full_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Buyer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>ppx.full_name=:buyer</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Buyer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>pha.segment1=:po_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PO Number</LOV_NAME>
    <LOV_GUID>8E2FF36EDEED79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
pha.segment1 value,
xxen_util.meaning(pha.type_lookup_code,&apos;PO TYPE&apos;,201)||nvl2(aps.vendor_name,&apos;: &apos;||aps.vendor_name,null) description
from
po_headers_all pha,
ap_suppliers aps
where
(:$flex$.operating_unit is null or
 pha.org_id in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;) 
) and
pha.vendor_id=aps.vendor_id(+)
order by
pha.creation_date desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PO Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>1=2</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PO Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>plla.line_location_id in (
select
prla.line_location_id
from
po_requisition_headers_all prha,
po_requisition_lines_all prla
where
prha.segment1=:req_number and
prha.requisition_header_id=prla.requisition_header_id
)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PO Requisition Number</LOV_NAME>
    <LOV_GUID>0087D0A1D043F831E0630100007F0109</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
prha.segment1 value,
prha.description
from
hr_all_organization_units_vl haouv,
po_requisition_headers_all prha,
po_system_parameters_all pspa
where
prha.org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11) and
(:$flex$.operating_unit is null or xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;) and
haouv.organization_id=prha.org_id and
prha.org_id=pspa.org_id and
nvl(prha.authorization_status,&apos;INCOMPLETE&apos;)&lt;&gt;&apos;SYSTEM_SAVED&apos;
order by
haouv.name,
decode(pspa.manual_req_num_type,&apos;NUMERIC&apos;,to_number(prha.segment1)),
prha.segment1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>prha.segment1=:req_number</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>plla.creation_date&gt;=:creation_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date From</PARAMETER_NAME>
      <DESCRIPTION>Creation date of the purchase order shipment, or of the requisition line for lines not yet on a purchase order.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>prla.creation_date&gt;=:creation_date_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>plla.creation_date&lt;:creation_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date To</PARAMETER_NAME>
      <DESCRIPTION>Creation date of the purchase order shipment, or of the requisition line for lines not yet on a purchase order.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>prla.creation_date&lt;:creation_date_to+1</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(
nvl(plla.closed_code,&apos;OPEN&apos;) not in (&apos;CLOSED&apos;,&apos;FINALLY CLOSED&apos;) or
plla.line_location_id in (
select
aila.po_line_location_id
from
ap_invoice_lines_all aila,
ap_payment_schedules_all apsa
where
aila.invoice_id=apsa.invoice_id and
apsa.amount_remaining&lt;&gt;0
)
)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Open Only</PARAMETER_NAME>
      <DESCRIPTION>Shipments not closed, or whose invoice still has an amount to pay, and the requisition lines not yet on a purchase order.</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>
