<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: Cost Type (OPM Orgs Only) -->
 <LOVS_ROW>
  <GUID>184A903C40A16B3FE0630100007F2880</GUID>
  <LOV_NAME>Cost Type (OPM Orgs Only)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
x.value, 
x.description
from
(
 select cmm.cost_mthd_code value, cmm.cost_mthd_desc description
 from   cm_mthd_mst cmm
 where exists 
 (select &apos;x&apos;
  from  gmf_calendar_assignments gca,
        org_organization_definitions ood,
        mtl_parameters mp
  where gca.legal_entity_id = ood.legal_entity
  and   gca.cost_type_id    = cmm.cost_type_id 
  and   (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or 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))
  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   mp.organization_id = ood.organization_id
  and   nvl(ood.disable_date,sysdate) &gt;= sysdate
  and   mp.organization_id &lt;&gt; mp.master_organization_id
  and   mp.process_enabled_flag = &apos;Y&apos;
 )
) x
group by
       x.value,
       x.description
order by value
</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Ledger (inv org related) -->
 <LOVS_ROW>
  <GUID>8E2FF36EDF3A79D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Ledger (inv org related)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
gl.ledger_id in (select ood.set_of_books_id from org_organization_definitions ood where nvl(ood.disable_date,sysdate)&gt;=sysdate) 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.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,
gl.name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>جميع دفاتر الأستاذ المتعلقة بجميع منظمات المخزون النشطة</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Alle Ledger, die sich auf alle aktiven Inventarorganisationen beziehen</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Todos los libros de contabilidad relacionados con todas las organizaciones de inventario activas</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Tous les grands livres relatifs à tous les organismes d&apos;inventaire actifs</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Tutti i libri contabili relativi a tutte le organizzazioni di inventario attive</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>すべてのアクティブな在庫組織に関連するすべての台帳</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>모든 활성 재고 조직과 관련된 모든 원장</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Todos os livros contábeis relacionados a todas as organizações de inventário ativas</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Все бухгалтерские книги, относящиеся ко всем организациям, занимающимся активным инвентаризацией.</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Alla huvudböcker relaterade till alla aktiva lagerorganisationer</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Tüm aktif envanter organizasyonlarıyla ilgili tüm defterler</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All ledgers related to all active inventory organizations</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>与所有现行清单组织有关的所有分类账</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: INV Category Set -->
 <LOVS_ROW>
  <GUID>8E2FF36EDECA79D2E0530100007F1FF2</GUID>
  <LOV_NAME>INV Category Set</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: INV Item Number (costing enabled only items) -->
 <LOVS_ROW>
  <GUID>EC5CECA520510FC8E0530100007F5EB3</GUID>
  <LOV_NAME>INV Item Number (costing enabled only items)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>select distinct
msiv.concatenated_segments value,
msiv.description
from
mtl_system_items_vl msiv,
mtl_parameters mp
where
msiv.organization_id = mp.organization_id and
(xxen_util.contains(:$flex$.organization_code,mp.organization_code) = &apos;Y&apos; or
 (:$flex$.organization_code is null 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)
 )
) and
(msiv.costing_enabled_flag=&apos;Y&apos; or mp.process_enabled_flag=&apos;Y&apos;)
order by
msiv.concatenated_segments</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: INV Operating Unit -->
 <LOVS_ROW>
  <GUID>9B9627743E84607DE053BB6B635805FB</GUID>
  <LOV_NAME>INV Operating Unit</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
haouv.name value,
&apos;Operating Unit&apos; description
from
hr_all_organization_units_vl haouv
where
haouv.organization_id in 
(
select
to_number(hoi.org_information3)
from
mtl_parameters mp,
hr_organization_information hoi,
hr_all_organization_units haou
where
mp.organization_id&lt;&gt;mp.master_organization_id and
mp.organization_id=hoi.organization_id and
hoi.org_information_context=&apos;Accounting Information&apos; and 
hoi.organization_id=haou.organization_id and
nvl(haou.date_to,sysdate)&gt;=sysdate
)
order by 1</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>جميع وحدات التشغيل المرتبطة بمؤسسة مخزون غير رئيسية نشطة</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Alle Betriebseinheiten, die mit einer aktiven Nicht-Master-Inventarisierungsorganisation verbunden sind</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Todas las unidades operativas relacionadas con una organización de inventario no maestra activa</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Toutes les unités opérationnelles liées à un organisme d&apos;inventaire non maître actif</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Tutte le unità operative legate a un&apos;organizzazione di inventario non master attiva</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>アクティブな非マスターインベントリ組織に関連するすべてのオペレーティング・ユニット</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>활성 비 마스터 재고 조직과 관련된 모든 운영 단위</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Todas as unidades operacionais relacionadas a uma organização ativa de inventário não-mestre</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Все операционные единицы, относящиеся к действующей организации, не являющейся ведущим поставщиком инвентарных запасов.</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Alla operativa enheter relaterade till en aktiv organisation som inte är huvudlager</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Etkin bir ana envanter organizasyonu ile ilgili tüm işletim birimleri</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All operating units related to an active non master inventory organization</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>与在用的非总清单组织有关的所有业务单位：</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: INV Organization Code (excluding master) -->
 <LOVS_ROW>
  <GUID>91D3167A33531204E053BB6B63585EE3</GUID>
  <LOV_NAME>INV Organization Code (excluding master)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>جميع رموز تنظيم المخزون النشط باستثناء المؤسسات الرئيسية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Alle aktiven Inventar-Organisationscodes mit Ausnahme von Master-Organisationen</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Todos los códigos de organización de inventario activos, excluyendo las organizaciones maestras</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Tous les codes d&apos;organisation de l&apos;inventaire actif, à l&apos;exclusion des organisations maîtresses</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Tutti i codici di organizzazione dell&apos;inventario attivi, escluse le organizzazioni master</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>マスター組織を除くすべてのアクティブなインベントリ組織コード</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>마스터 조직을 제외한 모든 활성 재고 조직 코드</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Todos os códigos ativos de organização de inventário, excluindo organizações mestre</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Все действующие инвентаризационные коды организаций, за исключением основных организаций</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Alla aktiva organisationskoder för inventarier exklusive huvudorganisationer</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Ana organizasyonlar hariç tüm aktif envanter organizasyon kodları</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All active inventory organization codes excluding master organizations</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>所有现行清单组织代码，不包括主组织</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: OPM Calendar Code -->
 <LOVS_ROW>
  <GUID>19508EAA42357240E0630100007FD049</GUID>
  <LOV_NAME>OPM Calendar Code</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select  ccht.calendar_code value, ccht.calendar_desc description
from    cm_cldr_hdr_tl ccht
where   ccht.language = userenv(&apos;lang&apos;)
and exists
(select &apos;x&apos;
 from   gmf_calendar_assignments gca,
        gmf_period_statuses gps,
        org_organization_definitions ood,
        mtl_parameters mp 
 where  gca.calendar_code = gps.calendar_code
 and    gca.legal_entity_id = gps.legal_entity_id
 and    gca.legal_entity_id = ood.legal_entity
 and    gca.calendar_code = ccht.calendar_code
 and    (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or 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))
 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    mp.organization_id = ood.organization_id
 and    nvl(ood.disable_date,sysdate) &gt;= sysdate
 and    mp.organization_id &lt;&gt; mp.master_organization_id
)
order by value desc</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>OPM Calendar Code for OPM Cost Reports</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: OPM Period Code -->
 <LOVS_ROW>
  <GUID>19508EAA42367240E0630100007FD049</GUID>
  <LOV_NAME>OPM Period Code</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select  ccd.period_code value, ccd.period_desc description
