<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: GL Chart of Accounts (inv org related) -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEC879D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Chart of Accounts (inv org related)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
fifsv.id_flex_structure_name value,
fifsv.id_flex_structure_code description
from
fnd_id_flex_structures_vl fifsv
where
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101 and
fifsv.id_flex_num in (select ood.chart_of_accounts_id from org_organization_definitions ood where nvl(ood.disable_date,sysdate + 1) &gt; sysdate)
order by
fifsv.id_flex_structure_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>دليل الحسابات المتعلقة بمنظمات المخزون</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Kontenplan für Bestandsorganisationen</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Plan de cuentas relacionado con las organizaciones de inventario</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Plan comptable relatif aux organismes d&apos;inventaire</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Piano dei conti relativo alle organizzazioni dell&apos;inventario</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>Plano de contas relacionado às organizações de inventário</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>План счетов организаций, занимающихся инвентаризацией</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Kontoplan relaterade till lagerorganisationer</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Envanter organizasyonları ile ilgili hesap planı</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Chart of accounts related to 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: 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 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>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: CAC Receiving Activity Summary -->
 <REPORTS_ROW>
  <GUID>7F9E3C97A9C63299E0530100007F4ED4</GUID>
  <SQL_TEXT>select  rcv_sum. Destination_Type,
-- =============================================================
-- Get summary of net PO receiving activity by PO Distribution
-- =============================================================
        rcv_sum.Ledger,
        rcv_sum.Operating_Unit,
        rcv_sum.Org_Code,
        rcv_sum.Period_Name,
        rcv_sum.Accounting_Line_Type,
        rcv_sum.PO_Number,
        rcv_sum.PO_Line,
        rcv_sum.PO_Distribution_Id,
        &amp;segment_columns
        rcv_sum.WIP_Job,
        rcv_sum.Item_Number,
        rcv_sum.Item_Description,
        -- Revision for version 1.5
        fcl.meaning Item_Type,
        sum(rcv_sum.Amount) Amount
