<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 Purchase Requisitions with PO Details -->
 <REPORTS_ROW>
  <GUID>C033C2D455F00791E0530100007FC526</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>with req as (
select /*+ push_pred(x) */
haouv.name operating_unit,
xxen_util.meaning(prha.type_lookup_code,&apos;REQUISITION TYPE&apos;,201) requisition_type,
prha.segment1 requisition_number,
trunc(prha.creation_date) creation_date,
xxen_util.user_name(prha.created_by) created_by_user,
ppx.full_name preparer_name,
prha.description description,
nvl(xxen_util.meaning(prha.authorization_status,&apos;AUTHORIZATION STATUS&apos;,201) ,prha.authorization_status) req_auth_status,
trunc(prha.approved_date) req_approved_date,
prha.note_to_authorizer,
prha.agent_return_flag agent_return_flag,
xxen_util.meaning(prha.closed_code,&apos;DOCUMENT STATE&apos;,201) req_closure_status,
prla.line_num line_number,
trunc(prla.creation_date) line_creation_date,
xxen_util.meaning(prla.source_type_code,&apos;REQUISITION SOURCE TYPE&apos;,201) line_source_type,
xxen_util.meaning(prla.purchase_basis,&apos;PURCHASE BASIS&apos;,201) line_type,
xxen_util.meaning(prla.order_type_lookup_code,&apos;ORDER TYPE&apos;,201) line_order_type,
msiv.concatenated_segments item,
prla.item_revision item_revision,
(select mck.concatenated_segments from mtl_categories_kfv mck where prla.category_id=mck.category_id) category,
nvl(prla.item_description ,msiv.description) line_description,
xxen_util.meaning(msiv.item_type,&apos;ITEM_TYPE&apos;,3) user_item_type,
(select misv.inventory_item_status_code_tl from mtl_item_status_vl misv where msiv.inventory_item_status_code=misv.inventory_item_status_code) item_status,
xxen_util.meaning(msiv.inventory_item_flag,&apos;YES_NO&apos;,0) inventory_item_flag,
xxen_util.meaning(msiv.stock_enabled_flag,&apos;YES_NO&apos;,0) stock_enabled_flag,
xxen_util.meaning(msiv.inventory_asset_flag,&apos;YES_NO&apos;,0) inventory_asset_flag,
xxen_util.concatenated_segments(msiv.expense_account) item_expense_account,
prla.unit_meas_lookup_code uom,
prla.quantity,
prla.quantity_cancelled,
prla.quantity_received,
prla.quantity_delivered,
prla.unit_price unit_price,
nvl(decode(prla.order_type_lookup_code,&apos;RATE&apos;, prla.amount,&apos;FIXED PRICE&apos;, prla.amount, prla.quantity * prla.unit_price),0) amount,
prla.need_by_date need_by_date,
ppx2.full_name requestor_name,
(select mp.organization_code from mtl_parameters mp where prla.destination_organization_id=mp.organization_id) destination_organization,
nvl(hrl.location_code,(substrb(rtrim(hzl.address1)||&apos;-&apos;||rtrim(hzl.city),1,60))) deliver_to_location,
(select mp.organization_code from mtl_parameters mp where prla.source_organization_id=mp.organization_id) source_organization,
prla.source_subinventory,    
prla.suggested_vendor_name suggested_supplier,
prla.suggested_vendor_location suggested_supplier_site,
prla.suggested_vendor_contact suggested_supplier_contact,
prla.suggested_vendor_product_code supplier_item,
prla.note_to_agent note_to_agent,
xxen_util.meaning(nvl(prla.on_rfq_flag,&apos;N&apos;),&apos;YES/NO&apos;,201) on_rfq,
prla2.line_num parent_req_line_number,
xxen_util.yes(prla.cancel_flag) cancelled_flag,
trunc(nvl(prla.cancel_date ,pah.cancelled_date)) cancelled_date,
nvl(prla.cancel_reason,pah.cancelled_note) cancelled_reason,
pah.cancelled_by,
&amp;req_dist_columns
&amp;req_dff_cols
&amp;item_dff_cols
prla.requisition_header_id,
prla.requisition_line_id,
prla.line_location_id,
prha.attribute_category req_hdr_dff_cat,
prha.rowid req_hdr_rowid,
prla.attribute_category req_line_dff_cat,
prla.rowid req_line_rowid,
msiv.attribute_category item_dff_category,
msiv.inventory_item_id,
nvl(prla.destination_organization_id,msiv.organization_id) organization_id,
msiv.rowid item_rowid
from 
po_requisition_headers_all prha,
po_requisition_lines_all prla,
po_requisition_lines_all prla2, 
&amp;req_dist_tables
financials_system_params_all fspa,
gl_ledgers gl,
hr_all_organization_units_vl haouv,
per_people_x ppx,
per_people_x ppx2,
hr_locations hrl,
hz_locations hzl,
mtl_system_items_vl msiv,
(
select
ppx.full_name cancelled_by,
pah.action_date cancelled_date,
pah.note cancelled_note,
pah.object_id requisition_header_id
from 
po_action_history pah,
per_people_x ppx
where
pah.employee_ID=ppx.person_id(+) and 
pah.object_type_code=&apos;REQUISITION&apos; and
pah.action_code=&apos;CANCEL&apos;
) pah
where
1=1 and
prha.type_lookup_code=&apos;PURCHASE&apos; and
nvl(prha.contractor_requisition_flag,&apos;N&apos;)&lt;&gt;&apos;Y&apos; and
prha.authorization_status&lt;&gt;&apos;INCOMPLETE&apos; and
prha.requisition_header_id=prla.requisition_header_id and 
&amp;req_dist_joins
fspa.org_id=prha.org_id and
gl.ledger_id=fspa.set_of_books_id and
prha.org_id=haouv.organization_id and
prha.preparer_id=ppx.person_id and
prla.to_person_id=ppx2.person_id and
prla.deliver_to_location_id=hrl.location_id(+) and
prla.deliver_to_location_id=hzl.location_id(+) and
prla.parent_req_line_id=prla2.requisition_line_id(+) and
prla.item_id=msiv.inventory_item_id(+) and
nvl(prla.destination_organization_id,fspa.inventory_organization_id)=nvl(msiv.organization_id,fspa.inventory_organization_id) and
prha.requisition_header_id=pah.requisition_header_id(+)
),
po as (
select /*+ push_pred(x) */
haouv.name po_operating_unit,
asu.vendor_name po_vendor_name,
asu.segment1 po_vendor_number,
assa.vendor_site_code po_vendor_site,
(select ftv.territory_short_name from fnd_territories_vl ftv where ftv.territory_code=assa.country) po_vendor_country,
pha.segment1 po_number,
pra.release_num po_release_num,
xxen_util.meaning(pha.authorization_status , &apos;DOCUMENT STATE&apos;, 201) po_auth_status,
xxen_util.meaning(pra.authorization_status , &apos;DOCUMENT STATE&apos;, 201) po_release_auth_status,
xxen_util.meaning(pha.closed_code,&apos;DOCUMENT STATE&apos;,201) po_header_closure_status,
xxen_util.meaning(pla.closed_code,&apos;DOCUMENT STATE&apos;,201) po_line_closure_status,
xxen_util.meaning(plla.closed_code,&apos;DOCUMENT STATE&apos;,201) po_shipment_closure_status,
trunc(pha.creation_date) po_creation_date,
trunc(pha.approved_date) po_approved_date,
trunc(pra.release_date) po_release_date,
pha.currency_code po_currency,
(
select
sum(decode(plla2.quantity,null,plla2.amount-nvl(plla2.amount_cancelled,0),(plla2.quantity-nvl(plla2.quantity_cancelled,0))*nvl2(plla2.price_override,plla2.price_override,nvl(pla2.unit_price,0))))
from
po_line_locations_all plla2,
po_lines_all pla2
where
pha.po_header_id=plla2.po_header_id and
plla2.po_line_id=pla2.po_line_id
) po_total_amount,
pla.line_num po_line_number,
pltv.line_type po_line_type,
(select mck.concatenated_segments from mtl_categories_kfv mck where pla.category_id=mck.category_id) po_line_category,
msiv.item po_line_item,
nvl(pla.item_description,msiv.description) po_line_description,
plla.shipment_num po_shipment_number,
plla.need_by_date po_shipment_need_by_date,
plla.promised_date po_shipment_promised_date,
plla.firm_date po_shipment_firm_date,
plla.unit_meas_lookup_code po_uom,
plla.quantity - nvl(plla.quantity_cancelled,0) po_quantity_ordered,
plla.quantity_accepted po_quantity_accepted,
plla.quantity_rejected po_quantity_rejected,
plla.quantity_received po_quantity_received,
plla.quantity_billed po_quantity_billed,
nvl(plla.price_override,pla.unit_price) po_unit_price,
decode(plla.quantity, null, (plla.amount - nvl(plla.amount_cancelled,0)),(plla.quantity - nvl(plla.quantity_cancelled,0))*nvl2(plla.price_override,plla.price_override,nvl(pla.unit_price,0)))po_amount_ordered,
decode(plla.quantity_accepted,null,plla.amount_accepted,plla.quantity_accepted*nvl(plla.price_override,pla.unit_price))po_amount_accepted,
decode(plla.quantity_rejected,null,plla.amount_rejected,plla.quantity_rejected*nvl(plla.price_override,pla.unit_price))po_amount_rejected,
decode(plla.quantity_received,null,plla.amount_received,plla.quantity_received*nvl(plla.price_override,pla.unit_price))po_amount_received,
plla.amount_billed po_amount_billed,
trunc(plla.creation_date) po_shipment_creation_date,
decode(plla.cancel_flag,&apos;Y&apos;,&apos;Y&apos;,null) po_shipment_cancelled_flag,
trunc(plla.cancel_date) po_shipment_cancelled_date,
plla.cancel_reason po_shipment_cancelled_reason,
xxen_util.user_name(plla.cancelled_by) po_shipment_cancelled_by,
mp1.organization_code po_ship_to_organization,
hl1.location_code po_ship_to_location,
(
select rtrim(xmlagg(xmlelement(e,x.receipt_num||&apos;, &apos;) order by x.receipt_num).extract(&apos;//text()&apos;).getclobval(),&apos;, &apos;)
from
(select distinct rt.po_line_location_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.po_line_location_id=plla.line_location_id
) receipt_number,
&amp;ap_cte_columns
&amp;po_dist_columns
&amp;po_dff_cols
plla.po_header_id,
plla.po_line_id,
plla.line_location_id,
pha.attribute_category po_hdr_dff_cat,
pha.rowid po_hdr_rowid,
pla.attribute_category po_line_dff_cat,
pla.rowid po_line_rowid
from
po_headers_all pha,
po_lines_all pla,
po_line_locations_all plla,
&amp;po_dist_tables
po_releases_all pra,
po_line_types_v pltv,
ap_suppliers asu,
ap_supplier_sites_all assa,
financials_system_params_all fspa,
gl_ledgers gl,
hr_all_organization_units_vl haouv,
hr_locations hl1,
mtl_parameters mp1,
(
select 
fspa.org_id,
msiv.inventory_item_id,
msiv.concatenated_segments item,
xxen_util.meaning(msiv.item_type,&apos;ITEM_TYPE&apos;,3) item_type,
msiv.description
from 
financials_system_params_all fspa,
mtl_system_items_vl msiv
where
msiv.organization_id=fspa.inventory_organization_id
) msiv
where
2=2 and
pha.po_header_id=pla.po_header_id and
pla.po_header_id=plla.po_header_id and
pla.po_line_id=plla.po_line_id and
&amp;po_dist_joins
plla.po_release_id=pra.po_release_id(+) and
pha.vendor_id=asu.vendor_id and
pha.vendor_site_id=assa.vendor_site_id and
pha.org_id=fspa.org_id and
gl.ledger_id=fspa.set_of_books_id and
haouv.organization_id=pha.org_id and
pla.line_type_id=pltv.line_type_id and
pla.item_id=msiv.inventory_item_id(+) and
pla.org_id=msiv.org_id(+) and
plla.ship_to_organization_id=mp1.organization_id(+) and
plla.ship_to_location_id=hl1.location_id(+)
)
select 
req.operating_unit,
req.requisition_type,
req.requisition_number,
req.creation_date,
req.created_by_user,
req.preparer_name,
req.description,
req.req_auth_status,
req.req_approved_date,
req.req_closure_status,
req.cancelled_flag,
req.cancelled_date,
req.cancelled_reason,
req.cancelled_by,
req.note_to_authorizer,
req.agent_return_flag,
req.line_number,
req.line_source_type,
req.line_type,
req.line_order_type,
req.line_creation_date,
req.item,
req.item_revision,
req.user_item_type,
req.item_status,
req.inventory_item_flag,
req.stock_enabled_flag,
req.inventory_asset_flag,
req.item_expense_account,
&amp;category_columns
req.category,
req.line_description,
req.need_by_date,
req.unit_price, 
req.requestor_name,
req.destination_organization,
req.deliver_to_location,
req.source_organization,
req.source_subinventory,
req.suggested_supplier,
req.suggested_supplier_site,
req.suggested_supplier_contact,
req.supplier_item,
&amp;req_line_columns_disp 
&amp;req_dist_columns_disp
req.note_to_agent,
req.on_rfq,
req.parent_req_line_number,
&amp;req_dff_cols_disp
&amp;item_dff_cols_disp
xxen_util.yes(nvl2(req.line_location_id,&apos;Y&apos;,null)) converted_to_po,
po.po_vendor_name,
po.po_vendor_number,
po.po_vendor_site,
po.po_vendor_country,
po.po_number,
po.po_release_num,
po.po_auth_status,
po.po_release_auth_status,
po.po_header_closure_status,
po.po_line_closure_status,
po.po_shipment_closure_status,
po.po_creation_date,
po.po_approved_date,
po.po_release_date,
po.po_currency,
po.po_total_amount,
po.po_line_number,
po.po_line_type,
po.po_line_category,
po.po_line_item,
po.po_line_description,
po.po_shipment_number,
po.po_shipment_need_by_date,
po.po_shipment_promised_date,
po.po_shipment_firm_date,
po.receipt_number,
po.po_ship_to_organization,
po.po_ship_to_location,
po.po_unit_price,
po.po_uom, 
&amp;po_line_columns_disp
&amp;po_dist_columns_disp
&amp;ap_columns
&amp;po_dff_cols_disp
po.po_shipment_creation_date,
po.po_shipment_cancelled_flag,
po.po_shipment_cancelled_date,
po.po_shipment_cancelled_reason,
po.po_shipment_cancelled_by
from 
req,
po
where
3=3 and
&amp;req_to_po_dist_joins
req.line_location_id=po.line_location_id(+)
order by 
req.operating_unit,
req.creation_date,
req.requisition_number,
req.line_number</SQL_TEXT>
  <VERSION_COMMENTS>Added PO Vendor Country column (supplier site country)</VERSION_COMMENTS>
  <XDO_APPLICATION_SHORT_NAME>JL</XDO_APPLICATION_SHORT_NAME>
  <REQUIRED_PARAMETERS>(:Ledger is not null or :Operating_Unit is not null) and
(
    (:Creation_Date_From is null and :Creation_Date_To is null)
or (:Creation_Date_From is not null and :Creation_Date_To is not null)
)
and
(
    (:Converted_To_PO_Date_From is null and :Converted_To_PO_Date_To is null)
or (:Converted_To_PO_Date_From is not null and :Converted_To_PO_Date_To is not null)
)</REQUIRED_PARAMETERS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PO Purchase Requisitions with PO Details</REPORT_NAME>
    <DESCRIPTION>Purchase Requisitions Status with PO Details Report.

Lists purchase requisition headers, lines and distributions together with the purchase order they were converted into, including requisition and PO approval dates, the Converted To PO indicator and the PO total amount.

Set the Show Invoice and Payment Details parameter to Yes to additionally return the supplier invoices and payments matched to each purchase order shipment: invoice numbers, invoice date, invoiced amount, invoice amount paid, payment status, payment numbers, payment date and payment method. These columns are omitted by default because they add an Accounts Payable lookup to every row.</DESCRIPTION>
    <REQUIRED_PARAMETERS_MESSAGE>Please enter a Ledger or Operating Unit, and if entering a date range, enter both the From and To Date Range Parameters</REQUIRED_PARAMETERS_MESSAGE>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;ap_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;ap_cte_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;category_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;item_dff_cols</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;item_dff_cols_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_dff_cols</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_dff_cols_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_dist_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_dist_columns_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_dist_joins</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_dist_tables</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;po_line_columns_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_dff_cols</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_dff_cols_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_dist_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_dist_columns_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_dist_joins</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_dist_tables</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_line_columns_disp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;req_to_po_dist_joins</ANCHOR>
   </ANCHORS_ROW>
   <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>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;req_dist_columns</ANCHOR>
    <SQL_TEXT>prda.distribution_num distribution_number,
prda.req_line_quantity distribution_quantity,
nvl(decode(prla.order_type_lookup_code,&apos;RATE&apos;, prda.req_line_amount ,&apos;FIXED PRICE&apos;, prda.req_line_amount,prda.req_line_quantity * prla.unit_price),0)distribution_amount,
gcck.concatenated_segments distribution_account,
prda.allocation_type,
prda.allocation_value,
prda.distribution_id,</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Line&apos; value, &apos;Requisition Line Level&apos; description from dual union all
select &apos;Distribution&apos;, &apos;Requisition Distribution Level&apos; from dual union all
select &apos;Distribution with SLA&apos;, &apos;Requisition Distribution Level with Subledger Accounting&apos; from dual</LOV_QUERY_DSP>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <DEFAULT_VALUE>Line</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <ANCHOR>&amp;req_dist_columns</ANCHOR>
    <SQL_TEXT>prda.distribution_num distribution_number,
prda.req_line_quantity distribution_quantity,
nvl(decode(prla.order_type_lookup_code,&apos;RATE&apos;, prda.req_line_amount ,&apos;FIXED PRICE&apos;, prda.req_line_amount,prda.req_line_quantity * prla.unit_price),0)distribution_amount,
xxen_util.meaning(x.gl_transfer_status_code,&apos;XLA_ACCT_TRANSFER&apos;,602) sla_gl_tfr_status,
x.accounting_line_code,
nvl2(x.gl_transfer_status_code,x.entered_amount,null) sla_entered_amount,
nvl2(x.gl_transfer_status_code,x.accounted_amount,null) sla_accounted_amount,
gcck.concatenated_segments distribution_account,
prda.allocation_type,
prda.allocation_value,
prda.distribution_id,</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <ANCHOR>&amp;po_dist_columns</ANCHOR>
    <SQL_TEXT>pda.distribution_num po_dist_number,
pda.quantity_ordered-nvl(pda.quantity_cancelled,0) po_dist_quantity_ordered,
pda.quantity_delivered po_dist_quantity_delivered,
pda.quantity_billed po_dist_quantity_billed,
decode(pda.quantity_ordered,null,pda.amount_ordered-nvl(pda.amount_cancelled,0),(pda.quantity_ordered-nvl(pda.quantity_cancelled,0))*nvl(plla.price_override,pla.unit_price)) po_dist_amount_ordered,
decode(pda.quantity_delivered,null,pda.amount_delivered,pda.quantity_delivered*nvl(plla.price_override,pla.unit_price)) po_dist_amount_delivered,
decode(pda.quantity_billed,null,pda.amount_billed,pda.quantity_billed*nvl(plla.price_override,pla.unit_price)) po_dist_amount_billed,
gcck.concatenated_segments po_dist_account,
mp2.organization_code po_deliver_to_organization,
hl2.location_code po_deliver_to_location,
ppx.full_name po_deliver_to_person, 
pda.po_distribution_id,
nvl(pda.req_distribution_id,-1) req_distribution_id,</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <ANCHOR>&amp;po_dist_columns</ANCHOR>
    <SQL_TEXT>pda.distribution_num po_dist_number,
pda.quantity_ordered-nvl(pda.quantity_cancelled,0) po_dist_quantity_ordered,
pda.quantity_delivered po_dist_quantity_delivered,
pda.quantity_billed po_dist_quantity_billed,
decode(pda.quantity_ordered,null,pda.amount_ordered-nvl(pda.amount_cancelled,0),(pda.quantity_ordered-nvl(pda.quantity_cancelled,0))*nvl(plla.price_override,pla.unit_price)) po_dist_amount_ordered,
decode(pda.quantity_delivered,null,pda.amount_delivered,pda.quantity_delivered*nvl(plla.price_override,pla.unit_price)) po_dist_amount_delivered,
decode(pda.quantity_billed,null,pda.amount_billed,pda.quantity_billed*nvl(plla.price_override,pla.unit_price)) po_dist_amount_billed,
xxen_util.meaning(x.gl_transfer_status_code,&apos;XLA_ACCT_TRANSFER&apos;,602) po_sla_gl_tfr_status,
x.accounting_line_code po_accounting_line_code,
nvl2(x.gl_transfer_status_code,x.entered_amount,null) po_sla_entered_amount,
nvl2(x.gl_transfer_status_code,x.accounted_amount,null) po_sla_accounted_amount,
gcck.concatenated_segments po_dist_account,
mp2.organization_code po_deliver_to_organization,
hl2.location_code po_deliver_to_location,
ppx.full_name po_deliver_to_person, 
pda.po_distribution_id,
nvl(pda.req_distribution_id,-1) req_distribution_id,</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <ANCHOR>&amp;po_dist_columns_disp</ANCHOR>
    <SQL_TEXT>po.po_dist_number,
po.po_dist_quantity_ordered,
po.po_dist_quantity_delivered,
po.po_dist_quantity_billed,
po.po_dist_amount_ordered,
po.po_dist_amount_delivered,
po.po_dist_amount_billed,
po.po_dist_account,
po.po_deliver_to_organization,
po.po_deliver_to_location,
po.po_deliver_to_person,</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <ANCHOR>&amp;po_dist_columns_disp</ANCHOR>
    <SQL_TEXT>po.po_dist_number,
po.po_dist_quantity_ordered,
po.po_dist_quantity_delivered,
po.po_dist_quantity_billed,
po.po_dist_amount_ordered,
po.po_dist_amount_delivered,
po.po_dist_amount_billed,
po.po_sla_gl_tfr_status,
po.po_accounting_line_code,
po.po_sla_entered_amount,
po.po_sla_accounted_amount,
po.po_dist_account,
po.po_deliver_to_organization,
po.po_deliver_to_location,
po.po_deliver_to_person,</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <ANCHOR>&amp;po_dist_joins</ANCHOR>
    <SQL_TEXT>plla.line_location_id=pda.line_location_id and
pda.destination_organization_id=mp2.organization_id(+) and
pda.deliver_to_location_id=hl2.location_id(+) and
pda.deliver_to_person_id=ppx.person_id(+) and
pda.code_combination_id=gcck.code_combination_id(+) and</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>&amp;po_dist_joins</ANCHOR>
    <SQL_TEXT>plla.line_location_id=pda.line_location_id and
fspa.set_of_books_id=x.ledger_id(+) and
pda.po_distribution_id=x.source_distribution_id_num_1(+) and
pda.destination_organization_id=mp2.organization_id(+) and
pda.deliver_to_location_id=hl2.location_id(+) and
pda.deliver_to_person_id=ppx.person_id(+) and
nvl(x.code_combination_id,pda.code_combination_id)=gcck.code_combination_id(+) and</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <ANCHOR>&amp;po_dist_tables</ANCHOR>
    <SQL_TEXT>po_distributions_all pda,
mtl_parameters mp2,
hr_locations hl2,
per_people_x ppx,
gl_code_combinations_kfv gcck,</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <ANCHOR>&amp;po_dist_tables</ANCHOR>
    <SQL_TEXT>po_distributions_all pda,
(
select distinct
xah.ledger_id,
xah.gl_transfer_status_code,
xdl.source_distribution_id_num_1,
xdl.accounting_line_code,
xal.code_combination_id,
sum(nvl(xal.entered_dr,0)-nvl(xal.entered_cr,0)) over (partition by xah.ledger_id, xah.gl_transfer_status_code, xdl.source_distribution_id_num_1, xdl.accounting_line_code, xal.code_combination_id) entered_amount,
sum(nvl(xal.accounted_dr,0)-nvl(xal.accounted_cr,0)) over (partition by xah.ledger_id, xah.gl_transfer_status_code, xdl.source_distribution_id_num_1, xdl.accounting_line_code, xal.code_combination_id) accounted_amount
from
xla_distribution_links xdl,
xla_ae_headers xah,
xla_ae_lines xal
where
xdl.application_id=201 and
xdl.source_distribution_type=&apos;PO_DISTRIBUTIONS_ALL&apos; and
xdl.application_id=xah.application_id(+) and
xdl.ae_header_id=xah.ae_header_id(+) and
xdl.application_id=xal.application_id(+) and
xdl.ae_header_id=xal.ae_header_id(+) and
xdl.ae_line_num=xal.ae_line_num(+)
) x,
mtl_parameters mp2,
hr_locations hl2,
per_people_x ppx,
gl_code_combinations_kfv gcck,</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <ANCHOR>&amp;po_line_columns_disp</ANCHOR>
    <SQL_TEXT>po.po_quantity_ordered,
po.po_quantity_accepted,
po.po_quantity_rejected,
po.po_quantity_received,
po.po_quantity_billed,
po.po_amount_ordered,
po.po_amount_accepted,
po.po_amount_rejected,
po.po_amount_received,
po.po_amount_billed,</SQL_TEXT>
    <MATCHING_VALUE>Line</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <ANCHOR>&amp;req_dist_columns_disp</ANCHOR>
    <SQL_TEXT>req.distribution_number,
req.distribution_quantity,
req.distribution_amount,
req.distribution_account,</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <ANCHOR>&amp;req_dist_columns_disp</ANCHOR>
    <SQL_TEXT>req.distribution_number,
req.distribution_quantity,
req.distribution_amount,
req.sla_gl_tfr_status,
req.accounting_line_code,
req.sla_entered_amount,
req.sla_accounted_amount,
req.distribution_account,</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <ANCHOR>&amp;req_dist_joins</ANCHOR>
    <SQL_TEXT>prla.requisition_line_id=prda.requisition_line_id and
prda.code_combination_id=gcck.code_combination_id and</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <ANCHOR>&amp;req_dist_joins</ANCHOR>
    <SQL_TEXT>prla.requisition_line_id=prda.requisition_line_id and
fspa.set_of_books_id=x.ledger_id(+) and
prda.distribution_id=x.source_distribution_id_num_1(+) and
nvl(x.code_combination_id,prda.code_combination_id)=gcck.code_combination_id and</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <ANCHOR>&amp;req_dist_tables</ANCHOR>
    <SQL_TEXT>po_req_distributions_all prda,
gl_code_combinations_kfv gcck,</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <ANCHOR>&amp;req_dist_tables</ANCHOR>
    <SQL_TEXT>po_req_distributions_all prda,
(
select distinct
xah.ledger_id,
xah.gl_transfer_status_code,
xdl.source_distribution_id_num_1,
xdl.accounting_line_code,
xal.code_combination_id,
sum(nvl(xal.entered_dr,0)-nvl(xal.entered_cr,0)) over (partition by xah.ledger_id, xah.gl_transfer_status_code, xdl.source_distribution_id_num_1, xdl.accounting_line_code, xal.code_combination_id) entered_amount,
sum(nvl(xal.accounted_dr,0)-nvl(xal.accounted_cr,0)) over (partition by xah.ledger_id, xah.gl_transfer_status_code, xdl.source_distribution_id_num_1, xdl.accounting_line_code, xal.code_combination_id) accounted_amount
from
xla_distribution_links xdl,
xla_ae_headers xah,
xla_ae_lines xal
where
xdl.application_id=201 and
xdl.source_distribution_type=&apos;PO_REQ_DISTRIBUTIONS_ALL&apos; and
xdl.application_id=xah.application_id(+) and
xdl.ae_header_id=xah.ae_header_id(+) and
xdl.application_id=xal.application_id(+) and
xdl.ae_header_id=xal.ae_header_id(+) and
xdl.ae_line_num=xal.ae_line_num(+)
) x,
gl_code_combinations_kfv gcck,</SQL_TEXT>
    <MATCHING_VALUE>Distribution with SLA</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <ANCHOR>&amp;req_line_columns_disp</ANCHOR>
    <SQL_TEXT>req.quantity,
req.quantity_cancelled,
req.quantity_received,
req.quantity_delivered,
req.amount,</SQL_TEXT>
    <MATCHING_VALUE>Line</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <ANCHOR>&amp;req_to_po_dist_joins</ANCHOR>
    <SQL_TEXT>req.distribution_id=po.req_distribution_id(+) and</SQL_TEXT>
    <MATCHING_VALUE>Distribution</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Niveau du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name=:ledger and 
haouv.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB879D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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 nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) 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>
    <DEFAULT_VALUE>coalesce(xxen_util.previous_parameter_value(:parameter_id),xxen_util.default_ledger)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Grand livre</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gl.name=:ledger and 
haouv.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>22</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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 mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.default_operating_unit,xxen_util.previous_parameter_value(:parameter_id))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Unité d&apos;exploitation</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>23</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>haouv.name=:operating_unit</SQL_TEXT>
    <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>24</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prha.segment1=:req_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PO Requisition Number</LOV_NAME>
    <LOV_GUID>0087D0A1D043F831E0630100007F0109</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <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 mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11) 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>F</LANGUAGE>
      <PARAMETER_NAME>Numéro de demande d&apos;emploi De</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>25</SORT_ORDER>
    <DISPLAY_SEQUENCE>45</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>po.po_number=:purchase_order</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PO Number</LOV_NAME>
    <LOV_GUID>8E2FF36EDEED79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
