<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: CAC Inventory Organization Summary -->
 <REPORTS_ROW>
  <GUID>A0600F71093EBF96E053BB6B6358CBDD</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
(select max(fpg.release_name) from fnd_product_groups fpg) oracle_release,
nvl(gl.short_name,gl.name) ledger,
gl.currency_code curr_code,
haouv_ou.name operating_unit,
mp.organization_code org_code,
haouv.name organization_name,
xxen_util.yes(hoi_class.org_information2) inv_org,
mp.organization_id org_id,
h.hierarchy_origin,
h.parent_org_code,
h.hierarchy_name,
haouv.date_to disable_date,
xxen_util.yes(case when mp.organization_id in (select oa.organization_id from org_access oa, fnd_responsibility fr where nvl(oa.disable_date,sysdate+1)&gt;=sysdate and oa.resp_application_id=fr.application_id and oa.responsibility_id=fr.responsibility_id) then &apos;Y&apos; end) on_org_access,
xxen_util.yes(case when (mp.organization_id,haouv_ou.organization_id) in (select ospa.master_organization_id, ospa.org_id from oe_system_parameters_all ospa) then &apos;Y&apos; end) val_org,
xxen_util.yes(mp.process_enabled_flag) process_costing,
xxen_util.yes(case when mp.organization_id in (select ccga.organization_id from cst_cost_group_assignments ccga, cst_cost_groups ccg where ccga.cost_group_id=ccg.cost_group_id and ccg.legal_entity is not null) then &apos;Y&apos; end) pac_enabled,
mp.cost_cutoff_date cost_cut_off_date,
(select br.resource_code from bom_resources br where mp.default_material_cost_id=br.resource_id) default_matl_sub_element,
(select br.resource_code from bom_resources br where mp.mat_ovhd_cost_type_id=br.resource_id) default_moh_sub_element,
xxen_util.yes(
case
when mp.process_enabled_flag=&apos;Y&apos; and mp.organization_id in (select grb.owner_organization_id from gmd_recipes_b grb) then &apos;Y&apos;
when nvl(mp.process_enabled_flag,&apos;N&apos;)=&apos;N&apos; and mp.organization_id in (select bsb.organization_id from bom_structures_b bsb where bsb.alternate_bom_designator is null) then &apos;Y&apos;
end) bom_or_recipe,
xxen_util.yes(
case
when mp.process_enabled_flag=&apos;Y&apos; and mp.organization_id in (select grb.owner_organization_id from gmd_recipes_b grb where grb.routing_id is not null) then &apos;Y&apos;
when nvl(mp.process_enabled_flag,&apos;N&apos;)=&apos;N&apos; and mp.organization_id in (select bor.organization_id from bom_operational_routings bor) then &apos;Y&apos;
end) routing,
xxen_util.yes(case when mp.organization_id in (select bp.organization_id from bom_parameters bp where bp.use_phantom_routings=1) then &apos;Y&apos; end) use_phantom_routings,
xxen_util.yes(case when mp.organization_id in (select msa.organization_id from mrp_assignment_sets mas, mrp_sr_assignments msa, mrp_sr_receipt_org msro, mrp_sr_source_org msso where 2=2 and mas.assignment_set_id=msa.assignment_set_id and msa.sourcing_rule_id=msro.sourcing_rule_id and msro.sr_receipt_id=msso.sr_receipt_id and msso.source_organization_id is not null) then &apos;Y&apos; end) sourcing_rule,
xxen_util.yes(
case
when mp.process_enabled_flag=&apos;Y&apos; and mp.organization_id in (select gic.organization_id from gl_item_cst gic, cm_mthd_mst cmm where gic.cost_type_id=cmm.cost_type_id and cmm.cost_mthd_code in (&apos;FROZEN&apos;,&apos;STANDARD&apos;,&apos;STD&apos;,&apos;STND&apos;,&apos;PWAC&apos;,&apos;PPAC&apos;,&apos;PMAC&apos;) and cmm.cost_type_id in (select gfp.cost_type_id from gmf_fiscal_policies gfp) and gic.acctg_cost&lt;&gt;0) then &apos;Y&apos;
when nvl(mp.process_enabled_flag,&apos;N&apos;)=&apos;N&apos; and (mp.organization_id,mp.primary_cost_method) in (select cic.organization_id, cic.cost_type_id from cst_item_costs cic where cic.item_cost&lt;&gt;0) then &apos;Y&apos;
end) has_frozen_or_avg_costs,
xxen_util.yes(
case
when mp.process_enabled_flag=&apos;Y&apos; and mp.organization_id in (select gic.organization_id from gl_item_cst gic, cm_mthd_mst cmm where gic.cost_type_id=cmm.cost_type_id and cmm.cost_mthd_code=&apos;PENDING&apos; and cmm.cost_type_id in (select gfp.cost_type_id from gmf_fiscal_policies gfp) and gic.acctg_cost&lt;&gt;0) then &apos;Y&apos;
when nvl(mp.process_enabled_flag,&apos;N&apos;)=&apos;N&apos; and mp.organization_id in (select cic.organization_id from cst_item_costs cic where cic.cost_type_id=3 and cic.item_cost&lt;&gt;0) then &apos;Y&apos;
end) has_pending_costs,
xxen_util.yes(case when mp.organization_id in (select moqd.organization_id from mtl_onhand_quantities_detail moqd) then &apos;Y&apos; end) has_onhand,
(select max(mmt.transaction_date) from mtl_material_transactions mmt where mp.organization_id=mmt.organization_id) last_material_txn_date,
(select max(wta.transaction_date) from wip_transaction_accounts wta where mp.organization_id=wta.organization_id and nvl(mp.process_enabled_flag,&apos;N&apos;)=&apos;N&apos;) last_wip_txn_date,
xxen_util.yes(case when mp.organization_id in (select wp.organization_id from wip_parameters wp where wp.mandatory_scrap_flag=1) then &apos;Y&apos; end) mandatory_scrap,
mp_master.organization_code item_master_org,
xxen_util.meaning(mp.primary_cost_method,&apos;MTL_PRIMARY_COST&apos;,700) costing_method,
xxen_util.yes(decode(mp.negative_inv_receipt_code,1,&apos;Y&apos;)) allow_negatives,
xxen_util.yes(decode(mp.cost_group_accounting,1,&apos;Y&apos;)) cost_group_accounting,
xxen_util.yes(case when mp.enable_costing_by_category=&apos;Y&apos; or mp.organization_id in (select mca.organization_id from mtl_category_accounts mca) then &apos;Y&apos; end) cost_by_category_enabled,
xxen_util.yes(case when mp.organization_id in (select pop.organization_id from pjm_org_parameters pop) then &apos;Y&apos; end) project_mfg_enabled,
xxen_util.yes(mp.lcm_enabled_flag) lcm_enabled,
xxen_util.yes(mp.eam_enabled_flag) eam_enabled,
xxen_util.yes(mp.wms_enabled_flag) wms_enabled,
xxen_util.yes(case when mp.organization_id in (select wp.organization_id from wsm_parameters wp) then &apos;Y&apos; end) wsm_shopfloor_enabled,
decode(mp.general_ledger_update_code,1,&apos;Detail&apos;,2,&apos;Summary&apos;) transfer_to_gl,
xxen_util.meaning(pspa.inventory_accrual_code,&apos;INVENTORY ACCRUAL OPTION&apos;,201) accrue_inventory,
xxen_util.meaning(pspa.expense_accrual_code,&apos;EXPENSE ACCRUAL OPTION&apos;,201) accrue_expense,
xxen_util.yes(case when mp.organization_id in (select capr.inventory_organization_id from cst_ap_po_reconciliation capr) then &apos;Y&apos; end) use_payables_accruals,
xxen_util.yes(case when mp.organization_id in (select cms.organization_id from cst_margin_summary cms) then &apos;Y&apos; end) use_margin_reports,
mp.creation_date,
mp.last_update_date,
xxen_util.user_name(mp.last_updated_by) last_updated_by
from
mtl_parameters mp,
mtl_parameters mp_master,
hr_organization_information hoi,
hr_organization_information hoi_class,
hr_all_organization_units_vl haouv,
hr_all_organization_units_vl haouv_ou,
gl_ledgers gl,
po_system_parameters_all pspa,
(
select
hoh.child_organization_id organization_id,
max(hoh.parent_organization_name) keep (dense_rank first order by hoh.organization_hierarchy_name,mp.organization_code) hierarchy_origin,
max(mp.organization_code) keep (dense_rank first order by hoh.organization_hierarchy_name,mp.organization_code) parent_org_code,
min(hoh.organization_hierarchy_name) hierarchy_name
from
hrfv_organization_hierarchies hoh,
mtl_parameters mp
where
(regexp_like(hoh.organization_hierarchy_name,&apos;&amp;p_name_open|&amp;p_name_close|&amp;p_name_period&apos;,&apos;i&apos;) or hoh.organization_hierarchy_name=&apos;&amp;p_org_hierarchy_name&apos;) and
hoh.parent_organization_id=mp.organization_id
group by
hoh.child_organization_id
) h
where
1=1 and
mp.master_organization_id=mp_master.organization_id and
mp.organization_id=hoi.organization_id and
hoi.org_information_context=&apos;Accounting Information&apos; and
mp.organization_id=hoi_class.organization_id and
hoi_class.org_information_context=&apos;CLASS&apos; and
hoi_class.org_information1=&apos;INV&apos; and
hoi.organization_id=haouv.organization_id and
to_number(hoi.org_information3)=haouv_ou.organization_id(+) and
to_number(hoi.org_information1)=gl.ledger_id and
haouv_ou.organization_id=pspa.org_id(+) and
mp.organization_id=h.organization_id(+)
order by
oracle_release,
curr_code,
operating_unit,
org_id</SQL_TEXT>
  <VERSION_COMMENTS>Rebuilt to the Blitz Report SQL standards: the hierarchy columns show a hierarchy whose name contains Open, Close or Period or equals the Hierarchy Name parameter (with the parameter empty every hierarchy matched), the three hierarchy columns come from the same hierarchy, flags show Yes or blank, organizations whose last update user no longer exists are no longer missing. Setup report without organization security, so that every user sees the setup of all organizations.</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>CAC Inventory Organization Summary</REPORT_NAME>
    <DESCRIPTION>Report to show inventory org names, summary org controls, org hierarchy, operating unit and Ledger, and whether or not the Org should be rolled up for costing, based on the existence of BOMs, routings or org-level sourcing rules.