from    cm_cldr_dtl ccd
where exists
        (select 1 
         from   gmf_period_statuses gps
         where  gps.calendar_code   = :$flex$.opm_calendar_code
         and    gps.legal_entity_id in (select ood.legal_entity from org_organization_definitions ood 
                                        where  (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)
                                        or      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    gps.period_code      = ccd.period_code
        and    gps.calendar_code    = ccd.calendar_code
       )
order by ccd.end_date desc</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>OPM Period Code for OPM Cost Reporting</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: OPM Status Code -->
 <LOVS_ROW>
  <GUID>1A5739C5DE270375E0630100007F5142</GUID>
  <LOV_NAME>OPM Status Code</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gsv.status_code value,
gsv.description description
from
gmd_status_vl gsv
order by
to_number(gsv.status_code)</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 OPM Costed Formula -->
 <REPORTS_ROW>
  <GUID>21C67ECE56D62CC4E0630100007F31B8</GUID>
  <SQL_TEXT>with ccmv as
    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
    (select row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
            usage_ind,
            gl.meaning cost_component_type,
            ccmv.cost_cmpntcls_code cost_component_code,
            ccmv.cost_cmpntcls_desc,
            ccmv.cost_cmpntcls_id cost_component_id
     from   cm_cmpt_mst_vl ccmv,  -- Cost Component Master
            gem_lookups gl
     where  gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
     and    gl.lookup_code   = ccmv.usage_ind
     and    ccmv.delete_mark = 0 -- Active
     order by 
            usage_ind,
            gl.meaning,
            ccmv.cost_cmpntcls_code
    ),
-- For the formula lines (msiv2), get the item costs by Cost Component
line_cost as
    (-- If the cost type is null, get the item
     -- costs from the month-end item costs.
     select gps.legal_entity_id,
            gic.cost_type_id,
            cmm.cost_mthd_code cost_type,
            cmm.cost_mthd_desc cost_type_desc,
            mp.organization_code,
            -- Revision for version 1.4
            -- gic.organization_id,
            mp.organization_id,
            -- End revision for version 1.4
            gic.inventory_item_id,
            -- Revision for version 1.3
            msiv2.concatenated_segments,
            msiv2.description item_description,
            msiv2.item_type,
            msiv2.inventory_item_status_code,
            msiv2.planning_make_buy_code,
            msiv2.primary_uom_code,
            -- End revision for version 1.3
            gps.calendar_code,
            gps.period_code,
            gps.period_id,
            gid.cost_cmpntcls_id cost_component_id,
            -- To avoid rounding errors, use decimal precision 9
            round(sum(nvl(gid.cmptcost_amt,0)),9) component_cost
     from   gl_item_cst gic,
            gl_item_dtl gid,
            cm_mthd_mst cmm, -- Cost Types
            gmf_period_statuses gps,
            gmf_fiscal_policies gfp,
            gmf_calendar_assignments gca,
            -- Revision for version 1.3
            -- mtl_system_items_vl msiv,
            mtl_system_items_vl msiv2,
            -- End revision for version 1.3
            -- Revision for version 1.4
            -- gmf_organization_definitions mp
            (select mp.organization_id,
                    mp.organization_code,
                    to_number(hoi.org_information2) legal_entity_id,
                    nvl(cwa.cost_organization_id, mp.organization_id) cost_organization_id
             from   mtl_parameters mp,
                    hr_organization_information hoi, -- Legal Entity Id
                    cm_whse_asc cwa
             where  32=32                           -- p_org_code
             and    hoi.org_information_context     = &apos;Accounting Information&apos;
             and    hoi.organization_id             = mp.organization_id
             and    mp.organization_id              = cwa.organization_id (+)
            ) mp
            -- End revision for version 1.4
     where  gic.cost_type_id                = gfp.cost_type_id
     and    cmm.cost_type_id                = gic.cost_type_id
     -- Revision for version 1.4
     -- and    gic.organization_id          = msiv2.organization_id
     -- and    mp.organization_id           = gic.organization_id
     and    mp.organization_id              = msiv2.organization_id
     and    mp.cost_organization_id         = gic.organization_id
     -- End revision for version 1.4
     -- Revision for version 1.3
     and    gic.inventory_item_id           = msiv2.inventory_item_id
     -- End revision for version 1.3
     and    gic.period_id                   = gps.period_id
     and    gic.delete_mark                 = 0 -- Active
     and    gid.itemcost_id                 = gic.itemcost_id
     -- Revision for version 1.3
     and    msiv2.inventory_asset_flag      = &apos;Y&apos;
     and    gps.legal_entity_id             = gfp.legal_entity_id
     and    gps.cost_type_id                = gfp.cost_type_id
     and    gps.cost_type_id                = gca.cost_type_id
     and    gps.legal_entity_id             = gca.legal_entity_id
     and    gps.calendar_code               = gca.calendar_code
     -- After running the Cost Update in Final Mode the gic.calendar_code
     -- is set to a null value.
     -- and    gps.calendar_code               = gic.calendar_code
     and    mp.legal_entity_id              = gps.legal_entity_id
     and    :p_cost_type is null            -- p_cost_type
     -- The Inventory Accounting Period Name may be different from the OPM Period Code
     and    32=32                           -- p_org_code
     and    34=34                           -- p_item_number
     and    35=35                           -- p_calendar_code
     and    36=36                           -- p_period_code
     group by
            gps.legal_entity_id,
            gic.cost_type_id,
            cmm.cost_mthd_code, -- cost_type
            cmm.cost_mthd_desc, -- cost_type_description
            mp.organization_code,
            -- Revision for version 1.4
            -- gic.organization_id,
            mp.organization_id,
            -- End revision for version 1.4
            gic.inventory_item_id,
            -- Revision for version 1.3
            msiv2.concatenated_segments,
            msiv2.description,
            msiv2.item_type,
            msiv2.inventory_item_status_code,
            msiv2.planning_make_buy_code,
            msiv2.primary_uom_code,
            -- End revision for version 1.3
            gps.calendar_code,
            gps.period_code,
            gps.period_id,
            gid.cost_cmpntcls_id -- cost_component_id
     union all
     -- If the cost type is not null, get the item
     -- costs from entered cost type.
     select gps.legal_entity_id,
            cmm.cost_type_id,
            cmm.cost_mthd_code cost_type,
            cmm.cost_mthd_desc cost_type_description,
            mp.organization_code,
            -- Revision for version 1.4
            -- ccd.organization_id,
            mp.organization_id,
            -- End revision for version 1.4
            ccd.inventory_item_id,
            -- Revision for version 1.3
            msiv2.concatenated_segments,
            msiv2.description item_description,
            msiv2.item_type,
            msiv2.inventory_item_status_code,
            msiv2.planning_make_buy_code,
            msiv2.primary_uom_code,
            -- End revision for version 1.3
            gps.calendar_code,
            gps.period_code,
            gps.period_id,
            ccm.cost_cmpntcls_id cost_component_id,
            -- To avoid rounding errors, use decimal precision 9
            round(sum(nvl(ccd.cmpnt_cost,0)),9) item_cost
     from   cm_cmpt_dtl ccd,
            cm_cmpt_mst_b ccm,
            cm_mthd_mst cmm, -- Cost Types
            gmf_period_statuses gps,
            gmf_calendar_assignments gca,
            -- Revision for version 1.3
            mtl_system_items_vl msiv2,
            -- Revision for version 1.4
            -- gmf_organization_definitions mp
            (select mp.organization_id,
                    mp.organization_code,
                    to_number(hoi.org_information2) legal_entity_id,
                    nvl(cwa.cost_organization_id, mp.organization_id) cost_organization_id
             from   mtl_parameters mp,
                    hr_organization_information hoi, -- Legal Entity Id
                    cm_whse_asc cwa
             where  32=32                           -- p_org_code
             and    hoi.org_information_context     = &apos;Accounting Information&apos;
             and    hoi.organization_id             = mp.organization_id
             and    mp.organization_id              = cwa.organization_id (+)
            ) mp
            -- End revision for version 1.4
     where  ccd.cost_cmpntcls_id            = ccm.cost_cmpntcls_id
     and    ccm.product_cost_ind            = 1 -- Yes
     and    ccd.cost_type_id                = cmm.cost_type_id
     -- Use Period Id, not Calendar Code with ccd
     and    ccd.period_id                   = gps.period_id
     -- Revision for version 1.4
     -- and    ccd.organization_id             = mp.organization_id
     -- and    ccd.organization_id             = msiv2.organization_id
     and    ccd.organization_id             = mp.cost_organization_id
     and    mp.organization_id              = msiv2.organization_id
     -- End revision for version 1.4
     -- Revision for version 1.3
     and    ccd.inventory_item_id           = msiv2.inventory_item_id
     -- End revision for version 1.3
     and    ccd.delete_mark                 = 0 -- Active
     -- Revision for version 1.3
     and    msiv2.inventory_asset_flag       = &apos;Y&apos;
     and    gps.cost_type_id                = ccd.cost_type_id
     and    gps.cost_type_id                = gca.cost_type_id
     and    gps.legal_entity_id             = gca.legal_entity_id
     and    gps.legal_entity_id             = mp.legal_entity_id
     and    gps.calendar_code               = gca.calendar_code
     and    :p_cost_type is not null        -- p_cost_type
     and    32=32                           -- p_org_code
     and    33=33                           -- p_cost_type
     and    34=34                           -- p_item_number
     and    35=35                           -- p_calendar_code
     and    36=36                           -- p_period_code
     group by
            gps.legal_entity_id,
            cmm.cost_type_id,
            cmm.cost_mthd_code, -- cost_type
            cmm.cost_mthd_desc, -- cost_type_description
            mp.organization_code,
            -- Revision for version 1.4
            -- ccd.organization_id,
            mp.organization_id,
            -- End revision for version 1.4
            ccd.inventory_item_id,
            -- Revision for version 1.3
            msiv2.concatenated_segments,
            msiv2.description,
            msiv2.item_type,
            msiv2.inventory_item_status_code,
            msiv2.planning_make_buy_code,
            msiv2.primary_uom_code,
            -- End revision for version 1.3
            gps.calendar_code,
            gps.period_code,
            gps.period_id,
            ccm.cost_cmpntcls_id -- cost_component_id
    ),
-- Revision for version 1.10
last_formula as
    (select distinct
            ffmv2.formula_id,
            ffmv2.owner_organization_id organization_id,
            max(ffmv2.formula_vers) keep (dense_rank last order by ffmv2.formula_vers) over (partition by ffmv2.owner_organization_id, ffmv2.formula_no) version
     from   fm_form_mst_vl ffmv2,
            mtl_parameters mp,
            gmd_status_vl gsv -- Formula Status
     where  ffmv2.owner_organization_id     = mp.organization_id
     and    ffmv2.delete_mark               = 0 -- Active
     and    gsv.status_code                 = ffmv2.formula_status
     and    32=32                           -- p_org_code
     and    37=37                           -- p_status_to_include
    )

----------------main query starts here--------------

select  nvl(gl.short_name, gl.name) Ledger,
        haou2.name Operating_Unit,
        mp.organization_code Org_Code,
        gps.calendar_code Calendar_Code,
        gps.period_code Period_Code,
&amp;category_segments1
        ffmv.formula_no Formula_Number,
        ffmv.formula_vers Formula_Version,
        gsv.status_code Status_Code,
        gsv.meaning Status_Description,
        ffmv.formula_desc1 Formula_Description1,
        ffmv.formula_class Formula_Class,
        gfcv.formula_class_desc Formula_Class_Description,
        msiv.concatenated_segments Product_Item_Number,
&amp;category_segments2
&amp;category_segments3
        nvl(ffmv.attribute4, msiv.attribute4) Label_Approval,
        fmd.line_no Line_No,
        msiv2.concatenated_segments Line_Item_Number,
        msiv2.description Line_Item_Description,
        fcl.meaning Item_Type,
        gl1.meaning Formula_Item_Type,
        -- Revision for version 1.7
        misv.inventory_item_status_code Item_Status,
        ml1.meaning Make_Buy_Code,
        -- End revision for version 1.7
        -- Revision for version 1.8
        &amp;p_show_more_details
        fmd.detail_uom Detailed_UOM,
        -- Revision for version 1.1 and 1.4
        -- fmd.item_um Primary_UOM,
        msiv2.primary_uom_code Primary_UOM,
        -- End revision for version 1.4
        fmd.qty Quantity,
        -- Revision for version 1.1
        fmd.qty * mucv.conversion_rate Primary_Quantity,
    nvl((select max(line_cost.cost_type) from line_cost
         where  line_cost.inventory_item_id = msiv.inventory_item_id
         and    line_cost.organization_id   = msiv.organization_id),&apos;&apos;) Cost_Type,
    nvl((select max(line_cost.cost_type_desc) from line_cost
         where  line_cost.inventory_item_id = msiv.inventory_item_id
         and    line_cost.organization_id   = msiv.organization_id),&apos;&apos;) Cost_Type_Description,

  -- Cost_Component1
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    1=1                         -- p_cost_component1
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component1&quot;,

  -- Cost_Component2
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    2=2                         -- p_cost_component2
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component2&quot;,

  -- Cost_Component3
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    3=3                         -- p_cost_component3
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component3&quot;,

  -- Cost_Component4
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    4=4                         -- p_cost_component4
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component4&quot;,

  -- Cost_Component5
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    5=5                         -- p_cost_component5
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component5&quot;,

  -- Cost_Component6
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    6=6                         -- p_cost_component6
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component6&quot;,

  -- Cost_Component7
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    7=7                         -- p_cost_component7
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component7&quot;,

  -- Cost_Component8
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    8=8                         -- p_cost_component8
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component8&quot;,

  -- Cost_Component9
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    9=9                         -- p_cost_component9
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component9&quot;,

  -- Cost_Component10
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    10=10                       -- p_cost_component10
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component10&quot;,

  -- Cost_Component11
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    11=11                       -- p_cost_component11
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component11&quot;,

  -- Cost_Component12
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    12=12                       -- p_cost_component12
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component12&quot;,

  -- Cost_Component13
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    13=13                       -- p_cost_component13
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component13&quot;,

  -- Cost_Component14
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    14=14                       -- p_cost_component14
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component14&quot;,

  -- Cost_Component15
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    15=15                       -- p_cost_component15
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component15&quot;,

  -- Cost_Component16
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    16=16                       -- p_cost_component16
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component16&quot;,

  -- Cost_Component17
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    17=17                       -- p_cost_component17
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component17&quot;,

  -- Cost_Component18
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    18=18                       -- p_cost_component18
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component18&quot;,

  -- Cost_Component19
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    19=19                       -- p_cost_component19
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component19&quot;,

  -- Cost_Component20
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    20=20                       -- p_cost_component20
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component20&quot;,

  -- Cost_Component21
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    21=21                       -- p_cost_component21
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component21&quot;,

  -- Cost_Component22
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    22=22                       -- p_cost_component22
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component22&quot;,

  -- Cost_Component23
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    23=23                       -- p_cost_component23
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component23&quot;,

  -- Cost_Component24
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    24=24                       -- p_cost_component24
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component24&quot;,

  -- Cost_Component25
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    25=25                       -- p_cost_component25
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component25&quot;,

  -- Cost_Component26
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    26=26                       -- p_cost_component26
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component26&quot;,

  -- Cost_Component27
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    27=27                       -- p_cost_component27
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component27&quot;,

  -- Cost_Component28
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    28=28                       -- p_cost_component28
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component28&quot;,

  -- Cost_Component29
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    29=29                       -- p_cost_component29
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component29&quot;,

  -- Cost_Component30
    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where  ccmv.cost_component_id      = line_cost.cost_component_id
         and    30=30                       -- p_cost_component30
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) &quot;&amp;p_cost_component30&quot;,

    nvl((select sum(nvl(line_cost.component_cost,0)) from ccmv, line_cost
         where   ccmv.cost_component_id     = line_cost.cost_component_id
         and     ccmv.cost_component_code not in
               (:p_cost_component1,  :p_cost_component2,  :p_cost_component3,  :p_cost_component4,  :p_cost_component5,
                :p_cost_component6,  :p_cost_component7,  :p_cost_component8,  :p_cost_component9,  :p_cost_component10,
                :p_cost_component11, :p_cost_component12, :p_cost_component13, :p_cost_component14, :p_cost_component15,
                :p_cost_component16, :p_cost_component17, :p_cost_component18, :p_cost_component19, :p_cost_component20,
                :p_cost_component21, :p_cost_component22, :p_cost_component23, :p_cost_component24, :p_cost_component25,
                :p_cost_component26, :p_cost_component27, :p_cost_component28, :p_cost_component29, :p_cost_component30
               )
         and    line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) Other_Costs,
    nvl((select sum(nvl(line_cost.component_cost,0)) from line_cost
         where  line_cost.inventory_item_id = msiv2.inventory_item_id
         and    line_cost.organization_id   = msiv2.organization_id),0) Total_Item_Cost
from    fm_form_mst_vl ffmv,
        -- Revision for version 1.10
        &amp;p_latest_formula_table
        fm_matl_dtl fmd,
        -- Revision for version 1.1
        mtl_uom_conversions_view mucv,
        gmf_period_statuses gps,
        gmf_fiscal_policies gfp,
        gmf_calendar_assignments gca,
        mtl_system_items_vl msiv, -- Formula Product Information
        mtl_system_items_vl msiv2, -- Formula Item Number Information
        -- Revision for version 1.7
        mtl_item_status_vl misv,
        gmd_status_vl gsv, -- Formula Status
        gmd_formula_class_vl gfcv, -- Formula Class Description
        -- Revision for version 1.9
        &amp;p_show_more_dtl_tables
        gem_lookups gl1, -- Formula Line Type
        fnd_common_lookups fcl, -- Item Type
        -- Revision for version 1.7
        mfg_lookups ml1, -- Make Buy Code
        mtl_parameters mp,
        hr_organization_information hoi,
        hr_all_organization_units_vl haou, -- inv_organization_id
        hr_all_organization_units_vl haou2, -- operating unit
        gl_ledgers gl
where   mp.organization_id              = ffmv.owner_organization_id
and     ffmv.formula_id                 = fmd.formula_id
and     ffmv.delete_mark                = 0 -- Active
-- Revision for version 1.1
and     mucv.uom_code                   = fmd.detail_uom
and     mucv.inventory_item_id          = fmd.inventory_item_id
and     mucv.organization_id            = fmd.organization_id
-- End revision for version 1.1
-- Revision for version 1.10
&amp;p_latest_formula_joins
and     gps.legal_entity_id             = gfp.legal_entity_id
and     gps.cost_type_id                = gfp.cost_type_id
and     gps.cost_type_id                = gca.cost_type_id
and     gps.legal_entity_id             = gca.legal_entity_id
and     gps.calendar_code               = gca.calendar_code 
and     msiv.organization_id            = mp.organization_id
and     msiv.inventory_item_id in
        (select max(fmd.inventory_item_id)
         from   fm_matl_dtl fmd 
         where  fmd.line_type  = 1 -- Product, may be multiple formula versions
         and    fmd.formula_id = ffmv.formula_id
        )
and     msiv2.organization_id           = fmd.organization_id
and     msiv2.inventory_item_id         = fmd.inventory_item_id
and     gsv.status_code                 = ffmv.formula_status
-- Revision for version 1.6
and     gfcv.formula_class (+)          = ffmv.formula_class
and     gl1.lookup_type (+)             = &apos;GMD_FORMULA_ITEM_TYPE&apos;
and     gl1.lookup_code (+)             = fmd.line_type
-- Revision for version 1.8
&amp;p_show_more_dtl_joins
and     fcl.lookup_type (+)             = &apos;ITEM_TYPE&apos;
and     fcl.lookup_code (+)             = msiv2.item_type
-- Revision for version 1.7
and     misv.inventory_item_status_code = msiv2.inventory_item_status_code
and     ml1.lookup_type                 = &apos;MTL_PLANNING_MAKE_BUY&apos;
and     ml1.lookup_code                 = msiv2.planning_make_buy_code
-- End revision for version 1.7
-- Avoid the item master organization
and     mp.organization_id             &lt;&gt; mp.master_organization_id
-- Avoid disabled inventory organizations
and     sysdate                        &lt;  nvl(haou.date_to, sysdate +1)
-- Get process organizations
and     nvl(mp.process_enabled_flag, &apos;N&apos;) = &apos;Y&apos;
and     hoi.org_information_context     = &apos;Accounting Information&apos;
and     hoi.organization_id             = mp.organization_id
and     hoi.organization_id             = haou.organization_id   -- this gets the organization name
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
-- Revision for version 1.5
and     mp.organization_code in (select oav.organization_code from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) 
and     31=31                           -- p_ledger, p_operating_unit
and     32=32                           -- p_org_code
-- Revision for version 1.3
and     34=34                           -- p_item_number
and     35=35                           -- p_calendar_code
and     36=36                           -- p_period_code
and     37=37                           -- p_status_to_include
-- Revision for version 1.9
and     38=38                           -- p_effective_date
group by
        nvl(gl.short_name, gl.name),
        haou2.name,
        mp.organization_code,
        gps.calendar_code,
        gps.period_code,
        -- For category_segments1
        msiv.inventory_item_id,
        msiv.organization_id,
        ffmv.formula_no,
        ffmv.formula_vers,
        gsv.status_code,
        gsv.meaning, -- Status_Description
        ffmv.formula_desc1,
        ffmv.formula_class,
        gfcv.formula_class_desc,
        msiv.concatenated_segments, -- Product_Item_Number
        -- For category_segments2 and 3
        msiv2.inventory_item_id,
        msiv2.organization_id,
        nvl(ffmv.attribute4, msiv.attribute4), -- Label_Approval
        fmd.line_no,
        msiv2.concatenated_segments, -- Line_Item_Number
        msiv2.description,
        fcl.meaning, -- Item_Type
        gl1.meaning, -- Formula_Item_Type
        -- Revision for version 1.7
        misv.inventory_item_status_code,
        ml1.meaning, -- Make_Buy_Code
        -- Revision for version 1.8
        &amp;p_show_more_dtl_grp
        fmd.detail_uom, -- Detailed_UOM
        -- Revision for version 1.1 and 1.4
        -- fmd.item_um, -- Primary_UOM,
        msiv2.primary_uom_code, -- Primary_UOM
        -- End revision for version 1.4
        fmd.qty,
        -- Revision for version 1.1
        fmd.qty * mucv.conversion_rate -- Primary_Quantity
order by
        nvl(gl.short_name, gl.name),
        haou2.name,
        mp.organization_code,
        gps.calendar_code,
        gps.period_code,
        ffmv.formula_no,
        ffmv.formula_vers,
        gl1.meaning desc, -- Line_Type
        msiv.concatenated_segments, -- Formula_Item_Number
        fmd.line_no, -- Line_No
        msiv2.concatenated_segments, -- Line_Item_Number
        msiv2.description, -- Line_Item_Description
        fcl.meaning -- Inventory Item_Type</SQL_TEXT>
  <VERSION_COMMENTS>1.12    10 Sep 2024 Douglas Volz Add Std Lot Size UOM column.</VERSION_COMMENTS>
  <ENABLED>Y</ENABLED>
  <NUMBER_FORMAT>#,##0.00000;[Red](#,##0.00000)</NUMBER_FORMAT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>CAC OPM Costed Formula</REPORT_NAME>
    <DESCRIPTION>eport showing OPM formulas and item costs, by OPM Cost Component Class.   The report automatically displays the first thirty Cost Components, sorted by Usage Indicator (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc), then by the Cost Component Class.  With the &quot;Other Costs&quot; column summing up any other non-displayed Cost Component Classes.  For a different selection of Cost Component Classes, you may override any of the defaulted Cost Component Classes.  If you have fewer than thirty Cost Components the report automatically displays &quot;Not Available&quot;, for the succeeding Cost Component columns.  And if you enter a cost type this report uses the item costs from the cost type; if you leave the cost type blank it uses the item costs from the month-end item costs.

Note:  The Label Approval column is from a user-defined Formula field, attribute4.  Your use of these descriptive flexfields, may be different and may require you to customize this report.

General Parameters:
===================
Cost Type:  enter a Cost Type to value the quantities using the Cost Type item costs; or, if Cost Type is not entered the report will use the stored month-end snapshot values (optional).
OPM Calendar Code:  choose the OPM Calendar Code which corresponds to the inventory accounting period you wish to report (mandatory).
OPM Period Code:  enter the OPM Period Code related to the inventory accounting period and OPM Calendar Code you wish to report (mandatory).
Only Show Latest Version:  enter Yes to report the latest formula and recipe version.  Enter No to see all versions (mandatory).
Show More Details:  enter Yes to display Ingredient Scale Type, Contribute to Yield, Standard Lot Size and End Date (from the validity rule).  Mandatory.
Effective Date:  for material line items and validity rules, enter the last ending date to report.  Defaults to today&apos;s date (mandatory).
Status to Include:  to minimize the report size, specify the formula, recipe and validity rule statuses you wish to report (optional).
Product Category Set:  the Product category set you wish to report (optional).
Line Category Set 1:  for the formula line item numbers, the first item category set to report (optional).
Line Category Set 2:  for the formula line item numbers, the second item category set to report (optional)
Item Number:  specific Product, By-Product or Ingredient you wish to report (optional).
Organization Code:  any inventory organization, defaults to your session&apos;s inventory organization (optional).
Operating Unit:  specific operating unit (optional).
Ledger:  specific ledger (optional).
Cost Component 1 - 30:  the defaulted Cost Component Classes.  You may override these defaulted values.

-- | Version Modified on Modified by Description
-- | ======= =========== ==============
-- | 1.0     02 Jun 2024 Douglas Volz Initial Coding based on client&apos;s sample report.
-- | 1.1     03 Jun 2024 Douglas Volz UOM conversions for formula line quantities
-- | 1.2     08 Jun 2024 Douglas Volz Replaced Cost Component rownum sort logic.
-- | 1.3     12 Jun 2024 Douglas Volz Cleaned-up naming for Cost Component parameters, fixed item number parameter.
-- | 1.4     03 Aug 2024 Douglas Volz Add OPM Cost Organizations to get correct item costs.
-- | 1.5     05 Aug 2024 Douglas Volz Add inventory organization access control security.
-- | 1.6     07 Aug 2024 Douglas Volz Not all formulas are assigned to classes, needs outer join.
-- | 1.7     08 Aug 2024 Douglas Volz Add item status and Make/Buy columns.
-- | 1.8     09 Aug 2024 Douglas Volz Add parameter &quot;Show More Details&quot; for Scale Type, Contribute to Yield, Std Lot Size and End Date.
-- | 1.9     17 Aug 2024 Douglas Volz Add parameters &quot;Only Show Latest Version&quot; and &quot;Effective Date&quot;.
-- | 1.10    18 Aug 2024 Douglas Volz Restructured code.
-- | 1.11    07 Sep 2024 Douglas Volz Fixed Cost Component parameters, from lexicals to bind variables.
-- | 1.12    10 Sep 2024 Douglas Volz Add Std Lot Size UOM column.
</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;category_segments1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;category_segments2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;category_segments3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component10</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component11</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component12</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component13</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component14</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component15</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component16</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component17</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component18</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component19</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component20</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component21</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component22</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component23</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component24</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component25</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component26</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component27</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component28</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component29</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component30</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component4</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component5</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component6</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component7</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component8</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_cost_component9</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_latest_formula_joins</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_latest_formula_table</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_show_more_details</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_show_more_dtl_grp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_show_more_dtl_joins</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;p_show_more_dtl_tables</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>10=10</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>11=11</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>12=12</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>13=13</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>14=14</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>15=15</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>16=16</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>17=17</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>18=18</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>19=19</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>20=20</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>21=21</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>22=22</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>23=23</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>24=24</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>25=25</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>26=26</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>27=27</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>28=28</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>29=29</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>30=30</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>31=31</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>32=32</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>33=33</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>34=34</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>35=35</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>36=36</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>37=37</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>38=38</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>4=4</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>5=5</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>6=6</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>7=7</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>8=8</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>9=9</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component10</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component11</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component12</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component13</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component14</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component15</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component16</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component17</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component18</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component19</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component20</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component21</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component22</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component23</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component24</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component25</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component26</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component27</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component28</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component29</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component30</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component4</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component5</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component6</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component7</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component8</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_component9</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_type</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>33=33</ANCHOR>
    <SQL_TEXT>cmm.cost_mthd_code = :p_cost_type</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Cost Type (OPM Orgs Only)</LOV_NAME>
    <LOV_GUID>184A903C40A16B3FE0630100007F2880</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
x.value, 
x.description
from
(
 select cmm.cost_mthd_code value, cmm.cost_mthd_desc description
 from   cm_mthd_mst cmm
 where exists 
 (select &apos;x&apos;
  from  gmf_calendar_assignments gca,
        org_organization_definitions ood,
        mtl_parameters mp
  where gca.legal_entity_id = ood.legal_entity
  and   gca.cost_type_id    = cmm.cost_type_id 
  and   (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or 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))
  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   mp.organization_id = ood.organization_id
  and   nvl(ood.disable_date,sysdate) &gt;= sysdate
  and   mp.organization_id &lt;&gt; mp.master_organization_id
  and   mp.process_enabled_flag = &apos;Y&apos;
 )
) x
group by
       x.value,
       x.description