pha.segment1 value,
xxen_util.meaning(pha.type_lookup_code,&apos;PO TYPE&apos;,201)||nvl2(aps.vendor_name,&apos;: &apos;||aps.vendor_name,null) description
from
po_headers_all pha,
ap_suppliers aps
where
(:$flex$.operating_unit is null or
 pha.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
pha.vendor_id=aps.vendor_id(+)
order by
pha.creation_date desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Purchase Order</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>26</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prha.creation_date&gt;=:creation_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Date de création du</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>27</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prha.creation_date &lt; :creation_date_to + 1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.creation_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Date de création au</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Creation Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>28</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prla.need_by_date &gt;= :p_need_by_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Besoin par Date du</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Need By Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>29</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prla.need_by_date &lt; :p_need_by_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.need_by_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Besoin par Date à</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Need By Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>30</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>:plla_creation_date_from</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Converti en PO Date du</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Converted To PO Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>31</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>:plla_creation_date_to</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.converted_to_po_date_from)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Converti en Date de la commande en</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Converted To PO Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>32</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prla.line_location_id in (select plla.line_location_id from po_line_locations_all plla where plla.creation_date&gt;=:plla_creation_date_from and plla.creation_date&lt;:plla_creation_date_to+1)</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Converti en Date de la commande en</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Converted To PO Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>33</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prla.destination_organization_id in (select mp.organization_id from mtl_parameters mp where mp.organization_code=:ship_from_warehouse)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB279D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name||&apos; (&apos;||ftv.territory_short_name||&apos;, &apos;||hla.town_or_city||decode(mp.organization_id,mp.master_organization_id,null,&apos;, &apos;||mp0.organization_code)||&apos;)&apos; description
from
org_organization_definitions ood,
mtl_parameters mp,
mtl_parameters mp0,
hr_all_organization_units haou,
hr_locations_all hla,
fnd_territories_vl ftv
where
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and
(
ood.organization_id in (select oav.organization_id from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) or
not exists (select null from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) and
ood.operating_unit in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
) 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 and
mp.master_organization_id=mp0.organization_id and
ood.organization_id=haou.organization_id(+) and
haou.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+)
order by
ood.organization_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Destination Organization</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>34</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>hrl.location_code=:location_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Location</LOV_NAME>
    <LOV_GUID>0087D0A1D042F831E0630100007F0109</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hl.location_code value,