Note:  this report automatically looks for hierarchies which might be used with the Open Period Control and the Close Period Control Oracle programs.  Looking for the translated values of &quot;Close&quot;, &quot;Open&quot; and &quot;Period&quot; in the Hierarchy Name.

Parameters:
==========
Assignment Set:  choose the Assignment Set to report for sourcing rules.  You may leave this value null and the report still works (optional).
Hierarchy Name:  select the organization hierarchy used to open and close your inventory organizations (optional).  If you leave this field blank the report automatically looks for hierarchies which might be used with the Open Period Control and the Close Period Control Oracle programs.  Looking for the translated values of &quot;Close&quot;, &quot;Open&quot; and &quot;Period&quot; in the Hierarchy Name.
Organization Code:  enter the specific inventory organization(s) you wish to report (optional).
Operating Unit:  enter the specific operating unit(s) you wish to report (optional).
Ledger:  enter the specific ledger(s) you wish to report (optional).

/* +=============================================================================+
-- | Copyright 2010-2025 Douglas Volz Consulting, Inc.
-- | All rights reserved.
-- | Permission to use this code is granted provided the original author is
-- | acknowledged. No warranties, express or otherwise is included in this permission.
-- |  1.31    24 Oct 2026 Andy Haack    Rebuilt to the Blitz Report SQL standards.
-- +=============================================================================+
-- |
-- | Version Modified on Modified by Description
-- | ======= =========== ============== =========================================
-- | 1.0     14 Apr 2010 Douglas Volz Initial Coding
-- | 1.19    09 Jul 2019 Douglas Volz Changed Org Hierarchy logic to look only for Hierarchy 
-- |                                  Names with &quot;Open&quot; or &quot;Close&quot; or &quot;Period&quot; in it.
-- |                                  For the 2nd union all, added an Outer Join to OU:
-- |                                  and haou2.organization_id (+) = to_number(hoi.org_information3)
-- |                                  ... found an inventory org in Vision with no OU
-- | 1.20    16 Jan 2020 Douglas Volz Added Ledger, Operating Unit and Org Code parameters.
-- | 1.21    02 Feb 2020 Douglas Volz Added max material and WIP transaction dates and removed
-- |                                  flv.source_lang joins, not needed.
-- | 1.22    08 Mar 2020 Douglas Volz Checking for a routing for the parent org
-- | 1.23    07 Apr 2020 Douglas Volz Consolidated two (union all) statements into one.
-- | 1.24    27 Apr 2020 Douglas Volz Changed to multi-language views for the
-- |                                  inventory orgs and operating units.
-- | 1.25    29 Jun 2022 Douglas Volz Fixed indicator for category accounts.
-- | 1.26    09 Sep 2022 Douglas Volz Added indicator for PAC Enabled.
-- | 1.27    13 Jul 2023 Douglas Volz Added condition to avoid SQL error, single-row subquery
-- |                                  returns more than one row. 
-- | 1.28    01 Nov 2024 Douglas Volz Added BOM Parameters, Use Phantom Routing column.
-- | 1.29    01 Jan 2025 Douglas Volz Added WIP Parameters, Record Scrap column.
-- | 1.30    15 Feb 2025 Douglas Volz Added Oracle Release Number.
+=============================================================================+*/
</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_name_close</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_name_open</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_name_period</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_org_hierarchy_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-30</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;p_name_close</ANCHOR>
    <SQL_TEXT>select fl_close.meaning