order by value
</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>35=35</ANCHOR>
    <SQL_TEXT>gps.calendar_code = :p_calendar_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>OPM Calendar Code</LOV_NAME>
    <LOV_GUID>19508EAA42357240E0630100007FD049</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccht.calendar_code value, ccht.calendar_desc description
from    cm_cldr_hdr_tl ccht
where   ccht.language = userenv(&apos;lang&apos;)
and exists
(select &apos;x&apos;
 from   gmf_calendar_assignments gca,
        gmf_period_statuses gps,
        org_organization_definitions ood,
        mtl_parameters mp 
 where  gca.calendar_code = gps.calendar_code
 and    gca.legal_entity_id = gps.legal_entity_id
 and    gca.legal_entity_id = ood.legal_entity
 and    gca.calendar_code = ccht.calendar_code
 and    (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or 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))
 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    mp.organization_id = ood.organization_id
 and    nvl(ood.disable_date,sysdate) &gt;= sysdate
 and    mp.organization_id &lt;&gt; mp.master_organization_id
)
order by value desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccht.calendar_code value, ccht.calendar_desc description
from    cm_cldr_hdr_tl ccht
where   ccht.language = userenv(&apos;lang&apos;)
and     ccht.calendar_code =
(select gps.calendar_code
 from   gmf_calendar_assignments gca,
        gmf_period_statuses gps,
        ic_cldr_dtl icd,
        org_acct_periods oap,
        org_organization_definitions ood,
        mtl_parameters mp 
 where  gca.calendar_code = gps.calendar_code
 and    gca.legal_entity_id = gps.legal_entity_id
 and    gca.legal_entity_id = ood.legal_entity
 and    gca.calendar_code = ccht.calendar_code
 -- added to tie the OPM period_id with the inventory acct_period_id
 and    icd.fiscal_year = oap.period_year
 and    icd.period_end_date = oap.schedule_close_date
 and    icd.period = oap.period_num
 and    icd.period_id = gps.period_id
 and    oap.organization_id = mp.organization_id
 and    oap.period_name = :$flex$.period_name
and    (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or 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))
 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    mp.organization_id = ood.organization_id
 and    nvl(ood.disable_date,sysdate) &gt;= sysdate
 and    mp.organization_id &lt;&gt; mp.master_organization_id
 group by gps.calendar_code
)
order by value desc</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>OPM Calendar Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>36=36</ANCHOR>
    <SQL_TEXT>gps.period_code = :p_period_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>OPM Period Code</LOV_NAME>
    <LOV_GUID>19508EAA42367240E0630100007FD049</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccd.period_code value, ccd.period_desc description