hl.description||&apos; (&apos;||hl.address_line_1||&apos;, &apos;||hl.town_or_city||&apos;, &apos;||ftv.territory_short_name||&apos;)&apos; description
from
hr_locations hl,
fnd_territories_vl ftv
where
hl.country=ftv.territory_code(+)
order by
hl.location_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Livraison sur site</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Deliver To Location</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>35</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ppx2.full_name=:requestor_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Employee</LOV_NAME>
    <LOV_GUID>0092EAD2F4F36C61E0630100007FAB89</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
he.full_name value,
he.employee_num description
from
hr_employees he
order by
he.full_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Nom du demandeur</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requestor Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>36</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ppx.full_name=:preparer_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Nom du préparateur</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Preparer Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>37</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>prha.created_by in (select fu.user_id from fnd_user fu where fu.user_name=:created_by)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>FND User Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8479D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
fu.user_name value,
trim(coalesce(
trim(papf.first_name||&apos; &apos;||papf.last_name),
fu.description,
fu.email_address,
papf.email_address
)||fu.inactive) description
from
(select case when sysdate between fu.start_date and nvl(fu.end_date,sysdate) then null else &apos; (inactive)&apos; end inactive, fu.* from fnd_user fu) fu,
(select papf.* from per_all_people_f papf where sysdate between papf.effective_start_date and papf.effective_end_date) papf,
(
select distinct
furg.user_id,
count(*) over (partition by furg.user_id) resp_count,
max(fr.responsibility_key) over (partition by furg.user_id) max_responsibility_key
from
fnd_responsibility fr,
fnd_user_resp_groups_direct furg
where
fr.responsibility_id=furg.responsibility_id and
fr.application_id=furg.responsibility_application_id
) furg
where
fu.employee_id=papf.person_id(+) and
fu.user_id=furg.user_id(+) and
not (furg.resp_count=1 and furg.max_responsibility_key=&apos;IRC_EXT_CANDIDATE&apos;)
order by
fu.inactive desc,
fu.user_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Créé par</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Created By</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>38</SORT_ORDER>
    <DISPLAY_SEQUENCE>160</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(prla.quantity_delivered,0) &lt; nvl(prla.quantity,0)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes_No</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <DEFAULT_VALUE>N</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Exclure les produits entièrement livrés</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Exclude Fully Delivered</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>39</SORT_ORDER>
    <DISPLAY_SEQUENCE>170</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>1=1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes_No</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <DEFAULT_VALUE>N</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Le spectacle est annulé</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Cancelled</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>40</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(prla.cancel_flag,&apos;N&apos;) = &apos;N&apos;</SQL_TEXT>
    <MATCHING_VALUE>N</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Le spectacle est annulé</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Cancelled</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>41</SORT_ORDER>
    <DISPLAY_SEQUENCE>180</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;, p_table_alias=&gt;&apos;req&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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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=1))</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>42</SORT_ORDER>
    <DISPLAY_SEQUENCE>190</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;, p_table_alias=&gt;&apos;req&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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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=2))</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>43</SORT_ORDER>
    <DISPLAY_SEQUENCE>200</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;, p_table_alias=&gt;&apos;req&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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>44</SORT_ORDER>
    <DISPLAY_SEQUENCE>210</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;item_dff_cols</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;MTL_SYSTEM_ITEMS_B&apos;,p_table_alias=&gt;&apos;msiv&apos;,p_row_id=&gt;&apos;rowid&apos;,p_column_name_prefix=&gt;&apos;Item: &apos;, p_display_mode=&gt;:item_dff_display) dff_column from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Blitz Report DFF Display</LOV_NAME>
    <LOV_GUID>53B31EFFC6B85470E0630100007F501D</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;V&apos; id, &apos;Value&apos; value, &apos;Value only&apos; description from dual union all
