<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>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: OPM Product Qty in batches -->
 <REPORTS_ROW>
  <GUID>AE66385F6ED04E99E053B46B63588C3C</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
gr.recipe_description,
gbh.recipe_validity_rule_id,
gmd.inventory_item_id,
msib.description,
--gmd.line_type,
decode(gmd.line_type,-1,&apos;ingredient&apos;,2,&apos;product&apos;) type,
sum(mmt.transaction_quantity) quantity
from 
gme_batch_header gbh,
gmd_recipes gr,
gmd_recipe_validity_rules grr,
gme_material_details gmd,
mtl_system_items_b msib,
mtl_material_transactions mmt,
mtl_parameters mp
where 1=1
and gbh.formula_id=gr.formula_id
and gbh.routing_id=gr.routing_id
and gbh.recipe_validity_rule_id=grr.recipe_validity_rule_id
and grr.recipe_id=gr.recipe_id
and gbh.batch_id=gmd.batch_id
and gbh.organization_id=gmd.organization_id
and gmd.inventory_item_id=msib.inventory_item_id
and gmd.organization_id=msib.organization_id
and gbh.batch_id=mmt.transaction_source_id
and gbh.organization_id=mmt.organization_id
and gbh.organization_id=mp.organization_id
and gmd.inventory_item_id=mmt.inventory_item_id
--and gbh.batch_no in (select batch_no from apps.gme_batch_header where trunc(plan_start_date) between :from_date and :to_date)
--and trunc(mmt.transaction_date) between :from_date and :to_date
group by 
gr.recipe_description,
gbh.recipe_validity_rule_id,
gmd.inventory_item_id,
msib.description,
gmd.line_type
order by recipe_description</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>OPM Product Qty in batches</REPORT_NAME>
    <DESCRIPTION>Query to Find out Quantity of Products and Ingredients of all Batches in particular Month.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Draft</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
