<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: SCHUB Performance test -->
 <REPORTS_ROW>
  <GUID>22F57B8CCD068713E06362FB09057B6C</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
count(*) count,
nvl2(ooha.quote_number,&apos;not null&apos;,null) ooha_quote_number,
case when oola.quantity&lt;0 then &apos;&lt;0&apos; when oola.quantity&gt;0 then &apos;&gt;0&apos; else &apos;0&apos; end quantity_check,
oola.line_category_code,
oola.open_flag,
nvl2(oola.schedule_ship_date,&apos;not null&apos;,null) schedule_ship_date,
nvl2(oola.demand_source_line,&apos;not null&apos;,null) demand_source_line,
oola.flow_status_code
from
(
select
oola.header_id,
nvl(case when oola.order_quantity_uom&lt;&gt;msib.primary_uom_code and oola.ordered_quantity&lt;&gt;0 then
inv_convert.inv_um_convert(
item_id =&gt; oola.inventory_item_id,
precision =&gt; 9,
from_quantity =&gt; oola.ordered_quantity,
from_unit =&gt; oola.order_quantity_uom,
to_unit =&gt; msib.primary_uom_code,
from_name =&gt; null,
to_name =&gt; null
) else oola.ordered_quantity end,0)-
nvl((select sum(md.primary_uom_quantity) from mtl_demand md where to_char(oola.line_id)=md.demand_source_line and nvl(md.demand_source_type,2) in (2,8,12) and nvl(md.reservation_type,2) in (2,3)),0)-
nvl(case when oola.order_quantity_uom&lt;&gt;msib.primary_uom_code and oola.shipped_quantity&lt;&gt;0 then
inv_convert.inv_um_convert(
item_id =&gt; oola.inventory_item_id,
precision =&gt; 9,
from_quantity =&gt; oola.shipped_quantity,
from_unit =&gt; oola.order_quantity_uom,
to_unit =&gt; msib.primary_uom_code,
from_name =&gt; null,
to_name =&gt; null
) else oola.shipped_quantity end,0) quantity,
oola.line_category_code,
oola.open_flag,
nvl2(oola.schedule_ship_date,&apos;not null&apos;,null) schedule_ship_date,
oola.flow_status_code,
md.demand_source_line
from
oe_order_lines_all oola,
mtl_system_items_b msib,
mtl_demand md
where
1=1 and
--msib.primary_uom_code&lt;&gt;oola.order_quantity_uom and
oola.ship_from_org_id=msib.organization_id and
oola.inventory_item_id=msib.inventory_item_id and
to_char(oola.line_id)=md.demand_source_line(+) and
md.demand_source_type(+)=2
) oola,
oe_order_headers_all ooha
where
oola.header_id=ooha.header_id(+)
group by
nvl2(ooha.quote_number,&apos;not null&apos;,null),
case when oola.quantity&lt;0 then &apos;&lt;0&apos; when oola.quantity&gt;0 then &apos;&gt;0&apos; else &apos;0&apos; end,
oola.line_category_code,
oola.open_flag,
nvl2(oola.schedule_ship_date,&apos;not null&apos;,null),
nvl2(oola.demand_source_line,&apos;not null&apos;,null),
oola.flow_status_code
order by
oola.line_category_code,
oola.open_flag desc,
count(*) desc</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>SCHUB Performance test</REPORT_NAME>
   </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.ship_from_org_id=:org_id and</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV_SRS_ORG</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
to_char(organization_id) id,
organization_code value,
organization_name description
from
org_organization_definitions
where nvl(disable_date,sysdate+1)&gt;sysdate
order by value,description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization</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>