select &apos;C&apos; id, &apos;Value: Description&apos; value, &apos;Concatenated value and description&apos; description from dual union all
select &apos;S&apos; id, &apos;Value, Description&apos; value, &apos;Value and description in separate columns&apos; description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;XXEN_REPORT_DFF_DISPLAY&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item DFF Display</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>45</SORT_ORDER>
    <ANCHOR>&amp;item_dff_cols_disp</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;MTL_SYSTEM_ITEMS_B&apos;, p_prefix=&gt;&apos;req.&apos;,p_column_name_prefix=&gt;&apos;Item: &apos;, p_display_mode=&gt;:item_dff_display) from dual</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item DFF Display</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>46</SORT_ORDER>
    <DISPLAY_SEQUENCE>220</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;req_dff_cols</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_REQUISITION_HEADERS_ALL&apos;,p_table_alias=&gt;&apos;prha&apos;,p_row_id=&gt;&apos;rowid&apos;,p_column_name_prefix=&gt;&apos;Req Hdr: &apos;, p_display_mode=&gt;:requisition_dff_display) dff_column from dual
union all
select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_REQUISITION_LINES_ALL&apos;,p_table_alias=&gt;&apos;prla&apos;,p_row_id=&gt;&apos;rowid&apos;,p_column_name_prefix=&gt;&apos;Req Ln: &apos;, p_display_mode=&gt;:requisition_dff_display) dff_column from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Blitz Report DFF Display</LOV_NAME>
    <LOV_GUID>53B31EFFC6B85470E0630100007F501D</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;V&apos; id, &apos;Value&apos; value, &apos;Value only&apos; description from dual union all
