<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>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: GL Ledger -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB879D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Ledger</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>دفاتر الأستاذ المقيدة بمجموعة الوصول ، المحددة بواسطة قيمة الملف الشخصي &quot;مجموعة الوصول إلى بيانات GL&quot; لمسؤولية تسجيل الدخول الحالية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Ledger, die durch das Zugriffsset eingeschränkt sind, definiert durch den Profilwert &apos;GL Data Access Set&apos; der aktuellen Anmeldeverantwortung</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Libros restringidos por el conjunto de acceso, definido por el valor del perfil &quot;Conjunto de acceso a datos GL&quot; de la responsabilidad de inicio de sesión actual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Grands livres limités par un ensemble d&apos;accès, défini par la valeur du profil &quot;GL Data Access Set&quot; de la responsabilité de connexion actuelle</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Libri mastri limitati dal set di accesso, definito dal valore del profilo &apos;GL Data Access Set&apos; della responsabilità di login corrente</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>現在のログイン責任者のプロファイル値&apos;GL Data Access Set&apos;によって定義されたアクセスセットによって制限された元帳</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>현재 로그인 권한의 프로파일 값 &apos;GL 데이터 액세스 세트&apos;로 정의 된 액세스 세트로 제한되는 원장</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Ledgers restritos pelo conjunto de acesso, definido pelo valor do perfil &apos;GL Data Access Set&apos; da atual responsabilidade de login</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Леджеры, ограниченные набором доступа, определяемые значением профиля &quot;GL Data Access Set&quot; текущей ответственности за вход в систему</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Ledgers begränsade av åtkomstuppsättning, definierade av profilvärde &apos;GL Data Access Set&apos; för det aktuella inloggningsansvaret</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Mevcut oturum açma sorumluluğunun profil değeri &apos;GL Veri Erişim Kümesi&apos; ile tanımlanan erişim kümesiyle kısıtlanmış defterler</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Ledgers restricted by access set, defined by profile value &apos;GL Data Access Set&apos; of the current login responsibility</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>由访问集限制的分类账，由当前登录责任的配置文件值 &quot;GL数据访问集 &quot;定义。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: HR Hierarchy Name -->
 <LOVS_ROW>
  <GUID>A6A156EB170F798DE053BB6B635840AB</GUID>
  <LOV_NAME>HR Hierarchy Name</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: HR Operating Unit -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB979D2E0530100007F1FF2</GUID>
  <LOV_NAME>HR Operating Unit</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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>
  <VERSION_COMMENTS>Fixed where clause duplication</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>وحدة التشغيل مقيدة بالتحكم في الوصول متعدد المنظمات (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Bedieneinheit eingeschränkt durch Multi Org Access Control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Unidad operativa restringida por el control de acceso multiorgánico (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Unité opérationnelle restreinte par un contrôle d&apos;accès multi-organismes (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Unità operativa limitata dal controllo di accesso multiorgano (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>多機関アクセス制御(MOAC)で制限された操作ユニット</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>다중 조직 액세스 제어 (MOAC)에 의해 제한되는 운영 단위</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Unidade operacional restrita por controle de acesso multi org (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Операционное устройство, ограниченное мультиорганизованным контролем доступа (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Styrenhet begränsad av multi-org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Çoklu kuruluş erişim kontrolü (MOAC) tarafından kısıtlanan işletim birimi</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Operating unit restricted by multi org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>受多机构访问控制（MOAC）限制的操作单元。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: MRP Assignment Set -->
 <LOVS_ROW>
  <GUID>92EDCA82621F0FBDE053BB6B6358DEED</GUID>
  <LOV_NAME>MRP Assignment Set</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
mas.assignment_set_name value,
mas.description 
from
mrp_assignment_sets mas 
order by
mas.assignment_set_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: CAC Inventory Organization Summary -->
 <REPORTS_ROW>
  <GUID>A0600F71093EBF96E053BB6B6358CBDD</GUID>
  <SQL_TEXT>select  (select distinct fpg.release_name from fnd_product_groups fpg) Oracle_Release,
        nvl(gl.short_name, gl.name) Ledger,
        -- Revision for version 1.17
        gl.currency_code Curr_Code,
        haou2.name Operating_Unit,
        mp.organization_code Org_Code,
        haou.name Organization_Name,
        -- Revision for version 1.12
        decode(hoi2.org_information2, &apos;Y&apos;, &apos;Yes&apos;, &apos;N&apos;, &apos;No&apos;, null, &apos;No&apos;) Inv_Org,
        mp.organization_id Org_Id,
        (select distinct hoh.parent_organization_name
         from   hrfv_organization_hierarchies hoh,
                mtl_parameters mp3 -- parent organization
         where  hoh.parent_organization_id = mp3.organization_id
         and    hoh.child_organization_id  = mp.organization_id
         -- Revision for version 1.27
         and    rownum                     = 1
         and    regexp_like(hoh.organization_hierarchy_name, &apos;&amp;p_name_open|&amp;p_name_close|&amp;p_name_period|&amp;p_org_hierarchy_name&apos;,&apos;i&apos;)
        ) Hierarchy_Origin,
        (select distinct mp3.organization_code
         from   hrfv_organization_hierarchies hoh,
                mtl_parameters mp3 -- parent organization
         where  hoh.parent_organization_id = mp3.organization_id
         and    hoh.child_organization_id  = mp.organization_id
         -- Revision for version 1.27
         and    rownum                     = 1
         and    regexp_like(hoh.organization_hierarchy_name, &apos;&amp;p_name_open|&amp;p_name_close|&amp;p_name_period|&amp;p_org_hierarchy_name&apos;,&apos;i&apos;)
        ) Parent_Org_Code,
        (select distinct hoh.organization_hierarchy_name
         from   hrfv_organization_hierarchies hoh,
                mtl_parameters mp3 -- parent organization
         where  hoh.parent_organization_id = mp3.organization_id
         and    hoh.child_organization_id  = mp.organization_id
         -- Revision for version 1.27
         and    rownum                     = 1
         and    regexp_like(hoh.organization_hierarchy_name, &apos;&amp;p_name_open|&amp;p_name_close|&amp;p_name_period|&amp;p_org_hierarchy_name&apos;,&apos;i&apos;)
        ) Hierarchy_Name,
        -- Added columns for version 1.6
        haou.date_to Disable_Date,
        (select distinct &apos;Yes&apos;
         from org_access a1, fnd_responsibility r
         where  mp.organization_id         = a1.organization_id
         and    nvl(a1.disable_date, sysdate + 1) &gt;= sysdate
         and    r.application_id           = a1.resp_application_id(+)
         and    r.responsibility_id        = a1.responsibility_id(+)) On_Org_Access,
        (select distinct &apos;Yes&apos;
         from   oe_system_parameters_all oesp
         where  mp.organization_id         = oesp.master_organization_id
         and    haou2.organization_id      = oesp.org_id) Val_Org,
        -- End changes to version 1.6
        -- Revision for version 1.9
        decode(nvl(mp.process_enabled_flag, &apos;N&apos;), &apos;N&apos;, &apos;No&apos;, &apos;Y&apos;, &apos;Yes&apos;) Process_Costing,
        -- Revision for version 1.26
        (select distinct &apos;Yes&apos;
         from   cst_cost_group_assignments ccga,
                cst_cost_groups ccg
         where  ccg.legal_entity is not null
         and    ccga.cost_group_id         = ccg.cost_group_id
         and    ccga.organization_id       = mp.organization_id) PAC_Enabled,
        -- End revision for version 1.26
        -- End revision for version 1.26
        mp.cost_cutoff_date Cost_Cut_Off_Date,
        br.resource_code Default_Matl_Sub_Element,
        br2.resource_code Default_MOH_Sub_Element,
        -- check to see if a BOM_or_Recipe exists
        (select distinct &apos;Yes&apos;
         from   bom_structures_b bsb
         where  bsb.organization_id        = mp.organization_id
         and    mp.process_enabled_flag    = &apos;N&apos;
         and    bsb.alternate_bom_designator is null
         -- Revision for version 1.11, add union all logic for Recipes
         union all
         select distinct &apos;Yes&apos;
         from   gmd_recipes_b grb
         where  grb.owner_organization_id  = mp.organization_id
         and    mp.process_enabled_flag    = &apos;Y&apos;) BOM_or_Recipe,
        -- check to see if a routing exists
        (select distinct &apos;Yes&apos;
         from   bom_operational_routings bor
         where  bor.organization_id        = mp.organization_id
         and    mp.process_enabled_flag    = &apos;N&apos;
         -- Revision for version 1.11, add union all logic for Recipes with Routings
         union all
         select distinct &apos;Yes&apos;
         from   gmd_recipes_b grb
         where  grb.owner_organization_id  = mp.organization_id
         and    mp.process_enabled_flag    = &apos;Y&apos;
         and    grb.routing_id is not null) Routing,
        -- Revision for version 1.28
        (select distinct &apos;Yes&apos;
         from   bom_parameters bp
         where  bp.organization_id         = mp.organization_id
         and    bp.use_phantom_routings    = 1 -- Yes
        ) &quot;Use Phantom Routings&quot;,
        -- End revision for version 1.28
        -- check to see if a sourcing rule exists for the receipt org
        (select distinct &apos;Yes&apos;
         from   mrp_sr_receipt_org msro,
                mrp_sr_source_org msso,
                mrp_sourcing_rules msr,
                mrp_sr_assignments msa,
                mrp_assignment_sets mas
         where  msr.sourcing_rule_id       = msro.SOURCING_RULE_ID
         -- fix for version 1.4, check to see if the sourcing rule is
         -- for an inventory org, not a vendor
         and    msso.sr_receipt_id         = msro.sr_receipt_id
         and    msso.source_organization_id is not null
         and    msa.sourcing_rule_id       = msr.sourcing_rule_id
         and    msa.assignment_set_id      = mas.assignment_set_id
         and    mp.organization_id         = msa.organization_id
         -- Fix for version 1.7
         and        2=2                                                                                           -- p_assignment_set
        ) Sourcing_Rule,
        -- Revision for version 1.11.  Now also checking for Process FROZEN Costs
        (select distinct &apos;Yes&apos;
         from   cst_item_costs cic
         where  cic.cost_type_id           = mp.primary_cost_method
         and    cic.organization_id        = mp.organization_id
         and    nvl(cic.item_cost, 0)     &lt;&gt; 0
         and    mp.process_enabled_flag    = &apos;N&apos;
         union all
         select distinct &apos;Yes&apos;
         from   gl_item_cst gic,
                gmf_fiscal_policies gfp,
                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    gic.organization_id        = mp.organization_id
         and    gfp.cost_type_id           = cmm.cost_type_id
         and    nvl(gic.acctg_cost, 0) &lt;&gt; 0
         and    mp.process_enabled_flag    = &apos;Y&apos;) Has_Frozen_or_Avg_Costs,
        -- Revision for version 1.11.  Now checking for Process PENDING Costs
        (select distinct &apos;Yes&apos;
         from   cst_item_costs cic
         where  cic.cost_type_id           = 3  -- Pending cost type
         and    nvl(cic.item_cost, 0)     &lt;&gt; 0
         and    mp.process_enabled_flag    = &apos;N&apos;
         and    cic.organization_id        = mp.organization_id
         union all
         select distinct &apos;Yes&apos;
         from   gl_item_cst gic,
                gmf_fiscal_policies gfp,
                cm_mthd_mst cmm
         where  gic.cost_type_id           = cmm.cost_type_id
         and    cmm.cost_mthd_code         = &apos;PENDING&apos; -- Pending Standard cost type
         and    gic.organization_id        = mp.organization_id
         and    gfp.cost_type_id           = cmm.cost_type_id
         and    nvl(gic.acctg_cost, 0)    &lt;&gt; 0
         and    mp.process_enabled_flag    = &apos;Y&apos;) Has_Pending_Costs,
        -- End revision for version 1.11
        -- Revision for version 1.17
        (select distinct &apos;Yes&apos;
         from   mtl_onhand_quantities_detail moqd
         where  mp.organization_id         = moqd.organization_id) Has_Onhand,
        -- End revision for version 1.17
        -- Revision for version 1.21
        (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    mp.process_enabled_flag = &apos;N&apos;
        ) Last_WIP_Txn_Date,
        -- End revision for version 1.21
        -- Revision for version 1.29
        (select distinct &apos;Yes&apos;
         from   wip_parameters wp
         where  wp.organization_id         = mp.organization_id
         and    wp.mandatory_scrap_flag    = 1 -- Yes
        ) Mandatory_Scrap,
        -- End revision for version 1.29
        mp2.organization_code Item_Master_Org,
        ml.meaning Costing_Method,
        ml2.meaning Allow_Negatives,
        -- Revision for version 1.8
        decode(nvl(mp.cost_group_accounting, 2),  2, &apos;No&apos;,  1, &apos;Yes&apos;) Cost_Group_Accounting,
        -- Revision for version 1.25
        -- decode(nvl(mp.enable_costing_by_category, &apos;N&apos;), &apos;N&apos;, &apos;No&apos;, &apos;Y&apos;, &apos;Yes&apos;) Cost_by_Category_Enabled,
        case
           when nvl(mp.enable_costing_by_category, &apos;N&apos;) = &apos;Y&apos; then &apos;Yes&apos;
           when exists (select  &apos;x&apos;
                        from    mtl_category_accounts mca
                        where   mca.organization_id = mp.organization_id) then &apos;Yes&apos;
           else &apos;No&apos;
        end Cost_by_Category_Enabled,
        -- End revision for version 1.25
        -- Revision for version 1.14
        nvl((select  &apos;Yes&apos;
             from    pjm_org_parameters pop
             where   mp.organization_id = pop.organization_id),&apos;No&apos;) Project_Mfg_Enabled,
        decode(nvl(mp.lcm_enabled_flag, &apos;N&apos;), &apos;N&apos;, &apos;No&apos;, &apos;Y&apos;, &apos;Yes&apos;) LCM_Enabled,
        -- End revision for version 1.14
        decode(nvl(mp.eam_enabled_flag, &apos;N&apos;), &apos;N&apos;, &apos;No&apos;, &apos;Y&apos;, &apos;Yes&apos;) EAM_Enabled,
        decode(nvl(mp.wms_enabled_flag, &apos;N&apos;), &apos;N&apos;, &apos;No&apos;, &apos;Y&apos;, &apos;Yes&apos;) WMS_Enabled,
        -- Revision for version 1.14, check again for OSFM or WSM
        -- Revision for version 1.11, OSFM or WSM not used at Client
        nvl((select  &apos;Yes&apos;
             from    wsm_parameters wp
             where   mp.organization_id    = wp.organization_id),&apos;No&apos;) WSM_Shopfloor_Enabled,
        -- End revision for version 1.16
        -- Revision for version 1.18
        -- decode(mp.general_ledger_update_code, 1, &apos;Yes&apos;, &apos;No&apos;) Transfer_to_GL,
        decode(mp.general_ledger_update_code, 1, &apos;Detail&apos;, 2,&apos;Summary&apos;, 3, &apos;&apos;) Transfer_to_GL,
        -- End revision for version 1.18
        (select flvv.meaning
         from   fnd_lookup_values_vl flvv, po_system_parameters_all pspa
         where  flvv.lookup_type           = &apos;INVENTORY ACCRUAL OPTION&apos;
         and    flvv.lookup_code           = pspa.inventory_accrual_code
         and    pspa.org_id                = haou2.organization_id) Accrue_Inventory,
        (select flvv.meaning
         from   fnd_lookup_values_vl flvv, po_system_parameters_all pspa
         where  flvv.lookup_type           = &apos;EXPENSE ACCRUAL OPTION&apos;
         and    flvv.lookup_code           = pspa.expense_accrual_code
         and    pspa.org_id                = haou2.organization_id) Accrue_Expense,
        -- Revision for version 1.17
        (select distinct &apos;Yes&apos;
         from   cst_ap_po_reconciliation capr
         where  mp.organization_id         = capr.inventory_organization_id) Use_Payables_Accruals,
        (select distinct &apos;Yes&apos;
         from   cst_margin_summary cms
         where  mp.organization_id         = cms.organization_id) Use_Margin_Reports,
        -- End revision for version 1.17
        mp.creation_date Creation_Date,
        mp.last_update_date Last_Update_Date,
        fu.user_name Last_Updated_By
from    mtl_parameters mp,
        mtl_parameters mp2, -- item master org
        bom_resources br,
        bom_resources br2,
        hr_organization_information hoi,
        -- Revision for version 1.12
        hr_organization_information hoi2,
        hr_all_organization_units_vl haou,
        hr_all_organization_units_vl haou2,
        mfg_lookups ml,
        mfg_lookups ml2,
        fnd_user fu,
        gl_ledgers gl
-- ===========================================
-- Organization joins to the HR org model
-- ===========================================
where   hoi.org_information_context   = &apos;Accounting Information&apos;
-- Revision for version 1.12
and     hoi2.organization_id          = mp.organization_id
and     hoi2.org_information_context  = &apos;CLASS&apos;
-- Revision for version 1.13 to avoid duplicates
and     hoi2.org_information1         = &apos;INV&apos;
-- End revision for version 1.12
and     hoi.organization_id           = mp.organization_id -- org code
and     hoi.organization_id           = haou.organization_id -- this gets the organization name
-- Possible to be missing the operating unit, use outer join
and     haou2.organization_id (+)     = to_number(hoi.org_information3) -- this gets the operating unit id
and     gl.ledger_id                  = to_number(hoi.org_information1) -- get the ledger_id
and     mp.master_organization_id     = mp2.organization_id
-- Fix for version 1.5
-- and  fu.user_id = mp.created_by
and     fu.user_id                   = mp.last_updated_by
-- ===========================================
-- Resource code joins
-- ===========================================
and     mp.default_material_cost_id  = br.resource_id(+)
and     mp.mat_ovhd_cost_type_id     = br2.resource_id(+)
-- ===========================================
-- Lookup code joins
-- ===========================================
-- This joins works for Discrete and Process with Standard Costing
and     mp.primary_cost_method       = ml.lookup_code
and     ml.lookup_type               = &apos;MTL_PRIMARY_COST&apos;
and     mp.negative_inv_receipt_code = ml2.lookup_code
and     ml2.lookup_type              = &apos;SYS_YES_NO&apos;
-- ===========================================
-- Exclude inventory orgs not in use
-- ===========================================
-- Fix for version 1.2 and 1.7
-- and  mp.organization_id &lt;&gt; mp.master_organization_id -- remove the global master org
-- Revision for version 1.20
and     mp.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)
-- Revision for version 1.30, Operating Unit and Ledger Controls and Parameters
and     (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_LEDGER_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or 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     (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_OPERATING_UNIT_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or haou2.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))
and     1=1                          -- p_ledger, p_operating_unit, p_org_code
-- Order by Ledger, Operating_Unit, Organization Code and Hierarchy_Origin
order by 1,3,4,8</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <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.
-- +=============================================================================+
-- |
-- | 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_ROW>
    <CATEGORY>R12 only</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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name description
from
org_organization_definitions ood
where
ood.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.organization_id=mp.master_organization_id) and
ood.organization_id in (select 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) 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>haou2.name = :p_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>
    <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</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>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Operating Unit</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Organization Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.operating_unit</FLEX_BIND>
    <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Organization Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
