<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: PO Internal Requisitions and Sales Orders -->
 <REPORTS_ROW>
  <GUID>400E31077B8EA4E2E0630100007FA77D</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
nvl(gl.short_name,gl.name) ledger,
haouv.name operating_unit,
mp.organization_code ship_from_org,
mp2.organization_code ship_to_org,
msiv.concatenated_segments item,
msiv.description item_description,
muomv.uom_code uom_code,
xxen_util.meaning(msiv.item_type,&apos;ITEM_TYPE&apos;,3) user_item_type,
misv.inventory_item_status_code item_status,
xxen_util.meaning(msiv.planning_make_buy_code,&apos;MTL_PLANNING_MAKE_BUY&apos;,700) make_or_buy,
&amp;category_columns
hp.party_name customer,
hca.account_number customer_number,
ooha.order_number sales_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;) sales_order_line,
xxen_util.yes(oola.open_flag) open,
ooha.orig_sys_document_ref requisition_number,
xxen_util.meaning(prha.type_lookup_code,&apos;REQUISITION TYPE&apos;,201) requisition_type,
ottt.name order_type,
oola.flow_status_code status,
hp.address1 address_line_1,
hp.address2 address_line_2,
hcsua.location location_number,
hl.city,
hl.state,
hl.county,
hl.country,
nvl(msiv.preprocessing_lead_time,0) supp_preprocessing_lead_time,
nvl(msiv.full_lead_time,0) supp_processing_lead_time,
nvl(msiv.postprocessing_lead_time,0) supp_postprocessing_lead_time,
nvl(msiv.fixed_lead_time,0) supp_fixed_lead_time,
nvl(msiv.variable_lead_time,0) supp_variable_lead_time,
nvl(msiv.cum_manufacturing_lead_time,0) supp_cum_mfg_lead_time,
nvl(msiv.cumulative_total_lead_time,0) supp_cum_total_lead_time,
nvl(msiv.lead_time_lot_size,0) supp_lead_time_lot_size,
xxen_util.meaning(oola.shipping_method_code,&apos;SHIP_METHOD&apos;,3) shipping_method_code,
nvl(
(
select mism.intransit_time 
from 
mtl_interorg_ship_methods mism 
where
mism.from_organization_id=oola.ship_from_org_id and 
mism.to_organization_id=prla.destination_organization_id and 
mism.ship_method=oola.shipping_method_code
),0) transit_lead_time,
nvl(msiv_to.preprocessing_lead_time,0) cust_preprocessing_lead_time,
nvl(msiv_to.full_lead_time,0) cust_processing_lead_time,
nvl(msiv_to.postprocessing_lead_time,0) cust_postprocessing_lead_time,
nvl(msiv_to.fixed_lead_time,0) cust_fixed_lead_time,
nvl(msiv_to.variable_lead_time,0) cust_variable_lead_time,
nvl(msiv_to.cum_manufacturing_lead_time,0) cust_cum_mfg_lead_time,
nvl(msiv_to.cumulative_total_lead_time,0) cust_cum_total_lead_time,
nvl(msiv_to.lead_time_lot_size,0) cust_lead_time_lot_size,
xxen_util.client_time(prla.need_by_date) need_by_date,
xxen_util.client_time(oola.request_date) request_date,
xxen_util.client_time(oola.promise_date) promise_date,
xxen_util.client_time(oola.schedule_ship_date) schedule_ship_date,
xxen_util.client_time(oola.schedule_arrival_date) schedule_arrival_date,
xxen_util.client_time(oola.actual_shipment_date) actual_shipment_date,
&amp;delivery_columns
&amp;lot_columns
xxen_util.client_time((select min(rt.transaction_date) from rcv_transactions rt where prla.requisition_line_id=rt.requisition_line_id)) receipt_date,
trunc(sysdate-ooha.request_date) days_outstanding,
case
when sysdate-ooha.request_date&lt;31  then &apos;30 days&apos;
when sysdate-ooha.request_date&lt;61  then &apos;31 to 60 days&apos;
when sysdate-ooha.request_date&lt;91  then &apos;61 to 90 days&apos;
when sysdate-ooha.request_date&lt;121 then &apos;91 to 120 days&apos;
when sysdate-ooha.request_date&lt;151 then &apos;121 to 150 days&apos;
when sysdate-ooha.request_date&lt;181 then &apos;151 to 180 days&apos;
else &apos;Over 180 days&apos;
end aging_date,
oola.order_quantity_uom order_uom,
oola.ordered_quantity,
oola.shipped_quantity,
decode(oola.cancelled_flag,&apos;Y&apos;,oola.cancelled_quantity) cancelled_quantity,
decode(row_number() over (partition by prla.requisition_line_id order by oola.line_id),1,prla.quantity_delivered) ir_delivered_quantity,
decode(row_number() over (partition by prla.requisition_line_id order by oola.line_id),1,ms.in_receiving_quantity) ir_in_receiving_quantity,
decode(row_number() over (partition by prla.requisition_line_id order by oola.line_id),1,ms.in_transit_quantity) ir_in_transit_quantity,
decode(row_number() over (partition by prla.requisition_line_id order by oola.line_id),1,ms.not_shipped_quantity) ir_not_shipped_quantity,
gl.currency_code,
&amp;item_cost unit_cost,
(
select listagg(x.receipt_num,&apos;, &apos;)  
within group(order by x.receipt_num) receipt_number
from
(select distinct rt.requisition_line_id,
rsh.receipt_num
from 
rcv_transactions rt,
rcv_shipment_headers rsh
where 
rt.shipment_header_id=rsh.shipment_header_id and
rt.transaction_type in (&apos;RECEIVE&apos;,&apos;DELIVER&apos;)) x
where 
x.requisition_line_id=prla.requisition_line_id
) receipt_number,
xxen_util.meaning(nvl(oola.freight_terms_code,ooha.freight_terms_code),&apos;FREIGHT_TERMS&apos;,660) freight_terms,
xxen_util.meaning(nvl(oola.fob_point_code,ooha.fob_point_code),&apos;FOB&apos;,222) fob,
round(oola.ordered_quantity*&amp;item_cost,2) cogs_amount,
xxen_util.user_name(prha.created_by) ir_created_by,
xxen_util.client_time(prha.creation_date) ir_creation_date,
xxen_util.user_name(prha.last_updated_by) ir_last_updated_by,
xxen_util.client_time(prha.last_update_date) ir_last_update_date,
xxen_util.user_name(oola.created_by) so_created_by,
xxen_util.client_time(oola.creation_date) so_creation_date,
xxen_util.user_name(oola.last_updated_by) so_last_updated_by,
xxen_util.client_time(oola.last_update_date) so_last_update_date
from
po_requisition_lines_all prla,
po_requisition_headers_all prha,
mtl_parameters mp2,
oe_order_lines_all oola,
oe_order_headers_all ooha,
oe_transaction_types_tl ottt,
org_organization_definitions ood,
hr_all_organization_units_vl haouv,
mtl_parameters mp,
gl_ledgers gl,
mtl_system_items_vl msiv,
mtl_item_status_vl misv,
mtl_units_of_measure_vl muomv,
hz_cust_accounts hca,
hz_parties hp,
hz_cust_site_uses_all hcsua,
hz_cust_acct_sites_all hcasa,
hz_party_sites hps,
hz_locations hl,
&amp;delivery_tables
&amp;lot_tables
mtl_system_items_vl msiv_to,
(
select
ms.req_line_id,
sum(decode(ms.supply_type_code,&apos;RECEIVING&apos;,ms.quantity)) in_receiving_quantity,
sum(decode(ms.supply_type_code,&apos;SHIPMENT&apos;,ms.quantity)) in_transit_quantity,
sum(decode(ms.supply_type_code,&apos;REQ&apos;,ms.quantity)) not_shipped_quantity
from
mtl_supply ms
group by
ms.req_line_id
) ms
where
&amp;po_document_security
1=1 and
(
prla.destination_organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;) or
oola.ship_from_org_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;)
) and
nvl(:organization_type,&apos;Either&apos;)=nvl(:organization_type,&apos;Either&apos;) and
prla.requisition_header_id=prha.requisition_header_id and
prla.destination_organization_id=mp2.organization_id and
prla.requisition_line_id=oola.source_document_line_id and
oola.source_document_type_id=10 and --internal requisitions
oola.order_source_id=10 and --internal requisitions
oola.line_category_code=&apos;ORDER&apos; and
oola.header_id=ooha.header_id and
oola.line_type_id=ottt.transaction_type_id and
ottt.language=userenv(&apos;lang&apos;) and
oola.ship_from_org_id=ood.organization_id and
sysdate&lt;nvl(ood.disable_date,sysdate+1) and --only active orgs
ood.operating_unit=haouv.organization_id and
ood.set_of_books_id=gl.ledger_id and
oola.ship_from_org_id=mp.organization_id and
oola.inventory_item_id=msiv.inventory_item_id and
oola.ship_from_org_id=msiv.organization_id and
msiv.inventory_item_status_code=misv.inventory_item_status_code and
msiv.primary_uom_code=muomv.uom_code and
(mp.process_enabled_flag=&apos;Y&apos; or exists (select null from cst_item_costs cic where msiv.inventory_item_id=cic.inventory_item_id and msiv.organization_id=cic.organization_id and mp.primary_cost_method=cic.cost_type_id)) and
oola.sold_to_org_id=hca.cust_account_id and
hca.party_id=hp.party_id and
oola.ship_to_org_id=hcsua.site_use_id and
hcsua.cust_acct_site_id=hcasa.cust_acct_site_id and
hcasa.party_site_id=hps.party_site_id and
hps.location_id=hl.location_id and
&amp;delivery_joins
&amp;lot_joins
prla.item_id=msiv_to.inventory_item_id(+) and
prla.destination_organization_id=msiv_to.organization_id(+) and
prla.requisition_line_id=ms.req_line_id(+)
order by
nvl(gl.short_name,gl.name),
operating_unit,
mp.organization_code,
mp2.organization_code,
msiv.concatenated_segments,
hp.party_name,
ooha.order_number,
oola.line_number</SQL_TEXT>
  <VERSION_COMMENTS>Applies the Purchasing document security to the listed requisitions.</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PO Internal Requisitions and Sales Orders</REPORT_NAME>
    <DESCRIPTION>Report to display internal sales orders and requisition numbers, with aging dates and other useful information. For process manufacturing organizations the unit cost and COGS amount come from the OPM item cost of the fiscal policy cost type in the latest costed period; discrete organizations use the item cost of the primary cost method.