select &apos;C&apos; id, &apos;Value: Description&apos; value, &apos;Concatenated value and description&apos; description from dual union all
select &apos;S&apos; id, &apos;Value, Description&apos; value, &apos;Value and description in separate columns&apos; description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;XXEN_REPORT_DFF_DISPLAY&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition DFF Display</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>47</SORT_ORDER>
    <ANCHOR>&amp;req_dff_cols_disp</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_REQUISITION_HEADERS_ALL&apos;, p_prefix=&gt;&apos;req.&apos;,p_column_name_prefix=&gt;&apos;Req Hdr: &apos;, p_display_mode=&gt;:requisition_dff_display) dff_columns from dual
union all
select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_REQUISITION_LINES_ALL&apos;, p_prefix=&gt;&apos;req.&apos;,p_column_name_prefix=&gt;&apos;Req Ln: &apos;, p_display_mode=&gt;:requisition_dff_display) dff_columns from dual</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Requisition DFF Display</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>48</SORT_ORDER>
    <DISPLAY_SEQUENCE>230</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;po_dff_cols</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_HEADERS_ALL&apos;,p_table_alias=&gt;&apos;pha&apos;,p_row_id=&gt;&apos;rowid&apos;,p_column_name_prefix=&gt;&apos;PO Hdr: &apos;, p_display_mode=&gt;:po_dff_display) dff_columns  from dual
