<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 Supplier Scheduling On-Time Delivery -->
 <REPORTS_ROW>
  <GUID>5DDFCBD71E1E40B491D70361A11641B0</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
x.operating_unit,
x.supplier,
x.supplier_number,
x.supplier_site,
x.po_number,
x.po_type,
x.schedule_numbers,
x.schedule_type,
x.item,
x.item_description,
x.ship_to_org,
x.ship_to_location,
x.buyer,
x.requested_delivery_date,
x.latest_scheduled_date,
x.po_promised_date,
x.po_need_by_date,
x.last_edi_date,
x.first_goods_receipt_date,
x.last_goods_receipt_date,
trunc(x.first_goods_receipt_date)-trunc(x.requested_delivery_date) delivery_delay_days,
xxen_util.yes(case when x.first_goods_receipt_date is not null and trunc(x.first_goods_receipt_date)-trunc(x.requested_delivery_date)&lt;=nvl(:on_time_tolerance_days,0) then &apos;Y&apos; end) on_time,
x.quantity_ordered,
x.quantity_received,
x.quantity_open,
x.uom,
x.partial_delivery,
x.fob,
x.freight_terms,
x.ship_method,
x.asn_date
from
(
select
haouv.name operating_unit,
pv.vendor_name supplier,
pv.segment1 supplier_number,
pvsa.vendor_site_code supplier_site,
poh.segment1 po_number,
xxen_util.meaning(poh.type_lookup_code,&apos;PO TYPE&apos;,201) po_type,
chv.schedule_numbers,
decode(chv.schedule_type,&apos;PLAN_SCHEDULE&apos;,&apos;Planning&apos;,&apos;SHIP_SCHEDULE&apos;,&apos;Shipping&apos;,chv.schedule_type) schedule_type,
msibk.concatenated_segments item,
msibk.description item_description,
mp.organization_code ship_to_org,
hla.location_code ship_to_location,
(select papf.full_name from per_all_people_f papf where papf.person_id=poh.agent_id and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date and rownum=1) buyer,
chv.first_scheduled_date requested_delivery_date,
chv.last_scheduled_date latest_scheduled_date,
pll.promised_date po_promised_date,
pll.need_by_date po_need_by_date,
chv.last_edi_date last_edi_date,
(select min(rt.transaction_date) from rcv_transactions rt where rt.po_line_location_id=pll.line_location_id and rt.transaction_type=&apos;RECEIVE&apos;) first_goods_receipt_date,
(select max(rt.transaction_date) from rcv_transactions rt where rt.po_line_location_id=pll.line_location_id and rt.transaction_type=&apos;RECEIVE&apos;) last_goods_receipt_date,
pll.quantity quantity_ordered,
pll.quantity_received quantity_received,
pll.quantity-nvl(pll.quantity_received,0) quantity_open,
pll.unit_meas_lookup_code uom,
xxen_util.yes(case when nvl(pll.quantity_received,0)&gt;0 and nvl(pll.quantity_received,0)&lt;pll.quantity then &apos;Y&apos; end) partial_delivery,
xxen_util.meaning(pll.fob_lookup_code,&apos;FOB&apos;,201) fob,
xxen_util.meaning(pll.freight_terms_lookup_code,&apos;FREIGHT TERMS&apos;,201) freight_terms,
pll.ship_via_lookup_code ship_method,
(select max(rsh.shipped_date) from rcv_shipment_headers rsh,rcv_shipment_lines rsl where rsl.shipment_header_id=rsh.shipment_header_id and rsl.po_line_location_id=pll.line_location_id and rsh.asn_type in (&apos;ASN&apos;,&apos;ASBN&apos;)) asn_date
from
(
select
x.line_location_id,
min(x.first_scheduled_date) first_scheduled_date,
max(x.last_scheduled_date) last_scheduled_date,
listagg(x.schedule_num,&apos;, &apos;) within group (order by x.schedule_num) schedule_numbers,
max(x.schedule_type) schedule_type,
max(x.last_edi_date) last_edi_date
from
(
select
cio.document_shipment_id line_location_id,
csh.schedule_num,
min(cio.due_date) first_scheduled_date,
max(cio.due_date) last_scheduled_date,
max(csh.schedule_type) schedule_type,
max(csh.last_edi_date) last_edi_date
from
chv_item_orders cio,
chv_schedule_headers csh
where
cio.supply_document_type=&apos;RELEASE&apos; and
cio.document_shipment_id is not null and
cio.schedule_id=csh.schedule_id
group by
cio.document_shipment_id,
csh.schedule_num
) x
group by
x.line_location_id
) chv,
po_line_locations_all pll,
po_lines_all pol,
po_headers_all poh,
po_vendors pv,
po_vendor_sites_all pvsa,
(
select
pll2.line_location_id,
pol2.item_id,
pll2.ship_to_organization_id
from
po_line_locations_all pll2,
po_lines_all pol2
where
pll2.po_line_id=pol2.po_line_id
) k,
mtl_system_items_b_kfv msibk,
mtl_parameters mp,
hr_locations_all hla,
hr_all_organization_units_vl haouv
where
chv.line_location_id=pll.line_location_id and
pll.po_line_id=pol.po_line_id and
pll.po_header_id=poh.po_header_id and
poh.vendor_id=pv.vendor_id and
poh.vendor_site_id=pvsa.vendor_site_id(+) and
pll.line_location_id=k.line_location_id and
k.item_id=msibk.inventory_item_id(+) and
k.ship_to_organization_id=msibk.organization_id(+) and
pll.ship_to_organization_id=mp.organization_id(+) and
pll.ship_to_location_id=hla.location_id(+) and
pll.org_id=haouv.organization_id(+) and
pll.org_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
) x
where
1=1
order by
x.operating_unit,
x.supplier,
x.po_number,
x.requested_delivery_date</SQL_TEXT>
  <VERSION_COMMENTS>Operating unit security reads the Blitz Report organization access alone, which already holds the operating unit of an 11i responsibility.</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PO Supplier Scheduling On-Time Delivery</REPORT_NAME>
    <DESCRIPTION>Supplier on-time delivery (OTD) based on the Oracle Supplier Scheduling (CHV) module instead of the purchase order form. For each firm scheduled release the report compares the scheduling-module requested delivery date against the actual goods receipt date and reports the delivery delay, ordered vs received quantity, and a partial-delivery flag. Designed for environments where the blanket PO holds only a skeleton (with placeholder dates) and the real call-off dates arrive via EDI into Supplier Scheduling. First-pass draft - see version comments for open scoping items.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:on_time_tolerance_days</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.operating_unit=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <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>
    <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>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.supplier=:supplier</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>AP Supplier</LOV_NAME>
    <LOV_GUID>B9847D20A0E4742FE0538931640A6379</LOV_GUID>
    <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>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.requested_delivery_date&gt;=:requested_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requested Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.requested_delivery_date&lt;:requested_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.requested_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requested Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.first_goods_receipt_date&gt;=:received_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Received Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.first_goods_receipt_date&lt;:received_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.received_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Received Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>:on_time_tolerance_days</ANCHOR>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>0</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>On Time Tolerance Days</PARAMETER_NAME>
     </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>
