<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: XXWSH_PACKING_WORKBENCH_DELIVERY_SEARCH -->
 <REPORTS_ROW>
  <GUID>5C32A64D202006B4E0530100007F9428</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>insert into xxen_report_search_ids xrsi (rowid1)
select
wdd.rowid
from
wsh_delivery_details wdd
where
1=1 and
(wdd.organization_id,wdd.inventory_item_id) in (select msib.organization_id, msib.inventory_item_id from mtl_system_items_b msib where msib.inventory_item_flag=&apos;Y&apos;) and
wdd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
wdd.source_code=&apos;OE&apos;</SQL_TEXT>
  <TYPE>S</TYPE>
  <REQUIRED_PARAMETERS>:Sales_Order is not null or
:Delivery_Name is not null or
:Box_Number is not null or
:Item is not null or
:Serial_Number is not null or
:Sales_Order_historic is not null or
:Delivery_Name_historic is not null or
:Item_historic is not null</REQUIRED_PARAMETERS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>XXWSH_PACKING_WORKBENCH_DELIVERY_SEARCH</REPORT_NAME>
    <DESCRIPTION>System report controlling the search functionality on the custom packing workbench form</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>wdd.source_header_id in (select ooh.header_id from oe_order_headers ooh where ooh.order_number=:order_number)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ooh.order_number value,
ottt.name||&apos;: &apos;||hca.account_name||&apos; (&apos;||xxen_util.meaning(ooh.flow_status_code,&apos;FLOW_STATUS&apos;,660)||&apos;)&apos; description
from
oe_order_headers ooh,
oe_transaction_types_tl ottt,
hz_cust_accounts hca
where
(ooh.header_id,ooh.org_id) in (
select wdd.source_header_id, wdd.org_id from wsh_delivery_details wdd where wdd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and wdd.source_code=&apos;OE&apos; and wdd.released_status in (&apos;Y&apos;,&apos;B&apos;,&apos;R&apos;,&apos;S&apos;)
) and
ooh.open_flag=&apos;Y&apos; and
ooh.sold_to_org_id=hca.cust_account_id and
ooh.order_type_id=ottt.transaction_type_id and
ottt.language=userenv(&apos;lang&apos;)
order by
ooh.order_number desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Auftrag</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sales Order</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>wdd.delivery_detail_id in (
select
wda.delivery_detail_id
from
wsh_new_deliveries wnd,
wsh_delivery_assignments wda
where
wnd.name=:delivery_number and
wnd.delivery_id=wda.delivery_id
)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
wnd.name value,
hca.account_name description
from
wsh_new_deliveries wnd,
hz_cust_accounts hca
where
wnd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
wnd.customer_id=hca.cust_account_id(+) and
nvl(wnd.shipment_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wnd.delivery_type=&apos;STANDARD&apos; and
wnd.status_code=&apos;OP&apos; and
wnd.delivery_id in (select wda.delivery_id from wsh_delivery_assignments wda, wsh_delivery_details wdd where wda.delivery_detail_id=wdd.delivery_detail_id and wdd.released_status in (&apos;Y&apos;,&apos;B&apos;,&apos;R&apos;,&apos;S&apos;) and wdd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;))
order by
wnd.delivery_id desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>3770374</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Lieferung</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Delivery Name</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>wdd.delivery_detail_id in (select xpba.delivery_detail_id from xxwsh_packing_box_assignments xpba where xpba.box_id=substr(:box_number,instr(:box_number,&apos;-&apos;)+1))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
mp.organization_code||&apos;-&apos;||xpba.box_id value,
wnd.name description,
xpba.box_id
from
mtl_parameters mp,
xxwsh_packing_box_assignments xpba,
wsh_delivery_assignments wda,
wsh_new_deliveries wnd
where
xpba.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
mp.organization_id=xpba.organization_id and
xpba.delivery_detail_id=wda.delivery_detail_id and
wda.delivery_id=wnd.delivery_id
order by
xpba.box_id desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Colli-Nummer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Box Number</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>(wdd.inventory_item_id,wdd.organization_id) in (select msib.inventory_item_id,msib.organization_id from mtl_system_items_b msib where msib.segment1=:item)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
msiv.concatenated_segments value,
msiv.description
from
wsh_delivery_details wdd,
mtl_system_items_vl msiv
where
wdd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
wdd.released_status in (&apos;Y&apos;,&apos;B&apos;,&apos;R&apos;,&apos;S&apos;) and
wdd.inventory_item_id=msiv.inventory_item_id and
wdd.organization_id=msiv.organization_id
order by
msiv.concatenated_segments</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Artikel</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item</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>wdd.serial_number=:serial_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
wdd.serial_number value,
msiv.concatenated_segments||&apos;: &apos;||msiv.description description,
wdd.delivery_detail_id
from
wsh_delivery_details wdd,
mtl_system_items_vl msiv
where
wdd.serial_number is not null and
wdd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
wdd.released_status in (&apos;Y&apos;,&apos;B&apos;,&apos;R&apos;,&apos;S&apos;) and
wdd.organization_id=msiv.organization_id(+) and
wdd.inventory_item_id=msiv.inventory_item_id(+)
order by
wdd.delivery_detail_id desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Seriennummer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Serial Number</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>wdd.source_header_id in (select ooh.header_id from oe_order_headers ooh where ooh.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
ooh.order_number value,
ottt.name||&apos;: &apos;||hca.account_name||&apos; (&apos;||xxen_util.meaning(ooh.flow_status_code,&apos;FLOW_STATUS&apos;,660)||&apos;)&apos; description
from
oe_order_headers ooh,
oe_transaction_types_tl ottt,
hz_cust_accounts hca
where
(ooh.header_id,ooh.org_id) in (
select wdd.source_header_id, wdd.org_id from wsh_delivery_details wdd where wdd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and wdd.source_code=&apos;OE&apos;
) and
ooh.sold_to_org_id=hca.cust_account_id and
ooh.order_type_id=ottt.transaction_type_id and
ottt.language=userenv(&apos;lang&apos;)
order by
ooh.order_number desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Auftrag (historisch)</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sales Order (historic)</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>wdd.delivery_detail_id in (
select
wda.delivery_detail_id
from
wsh_new_deliveries wnd,
wsh_delivery_assignments wda
where
wnd.name=:delivery_number and
wnd.delivery_id=wda.delivery_id
)</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
wnd.name value,
hca.account_name description
from
wsh_new_deliveries wnd,
hz_cust_accounts hca
where
wnd.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
wnd.customer_id=hca.cust_account_id(+) and
nvl(wnd.shipment_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wnd.delivery_type=&apos;STANDARD&apos;
order by
wnd.delivery_id desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Lieferung (historisch)</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Delivery Name (historic)</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(wdd.inventory_item_id,wdd.organization_id) in (select msib.inventory_item_id,msib.organization_id from mtl_system_items_b msib where msib.segment1=:item)</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
msiv.concatenated_segments value,
msiv.description
from
mtl_system_items_vl msiv
where
msiv.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Artikel (historisch)</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item (historic)</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>