from    gl_code_combinations_kfv gcc1,
        gl_code_combinations_kfv gcc2,
        fnd_common_lookups fcl,
        -- =============================================================
        -- Get the Receipts into Receiving Inspection and the Deliveries
        -- out of Receiving Inspection from Purchasing
        -- =============================================================
        (select pod.destination_type_code Destination_Type,
                nvl(gl.short_name, gl.name) Ledger,
                haou2.name Operating_Unit,
                mp.organization_code Org_Code,
                oap.period_name Period_Name,
                -- Revision for version 1.2
                &apos;RCV&apos; Transaction_Source,
                rrsl.accounting_line_type Accounting_Line_Type,
                flv.meaning Transaction_Type,
                rt.transaction_id Transaction_Id,
                poh.segment1 PO_Number,
                pol.line_num PO_Line,
                pod.po_distribution_id PO_Distribution_Id,
                al.code_combination_id rcv_ccid,  -- gcc1
                pod.code_combination_id pod_ccid, -- gcc2
                nvl((select we.wip_entity_name
                     from   wip_entities we
                     where  we.wip_entity_id = pod.wip_entity_id),&apos;&apos;) WIP_Job,
                msiv.concatenated_segments Item_Number,
                msiv.description Item_Description,
                -- Revision for version 1.5
                msiv.item_type, 
                sum(nvl(al.accounted_dr,0) - nvl(al.accounted_cr,0)) Amount
         from   rcv_receiving_sub_ledger rrsl,
                rcv_transactions rt,
                po_headers_all poh,
                po_lines_all pol,
                rcv_shipment_lines rsl,
                po_distributions_all pod,
                fnd_lookup_values flv,
                mtl_system_items_vl msiv,
                org_acct_periods oap,
                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,
                -- Revision for version 1.4, remove tables to increase performance
                -- xla_transaction_entities ent,
                -- xla_events xe,
                -- End revision for version 1.4
                xla_distribution_links xdl,
                xla_ae_headers ah,
                xla_ae_lines al
         -- ========================================================
         -- Material Transaction, org and item joins
         -- ========================================================
         where  rrsl.rcv_transaction_id           = rt.transaction_id
         and    rt.shipment_line_id               = rsl.shipment_line_id
         and    rsl.item_id                       = msiv.inventory_item_id (+)
         and    rsl.to_organization_id            = msiv.organization_id   (+)
         and    mp.organization_id                = rt.organization_id
         -- RMAs and REQs are not accounted for by Purchasing
         and    rt.source_document_code not in (&apos;RMA&apos;, &apos;REQ&apos;)
         and    pod.po_distribution_id            = rsl.po_distribution_id
         and    pod.po_header_id                  = poh.po_header_id
         and    pod.po_line_id                    = pol.po_line_id
         and    rrsl.accounting_line_type        &lt;&gt; &apos;Accrual&apos;
         -- ========================================================
         -- Inventory Org accounting period joins
         -- ========================================================
         and    oap.period_name                   = ah.period_name
         and    oap.organization_id               = rt.organization_id
         -- ========================================================
         -- Version 1.3, added lookup values to see more detail
         -- ========================================================
         and    flv.lookup_type                   = &apos;RCV TRANSACTION TYPE&apos;
         and    flv.lookup_code                   = rt.transaction_type
         -- Revision for version 1.2
         -- and source_lang                       = &apos;US&apos;
         -- and language                          = &apos;US&apos;
         and    flv.language                      = userenv(&apos;LANG&apos;)
         -- ========================================================
         -- using the base tables to avoid the performance issues
         -- with org_organization_definitions and hr_operating_units
         -- ========================================================
         and    hoi.org_information_context       = &apos;Accounting Information&apos;
         and    hoi.organization_id               = rt.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
         and    1=1                               -- p_trx_date_from, p_trx_date_to, p_org_code, p_operating_unit, p_ledger
         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)
         -- ========================================================
         -- SLA table joins to get the exact account numbers
         -- ========================================================
         -- Revision for version 1.4, performance improvements
         -- and  ent.entity_code                  = &apos;RCV_ACCOUNTING_EVENTS&apos;
         -- and  ent.application_id               = 707
         -- and  xe.application_id                = ent.application_id
         -- and  xe.event_id                      = xdl.event_id
         -- and  ah.entity_id                     = ent.entity_id
         -- and  ah.ledger_id                     = ent.ledger_id
         -- and  ah.event_id                      = xe.event_id
         -- and  al.application_id                = ent.application_id
         -- and  xdl.application_id               = ent.application_id
         and     ah.ledger_id                     = gl.ledger_id
         -- End revisions for version 1.4
         and     ah.application_id                = al.application_id
         and     ah.application_id                = 707
         and     ah.ae_header_id                  = al.ae_header_id
         and     al.ledger_id                     = ah.ledger_id
         and     al.ae_header_id                  = xdl.ae_header_id
         and     al.ae_line_num                   = xdl.ae_line_num
         and     xdl.application_id               = 707
         and     xdl.source_distribution_type     = &apos;RCV_RECEIVING_SUB_LEDGER&apos;
         and     xdl.source_distribution_id_num_1 = rrsl.rcv_sub_ledger_id
         -- Revision for version 1.4, outer join for CCIDs
         -- ========================================================
         -- Account code combination id joins
         -- ========================================================
         -- Revision for version 1.2
         -- and gcc1.segment3 = &apos;1449&apos;
         and    rrsl.code_combination_id in
                (select rp.receiving_account_id
                 from   rcv_parameters rp
                 where  rp.organization_id        = mp.organization_id)
         -- Revision for version 1.4, outer join for CCIDs
         and     rrsl.code_combination_id (+)     = al.code_combination_id
         -- ==========================================================
         group by
                pod.destination_type_code,
                nvl(gl.short_name, gl.name),
                haou2.name,
                mp.organization_code,
                oap.period_name,
                 -- Revision for version 1.2
                &apos;RCV&apos;,
                rrsl.accounting_line_type,
                flv.meaning,
                rt.transaction_id,
                poh.segment1,
                pol.line_num,
                pod.po_distribution_id,
                al.code_combination_id, -- rcv_ccid,  -- gcc1
                pod.code_combination_id, -- pod_ccid, -- gcc2
                pod.wip_entity_id,
                msiv.concatenated_segments,
                msiv.description,
                -- Revision for version 1.5
                msiv.item_type
         -- =============================================================
         -- Get the Deliveries from Receiving Inspection to WIP for
         -- outside processing
         -- =============================================================
         union all
         select pod.destination_type_code Destination_Type,
                nvl(gl.short_name, gl.name) Ledger,
                haou2.name Operating_Unit,
                mp.organization_code Org_Code,
                oap.period_name Period_Name,
                 -- Revision for version 1.2
                &apos;WIP&apos; Transaction_Source,
                ml.meaning Accounting_Line_Type,
                ml2.meaning Transaction_Type,
                wt.transaction_id Transaction_Id,
                poh.segment1 PO_Number,
                pol.line_num PO_Line,
                pod.po_distribution_id PO_Distribution_Id,
                al.code_combination_id rcv_ccid,  -- gcc1
                pod.code_combination_id pod_ccid, -- gcc2
                nvl((select we.wip_entity_name
                     from   wip_entities we
                     where  we.wip_entity_id = pod.wip_entity_id),&apos;&apos;) WIP_Job,
                msiv.concatenated_segments Item_Number,
                msiv.description Item_Description,
                -- Revision for version 1.5
                msiv.item_type, 
                sum(nvl(al.accounted_dr,0) - nvl(al.accounted_cr,0)) Amount
         from   wip_transaction_accounts wta,
                wip_transactions wt,
                wip_accounting_classes wac,
                wip_discrete_jobs wdj,
                rcv_transactions rt,
                rcv_shipment_lines rsl,
                po_headers_all poh,
                po_lines_all pol,
                po_distributions_all pod,
                mfg_lookups ml2,
                mtl_system_items_vl msiv,
                org_acct_periods oap,
                mtl_parameters mp, 
                mfg_lookups ml,
                hr_organization_information hoi,
                hr_all_organization_units_vl haou, -- inv_organization_id
                hr_all_organization_units_vl haou2, -- operating unit
                gl_ledgers gl,
                -- Revision for version 1.4, remove tables to increase performance
                -- xla_transaction_entities ent,
                -- xla_events xe,
                -- End revision for version 1.4
                xla_distribution_links xdl,
                xla_ae_headers ah,
                xla_ae_lines al
         -- ========================================================
         -- Material Transaction, org and item joins
         -- ========================================================
         where  wta.transaction_id                = wt.transaction_id
         and    wta.organization_id               = msiv.organization_id
         and    mp.organization_id                = msiv.organization_id
         -- Oracle bug=&gt; the accounting line type used is 4 (res absorption) and should be 5 (receiving)
         and    wta.accounting_line_type   in (4,5)
         -- get all of them to see the offset accounts
         and    wt.rcv_transaction_id             = rt.transaction_id
         and    rt.shipment_line_id               = rsl.shipment_line_id
         and    rsl.item_id                       = msiv.inventory_item_id (+)
         and    rsl.to_organization_id            = msiv.organization_id   (+)
         and    mp.organization_id                = rt.organization_id
         -- RMAs and REQs are not accounted for by Purchasing
         and    rt.source_document_code not in (&apos;RMA&apos;, &apos;REQ&apos;)
         and    pod.po_distribution_id            = rsl.po_distribution_id
         and    pod.po_header_id                  = poh.po_header_id
         and    pod.po_line_id                    = pol.po_line_id
         -- ========================================================
         -- WIP class and WIP job joins
         -- ========================================================
         and    wac.class_code                    = wdj.class_code
         and    wdj.wip_entity_id                 = wt.wip_entity_id
         and    wdj.organization_id               = wac.organization_id
         -- ========================================================
         -- Inventory Org accounting period joins
         -- ========================================================
         and    oap.acct_period_id                = wt.acct_period_id
         and    oap.organization_id               = wt.organization_id
         -- ========================================================
         -- Version 1.3, added lookup values to see more detail
         -- ========================================================
         and    ml.lookup_type                    = &apos;CST_ACCOUNTING_LINE_TYPE&apos;
         and    ml.lookup_code                    = wta.accounting_line_type
         and    ml2.lookup_type                   = &apos;WIP_TRANSACTION_TYPE_SHORT&apos;
         and    ml2.lookup_code                   = wt.transaction_type
         -- ========================================================
         -- using the base tables to avoid the performance issues
         -- with org_organization_definitions and hr_operating_units
         -- ========================================================
         and    hoi.org_information_context       = &apos;Accounting Information&apos;
         and    hoi.organization_id               = wta.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
         and    2=2                               -- p_trx_date_from, p_trx_date_to, p_org_code, p_operating_unit, p_ledger
         and    wta.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)
         -- ========================================================
         -- SLA table joins to get the exact account numbers
         -- ========================================================
         -- Revision for version 1.4, performance improvements
         -- and ent.entity_code                   = &apos;WIP_ACCOUNTING_EVENTS&apos;
         -- and ent.application_id                = 707
         -- and xe.application_id                 = ent.application_id
         -- and xe.event_id                       = xdl.event_id
         -- and ah.entity_id                      = ent.entity_id
         -- and ah.ledger_id                      = ent.ledger_id
         -- and ah.event_id                       = xe.event_id
         -- and al.application_id                 = ent.application_id
         -- and xdl.application_id                = ent.application_id
         and    ah.ledger_id                      = gl.ledger_id
         -- End revisions for version 1.4
         and    ah.application_id                 = al.application_id
         and    ah.application_id                 = 707
         and    ah.ae_header_id                   = al.ae_header_id
         and    al.ledger_id                      = ah.ledger_id
         and    al.ae_header_id                   = xdl.ae_header_id
         and    al.ae_line_num                    = xdl.ae_line_num
         and    xdl.application_id                = 707
         and    xdl.source_distribution_type      = &apos;WIP_TRANSACTION_ACCOUNTS&apos;
         and    xdl.source_distribution_id_num_1  = wta.wip_sub_ledger_id
         and    wta.reference_account in
                (select rp.receiving_account_id
                 from   rcv_parameters rp
                 where  mp.organization_id        = mp.organization_id)
         -- Revision for version 1.4, outer join for CCIDs
         and    wta.reference_account (+)         = al.code_combination_id
         -- ==========================================================
         group by 
                pod.destination_type_code,
                nvl(gl.short_name, gl.name),
                haou2.name,
                mp.organization_code,
                oap.period_name,
                -- Revision for version 1.2
                &apos;WIP&apos;,
                ml.meaning,
                ml2.meaning,
                wt.transaction_id,
                poh.segment1,
                pol.line_num,
                pod.po_distribution_id,
                al.code_combination_id, -- rcv_ccid,  -- gcc1
                pod.code_combination_id, -- pod_ccid, -- gcc2
                pod.wip_entity_id,
                msiv.concatenated_segments,
                msiv.description,
                -- Revision for version 1.5
                msiv.item_type
         -- =============================================================
         -- Get the Deliveries from Receiving Inspection to Stores
         -- inventory for purchase order receipt transactions
         -- =============================================================
         union all
         select pod.destination_type_code Destination_Type,
                nvl(gl.short_name, gl.name) Ledger,
                haou2.name Operating_Unit,
                mp.organization_code Org_Code,
                oap.period_name Period_Name,
                -- Revision for version 1.2
                &apos;INV&apos; Transaction_Source,
                ml.meaning Accounting_Line_Type,
                mtt.transaction_type_name Transaction_Type,
                mmt.transaction_id Transaction_Id,
                poh.segment1 PO_Number,
                pol.line_num PO_Line,
                pod.po_distribution_id PO_Distribution_Id,
                al.code_combination_id rcv_ccid,  -- gcc1
                pod.code_combination_id pod_ccid, -- gcc2
                nvl((select we.wip_entity_name
                     from   wip_entities we
                     where  we.wip_entity_id = pod.wip_entity_id),&apos;&apos;) WIP_Job,
                msiv.concatenated_segments Item_Number,
                msiv.description Item_Description,
                -- Revision for version 1.5
                msiv.item_type,             
                sum(nvl(al.accounted_dr,0) - nvl(al.accounted_cr,0)) Amount
         from   mtl_transaction_accounts mta,
                mtl_material_transactions mmt,
                rcv_transactions rt,
                rcv_shipment_lines rsl,
                po_headers_all poh,
                po_lines_all pol,
                po_distributions_all pod,
                mtl_transaction_types mtt,
                mtl_system_items_vl msiv,
                org_acct_periods oap,
                mtl_parameters mp, 
                mfg_lookups ml, 
                hr_organization_information hoi,
                hr_all_organization_units_vl haou, -- inv_organization_id
                hr_all_organization_units_vl haou2, -- operating unit
                gl_ledgers gl,
                -- Revision for version 1.4, remove tables to increase performance
                -- xla_transaction_entities ent,
                -- xla_events xe,
                -- End revision for version 1.4
                xla_distribution_links xdl,
                xla_ae_headers ah,
                xla_ae_lines al
         -- ========================================================
         -- Material Transaction, org and item joins
         -- ========================================================
         where  mta.transaction_id                = mmt.transaction_id
         and    mmt.transaction_type_id           = mtt.transaction_type_id
         and    mta.organization_id               = msiv.organization_id
         and    mta.inventory_item_id             = msiv.inventory_item_id
         and    mp.organization_id                = msiv.organization_id
         and    mmt.transaction_source_type_id    = 1 -- Purchasing
         and    mta.accounting_line_type          = 5
         and    mmt.rcv_transaction_id            = rt.transaction_id
         and    rt.shipment_line_id               = rsl.shipment_line_id
         and    rsl.item_id                       = msiv.inventory_item_id (+)
         and    rsl.to_organization_id            = msiv.organization_id   (+)
         -- RMAs and REQs are not accounted for by Purchasing
         and    rt.source_document_code not in (&apos;RMA&apos;, &apos;REQ&apos;)
         and    pod.po_distribution_id            = rsl.po_distribution_id
         and    pod.po_header_id                  = poh.po_header_id
         and    pod.po_line_id                    = pol.po_line_id
         -- ========================================================
         -- Inventory Org accounting period joins
         -- ========================================================
         and    oap.period_name                   = ah.period_name
         and    oap.organization_id               = mta.organization_id
         -- ========================================================
         -- Version 1.3, added lookup values to see more detail
         -- ========================================================
         and    ml.lookup_type                    = &apos;CST_ACCOUNTING_LINE_TYPE&apos;
         and    ml.lookup_code                    = mta.accounting_line_type
         -- ========================================================
         -- using the base tables to avoid the performance issues
         -- with org_organization_definitions and hr_operating_units
         -- ========================================================
         and    hoi.org_information_context       = &apos;Accounting Information&apos;
         and    hoi.organization_id               = mta.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
         and    3=3                               -- p_trx_date_from, p_trx_date_to, p_org_code, p_operating_unit, p_ledger
         and    mta.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)
         -- ========================================================
         -- SLA table joins to get the exact account numbers
         -- ========================================================
         -- Revision for version 1.23, performance improvements
         -- and ent.entity_code                   = &apos;MTL_ACCOUNTING_EVENTS&apos;
         -- and ent.application_id                = 707
         -- and xe.application_id                 = ent.application_id
         -- and xe.event_id                       = xdl.event_id
         -- and ah.entity_id                      = ent.entity_id
         -- and ah.ledger_id                      = ent.ledger_id
         -- and ah.event_id                       = xe.event_id
         -- and al.application_id                 = ent.application_id
         -- and xdl.application_id                = ent.application_id
         and    ah.ledger_id                      = gl.ledger_id
         -- End revisions for version 1.23
         and    ah.application_id                 = al.application_id
         and    ah.application_id                 = 707
         and    ah.ae_header_id                   = al.ae_header_id
         and    al.ledger_id                      = ah.ledger_id
         and    al.ae_header_id                   = xdl.ae_header_id
         and    al.ae_line_num                    = xdl.ae_line_num
         and    xdl.application_id                = 707
         and    xdl.source_distribution_type      = &apos;MTL_TRANSACTION_ACCOUNTS&apos;
         and    xdl.source_distribution_id_num_1  = mta.inv_sub_ledger_id
         -- Revision for version 1.4, for performance improvements
         and    mta.reference_account in
                (select rp.receiving_account_id
                 from   rcv_parameters rp
                 where  rp.organization_id        = mp.organization_id)
         -- Revision for version 1.4, outer join for CCIDs
         and    mta.reference_account (+)         = al.code_combination_id
         -- ==========================================================
         group by 
                pod.destination_type_code,
                nvl(gl.short_name, gl.name),
                haou2.name,
                mp.organization_code,
                oap.period_name,
                -- Revision for version 1.2
                &apos;INV&apos;,
                ml.meaning,
                mtt.transaction_type_name,
                mmt.transaction_id,
                poh.segment1,
                pol.line_num,
                pod.po_distribution_id,
                al.code_combination_id, -- rcv_ccid,  -- gcc1
                pod.code_combination_id, -- pod_ccid, -- gcc2
                pod.wip_entity_id,
                msiv.concatenated_segments,
                msiv.description,
                -- Revision for version 1.5
                msiv.item_type
        ) rcv_sum
