<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>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: ONT Line Status -->
 <LOVS_ROW>
  <GUID>8E2FF36EDF0A79D2E0530100007F1FF2</GUID>
  <LOV_NAME>ONT Line Status</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
flvv.meaning value,
flvv.lookup_code description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;LINE_FLOW_STATUS&apos; and
flvv.view_application_id=660 and
flvv.security_group_id=0
order by
flvv.meaning</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: Train Order Managment -->
 <REPORTS_ROW>
  <GUID>D2254BECF35C1C0EE05362FB09050936</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>SELECT hp.party_name &quot;Customer&quot;,
       msi.segment1  ISBN,
       substr(msi.DEFAULT_SO_SOURCE_TYPE, 1, 10) item_source,
       ooh.order_number order_num,
       hl_ship.address1 || Decode(hl_ship.address2, NULL, &apos;&apos;, chr(10)) ||
       hl_ship.address2 || Decode(hl_ship.address3, NULL, &apos;&apos;, chr(10)) ||
       hl_ship.address3 || Decode(hl_ship.address4, NULL, &apos;&apos;, chr(10)) ||
       hl_ship.address4 || Decode(hl_ship.city, NULL, &apos;&apos;, chr(10)) ||
       hl_ship.city || Decode(hl_ship.state, NULL, &apos;&apos;, &apos;,&apos;) ||
       hl_ship.state || Decode(hl_ship.postal_code, &apos;&apos;, &apos;,&apos;) ||
       hl_ship.postal_code ship_to,
       oola.cust_po_number PO,
       hcs_ship.dates_positive_tolerance LAD_DAYS,
       oola.request_date RD,
       oola.promise_date,
       oola.schedule_ship_date SSD,
       trunc(oola.actual_shipment_date) Date_ship,
       trunc(oola.LATEST_ACCEPTABLE_DATE) LAD,
       oola.line_number || &apos;.&apos; || oola.shipment_number line_num,
       oola.ordered_quantity QTY,
       oola.SHIPPED_QUANTITY Ship_qty,
       oola.INVOICED_QUANTITY inv_qty,
       ooh.transactional_curr_code,
       oola.unit_selling_price price,
       round(oola.ordered_quantity * oola.unit_selling_price) amount,
       oola.flow_status_code Status,
       flv.meaning Item_type,
       ooh.CREATION_DATE Created,
       msi.INVENTORY_ITEM_STATUS_CODE item_status,
       msi.invoice_enabled_flag inv_enaB
  FROM apps.oe_order_headers_all     ooh,
       apps.oe_order_lines_all       oola,
       apps.mtl_system_items_b       msi,
       apps.oe_transaction_types_tl  ootl,
       apps.oe_transaction_types_all oot,
       apps.fnd_lookup_values        flv,
       apps.hz_parties               hp,
       apps.hz_cust_accounts         hca,
       APPS.hz_cust_site_uses_all    hcs_ship,
       apps.hz_cust_acct_sites_all   hca_ship,
       apps.hz_party_sites           hps_ship,
       apps.hz_parties               hp_ship,
       apps.hz_locations             hl_ship

 WHERE 1=1
 and oola.header_id = ooh.header_id
   AND oola.inventory_item_id = msi.inventory_item_id
   AND oola.ship_from_org_id = msi.organization_id
      --AND oola.flow_status_code = &apos;AWAITING_SHIPPING&apos;
   AND oot.transaction_type_id = ooh.order_type_id
   AND ootl.transaction_type_id = ooh.order_type_id
   AND ootl.language = &apos;US&apos;
   AND ooh.open_flag = &apos;Y&apos;
      --and msi.SHIPPABLE_ITEM_FLAG = &apos;Y&apos;
      --and msi.SOURCE_TYPE=1
   and msi.item_type = apps.flv.lookup_code
   and flv.lookup_type = &apos;ITEM_TYPE&apos;
   and msi.segment1 = oola.ordered_item
      --and oola.request_date &lt; oola.schedule_ship_date
   AND ooh.creation_date &gt; sysdate - 1
      --AND ooh.creation_date between to_date(&apos;10-SEP-16&apos;, &apos;DD-MON-RR&apos;) and
      --  to_date(&apos;22-SEP-16&apos;, &apos;DD-MON-RR&apos;)
  -- and oola.SHIPPED_QUANTITY &gt; 0
   AND ooh.sold_to_org_id = hca.cust_account_id(+)
   AND hca.party_id = hp.party_id(+)
      --and hp.party_name = &apos;AMAZON EU SARL, UK BRANCH&apos;
   and oola.CANCELLED_FLAG = &apos;N&apos;
   AND ooh.ship_to_org_id = hcs_ship.site_use_id
   AND hcs_ship.cust_acct_site_id = hca_ship.cust_acct_site_id
   AND hca_ship.party_site_id = hps_ship.party_site_id
   AND hps_ship.party_id = hp_ship.party_id
   AND hps_ship.location_id = hl_ship.location_id
      --and wdd.source_code = &apos;OE&apos;
      --and oola.header_id = wdd.source_header_id (+)
      --and wdd.released_status in( &apos;S&apos;,&apos;R&apos;, &apos;B&apos;)
      --and oola.line_id = wdd.source_line_id (+)</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>Train Order Managment</REPORT_NAME>
    <DESCRIPTION>query sales for OM</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>oola.flow_status_code=xxen_util.lookup_code(:line_status,&apos;LINE_FLOW_STATUS&apos;,660)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>ONT Line Status</LOV_NAME>
    <LOV_GUID>8E2FF36EDF0A79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flvv.meaning value,
flvv.lookup_code description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;LINE_FLOW_STATUS&apos; and
flvv.view_application_id=660 and
flvv.security_group_id=0
order by
flvv.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Line Status</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>