IR Delivered, IR In Receiving, IR In Transit and IR Not Shipped Quantity split each requisition line as Oracle planning counts it: delivered into the destination organization, received but not yet delivered, shipped but not yet received, and not yet shipped. They are in the requisition&apos;s unit of measure and show on the first sales order line of a requisition line only, so that split sales order lines do not count them twice.

Open refers to the internal sales order line, which closes when it ships, before it is received. Leave it empty to include shipped lines that are still in transit.

With Show Delivery Details, an order line returns one row per delivery and pick status; Delivery Qty and Delivery Shipped Qty are the quantities of that row, and a row packed in several containers lists their tracking numbers separated by commas.

With Show Lot Numbers, an order line returns one row per lot of its shipment transaction with Lot Number and Lot Quantity.

Together with Show Delivery Details the rows are per delivery detail and lot, and Delivery Qty and Delivery Shipped Qty appear once per delivery detail, on its first lot row. A shipment whose delivery detail was purged shows its lots only without Show Delivery Details.

Purchasing document security (Setup &gt; Purchasing &gt; Document Types) applies to the listed requisitions, so users see the documents the Requisition Summary form shows them. Profile Blitz Report Disable PO Document Security switches it off.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;category_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;delivery_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;delivery_joins</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;delivery_tables</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;item_cost</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lot_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lot_detail</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lot_joins</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lot_mode</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lot_order</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lot_tables</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_document_security</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:organization_type</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-90</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;po_document_security</ANCHOR>
    <SQL_TEXT>select xxen_util.po_document_security(&apos;REQUISITION&apos;,&apos;prha&apos;)||&apos; and&apos; from dual where xxen_util.has_po_document_security(&apos;REQUISITION&apos;)=&apos;Y&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>x</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PO Document Security</PARAMETER_NAME>
      <DESCRIPTION>Applies the Purchasing document security of the document types (Setup &gt; Purchasing &gt; Document Types) to the listed documents. Profile Blitz Report Disable PO Document Security switches it off.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;lot_joins</ANCHOR>
    <SQL_TEXT>oola.line_id=lot.trx_source_line_id(+) and</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <MATCHING_VALUE>LINE</MATCHING_VALUE>
    <DEFAULT_VALUE>select decode(:$flex$.show_delivery_details,&apos;Y&apos;,&apos;DETAIL&apos;,&apos;LINE&apos;) from dual where :$flex$.show_lot_numbers=&apos;Y&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lot Join Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <ANCHOR>&amp;lot_joins</ANCHOR>
    <SQL_TEXT>wdd.delivery_detail_id=lot.picking_line_id(+) and</SQL_TEXT>
    <MATCHING_VALUE>DETAIL</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lot Join Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <ANCHOR>&amp;lot_detail</ANCHOR>
    <SQL_TEXT>D</SQL_TEXT>
    <MATCHING_VALUE>DETAIL</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lot Join Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <ANCHOR>&amp;lot_mode</ANCHOR>
    <SQL_TEXT>Y</SQL_TEXT>
    <MATCHING_VALUE>DETAIL</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lot Join Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <ANCHOR>&amp;lot_mode</ANCHOR>
    <SQL_TEXT>Y</SQL_TEXT>
    <MATCHING_VALUE>LINE</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lot Join Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>:opm_item_cost=:opm_item_cost</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <DEFAULT_VALUE>select nvl(max(&apos;Y&apos;),&apos;N&apos;) from user_arguments ua where ua.package_name=&apos;GMF_CMCOMMON&apos; and ua.object_name=&apos;GET_CMPT_COST&apos; and ua.argument_name=&apos;P_PRIOR_PERIOD_COST&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>OPM Item Cost</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>&amp;item_cost</ANCHOR>
    <SQL_TEXT>(select cic.item_cost from cst_item_costs cic where msiv.inventory_item_id=cic.inventory_item_id and msiv.organization_id=cic.organization_id and mp.primary_cost_method=cic.cost_type_id)</SQL_TEXT>
    <MATCHING_VALUE>N</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>OPM Item Cost</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <ANCHOR>&amp;item_cost</ANCHOR>
    <SQL_TEXT>case