-- Revision for version 1.4, outer join for CCIDs
where   gcc1.code_combination_id (+)     = rcv_sum.rcv_ccid
and     gcc2.code_combination_id (+)     = rcv_sum.pod_ccid
-- Revision for version 1.5
and fcl.lookup_type (+)              = &apos;ITEM_TYPE&apos;
and fcl.lookup_code (+)              = rcv_sum.item_type
group by
        rcv_sum.Destination_Type,
        rcv_sum.Ledger,
        rcv_sum.Operating_Unit,
        rcv_sum.Org_Code,
        rcv_sum.Period_Name,
        rcv_sum.Accounting_Line_Type,
        rcv_sum.PO_Number,
        rcv_sum.PO_Line,
        rcv_sum.PO_Distribution_Id,
        &amp;segment_columns_grp
        rcv_sum.WIP_Job,
        rcv_sum.Item_Number,
        rcv_sum.Item_Description,
        -- Revision for version 1.5
        fcl.meaning -- Item_Type
having  round(sum(rcv_sum.Amount),3)    &lt;&gt; 0
order by 1,2,3,4,6,7,8,9</SQL_TEXT>
  <VERSION_COMMENTS>Replaced tab characters with spaces</VERSION_COMMENTS>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>CAC Receiving Activity Summary</REPORT_NAME>
    <DESCRIPTION>Especially for companies who do not use separate inspection receipt processes, this report nets the initial purchase order receipt into receiving against the delivery into stock and WIP outside processing (OSP), for the entered transaction date range.  By comparing the Purchasing Receipt transactions with the Purchasing Delivery transactions (for the purchasing receipts, material deliveries and WIP OSP deliveries).  Enter the date range you wish to compare, typically a monthly date range.  Differences may be due to the initial receipt occurring in the prior month, not running Create Accounting in the current month (as this report uses the Subledger Accounting rules to report your Receiving Valuation Activity), the goods never delivered into stock or OSP or perhaps the delivery into stock or into WIP OSP was not processed by Create Accounting.