union all
select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_LINES_ALL&apos;,p_table_alias=&gt;&apos;pla&apos;,p_row_id=&gt;&apos;rowid&apos;,p_column_name_prefix=&gt;&apos;PO Ln: &apos;, p_display_mode=&gt;:po_dff_display) dff_columns  from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Blitz Report DFF Display</LOV_NAME>
    <LOV_GUID>53B31EFFC6B85470E0630100007F501D</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;V&apos; id, &apos;Value&apos; value, &apos;Value only&apos; description from dual union all
select &apos;C&apos; id, &apos;Value: Description&apos; value, &apos;Concatenated value and description&apos; description from dual union all
select &apos;S&apos; id, &apos;Value, Description&apos; value, &apos;Value and description in separate columns&apos; description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;XXEN_REPORT_DFF_DISPLAY&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PO DFF Display</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>49</SORT_ORDER>
    <ANCHOR>&amp;po_dff_cols_disp</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_HEADERS_ALL&apos;, p_prefix=&gt;&apos;po.&apos;,p_column_name_prefix=&gt;&apos;PO Hdr: &apos;, p_display_mode=&gt;:po_dff_display) dff_columns from dual
union all
select xxen_util.dff_columns(p_table_name=&gt;&apos;PO_LINES_ALL&apos;, p_prefix=&gt;&apos;po.&apos;,p_column_name_prefix=&gt;&apos;PO Ln: &apos;, p_display_mode=&gt;:po_dff_display) dff_columns from dual</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PO DFF Display</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>50</SORT_ORDER>
    <DISPLAY_SEQUENCE>235</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;ap_columns</ANCHOR>
    <SQL_TEXT>po.invoice_numbers,