when mp.process_enabled_flag=&apos;Y&apos; then gmf_cmcommon.get_cmpt_cost(oola.inventory_item_id,nvl(mp.cost_organization_id,oola.ship_from_org_id),sysdate,(select gfp.cost_type_id from gmf_fiscal_policies gfp where ood.legal_entity=gfp.legal_entity_id),1)
else (select cic.item_cost from cst_item_costs cic where msiv.inventory_item_id=cic.inventory_item_id and msiv.organization_id=cic.organization_id and mp.primary_cost_method=cic.cost_type_id)
end</SQL_TEXT>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>OPM Item Cost</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prla.creation_date&gt;=:creation_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition Creation Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prla.creation_date&lt;:creation_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.requisition_creation_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition Creation Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>msiv.concatenated_segments=:item_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Item (master, costing enabled only)</LOV_NAME>
    <LOV_GUID>91D022B15B12FFB9E053BB6B63587F0B</LOV_GUID>
    <LOV_QUERY_DSP>select
msiv.concatenated_segments value,
msiv.description
from
mtl_system_items_vl msiv
where
msiv.organization_id=(
select
max(mp.master_organization_id) master_organization_id
from
mtl_parameters mp
where
mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or
fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) is null and
mp.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;)
) and
msiv.costing_enabled_flag=&apos;Y&apos;
order by
msiv.concatenated_segments</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(
nvl(:organization_type,&apos;SOURCE&apos;)=&apos;SOURCE&apos; and mp.organization_code=:p_org_code or
nvl(:organization_type,&apos;DESTINATION&apos;)=&apos;DESTINATION&apos; and mp2.organization_code=:p_org_code
)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name description
from
org_organization_definitions ood
where
ood.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.organization_id=mp.master_organization_id) and
ood.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;) and
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
nvl(ood.disable_date,sysdate)&gt;=sysdate
order by
ood.organization_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select mp.organization_code from mtl_parameters mp where mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>:organization_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
x.id,
x.value,
null description
from
(
select &apos;DESTINATION&apos; id, xxen_util.meaning(&apos;DESTINATION&apos;,&apos;SRS ORDER BY&apos;,201) value from dual union all
select &apos;SOURCE&apos; id, xxen_util.meaning(&apos;SOURCE&apos;,&apos;AUTOCREATE ACTION&apos;,201) value from dual
) x
where
:$flex$.organization_code is not null
order by
x.value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.meaning(&apos;SRC&apos;,&apos;PO_CLM_INSPECTION_LOC&apos;,201)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>haouv.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
order by
hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name=:ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB879D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
gl.ledger_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;LEDGER&apos;) and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>oola.open_flag=:open_flag</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes_No</LOV_NAME>
    <LOV_QUERY_DSP>select