from    cm_cldr_dtl ccd
where exists
        (select 1 
         from   gmf_period_statuses gps
         where  gps.calendar_code   = :$flex$.opm_calendar_code
         and    gps.legal_entity_id in (select ood.legal_entity from org_organization_definitions ood 
                                        where  (ood.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)
                                        or      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    gps.period_code      = ccd.period_code
        and    gps.calendar_code    = ccd.calendar_code
       )
order by ccd.end_date desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>
</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>OPM Period Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;p_latest_formula_table</ANCHOR>
    <SQL_TEXT>last_formula,</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>US</LANGUAGE>
      <PARAMETER_NAME>Only Show Latest Version</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <ANCHOR>&amp;p_latest_formula_joins</ANCHOR>
    <SQL_TEXT>and     ffmv.formula_id                 = last_formula.formula_id
and     ffmv.formula_vers               = last_formula.version
and     fmd.formula_id                  = last_formula.formula_id
-- End revision for version 1.10</SQL_TEXT>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Only Show Latest Version</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;p_show_more_details</ANCHOR>
    <SQL_TEXT>gl2.meaning Scale_Type,
        fl1.meaning Contribute_to_Yield,
        -- Revision for version 1.12
        last_grvr.detail_uom Lot_Size_UOM,
        -- Revision for version 1.10
        last_grvr.std_qty Standard_Lot_Size,
        -- Revision for version 1.9
        fmd.ingredient_end_date,
        -- End revision for version 1.8</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>US</LANGUAGE>
      <PARAMETER_NAME>Show More Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <ANCHOR>&amp;p_show_more_dtl_grp</ANCHOR>
    <SQL_TEXT>gl2.meaning, -- Scale_Type
        fl1.meaning, -- Contribute_to_Yield
        -- Revision for version 1.12
        last_grvr.detail_uom, -- Lot_Size_UOM
        -- Revision for version 1.10
        last_grvr.std_qty, -- Standard_Lot_Size
        -- Revision for version 1.9
        fmd.ingredient_end_date,
        -- End revision for version 1.8</SQL_TEXT>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show More Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>&amp;p_show_more_dtl_joins</ANCHOR>
    <SQL_TEXT>and     gl2.lookup_type (+)             = &apos;SCALE_TYPE&apos;
and     gl2.lookup_code (+)             = fmd.scale_type
and     fl1.lookup_type (+)             = &apos;YES_NO&apos;
and     fl1.lookup_code (+)             = fmd.contribute_yield_ind
-- End revision for version 1.8
-- Revision for version 1.12
and     last_grvr.formula_id (+)        = fmd.formula_id
and     last_grvr.inventory_item_id (+) = fmd.inventory_item_id
-- End revision for version 1.12</SQL_TEXT>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show More Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <ANCHOR>&amp;p_show_more_dtl_tables</ANCHOR>
    <SQL_TEXT>fnd_lookups fl1, -- contribute to yield, YES_NO
    gem_lookups gl2, -- Scale Type
        -- End revision for version 1.9
        (select distinct grvr.recipe_id,
                last_recipe.owner_organization_id,
                last_recipe.formula_id,
                max(grvr.recipe_validity_rule_id) keep (dense_rank last order by last_recipe.recipe_id) over (partition by last_recipe.owner_organization_id, last_recipe.recipe_id) recipe_validity_rule_id,
                grvr.inventory_item_id,
                detail_uom,
                grvr.std_qty
         from   gmd_recipe_validity_rules grvr,
                (select distinct
                        grv.recipe_no,
                        grv.formula_id,
                        grv.owner_organization_id,
                        max(grv.recipe_id) keep (dense_rank last order by grv.recipe_version) over (partition by grv.owner_organization_id, grv.formula_id) recipe_id,
                        max(grv.recipe_version) keep (dense_rank last order by grv.recipe_version) over (partition by grv.owner_organization_id, grv.formula_id) recipe_version
                 from   gmd_recipes_vl grv,
                        mtl_parameters mp,
                        gmd_status_vl gsv -- Recipe Status
                 where  grv.owner_organization_id       = mp.organization_id
                 and    gsv.status_code                 = grv.recipe_status
                 and    32=32                           -- p_org_code
                 and    37=37                           -- p_status_to_include
                ) last_recipe,
                 gmd_status_vl gsv -- Formula Status
         where  grvr.recipe_id (+)              = last_recipe.recipe_id
         and    grvr.start_date                &lt;= :p_effective_date
         and    (grvr.end_date is null
                 or
                 grvr.end_date &gt;= :p_effective_date
                )
         and    gsv.status_code                 = grvr.validity_rule_status
         and    37=37                           -- p_status_to_include
        ) last_grvr,</SQL_TEXT>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show More Details</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>38=38</ANCHOR>
    <SQL_TEXT>(fmd.ingredient_end_date is null or fmd.ingredient_end_date &gt;= :p_effective_date)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>sysdate</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Effective Date</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>37=37</ANCHOR>
    <SQL_TEXT>gsv.status_code = :p_formula_status</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>OPM Status Code</LOV_NAME>
    <LOV_GUID>1A5739C5DE270375E0630100007F5142</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gsv.status_code value,
gsv.description description
from
gmd_status_vl gsv
order by
to_number(gsv.status_code)</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
gsv.status_code value,
gsv.description description
from
gmd_status_vl gsv
where
gsv.status_code = 700
order by
gsv.status_code</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Status to Include</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_segments1</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <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>select
mcsv.category_set_name
from
mtl_default_category_sets mdcs,
mtl_category_sets_v mcsv
where
mdcs.functional_area_id=19 and
mdcs.category_set_id=mcsv.category_set_id</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Product Category Set</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_segments2</ANCHOR>
    <SQL_TEXT>select x.* from (
select
&apos;(select min(mcb.&apos;||lower(fifsv.application_column_name)||&apos;) keep (dense_rank first order by mic.category_id) from mtl_item_categories mic, mtl_categories_b mcb where mic.category_set_id=&apos;||mcsv.category_set_id||&apos; and msiv2.organization_id=mic.organization_id and msiv2.inventory_item_id=mic.inventory_item_id and mic.category_id=mcb.category_id) &quot;&apos;||substr(fifsv.form_left_prompt,1,30)||&apos;&quot;,&apos; sql_text
from
mtl_category_sets_vl mcsv,
fnd_id_flex_segments_vl fifsv
where
mcsv.category_set_name=:category_set_name2 and
mcsv.structure_id=fifsv.id_flex_num and
fifsv.application_id=401 and
fifsv.id_flex_code=&apos;MCAT&apos; and
fifsv.enabled_flag=&apos;Y&apos;
order by
fifsv.id_flex_num,
fifsv.segment_num
) x
union all
select
&apos;(select min(mct.description) keep (dense_rank first order by mic.category_id) from mtl_item_categories mic, mtl_categories_tl mct where mic.category_set_id=&apos;||mcsv.category_set_id||&apos; and msiv2.organization_id=mic.organization_id and msiv2.inventory_item_id=mic.inventory_item_id and mic.category_id=mct.category_id and mct.language=userenv(&apos;&apos;lang&apos;&apos;)) &quot;&apos;||substr(mcsv.category_set_name||&apos; Description&apos;,1,30)||&apos;&quot;,&apos; sql_text
from
mtl_category_sets_vl mcsv
where
mcsv.category_set_name=:category_set_name2</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>select
mcsv.category_set_name
from
mtl_default_category_sets mdcs,
mtl_category_sets_v mcsv
where
mdcs.functional_area_id=14 and
mdcs.category_set_id=mcsv.category_set_id</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Line Category Set 1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_segments3</ANCHOR>
    <SQL_TEXT>select x.* from (
select
&apos;(select min(mcb.&apos;||lower(fifsv.application_column_name)||&apos;) keep (dense_rank first order by mic.category_id) from mtl_item_categories mic, mtl_categories_b mcb where mic.category_set_id=&apos;||mcsv.category_set_id||&apos; and msiv2.organization_id=mic.organization_id and msiv2.inventory_item_id=mic.inventory_item_id and mic.category_id=mcb.category_id) &quot;&apos;||substr(fifsv.form_left_prompt,1,30)||&apos;&quot;,&apos; sql_text
from
mtl_category_sets_vl mcsv,
fnd_id_flex_segments_vl fifsv
where
mcsv.category_set_name=:category_set_name3 and
mcsv.structure_id=fifsv.id_flex_num and
fifsv.application_id=401 and
fifsv.id_flex_code=&apos;MCAT&apos; and
fifsv.enabled_flag=&apos;Y&apos;
order by
fifsv.id_flex_num,
fifsv.segment_num
) x
union all
select
&apos;(select min(mct.description) keep (dense_rank first order by mic.category_id) from mtl_item_categories mic, mtl_categories_tl mct where mic.category_set_id=&apos;||mcsv.category_set_id||&apos; and msiv2.organization_id=mic.organization_id and msiv2.inventory_item_id=mic.inventory_item_id and mic.category_id=mct.category_id and mct.language=userenv(&apos;&apos;lang&apos;&apos;)) &quot;&apos;||substr(mcsv.category_set_name||&apos; Description&apos;,1,30)||&apos;&quot;,&apos; sql_text
from
mtl_category_sets_vl mcsv
where
mcsv.category_set_name=:category_set_name3</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=5))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Line Category Set 2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>34=34</ANCHOR>
    <SQL_TEXT>msiv2.concatenated_segments = :p_item_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Item Number (costing enabled only items)</LOV_NAME>
    <LOV_GUID>EC5CECA520510FC8E0530100007F5EB3</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select distinct