po.invoice_date,
po.invoiced_amount,
po.invoice_amount_paid,
po.payment_status,
po.payment_numbers,
po.payment_date,
po.payment_method,</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Invoice and Payment Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>51</SORT_ORDER>
    <ANCHOR>&amp;ap_cte_columns</ANCHOR>
    <SQL_TEXT>(
select
rtrim(xmlagg(xmlelement(e,z.invoice_num||&apos;, &apos;) order by z.invoice_num).extract(&apos;//text()&apos;).getclobval(),&apos;, &apos;)
from
(
select distinct
aia.invoice_id,
aia.invoice_num
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoices_all aia
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aia.invoice_id
) z
) invoice_numbers,
(
select
trunc(max(aia.invoice_date))
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoices_all aia
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aia.invoice_id
) invoice_date,
(
select
sum(aida.amount)
from
ap_invoice_distributions_all aida,
po_distributions_all pda2
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id
) invoiced_amount,
(
select
sum(z.amount_paid)
from
(
select distinct
aia.invoice_id,
aia.amount_paid
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoices_all aia
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aia.invoice_id
) z
) invoice_amount_paid,
(
select
case
when count(*)=0 then null
when min(nvl(aia.payment_status_flag,&apos;N&apos;))=&apos;Y&apos; then xxen_util.meaning(&apos;Y&apos;,&apos;INVOICE PAYMENT STATUS&apos;,200)
when max(nvl(aia.payment_status_flag,&apos;N&apos;)) in (&apos;P&apos;,&apos;Y&apos;) then xxen_util.meaning(&apos;P&apos;,&apos;INVOICE PAYMENT STATUS&apos;,200)
else xxen_util.meaning(&apos;N&apos;,&apos;INVOICE PAYMENT STATUS&apos;,200)
end
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoices_all aia
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aia.invoice_id
) payment_status,
(
select
rtrim(xmlagg(xmlelement(e,z.check_number||&apos;, &apos;) order by z.check_number).extract(&apos;//text()&apos;).getclobval(),&apos;, &apos;)
from
(
select distinct
aca.check_id,
aca.check_number
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoice_payments_all aipa,
ap_checks_all aca
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aipa.invoice_id and
aipa.check_id=aca.check_id
) z
) payment_numbers,
(
select
trunc(max(aca.check_date))
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoice_payments_all aipa,
ap_checks_all aca
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aipa.invoice_id and
aipa.check_id=aca.check_id
) payment_date,
(
select
rtrim(xmlagg(xmlelement(e,z.payment_method_name||&apos;, &apos;) order by z.payment_method_name).extract(&apos;//text()&apos;).getclobval(),&apos;, &apos;)
from
(
select distinct
ipmv.payment_method_name
from
ap_invoice_distributions_all aida,
po_distributions_all pda2,
ap_invoice_payments_all aipa,
ap_checks_all aca,
iby_payment_methods_vl ipmv
where
plla.line_location_id=pda2.line_location_id and
pda2.po_distribution_id=aida.po_distribution_id and
aida.invoice_id=aipa.invoice_id and
aipa.check_id=aca.check_id and
aca.payment_method_code=ipmv.payment_method_code
) z
) payment_method,</SQL_TEXT>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Invoice and Payment Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>52</SORT_ORDER>
    <DISPLAY_SEQUENCE>240</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment1=:segment1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT1&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>53</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment1=:segment1</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>54</SORT_ORDER>
    <DISPLAY_SEQUENCE>250</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment1&gt;=:segment1_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT1&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>55</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment1&gt;=:segment1_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>56</SORT_ORDER>
    <DISPLAY_SEQUENCE>260</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment1&lt;=:segment1_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT1&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment1_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>57</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment1&lt;=:segment1_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>58</SORT_ORDER>
    <DISPLAY_SEQUENCE>270</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment2=:segment2</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT2&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>59</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment2=:segment2</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>60</SORT_ORDER>
    <DISPLAY_SEQUENCE>280</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment2&gt;=:segment2_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT2&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>61</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment2&gt;=:segment2_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>62</SORT_ORDER>
    <DISPLAY_SEQUENCE>290</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment2&lt;=:segment2_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT2&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment2_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>63</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment2&lt;=:segment2_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>64</SORT_ORDER>
    <DISPLAY_SEQUENCE>300</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment3=:segment3</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT3&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>65</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment3=:segment3</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>66</SORT_ORDER>
    <DISPLAY_SEQUENCE>310</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment3&gt;=:segment3_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT3&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>67</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment3&gt;=:segment3_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>68</SORT_ORDER>
    <DISPLAY_SEQUENCE>320</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment3&lt;=:segment3_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT3&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment3_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>69</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment3&lt;=:segment3_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>70</SORT_ORDER>
    <DISPLAY_SEQUENCE>330</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment4=:segment4</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT4&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>71</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment4=:segment4</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>72</SORT_ORDER>
    <DISPLAY_SEQUENCE>340</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment4&gt;=:segment4_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT4&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>73</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment4&gt;=:segment4_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>74</SORT_ORDER>
    <DISPLAY_SEQUENCE>350</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment4&lt;=:segment4_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT4&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment4_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>75</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment4&lt;=:segment4_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>76</SORT_ORDER>
    <DISPLAY_SEQUENCE>360</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment5=:segment5</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT5&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>77</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment5=:segment5</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>78</SORT_ORDER>
    <DISPLAY_SEQUENCE>370</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment5&gt;=:segment5_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT5&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>79</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment5&gt;=:segment5_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>80</SORT_ORDER>
    <DISPLAY_SEQUENCE>380</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment5&lt;=:segment5_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT5&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment5_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>81</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment5&lt;=:segment5_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>82</SORT_ORDER>
    <DISPLAY_SEQUENCE>390</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment6=:segment6</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT6&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>83</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment6=:segment6</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>84</SORT_ORDER>
    <DISPLAY_SEQUENCE>400</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment6&gt;=:segment6_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT6&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>85</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment6&gt;=:segment6_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>86</SORT_ORDER>
    <DISPLAY_SEQUENCE>410</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment6&lt;=:segment6_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT6&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment6</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>87</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment6&lt;=:segment6_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>88</SORT_ORDER>
    <DISPLAY_SEQUENCE>420</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment7=:segment7</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT7&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>89</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment7=:segment7</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>90</SORT_ORDER>
    <DISPLAY_SEQUENCE>430</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment7&gt;=:segment7_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT7&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>91</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment7&gt;=:segment7_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>92</SORT_ORDER>
    <DISPLAY_SEQUENCE>440</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment7&lt;=:segment7_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT7&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment7_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>93</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment7&lt;=:segment7_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>94</SORT_ORDER>
    <DISPLAY_SEQUENCE>450</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment8=:segment8</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT8&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>95</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment8=:segment8</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>96</SORT_ORDER>
    <DISPLAY_SEQUENCE>460</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment8&gt;=:segment8_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT8&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>97</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment8&gt;=:segment8_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>98</SORT_ORDER>
    <DISPLAY_SEQUENCE>470</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment8&lt;=:segment8_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT8&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment8_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>99</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment8&lt;=:segment8_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>100</SORT_ORDER>
    <DISPLAY_SEQUENCE>480</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment9=:segment9</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT9&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>101</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment9=:segment9</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>102</SORT_ORDER>
    <DISPLAY_SEQUENCE>490</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment9&gt;=:segment9_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT9&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>103</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment9&gt;=:segment9_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>104</SORT_ORDER>
    <DISPLAY_SEQUENCE>500</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment9&lt;=:segment9_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT9&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment9_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>105</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment9&lt;=:segment9_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>106</SORT_ORDER>
    <DISPLAY_SEQUENCE>510</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment10=:segment10</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT10&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>107</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment10=:segment10</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>108</SORT_ORDER>
    <DISPLAY_SEQUENCE>520</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment10&gt;=:segment10_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT10&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>109</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment10&gt;=:segment10_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>110</SORT_ORDER>
    <DISPLAY_SEQUENCE>530</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.segment10&lt;=:segment10_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT10&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and
(
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and 
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+))
)
)
)
)
and :$flex$.report_level in(&apos;Distribution&apos;,&apos;Distribution with SLA&apos;)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>$flex$.gl_segment_10_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>111</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment10&lt;=:segment10_to</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10 To</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>
