<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: DPP Warehouse-wise Item Serial Number -->
 <REPORTS_ROW>
  <GUID>82288223EF7A3869E053B46B63588994</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>SELECT 
MSIK.concatenated_segments &quot;ITEM_NUMBER&quot;,
ood.ORGANIZATION_NAME &quot;WAREHOUSE&quot;,
DID.Quantity &quot;QUANTITY&quot; ,
NVL(MSN.SERIAL_NUMBER, &apos;No Serial Number Available&apos;) &quot;SERIAL_NUMBER&quot;
FROM
dpp_transaction_headers_all dh
JOIN
dpp_transaction_lines_all dl
ON dh.transaction_header_id = dl.transaction_header_id
AND dh.transaction_number = :TRANSACTION_NUMBER
AND dl.inventory_item_id =:INVENTORY_ITEM_ID
INNER JOIN
 org_organization_definitions ood
ON dh.org_id = ood.operating_unit
INNER JOIN
financials_system_params_all fspa
ON dh.org_id  = fspa.org_id 
INNER JOIN
dpp_inventory_details_all did
ON
did.organization_id =:WAREHOUSE_ID and
did.organization_id = ood.organization_id
AND did.transaction_line_id = dl.transaction_line_id
LEFT OUTER JOIN
mtl_serial_numbers msn
ON msn.current_organization_id = did.organization_id 
AND msn.inventory_item_id = did.inventory_item_id
AND msn.current_status NOT IN( 4,5)
AND(
    (dh.days_covered is null and msn.creation_date &lt; dh.effective_start_date)
     OR
    (dh.days_covered is NOT NULL
    and msn.creation_date &gt;= dh.effective_start_date-dh.days_covered
    and msn.creation_date &lt;  dh.effective_start_date)
  )
INNER JOIN
mtl_system_items_kfv msiK
ON dl.inventory_item_id = msiK.inventory_item_id
AND msiK.organization_id = ood.organization_id
AND msiK.organization_id = fspa.inventory_organization_id
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>DPP</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>DPPSERNUM</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>DPP Warehouse-wise Item Serial Number</REPORT_NAME>
    <DESCRIPTION>Application: Oracle Price Protection
Source: 
Short Name: DPPSERNUM
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:inventory_item_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:transaction_number</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:warehouse_id</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
