<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: TestOrder -->
 <REPORTS_ROW>
  <GUID>2CCA4AA59B6D078CE06362FB09057337</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
null action_,
null status_,
null message_,
haouv.name operating_unit,
hp.party_name customer,
hca.account_number customer_number,
ooha.order_number,
nvl(ooha.quote_number,regexp_substr(ooha.orig_sys_document_ref,&apos;^(\d+).&apos;,1,1,null,1)) quote_number,
decode(ooha.source_document_type_id,10,&apos;Requisitions&apos;,2,&apos;Orders&apos;,16,&apos;Quotes&apos;,7,&apos;Incidents&apos;,(select oos0.name from oe_order_sources oos0 where ooha.source_document_type_id=oos0.order_source_id)) source_type,
case ooha.source_document_type_id
when 10 then (select prha.segment1 from po_requisition_headers_all prha where ooha.source_document_id=prha.requisition_header_id)
when 2 then (select to_char(ooha0.order_number) from oe_order_headers_all ooha0 where ooha.source_document_id=ooha0.header_id)
when 16 then (select aqha.quote_number||&apos;:&apos;||aqha.quote_version from aso_quote_headers_all aqha where ooha.source_document_id=aqha.quote_header_id)
when 7 then (select ciab.incident_number from cs_incidents_all_b ciab where ooha.source_document_id=ciab.incident_id)
end source_document,
decode(ooha.transaction_phase_code,&apos;N&apos;,&apos;Quote&apos;,&apos;Order&apos;) type,
ottt.name order_type,
nvl(oola.cust_po_number,ooha.cust_po_number) customer_po,
xxen_util.client_time(ooha.ordered_date) ordered_date,
oos.name order_source,
xxen_util.meaning(ooha.flow_status_code,&apos;FLOW_STATUS&apos;,660) header_status,
ooha.transactional_curr_code currency,
rtrim(oola.line_number||&apos;.&apos;||oola.shipment_number||&apos;.&apos;||oola.option_number||&apos;.&apos;||oola.component_number||&apos;.&apos;||oola.service_number,&apos;.&apos;) line,
ottt2.name line_type,
xxen_util.meaning(oola.flow_status_code,&apos;LINE_FLOW_STATUS&apos;,660) line_status,
msiv.concatenated_segments item,
msiv.description,
xxen_util.meaning(oola.item_type_code,&apos;ITEM_TYPE&apos;,660) item_type,
-- Order Header DFF Attributes
xxen_util.display_flexfield_context(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context) order_header_dff_context,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE1&apos;,ooha.rowid,ooha.attribute1) order_header_attribute1,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE2&apos;,ooha.rowid,ooha.attribute2) order_header_attribute2,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE3&apos;,ooha.rowid,ooha.attribute3) order_header_attribute3,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE4&apos;,ooha.rowid,ooha.attribute4) order_header_attribute4,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE5&apos;,ooha.rowid,ooha.attribute5) order_header_attribute5,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE6&apos;,ooha.rowid,ooha.attribute6) order_header_attribute6,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE7&apos;,ooha.rowid,ooha.attribute7) order_header_attribute7,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE8&apos;,ooha.rowid,ooha.attribute8) order_header_attribute8,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE9&apos;,ooha.rowid,ooha.attribute9) order_header_attribute9,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE10&apos;,ooha.rowid,ooha.attribute10) order_header_attribute10,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE11&apos;,ooha.rowid,ooha.attribute11) order_header_attribute11,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE12&apos;,ooha.rowid,ooha.attribute12) order_header_attribute12,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE13&apos;,ooha.rowid,ooha.attribute13) order_header_attribute13,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE14&apos;,ooha.rowid,ooha.attribute14) order_header_attribute14,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_ATTRIBUTES&apos;,ooha.context,&apos;ATTRIBUTE15&apos;,ooha.rowid,ooha.attribute15) order_header_attribute15,
-- Order Header TP Attributes
xxen_util.display_flexfield_context(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context) order_header_tp_context,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE1&apos;,ooha.rowid,ooha.tp_attribute1) order_header_tp_attribute1,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE2&apos;,ooha.rowid,ooha.tp_attribute2) order_header_tp_attribute2,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE3&apos;,ooha.rowid,ooha.tp_attribute3) order_header_tp_attribute3,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE4&apos;,ooha.rowid,ooha.tp_attribute4) order_header_tp_attribute4,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE5&apos;,ooha.rowid,ooha.tp_attribute5) order_header_tp_attribute5,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE6&apos;,ooha.rowid,ooha.tp_attribute6) order_header_tp_attribute6,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE7&apos;,ooha.rowid,ooha.tp_attribute7) order_header_tp_attribute7,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE8&apos;,ooha.rowid,ooha.tp_attribute8) order_header_tp_attribute8,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE9&apos;,ooha.rowid,ooha.tp_attribute9) order_header_tp_attribute9,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE10&apos;,ooha.rowid,ooha.tp_attribute10) order_header_tp_attribute10,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE11&apos;,ooha.rowid,ooha.tp_attribute11) order_header_tp_attribute11,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE12&apos;,ooha.rowid,ooha.tp_attribute12) order_header_tp_attribute12,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE13&apos;,ooha.rowid,ooha.tp_attribute13) order_header_tp_attribute13,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE14&apos;,ooha.rowid,ooha.tp_attribute14) order_header_tp_attribute14,
xxen_util.display_flexfield_value(660,&apos;OE_HEADER_TP_ATTRIBUTES&apos;,ooha.tp_context,&apos;TP_ATTRIBUTE15&apos;,ooha.rowid,ooha.tp_attribute15) order_header_tp_attribute15,
xxen_util.user_name(ooha.created_by) header_created_by,
xxen_util.client_time(ooha.creation_date) header_creation_date,
xxen_util.user_name(ooha.last_updated_by) header_last_updated_by,
xxen_util.client_time(ooha.last_update_date) header_last_update_date,
xxen_util.user_name(oola.created_by) line_created_by,
xxen_util.client_time(oola.creation_date) line_creation_date,
xxen_util.user_name(oola.last_updated_by) line_last_updated_by,
xxen_util.client_time(oola.last_update_date) line_last_update_date,
xxen_util.meaning(ooha.order_category_code,&apos;ORDER_CATEGORY&apos;,660) order_category,
xxen_util.meaning(oola.line_category_code,&apos;ORDER_CATEGORY&apos;,660) line_category,
ooha.header_id,
oola.line_id
from
hr_all_organization_units_vl haouv,
oe_order_headers_all ooha,
oe_transaction_types_tl ottt,
oe_transaction_types_tl ottt2,
mtl_system_items_vl msiv,
hz_cust_accounts hca,
hz_parties hp,
oe_order_sources oos,
oe_order_lines_all oola
where
1=1 and
2=2 and
3=3 and
4=4 and
ooha.order_number=50004 and
haouv.organization_id=ooha.org_id and
ooha.sold_to_org_id=hca.cust_account_id(+) and
hca.party_id=hp.party_id(+) and
ooha.order_type_id=ottt.transaction_type_id(+) and
ottt.language(+)=userenv(&apos;lang&apos;) and
ooha.order_source_id=oos.order_source_id(+) and
ooha.header_id=oola.header_id(+) and
oola.line_type_id=ottt2.transaction_type_id(+) and
ottt2.language(+)=userenv(&apos;lang&apos;) and
oola.inventory_item_id=msiv.inventory_item_id(+) and
oola.ship_from_org_id=msiv.organization_id(+) 
order by
haouv.name,
hp.party_name,
ooha.order_number,
rtrim(oola.line_number||&apos;.&apos;||oola.shipment_number||&apos;.&apos;||oola.option_number||&apos;.&apos;||oola.component_number||&apos;.&apos;||oola.service_number,&apos;.&apos;)</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>TestOrder</REPORT_NAME>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>4=4</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ooha.order_number=:order_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
ooha.order_number value,
ottt.name||&apos;: &apos;||hca.account_name||&apos; (&apos;||xxen_util.meaning(ooha.flow_status_code,&apos;FLOW_STATUS&apos;,660)||&apos;)&apos; description
from
oe_order_headers_all ooha,
oe_transaction_types_tl ottt,
hz_cust_accounts hca
where
nvl(ooha.transaction_phase_code,&apos;F&apos;)=&apos;F&apos; and
(:$flex$.operating_unit is null or ooha.org_id=(select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:$flex$.operating_unit)) and
ooha.sold_to_org_id=hca.cust_account_id and
ooha.order_type_id=ottt.transaction_type_id and
ottt.language=userenv(&apos;lang&apos;)
order by
ooha.order_number desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Order Number</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>ottt.name=:order_type</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ottt.name value,
xxen_util.meaning(otta.order_category_code,&apos;ORDER_CATEGORY&apos;,660) description
from
oe_transaction_types_all otta,
oe_transaction_types_tl ottt
where
(:$flex$.operating_unit is null or otta.org_id in (select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:$flex$.operating_unit)) and
otta.transaction_type_code=&apos;ORDER&apos; and
otta.transaction_type_id=ottt.transaction_type_id and
ottt.language=userenv(&apos;lang&apos;)
order by
decode(otta.order_category_code,&apos;ORDER&apos;,1,&apos;MIXED&apos;,2,3),
ottt.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Order Type</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>
