<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 (all) -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEA279D2E0530100007F1FF2</GUID>
  <LOV_NAME>INV Organization Code (all)</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
(:$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>US</LANGUAGE>
    <DESCRIPTION>All active inventory organization codes</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: GJ Items Not Transacted Report -->
 <REPORTS_ROW>
  <GUID>FBDA678CB4526153E0530F1A0C0A8952</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>with init_items
as
(
select  /*+ materialize */ 
        msib.segment1 item_number
       ,msib.description item_description
       ,msib.inventory_item_id
       ,moq.subinventory_code
       ,moq.locator_id
       ,msib.organization_id
       ,moq.lot_number as lot
       ,sum(moq.primary_transaction_quantity) on_hand
       ,sum(moq.secondary_transaction_quantity) secondary_onhand
from   mtl_system_items_b msib
      ,mtl_onhand_quantities_detail moq
      ,mtl_parameters mp
where  1=1
and    moq.inventory_item_id = msib.inventory_item_id
and    moq.organization_id = msib.organization_id
and    mp.organization_id = msib.organization_id
and    moq.organization_id = moq.organization_id
group by msib.segment1 
       ,msib.description 
       ,msib.inventory_item_id
       ,moq.subinventory_code
       ,moq.locator_id
       ,msib.organization_id
       ,moq.lot_number
)
, items as
(
select /*+ materialize */ 
       aa.*
from   init_items aa
where not exists
          (select *
             from mtl_material_transactions mmt,mtl_transaction_types mtt
            where aa.inventory_item_id = mmt.inventory_item_id
              and aa.organization_id = mmt.organization_id
              and mtt.transaction_type_id = mmt.transaction_type_id
              and mmt.transaction_type_id not in (24)
              and trunc(mmt.transaction_date) &gt; trunc(sysdate) - :p_period
              and mmt.organization_id = aa.organization_id )
)
, onhand_data as
(
select /*+ materialize */ 
       aa.item_number
      ,aa.item_description
      ,haou.name organization_name 
      ,aa.subinventory_code
      ,mic.category_concat_segs
      ,mc.description category_desc
      ,cv.item_cost 
      ,aa.on_hand
      ,aa.on_hand * cv.item_cost as item_value
      ,aa.secondary_onhand
       ,aa.organization_id
       ,aa.inventory_item_id
       ,aa.locator_id
      ,inv_project.get_locator(aa.locator_id,aa.organization_id) as locator_one
       ,aa.lot
from   items aa
      ,cst_item_cost_type_v cv
      ,hr_all_organization_units haou 
      ,mtl_category_sets mcs
      ,mtl_item_categories_v mic
      ,mtl_categories_v mc
where  cv.organization_id = aa.organization_id
and    cv.inventory_item_id = aa.inventory_item_id
and    2=2
and    cv.cost_type = &apos;Frozen&apos;
and    haou.organization_id = aa.organization_id 
and    mic.inventory_item_id = aa.inventory_item_id
and    mic.organization_id = aa.organization_id
and    mic.category_set_id = mcs.category_set_id
and    mcs.category_set_name = &apos;Inv.Items&apos;
and    mic.enabled_flag = &apos;Y&apos; 
and    mc.category_id = mic.category_id
order by 1
)
select aa.item_number
      ,aa.item_description
      ,aa.organization_name 
      ,aa.subinventory_code
,aa.locator_id,aa.organization_id
      ,inv_project.get_locator(aa.locator_id,aa.organization_id) as locator
      ,aa.locator_one
      ,aa.lot
      ,aa.category_concat_segs
      ,aa.category_desc
      ,aa.item_cost 
      ,aa.on_hand
      ,aa.item_value
      ,aa.secondary_onhand 
      ,(select max(mmt.transaction_date)
         from mtl_material_transactions mmt
        where aa.inventory_item_id = mmt.inventory_item_id
          and aa.organization_id = mmt.organization_id 
          and mmt.transaction_type_id not in (24)
          ) last_transacted_date
from onhand_data aa</SQL_TEXT>
  <AUTHOR_EMAIL>colin_boer@gjames.com.au</AUTHOR_EMAIL>
  <TIME_LIMIT>15</TIME_LIMIT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>GJ Items Not Transacted Report</REPORT_NAME>
    <DESCRIPTION>This report provides an extract of Inventory Items that are in Stock but not transacted for a specific period.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_period</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>mp.organization_code = :p_organization_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code (all)</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA279D2E0530100007F1FF2</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
(:$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>M1</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>msib.SEGMENT1 = :p_item_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select 
SEGMENT1 value,
SEGMENT1 description 
from 
MTL_SYSTEM_ITEMS_B msi
,mtl_parameters mp 
where 1=1
and mp.organization_code=:$flex$.organization
and msi.organization_id = mp.organization_id
order by 1</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>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>mic.category_concat_segs = :p_category</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select mc.category_concat_segs as value 
      ,mc.description as description
from   mtl_category_sets mcs
      ,mtl_categories_v mc
where  mcs.structure_id = mc.structure_id
and    mcs.category_set_name = &apos;GJ Class&apos; 
and    mc.enabled_flag = &apos;Y&apos;
order by 1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>moq.Subinventory_code like &apos;%&apos;|| :p_subinventory || &apos;%&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Subinventory</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>:p_period</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>with day_vals as (
select 30 as day_val from dual union all
select 60 as day_val from dual union all
select 180 as day_val from dual union all
select 365 as day_val from dual )
select day_val as value, to_char(day_val) as description from day_vals
order by 1</LOV_QUERY_DSP>
    <DEFAULT_VALUE>30</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
