<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: INV Organization Code -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB279D2E0530100007F1FF2</GUID>
  <LOV_NAME>INV Organization Code</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ood.organization_code value,
ood.organization_name||&apos; (&apos;||ftv.territory_short_name||&apos;, &apos;||hla.town_or_city||decode(mp.organization_id,mp.master_organization_id,null,&apos;, &apos;||mp0.organization_code)||&apos;)&apos; description
from
org_organization_definitions ood,
mtl_parameters mp,
mtl_parameters mp0,
hr_all_organization_units haou,
hr_locations_all hla,
fnd_territories_vl ftv
where
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and
(
ood.organization_id in (select oav.organization_id from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) or
not exists (select null from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) and
ood.operating_unit in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
) and
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
nvl(ood.disable_date,sysdate)&gt;=sysdate and
mp.master_organization_id=mp0.organization_id and
ood.organization_id=haou.organization_id(+) and
haou.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+)
order by
ood.organization_code</LOV_QUERY>
  <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, beschränkt auf die Org-Zugriffsansicht des aktuellen Benutzers</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, restringidos a la vista de acceso a la organización del usuario actual</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, limités à la vue d&apos;accès à l&apos;organisation de l&apos;utilisateur actuel</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Tutti i codici di organizzazione dell&apos;inventario attivi, escluse le organizzazioni master, limitati alla vista di accesso all&apos;org dell&apos;utente corrente</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, restritos à visão de acesso org do usuário atual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Все активные инвентаризационные организационные коды, исключая основные организации, ограниченные текущим представлением доступа пользователя к оргструктуре.</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Alla aktiva lagerorganisationskoder exklusive huvudorganisationer, begränsade till den aktuella användarens organisationsåtkomstvy</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Ana organizasyonlar hariç tüm aktif envanter organizasyon kodları, mevcut kullanıcının organizasyon erişim görünümü ile sınırlıdır</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All active inventory organization codes excluding master organizations, restricted to the current user&apos;s org access view</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: OPM Transactions, Reservations, Pending Product Lots -->
 <REPORTS_ROW>
  <GUID>A355B39F9ECE17B1E053B46B6358611F</GUID>
  <SQL_TEXT>SELECT &apos;MMT&apos; as table_name,
       mmt.transaction_id as trans_or_rsrv_id,
       mty.transaction_type_name,
       gbh.BATCH_NO,
       decode(gbh.BATCH_STATUS,
              3,
              &apos;Completed&apos;,
              4,
              &apos;Closed&apos;,
              2,
              &apos;WIP&apos;,
              &apos;Just Created&apos;) Batch_Status,
       gmd.batch_id as batch_id,
       mmt.transaction_source_id as trans_or_rsrv_source_id,
       DECODE(GMD.LINE_TYPE,
              &apos;1&apos;,
              &apos;PRODUCT&apos;,
              &apos;2&apos;,
              &apos;BY-PRODUCT&apos;,
              &apos;-1&apos;,
              &apos;INGREDIENT&apos;) line_type,
       mmt.trx_source_line_id as material_detail_id,
       mp.organization_code,
       msib.segment1 as item_number,
       mmt.subinventory_code,
       mmt.locator_id,
       mtln.lot_number as lot_number,
       mmt.primary_quantity,
       msib.primary_uom_code,
       mmt.transaction_quantity as trans_or_rsrv_qty,
       mtln.transaction_quantity as lot_trans_qty,
       mmt.transaction_uom as trans_or_rsrv_uom,
       mmt.secondary_transaction_quantity as sec_qty,
       mmt.secondary_uom_code,
       mtln.primary_quantity as lot_primary_qty,
       to_char(mmt.transaction_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as trans_or_rsrv_date,
       mmt.LPN_ID,
       mmt.TRANSFER_LPN_ID,
       decode(mmt.transaction_mode,
              1,
              &apos;On-line processing&apos;,
              2,
              &apos;Concurrent processing&apos;,
              3,
              &apos;Background processing&apos;,
              8,
              &apos;Internal Processing&apos;) txnmode,
       NULL as lock_flag,
       NULL as process_flag,
       to_char(mmt.creation_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as creation_date,
       to_char(mmt.last_update_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as last_update_date,
       opm_costed_flag
  FROM mtl_material_transactions   mmt,
       gme_material_details        gmd,
       gme_batch_header            gbh,
       mtl_transaction_lot_numbers mtln,
       mtl_lot_numbers             mln,
       mtl_system_items_b          msib,
       mtl_transaction_types       mty,
       mtl_parameters              mp
 WHERE 1 = 1
   and mmt.transaction_source_type_id = 5
      -- AND gbh.batch_id in
      --    (:batch_id1, :batch_id2, :batch_id3, :batch_id4, :batch_id5)
   AND mmt.transaction_source_id = gbh.batch_id
   AND mmt.organization_id = gbh.organization_id
   AND gmd.batch_id = gbh.batch_id
   AND gmd.material_detail_id = mmt.trx_source_line_id
   AND mtln.transaction_id(+) = mmt.transaction_id -- This join allows us to get the lot number
   AND mln.lot_number(+) = mtln.lot_number -- This join allows us to get lot specific info if needegmd.
   AND mln.organization_id(+) = mtln.organization_id
   AND mln.inventory_item_id(+) = mtln.inventory_item_id
   AND mmt.organization_id = msib.organization_id
   AND mmt.inventory_item_id = msib.inventory_item_id
   AND mmt.transaction_type_id = mty.transaction_type_id
   And mmt.organization_id = mp.organization_id
UNION ALL
SELECT &apos;RSRV&apos; as table_name,
       reservation_id as trans_or_rsrv_id,
       NULL,
       gbh.BATCH_NO,
       decode(gbh.BATCH_STATUS,
              3,
              &apos;Completed&apos;,
              4,
              &apos;Closed&apos;,
              2,
              &apos;WIP&apos;,
              &apos;Just Created&apos;) Batch_Status,
       gmd.batch_id as batch_id,
       demand_source_header_id as trans_or_rsrv_source_id,
       DECODE(GMD.LINE_TYPE,
              &apos;1&apos;,
              &apos;PRODUCT&apos;,
              &apos;2&apos;,
              &apos;BY-PRODUCT&apos;,
              &apos;-1&apos;,
              &apos;INGREDIENT&apos;) line_type,
       demand_source_line_id as material_detail_id,
       mp.organization_code,
       msib.segment1 as item_number,
       mr.subinventory_code,
       mr.locator_id,
       mr.lot_number,
       primary_reservation_quantity,
       msib.primary_uom_code,
       reservation_quantity as trans_or_rsrv_qty,
       NULL,
       reservation_uom_code as trans_or_rsrv_uom,
       secondary_reservation_quantity as sec_qty,
       mr.secondary_uom_code,
       NULL,
       to_char(requirement_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as trans_or_rsrv_date,
       LPN_ID,
       NULL,
       NULL,
       NULL,
       NULL,
       to_char(mr.creation_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as creation_date,
       to_char(mr.last_update_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as last_update_date,
       NULL
  FROM mtl_reservations     mr,
       gme_material_details gmd,
       gme_batch_header     gbh,
       mtl_system_items_b   msib,
       mtl_parameters       mp
 WHERE 1 = 1
   and demand_source_type_id = 5
      -- AND gbh.batch_id in   (:batch_id1, :batch_id2, :batch_id3, :batch_id4, :batch_id5)
   AND demand_source_header_id = gbh.batch_id
   AND mr.organization_id = gbh.organization_id
   AND gmd.batch_id = gbh.batch_id
   AND gmd.material_detail_id = demand_source_line_id
   AND mr.organization_id = msib.organization_id
   AND mr.inventory_item_id = msib.inventory_item_id
   And mr.organization_id = mp.organization_id
UNION ALL
SELECT &apos;PPL&apos; as table_name,
       pending_product_lot_id as trans_or_rsrv_id,
       NULL,
       gbh.BATCH_NO,
       decode(gbh.BATCH_STATUS,
              3,
              &apos;Completed&apos;,
              4,
              &apos;Closed&apos;,
              2,
              &apos;WIP&apos;,
              &apos;Just Created&apos;) Batch_Status,
       gmd.batch_id as batch_id,
       NULL,
       DECODE(GMD.LINE_TYPE,
              &apos;1&apos;,
              &apos;PRODUCT&apos;,
              &apos;2&apos;,
              &apos;BY-PRODUCT&apos;,
              &apos;-1&apos;,
              &apos;INGREDIENT&apos;) line_type,
       gmd.material_detail_id,
       mp.organization_code,
       msib.segment1 as item_number,
       NULL,
       NULL,
       lot_number,
       NULL,
       NULL,
       quantity as trans_or_rsrv_qty,
       NULL,
       NULL,
       secondary_quantity as sec_qty,
       NULL,
       NULL,
       NULL,
       NULL,
       NULL,
       NULL,
       NULL,
       NULL,
       to_char(gppl.creation_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as creation_date,
       to_char(gppl.last_update_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as last_update_date,
       NULL
  FROM gme_pending_product_lots gppl,
       gme_material_details     gmd,
       gme_batch_header         gbh,
       mtl_system_items_b       msib,
       mtl_parameters           mp
 WHERE 1 = 1
      
      --gbh.batch_id in
      --    (:batch_id1, :batch_id2, :batch_id3, :batch_id4, :batch_id5)
   AND gppl.batch_id = gbh.batch_id
   AND gmd.batch_id = gbh.batch_id
   AND gmd.material_detail_id = gppl.material_detail_id
   AND gbh.organization_id = msib.organization_id
   AND gmd.inventory_item_id = msib.inventory_item_id
   And gbh.organization_id = mp.organization_id
UNION ALL
-- Note that there should not be any transactions in MMTT. If there are, they are usually &quot;stuck&quot; there and
-- need to be processed or deleted
SELECT &apos;MMTT&apos; as table_name,
       mmtt.TRANSACTION_TEMP_ID as trans_or_rsrv_id,
       mty.transaction_type_name,
       gbh.BATCH_NO,
       decode(gbh.BATCH_STATUS,
              3,
              &apos;Completed&apos;,
              4,
              &apos;Closed&apos;,
              2,
              &apos;WIP&apos;,
              &apos;Just Created&apos;) Batch_Status,
       gmd.batch_id as batch_id,
       mmtt.transaction_source_id as trans_or_rsrv_source_id,
       DECODE(GMD.LINE_TYPE,
              &apos;1&apos;,
              &apos;PRODUCT&apos;,
              &apos;2&apos;,
              &apos;BY-PRODUCT&apos;,
              &apos;-1&apos;,
              &apos;INGREDIENT&apos;) line_type,
       mmtt.trx_source_line_id as material_detail_id,
       mp.organization_code,
       msib.segment1 as item_number,
       mmtt.subinventory_code,
       mmtt.locator_id,
       mtln.lot_number as lot_number,
       mmtt.primary_quantity,
       msib.primary_uom_code,
       mmtt.transaction_quantity as trans_or_rsrv_qty,
       mtln.transaction_quantity as lot_trans_qty,
       mmtt.transaction_uom as trans_or_rsrv_uom,
       mmtt.secondary_transaction_quantity as sec_qty,
       mmtt.secondary_uom_code,
       mtln.primary_quantity as lot_primary_qty,
       to_char(mmtt.transaction_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as trans_or_rsrv_date,
       mmtt.LPN_ID,
       mmtt.TRANSFER_LPN_ID,
       decode(mmtt.transaction_mode,
              1,
              &apos;On-line processing&apos;,
              2,
              &apos;Concurrent processing&apos;,
              3,
              &apos;Background processing&apos;,
              8,
              &apos;Internal Processing&apos;) txnmode,
       mmtt.lock_flag,
       mmtt.process_flag,
       to_char(mmtt.creation_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as creation_date,
       to_char(mmtt.last_update_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as last_update_date,
       NULL

  FROM mtl_material_transactions_temp mmtt,
       gme_material_details           gmd,
       gme_batch_header               gbh,
       mtl_transaction_lots_temp      mtln,
       mtl_system_items_b             msib,
       mtl_transaction_types          mty,
       mtl_parameters                 mp --mtl_lot_numbers lot
 WHERE 1 = 1
   and mmtt.transaction_source_type_id = 5
      --AND gbh.batch_id in
      --   (:batch_id1, :batch_id2, :batch_id3, :batch_id4, :batch_id5)
   AND transaction_source_id = gbh.batch_id
   AND mmtt.organization_id = gbh.organization_id
   AND gmd.batch_id = gbh.batch_id
   AND gmd.material_detail_id = trx_source_line_id
   AND mtln.TRANSACTION_TEMP_ID(+) = mmtt.TRANSACTION_TEMP_ID -- This join allows us to get the lot number
      --AND mln.lot_number(+) = mtln.lot_number
      --AND t.organization_id = mln.organization_id
   AND mmtt.organization_id = msib.organization_id
   AND mmtt.inventory_item_id = msib.inventory_item_id
   AND mmtt.transaction_type_id = mty.transaction_type_id
   And mmtt.organization_id = mp.organization_id
UNION ALL
SELECT &apos;MTI&apos; as table_name,
       mti.TRANSACTION_INTERFACE_ID as trans_or_rsrv_id,
       mty.transaction_type_name,
       gbh.BATCH_NO,
       decode(gbh.BATCH_STATUS,
              3,
              &apos;Completed&apos;,
              4,
              &apos;Closed&apos;,
              2,
              &apos;WIP&apos;,
              &apos;Just Created&apos;) Batch_Status,
       gmd.batch_id as batch_id,
       mti.transaction_source_id as trans_or_rsrv_source_id,
       DECODE(GMD.LINE_TYPE,
              &apos;1&apos;,
              &apos;PRODUCT&apos;,
              &apos;2&apos;,
              &apos;BY-PRODUCT&apos;,
              &apos;-1&apos;,
              &apos;INGREDIENT&apos;) line_type,
       mti.trx_source_line_id as material_detail_id,
       mp.organization_code,
       msib.segment1 as item_number,
       mti.subinventory_code,
       mti.locator_id,
       mtln.lot_number as lot_number,
       mti.primary_quantity,
       msib.primary_uom_code,
       mti.transaction_quantity as trans_or_rsrv_qty,
       mtln.transaction_quantity as lot_trans_qty,
       mti.transaction_uom as trans_or_rsrv_uom,
       mti.secondary_transaction_quantity as sec_qty,
       mti.secondary_uom_code,
       mtln.primary_quantity as lot_primary_qty,
       to_char(mti.transaction_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as trans_or_rsrv_date,
       mti.LPN_ID,
       mti.TRANSFER_LPN_ID,
       decode(mti.transaction_mode,
              1,
              &apos;On-line processing&apos;,
              2,
              &apos;Concurrent processing&apos;,
              3,
              &apos;Background processing&apos;,
              8,
              &apos;Internal Processing&apos;) txnmode,
       to_char(mti.lock_flag),
       to_char(mti.process_flag),
       to_char(mti.creation_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as creation_date,
       to_char(mti.last_update_date, &apos;DD-MON-YYYY HH24:MI:SS&apos;) as last_update_date,
       NULL
  FROM mtl_transactions_interface     mti,
       gme_material_details           gmd,
       gme_batch_header               gbh,
       mtl_transaction_lots_interface mtln,
       mtl_system_items_b             msib,
       mtl_transaction_types          mty,
       mtl_parameters                 mp --mtl_lot_numbers lot
 WHERE 1 = 1
   and mti.transaction_source_type_id = 5
      --AND gbh.batch_id in   (:batch_id1, :batch_id2, :batch_id3, :batch_id4, :batch_id5)
   AND transaction_source_id = gbh.batch_id
   AND mti.organization_id = gbh.organization_id
   AND gmd.batch_id = gbh.batch_id
   AND gmd.material_detail_id = trx_source_line_id
   AND mtln.TRANSACTION_INTERFACE_ID(+) = mti.TRANSACTION_INTERFACE_ID -- This join allows us to get the lot number
      --AND mln.lot_number(+) = mtln.lot_number
      --AND t.organization_id = mln.organization_id
   AND mti.organization_id = msib.organization_id
   AND mti.inventory_item_id = msib.inventory_item_id
   AND mti.transaction_type_id = mty.transaction_type_id
   And mti.organization_id = mp.organization_id
 ORDER BY batch_id,
          table_name,
          line_type,
          material_detail_id,
          trans_or_rsrv_id</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>OPM Transactions, Reservations, Pending Product Lots</REPORT_NAME>
    <DESCRIPTION>Listing of OPM transactions with reservations and pending product lot details.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>mp.organization_code=:organization_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB279D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name||&apos; (&apos;||ftv.territory_short_name||&apos;, &apos;||hla.town_or_city||decode(mp.organization_id,mp.master_organization_id,null,&apos;, &apos;||mp0.organization_code)||&apos;)&apos; description
from
org_organization_definitions ood,
mtl_parameters mp,
mtl_parameters mp0,
hr_all_organization_units haou,
hr_locations_all hla,
fnd_territories_vl ftv
where
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and
(
ood.organization_id in (select oav.organization_id from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) or
not exists (select null from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) and
ood.operating_unit in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
) and
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
nvl(ood.disable_date,sysdate)&gt;=sysdate and
mp.master_organization_id=mp0.organization_id and
ood.organization_id=haou.organization_id(+) and
haou.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+)
order by
ood.organization_code</LOV_QUERY_DSP>
    <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>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