Parameters:
==========
Transaction Date From:  enter the starting transaction date (mandatory).  Defaults to the current period starting date.
Transaction Date To:  enter the ending transaction date (mandatory).  Defaults to the current period ending date.
Organization Code:  enter the specific inventory organization(s) you wish to report (optional).  Defaults to your session&apos;s organization code.
Operating Unit:  enter the specific operating unit(s) you wish to report (optional).
Ledger:  enter the specific ledger(s) you wish to report (optional).

/* +=============================================================================+
-- |  Copyright 2010 - 2024 Douglas Volz Consulting, Inc.
-- |  All rights reserved.
-- |  Permission to use this code is granted provided the original author is
-- |  acknowledged.  No warranties, express or otherwise is included in this permission.                                                                |
-- +=============================================================================+
-- |
-- |  Original Author: Douglas Volz (doug@volzconsulting.com)
-- |
-- |  Program Name:  xxx_rcv_activity_rept.sql
-- | 
-- |  Version Modified on Modified  by   Description
-- |  ======= =========== ============== =========================================
-- |  1.0      6 Jan 2010 Douglas Volz   Initial Coding
-- |  1.1     05 Apr 2010 Douglas Volz   Added PO number, PO Distribution id to query
-- |  1.2     25 Oct 2017 Douglas Volz   Now use the receiving parameter Receiving ccid
-- |                                     and added transaction source.
-- |  1.3     13 Mar 2018 Douglas Volz   Added Ledger parameter
-- |  1.4     08 Jul 2022 Douglas Volz   Multi-language tables for item master.
-- |  1.5     24 Jun 2024 Douglas Volz   Remove tabs, reinstall parameters and inventory org access controls.
-- +=============================================================================+*/
</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;segment_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;segment_columns_grp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-100</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;segment_columns</ANCHOR>
    <SQL_TEXT>with x as (
select
fifsv.application_column_name,
fifsv.form_left_prompt
from
fnd_id_flex_segments_vl fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.enabled_flag=&apos;Y&apos; and
fifsv.id_flex_num=(select fifsv0.id_flex_num from fnd_id_flex_structures_vl fifsv0 where fifsv0.application_id=101 and fifsv0.id_flex_code=&apos;GL#&apos; and fifsv0.id_flex_structure_name=:chart_of_accounts)
order by
fifsv.segment_num
)
select &apos;gcc1.&apos;||lower(x.application_column_name)||&apos; &quot;Rcvg &apos;||substr(x.form_left_prompt,1,21)||&apos;&quot;,&apos; text from x union all
select &apos;gcc2.&apos;||lower(x.application_column_name)||&apos; &quot;Chg &apos;||substr(x.form_left_prompt,1,21)||&apos;&quot;,&apos; text from x</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Chart of Accounts (inv org related)</LOV_NAME>
    <LOV_GUID>8E2FF36EDEC879D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
fifsv.id_flex_structure_name value,
fifsv.id_flex_structure_code description
from
fnd_id_flex_structures_vl fifsv
where
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101 and
fifsv.id_flex_num in (select ood.chart_of_accounts_id from org_organization_definitions ood where nvl(ood.disable_date,sysdate + 1) &gt; sysdate)
order by
fifsv.id_flex_structure_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
fifsv.id_flex_structure_name
from
fnd_id_flex_structures_vl fifsv
where
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101 and
fifsv.id_flex_num in (select ood.chart_of_accounts_id from org_organization_definitions ood where nvl(ood.disable_date,sysdate)&gt;=sysdate) and
fifsv.id_flex_num in (select oav.chart_of_accounts_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
fifsv.id_flex_num in (select ood.chart_of_accounts_id from org_organization_definitions ood where ood.organization_id = nvl(fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;),ood.organization_id))</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Chart of Accounts</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <ANCHOR>&amp;segment_columns_grp</ANCHOR>
    <SQL_TEXT>with x as (
select
fifsv.application_column_name,
fifsv.form_left_prompt
from
fnd_id_flex_segments_vl fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.enabled_flag=&apos;Y&apos; and
fifsv.id_flex_num=(select fifsv0.id_flex_num from fnd_id_flex_structures_vl fifsv0 where fifsv0.application_id=101 and fifsv0.id_flex_code=&apos;GL#&apos; and fifsv0.id_flex_structure_name=:chart_of_accounts)
order by
fifsv.segment_num
)
select &apos;gcc1.&apos;||lower(x.application_column_name)||&apos;,&apos; text from x union all
select &apos;gcc2.&apos;||lower(x.application_column_name)||&apos;,&apos; text from x</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Chart of Accounts</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>rt.transaction_date &gt;= :p_trx_date_from and
rrsl.transaction_date &gt; =:p_trx_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select max(oap.period_start_date)
from org_acct_periods oap,
 mtl_parameters   mp
where mp.organization_id = oap.organization_id
and mp.organization_id &lt;&gt; mp.master_organization_id</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>wta.transaction_date &gt;= :p_trx_date_from and
wt.transaction_date &gt;= :p_trx_date_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>mta.transaction_date &gt;=:p_trx_date_from and 
mmt.transaction_date &gt;=:p_trx_date_from</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>rt.transaction_date &lt; :p_trx_date_to+1 and
rrsl.transaction_date &lt; :p_trx_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select max(oap.schedule_close_date)
from org_acct_periods oap,
 mtl_parameters   mp
where mp.organization_id = oap.organization_id
and mp.organization_id &lt;&gt; mp.master_organization_id</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>wta.transaction_date &lt; :p_trx_date_to+1 and
wt.transaction_date &lt; :p_trx_date_to+1</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>mta.transaction_date &lt; :p_trx_date_to+1 and
mmt.transaction_date &lt; :p_trx_date_to+1</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>25</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</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>10</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>mp.organization_code = :p_org_code</SQL_TEXT>
    <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>11</SORT_ORDER>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>mp.organization_code = :p_org_code</SQL_TEXT>
    <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>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>27</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</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>13</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>haou2.name = :p_operating_unit</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>haou2.name = :p_operating_unit</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name = :p_ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger (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>16</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gl.name = :p_ledger</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>gl.name = :p_ledger</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.chart_of_accounts</FLEX_BIND>
    <PARAMETER_NAME>Chart of Accounts</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Ledger</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Organization Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.operating_unit</FLEX_BIND>
    <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Organization Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <GUID>620B4719CB29E7EBAFD6389E756561DB</GUID>
    <TEMPLATE_NAME>Pivot by Org by PO</TEMPLATE_NAME>
    <DESCRIPTION>Pivot by Destination Type, Ledger, Operating Unit, Org Code and Purchase Order.</DESCRIPTION>
    <OWNER>MFG</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ACCOUNTING_LINE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>23</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AMOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Chg Account</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Chg Company</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Chg Department</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>19</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Chg Product</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Chg Sub-Account</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>DESTINATION_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>22</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ITEM_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>21</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ITEM_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ORG_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PO_DISTRIBUTION_ID</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PO_LINE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PO_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Rcvg Account</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Rcvg Company</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Rcvg Department</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Rcvg Product</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>Rcvg Sub-Account</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
      <COLUMN_NAME>WIP_JOB</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>AMOUNT</COLUMN_NAME>
      <FIELD_TYPE>VALUE</FIELD_TYPE>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <AGGREGATION>SUM</AGGREGATION>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>DESTINATION_TYPE</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>ORG_CODE</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>PO_NUMBER</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
    </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>
    <TEMPLATE_GUID>620B4719CB29E7EBAFD6389E756561DB</TEMPLATE_GUID>
   </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>