msiv.concatenated_segments value,
msiv.description
from
mtl_system_items_vl msiv,
mtl_parameters mp
where
msiv.organization_id = mp.organization_id and
(xxen_util.contains(:$flex$.organization_code,mp.organization_code) = &apos;Y&apos; or
 (:$flex$.organization_code is null 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)
 )
) and
(msiv.costing_enabled_flag=&apos;Y&apos; or mp.process_enabled_flag=&apos;Y&apos;)
order by
msiv.concatenated_segments</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>32=32</ANCHOR>
    <SQL_TEXT>mp.organization_code = :p_org_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code (excluding master)</LOV_NAME>
    <LOV_GUID>91D3167A33531204E053BB6B63585EE3</LOV_GUID>
    <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
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
nvl(ood.disable_date,sysdate)&gt;=sysdate
order by
ood.organization_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select mp.organization_code from mtl_parameters mp where mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>31=31</ANCHOR>
    <SQL_TEXT>haou2.name = :p_operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Operating Unit</LOV_NAME>
    <LOV_GUID>9B9627743E84607DE053BB6B635805FB</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
haouv.name value,
&apos;Operating Unit&apos; description
from
hr_all_organization_units_vl haouv
where
haouv.organization_id in 
(
select
to_number(hoi.org_information3)
from
mtl_parameters mp,
hr_organization_information hoi,
hr_all_organization_units haou
where
mp.organization_id&lt;&gt;mp.master_organization_id and
mp.organization_id=hoi.organization_id and
hoi.org_information_context=&apos;Accounting Information&apos; and 
hoi.organization_id=haou.organization_id and
nvl(haou.date_to,sysdate)&gt;=sysdate
)
order by 1</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>18</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>31=31</ANCHOR>
    <SQL_TEXT>gl.name = :p_ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger (inv org related)</LOV_NAME>
    <LOV_GUID>8E2FF36EDF3A79D2E0530100007F1FF2</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;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