from fnd_lookups fl_close
where fl_close.lookup_type = &apos;CLN_OPEN_CLOSE&apos;
and fl_close.lookup_code = &apos;N&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>an arbitrary value</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lookup Value for Close</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;p_name_open</ANCHOR>
    <SQL_TEXT>select fl_open.meaning
from fnd_lookups fl_open
where fl_open.lookup_type = &apos;CLN_OPEN_CLOSE&apos;
and fl_open.lookup_code = &apos;Y&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>an arbitrary value</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lookup Value for Open</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;p_name_period</ANCHOR>
    <SQL_TEXT>select fl_period.meaning
from fnd_lookups fl_period
where fl_period.lookup_type = &apos;MTH_ENT_PERIOD_OF_USAGE&apos;
and fl_period.lookup_code = &apos;PERIOD&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>an arbitrary value</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Lookup Value for Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>mas.assignment_set_name=:p_assignment_set</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>MRP Assignment Set</LOV_NAME>
    <LOV_GUID>92EDCA82621F0FBDE053BB6B6358DEED</LOV_GUID>
    <LOV_QUERY_DSP>select
mas.assignment_set_name value,
mas.description 
from
mrp_assignment_sets mas 
order by
mas.assignment_set_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Assignment Set</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;p_org_hierarchy_name</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Hierarchy Name</LOV_NAME>
    <LOV_GUID>A6A156EB170F798DE053BB6B635840AB</LOV_GUID>
    <LOV_QUERY_DSP>select
pos.name value,
pbg.name description
from
per_organization_structures pos,
per_business_groups pbg
where
pos.business_group_id=pbg.business_group_id(+)
order by
pos.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Hierarchy Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>mp.organization_code=:p_org_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name description
from
org_organization_definitions ood
where
ood.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.organization_id=mp.master_organization_id) and
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
nvl(ood.disable_date,sysdate)&gt;=sysdate
order by
ood.organization_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>haouv_ou.name=:p_operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit (all)</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8879D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;))
order by
hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name=:p_ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger (all)</LOV_NAME>
    <LOV_GUID>A95C471001B20DD1E0530100007FBF83</LOV_GUID>
    <LOV_QUERY_DSP>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
(:$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
gl.object_type_code=&apos;L&apos; and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;NONE&apos;,1,&apos;PRIMARY&apos;,2,&apos;SECONDARY&apos;,3,&apos;ALC&apos;,4),
gl.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