lookup_code id,
meaning value,
null description
from
fnd_lookups
where fnd_lookups.lookup_type=&apos;YES_NO&apos;
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Open</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_columns</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.previous_parameter_value(:parameter_id),(select mdsv.category_set_name from mtl_default_sets_view mdsv where mdsv.functional_area_id=11))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category Set 1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_columns</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.previous_parameter_value(:parameter_id),(select mdsv.category_set_name from mtl_default_sets_view mdsv where mdsv.functional_area_id=5))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category Set 2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_columns</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.previous_parameter_value(:parameter_id)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category Set 3</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prha.segment1=:requisition_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PO Requisition Number</LOV_NAME>
    <LOV_GUID>0087D0A1D043F831E0630100007F0109</LOV_GUID>
    <LOV_QUERY_DSP>select
prha.segment1 value,
prha.description
from
hr_all_organization_units_vl haouv,
po_requisition_headers_all prha,
po_system_parameters_all pspa
where
prha.org_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;) and
(:$flex$.operating_unit is null or xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;) and
haouv.organization_id=prha.org_id and
prha.org_id=pspa.org_id and
nvl(prha.authorization_status,&apos;INCOMPLETE&apos;)&lt;&gt;&apos;SYSTEM_SAVED&apos;
order by
haouv.name,
decode(pspa.manual_req_num_type,&apos;NUMERIC&apos;,to_number(prha.segment1)),
prha.segment1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition Number</PARAMETER_NAME>
      <DESCRIPTION>Limits the report to the selected internal requisitions.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>22</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ooha.order_number=:sales_order_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_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