gl.ledger_id in (select ood.set_of_books_id from org_organization_definitions ood where nvl(ood.disable_date,sysdate)&gt;=sysdate) 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.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,
gl.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 1
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 1
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 1
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component1</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <DISPLAY_SEQUENCE>160</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component2</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 2
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 2
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 2
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>22</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component2</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>23</SORT_ORDER>
    <DISPLAY_SEQUENCE>170</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component3</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 3
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 3
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 3
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 3</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>24</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component3</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 3</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>25</SORT_ORDER>
    <DISPLAY_SEQUENCE>180</DISPLAY_SEQUENCE>
    <ANCHOR>4=4</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component4</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 4
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 4
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 4
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 4</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>26</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component4</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 4</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>27</SORT_ORDER>
    <DISPLAY_SEQUENCE>190</DISPLAY_SEQUENCE>
    <ANCHOR>5=5</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component5</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 5
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 5
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 5
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 5</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>28</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component5</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 5</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>29</SORT_ORDER>
    <DISPLAY_SEQUENCE>200</DISPLAY_SEQUENCE>
    <ANCHOR>6=6</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component6</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 6
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 6
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 6
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 6</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>30</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component6</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 6</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>31</SORT_ORDER>
    <DISPLAY_SEQUENCE>210</DISPLAY_SEQUENCE>
    <ANCHOR>7=7</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component7</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 7
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 7
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 7
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 7</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>32</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component7</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 7</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>33</SORT_ORDER>
    <DISPLAY_SEQUENCE>220</DISPLAY_SEQUENCE>
    <ANCHOR>8=8</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component8</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 8
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 8
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 8
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 8</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>34</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component8</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 8</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>35</SORT_ORDER>
    <DISPLAY_SEQUENCE>230</DISPLAY_SEQUENCE>
    <ANCHOR>9=9</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component9</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 9
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 9
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 9
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 9</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>36</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component9</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 9</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>37</SORT_ORDER>
    <DISPLAY_SEQUENCE>240</DISPLAY_SEQUENCE>
    <ANCHOR>10=10</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component10</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 10
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 10
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 10
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 10</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>38</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component10</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 10</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>39</SORT_ORDER>
    <DISPLAY_SEQUENCE>250</DISPLAY_SEQUENCE>
    <ANCHOR>11=11</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component11</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 11
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 11
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 11
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 11</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>40</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component11</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 11</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>41</SORT_ORDER>
    <DISPLAY_SEQUENCE>260</DISPLAY_SEQUENCE>
    <ANCHOR>12=12</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component12</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 12
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 12
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 12
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 12</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>42</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component12</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 12</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>43</SORT_ORDER>
    <DISPLAY_SEQUENCE>270</DISPLAY_SEQUENCE>
    <ANCHOR>13=13</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component13</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 13
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 13
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 13
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 13</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>44</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component13</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 13</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>45</SORT_ORDER>
    <DISPLAY_SEQUENCE>280</DISPLAY_SEQUENCE>
    <ANCHOR>14=14</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component14</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 14
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 14
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 14
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 14</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>46</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component14</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 14</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>47</SORT_ORDER>
    <DISPLAY_SEQUENCE>290</DISPLAY_SEQUENCE>
    <ANCHOR>15=15</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component15</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 15
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 15
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 15
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 15</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>48</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component15</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 15</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>49</SORT_ORDER>
    <DISPLAY_SEQUENCE>300</DISPLAY_SEQUENCE>
    <ANCHOR>16=16</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component16</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 16
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 16
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 16
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 16</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>50</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component16</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 16</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>51</SORT_ORDER>
    <DISPLAY_SEQUENCE>310</DISPLAY_SEQUENCE>
    <ANCHOR>17=17</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component17</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 17
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 17
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 17
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 17</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>52</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component17</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 17</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>53</SORT_ORDER>
    <DISPLAY_SEQUENCE>320</DISPLAY_SEQUENCE>
    <ANCHOR>18=18</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component18</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 18
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 18
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 18
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 18</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>54</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component18</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 18</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>55</SORT_ORDER>
    <DISPLAY_SEQUENCE>330</DISPLAY_SEQUENCE>
    <ANCHOR>19=19</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component19</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 19
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 19
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 19
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 19</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>56</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component19</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 19</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>57</SORT_ORDER>
    <DISPLAY_SEQUENCE>340</DISPLAY_SEQUENCE>
    <ANCHOR>20=20</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component20</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 20
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 20
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 20
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 20</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>58</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component20</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 20</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>59</SORT_ORDER>
    <DISPLAY_SEQUENCE>350</DISPLAY_SEQUENCE>
    <ANCHOR>21=21</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component21</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 21
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 21
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 21
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 21</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>60</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component21</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 21</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>61</SORT_ORDER>
    <DISPLAY_SEQUENCE>360</DISPLAY_SEQUENCE>
    <ANCHOR>22=22</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component22</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 22
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 22
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 22
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 22</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>62</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component22</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 22</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>63</SORT_ORDER>
    <DISPLAY_SEQUENCE>370</DISPLAY_SEQUENCE>
    <ANCHOR>23=23</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component23</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 23
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 23
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 23
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 23</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>64</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component23</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 23</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>65</SORT_ORDER>
    <DISPLAY_SEQUENCE>380</DISPLAY_SEQUENCE>
    <ANCHOR>24=24</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component24</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 24
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 24
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 24
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 24</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>66</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component24</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 24</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>67</SORT_ORDER>
    <DISPLAY_SEQUENCE>390</DISPLAY_SEQUENCE>
    <ANCHOR>25=25</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component25</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 25
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 25
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 25
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 25</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>68</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component25</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 25</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>69</SORT_ORDER>
    <DISPLAY_SEQUENCE>400</DISPLAY_SEQUENCE>
    <ANCHOR>26=26</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component26</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 26
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 26
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 26
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 26</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>70</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component26</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 26</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>71</SORT_ORDER>
    <DISPLAY_SEQUENCE>410</DISPLAY_SEQUENCE>
    <ANCHOR>27=27</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component27</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 27
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 27
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 27
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 27</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>72</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component27</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 27</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>73</SORT_ORDER>
    <DISPLAY_SEQUENCE>420</DISPLAY_SEQUENCE>
    <ANCHOR>28=28</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component28</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 28
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 28
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 28
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 28</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>74</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component28</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 28</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>75</SORT_ORDER>
    <DISPLAY_SEQUENCE>430</DISPLAY_SEQUENCE>
    <ANCHOR>29=29</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component29</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 29
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 29
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 29
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 29</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>76</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component29</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 29</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>77</SORT_ORDER>
    <DISPLAY_SEQUENCE>440</DISPLAY_SEQUENCE>
    <ANCHOR>30=30</ANCHOR>
    <SQL_TEXT>ccmv.cost_component_code    = :p_cost_component30</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 30
        )</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select  ccmv.cost_component_code value,
        ccmv.cost_cmpntcls_desc description