ooha.order_source_id=10 and
ooha.org_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;) and
(:$flex$.operating_unit is null or ooha.org_id in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) 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>Sales Order Number</PARAMETER_NAME>
      <DESCRIPTION>Limits the report to the selected internal sales orders.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>23</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;delivery_columns</ANCHOR>
    <SQL_TEXT>wnd.name delivery,
xxen_util.meaning(wnd.status_code,&apos;DELIVERY_STATUS&apos;,665) delivery_status,
xxen_util.meaning(case when wdd.released_status=&apos;S&apos; and wdd.move_order_line_id is null then &apos;K&apos; else wdd.released_status end,&apos;PICK_STATUS&apos;,665) pick_status,
xxen_util.client_time(wnd.initial_pickup_date) departure_date,
xxen_util.client_time(wnd.ultimate_dropoff_date) arrival_date,
case when &apos;&amp;lot_detail&apos;=&apos;D&apos; then decode(row_number() over (partition by prla.requisition_line_id,oola.line_id,wdd.delivery_detail_id order by null&amp;lot_order),1,wdd.requested_quantity) else
(
select
sum(wdd2.requested_quantity)
from
wsh_delivery_details wdd2,
wsh_delivery_assignments wda2
where
wdd.source_line_id=wdd2.source_line_id and
wdd2.source_code=&apos;OE&apos; and
nvl(wdd2.line_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wdd2.delivery_detail_id=wda2.delivery_detail_id(+) and
nvl(wda.delivery_id,-1)=nvl(wda2.delivery_id,-1) and
case when wdd.released_status=&apos;S&apos; and wdd.move_order_line_id is null then &apos;K&apos; else wdd.released_status end=case when wdd2.released_status=&apos;S&apos; and wdd2.move_order_line_id is null then &apos;K&apos; else wdd2.released_status end
)
end delivery_qty,
case when &apos;&amp;lot_detail&apos;=&apos;D&apos; then decode(row_number() over (partition by prla.requisition_line_id,oola.line_id,wdd.delivery_detail_id order by null&amp;lot_order),1,wdd.shipped_quantity) else
(
select
sum(wdd2.shipped_quantity)
from
wsh_delivery_details wdd2,
wsh_delivery_assignments wda2
where
wdd.source_line_id=wdd2.source_line_id and
wdd2.source_code=&apos;OE&apos; and
nvl(wdd2.line_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wdd2.delivery_detail_id=wda2.delivery_detail_id(+) and
nvl(wda.delivery_id,-1)=nvl(wda2.delivery_id,-1) and
case when wdd.released_status=&apos;S&apos; and wdd.move_order_line_id is null then &apos;K&apos; else wdd.released_status end=case when wdd2.released_status=&apos;S&apos; and wdd2.move_order_line_id is null then &apos;K&apos; else wdd2.released_status end
)
end delivery_shipped_qty,
case when &apos;&amp;lot_detail&apos;=&apos;D&apos; then wdd.tracking_number else
(
select
listagg(wdd2.tracking_number,&apos;, &apos;) within group (order by wdd2.tracking_number)
from
wsh_delivery_details wdd2,
wsh_delivery_assignments wda2
where
wdd.source_line_id=wdd2.source_line_id and
wdd2.source_code=&apos;OE&apos; and
nvl(wdd2.line_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wdd2.delivery_detail_id=wda2.delivery_detail_id(+) and
nvl(wda.delivery_id,-1)=nvl(wda2.delivery_id,-1) and
case when wdd.released_status=&apos;S&apos; and wdd.move_order_line_id is null then &apos;K&apos; else wdd.released_status end=case when wdd2.released_status=&apos;S&apos; and wdd2.move_order_line_id is null then &apos;K&apos; else wdd2.released_status end and
wdd2.tracking_number is not null and
not exists
(
select
null
from
wsh_delivery_details wdd3,
wsh_delivery_assignments wda3
where
wdd.source_line_id=wdd3.source_line_id and
wdd3.source_code=&apos;OE&apos; and
nvl(wdd3.line_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wdd3.delivery_detail_id=wda3.delivery_detail_id(+) and
nvl(wda.delivery_id,-1)=nvl(wda3.delivery_id,-1) and
case when wdd.released_status=&apos;S&apos; and wdd.move_order_line_id is null then &apos;K&apos; else wdd.released_status end=case when wdd3.released_status=&apos;S&apos; and wdd3.move_order_line_id is null then &apos;K&apos; else wdd3.released_status end and
wdd2.tracking_number=wdd3.tracking_number and
wdd3.delivery_detail_id&lt;wdd2.delivery_detail_id
)
)
end tracking_number,</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Delivery Details</PARAMETER_NAME>
      <DESCRIPTION>Adds the delivery columns. An order line returns one row per delivery and pick status, Delivery Qty and Delivery Shipped Qty are the quantities of that row, and a row packed in several containers lists their tracking numbers separated by commas.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>24</SORT_ORDER>
    <ANCHOR>&amp;delivery_joins</ANCHOR>
    <SQL_TEXT>oola.line_id=wdd.source_line_id(+) and
wdd.source_code(+)=&apos;OE&apos; and
nvl(wdd.line_direction(+),&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wdd.delivery_detail_id=wda.delivery_detail_id(+) and
wda.delivery_id=wnd.delivery_id(+) and
nvl(wnd.delivery_type(+),&apos;STANDARD&apos;)=&apos;STANDARD&apos; and
(
&apos;&amp;lot_detail&apos;=&apos;D&apos; or
wdd.delivery_detail_id is null or
wdd.delivery_detail_id=
(
select
min(wdd2.delivery_detail_id)
from
wsh_delivery_details wdd2,
wsh_delivery_assignments wda2
where
wdd.source_line_id=wdd2.source_line_id and
wdd2.source_code=&apos;OE&apos; and
nvl(wdd2.line_direction,&apos;O&apos;) in (&apos;O&apos;,&apos;IO&apos;) and
wdd2.delivery_detail_id=wda2.delivery_detail_id(+) and
nvl(wda.delivery_id,-1)=nvl(wda2.delivery_id,-1) and
case when wdd.released_status=&apos;S&apos; and wdd.move_order_line_id is null then &apos;K&apos; else wdd.released_status end=case when wdd2.released_status=&apos;S&apos; and wdd2.move_order_line_id is null then &apos;K&apos; else wdd2.released_status end
)
) and</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Delivery Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>25</SORT_ORDER>
    <ANCHOR>&amp;delivery_tables</ANCHOR>
    <SQL_TEXT>wsh_delivery_details wdd,
wsh_delivery_assignments wda,
wsh_new_deliveries wnd,</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Delivery Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>26</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;lot_columns</ANCHOR>
    <SQL_TEXT>lot.lot_number,
lot.lot_quantity,</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Lot Numbers</PARAMETER_NAME>
      <DESCRIPTION>Adds Lot Number and Lot Quantity, one row per lot of the line&apos;s shipment transaction; a line without a shipment or without lot control keeps one row with the lot blank. Together with Show Delivery Details the rows are per delivery detail and lot.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>27</SORT_ORDER>
    <ANCHOR>&amp;lot_order</ANCHOR>
    <SQL_TEXT>,lot.lot_number,lot.lot_quantity</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Lot Numbers</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>28</SORT_ORDER>
    <ANCHOR>&amp;lot_tables</ANCHOR>
    <SQL_TEXT>(
select
mmt.trx_source_line_id,
mmt.picking_line_id,
mtln.lot_number,
abs(mtln.transaction_quantity) lot_quantity
from
mtl_material_transactions mmt,
mtl_transaction_lot_numbers mtln
where
mmt.transaction_source_type_id=8 and
&apos;&amp;lot_mode&apos; is not null and
mmt.transaction_action_id in (1,3,21) and
mmt.transaction_quantity&lt;0 and
mtln.transaction_id=mmt.transaction_id
) lot,</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Lot Numbers</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>