from    -- Order the Cost Components by usage_ind (1-Material, 2-Overhead, 3-Resource, 4-Expense Alloc) then by Cost Component Code
        (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                 usage_ind,
                 gl.meaning cost_component_type,
                 ccmv.cost_cmpntcls_code cost_component_code,
                 ccmv.cost_cmpntcls_desc,
                 ccmv.cost_cmpntcls_id cost_component_id
         from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                 gem_lookups gl
         where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
         and     gl.lookup_code   = ccmv.usage_ind
         and     ccmv.delete_mark = 0 -- Active
         order by 
                 usage_ind,
                 gl.meaning,
                 ccmv.cost_cmpntcls_code
        ) ccmv
        where   ccmv.row_number  = 30
union all
select  fl.meaning value,
        fl.meaning description
from    fnd_lookups fl
where   fl.lookup_type                    = &apos;XDP_ADAPTER_STATUS&apos;
and     fl.lookup_code                    = &apos;NOT_AVAILABLE&apos;
and     not exists
        (select &apos;x&apos;
         from   (select  row_number() over (order by ccmv.usage_ind, gl.meaning, ccmv.cost_cmpntcls_code) row_number,
                          usage_ind,
                          gl.meaning cost_component_type,
                          ccmv.cost_cmpntcls_code cost_component_code,
                          ccmv.cost_cmpntcls_desc,
                          ccmv.cost_cmpntcls_id cost_component_id
                  from    cm_cmpt_mst_vl ccmv,  -- Cost Component Master
                          gem_lookups gl
                  where   gl.lookup_type   = &apos;COST_COMPONENT_TYPE&apos;
                  and     gl.lookup_code   = ccmv.usage_ind
                  and     ccmv.delete_mark = 0 -- Active
                  order by 
                          usage_ind,
                          gl.meaning,
                          ccmv.cost_cmpntcls_code
                ) ccmv
                where   ccmv.row_number    = 30
        )</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 30</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>78</SORT_ORDER>
    <ANCHOR>&amp;p_cost_component30</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Component 30</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>Cost Type</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>OPM Calendar Code</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>Cost Type</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>OPM Calendar 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_ROW>
    <FLEX_BIND>:$flex$.opm_calendar_code</FLEX_BIND>
    <PARAMETER_NAME>OPM Calendar Code</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>OPM Period Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.organization_code</FLEX_BIND>
    <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Item Number</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.organization_code</FLEX_BIND>
    <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Line Category Set 1</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.organization_code</FLEX_BIND>
    <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Line Category Set 2</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.organization_code</FLEX_BIND>
    <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Product Category Set</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <TEMPLATE_NAME>Pivot by Org</TEMPLATE_NAME>
    <DYNAMIC_COLUMNS>Y</DYNAMIC_COLUMNS>
    <OWNER>MFG</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>31</DISPLAY_SEQUENCE>
      <COLUMN_NAME>1-BYPRODUCT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>CALENDAR_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>29</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COST_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COST_TYPE_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Cost Class</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Cost Class Description</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>27</DISPLAY_SEQUENCE>
      <COLUMN_NAME>DETAILED_UOM</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FORMULA_CLASS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FORMULA_CLASS_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FORMULA_DESCRIPTION1</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>26</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FORMULA_ITEM_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FORMULA_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FORMULA_VERSION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
      <COLUMN_NAME>General Ledger Class</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>21</DISPLAY_SEQUENCE>
      <COLUMN_NAME>General Ledger Class Descripti</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>25</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ITEM_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>19</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LABEL_APPROVAL</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>24</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_ITEM_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>23</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_ITEM_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>22</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_NO</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ORG_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>32</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OTHER_COSTS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PRODUCT_ITEM_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>28</DISPLAY_SEQUENCE>
      <COLUMN_NAME>QUANTITY</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>STATUS_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>STATUS_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Sequence Dependency Class</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Sequence Dependency Class Desc</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>33</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TOTAL_ITEM_COST</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
    </PARAMETER_EXCLUSION>
   </TEMPLATES_ROW>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <USER_NAME>MFG</USER_NAME>
    <TEMPLATE_NAME>Pivot by Org</TEMPLATE_NAME>
   </DEFAULT_TEMPLATES_ROW>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
