<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: Rakesh Supply Chain - Draft Works -->
 <REPORTS_ROW>
  <GUID>A4671D90F65570FAE053B46B63583D5C</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
:p_rollup_id rollup_id,
ood.organization_code org_code,
ood.organization_name org_name,
fc.currency_code currency_code,
msib.segment1 comp_name,
msib.description comp_desc,
msib.primary_uom_code comp_uom,
mck.concatenated_segments Category,
csbs.sort_order comp_sort_order,
lpad(&apos;.&apos;,csbs.bom_level-1,&apos;.&apos;)||to_char(csbs.bom_level-1) comp_level_code,
bic.operation_seq_num comp_op_seq_num,
csbs.component_quantity,
decode(csbs.extended_quantity,1, csbs.component_quantity,csbs.extended_quantity) extended_quantity,
csbs.component_revision comp_last_rev,
xxen_util.meaning(csbs.include_in_cost_rollup,&apos;SYS_YES_NO&apos;,700) include_in_rollup,
xxen_util.meaning(nvl(cic.based_on_rollup_flag,2),&apos;SYS_YES_NO&apos;,700) based_on_rollup,
xxen_util.meaning(nvl(cic.inventory_asset_flag,2),&apos;SYS_YES_NO&apos;,700) inventory_asset,
xxen_util.meaning(csbs.phantom_flag,&apos;SYS_YES_NO&apos;,700) phantom,
xxen_util.meaning(nvl(bic.basis_type,1),&apos;CST_BASIS&apos;,700) || bic.component_yield_factor comp_basis_type,
--xxen_util.meaning(msib.planning_make_buy_code,&apos;MTL_PLANNING_MAKE_BUY&apos;,700) make_buy,
bic.component_yield_factor component_yield_factor,
bic.planning_factor component_planning_factor,
cic.shrinkage_rate shrinkage_rate,
cic.item_cost,
cce.cost_element,
br.resource_code sub_element,
bd.department_code department,
decode(cicd.cost_element_id,3,xxen_util.meaning(nvl(br.allow_costs_flag,1),&apos;SYS_YES_NO&apos;,700),4,xxen_util.meaning(nvl(br.allow_costs_flag,1),&apos;SYS_YES_NO&apos;,700),to_char(null)) costed,
xxen_util.meaning(cicd.basis_type,&apos;CST_BASIS_SHORT&apos;,700) basis,
br.unit_of_measure,
nvl(cicd.usage_rate_or_amount,0) usage_rate_or_amount,
decode(cicd.cost_element_id,2,csbs.extended_quantity,5,csbs.extended_quantity,1)*cicd.basis_factor*cicd.net_yield_or_shrinkage_factor basis_factor,
decode(cicd.cost_element_id,2,1,5,1,csbs.extended_quantity)*cicd.usage_rate_or_amount ext_usage_rate_or_amount,
decode(cicd.cost_element_id,3,cicd.resource_rate,4,cicd.resource_rate,to_number(NULL)) res_unit_cost,
decode(decode(csbs.phantom_flag,1,1,0)*decode(csbs.assembly_organization_id,csbs.component_organization_id,1,0),1,decode(cicd.level_type,2,1,decode(cicd.cost_element_id,3,0,4,0,5,0,decode(:p_phantom_mat,1,1,0)))*
decode(csbs.extend_cost_flag,2,0,csbs.extended_quantity*decode(cicd.item_cost,cicd.yielded_cost,0,cicd.item_cost)), decode(csbs.extend_cost_flag,2,0,csbs.extended_quantity*cicd.item_cost)) res_extended_cost
from
org_organization_definitions ood,
fnd_currencies fc,
mtl_parameters mp,
mtl_system_items_b msib,
mtl_item_categories mic,
mtl_categories_kfv mck,
mtl_category_sets_tl mcst,
cst_sc_bom_structures csbs,
bom_inventory_components bic,
hr_organization_information hoi,
gl_sets_of_books gsob,
cst_item_costs cic,
cst_cost_elements cce,
cst_item_cost_details cicd,
bom_resources br,
bom_departments bd
where
1=1 and
ood.organization_code=&apos;M1&apos; and -- Read this from parameter
ood.organization_id=csbs.top_organization_id and
mp.organization_id=csbs.component_organization_id and
bic.component_sequence_id(+)=csbs.component_sequence_id and
msib.organization_id=mic.organization_id and
msib.inventory_item_id=mic.inventory_item_id and
mic.category_id=mck.category_id and
mic.category_set_id=mcst.category_set_id and
mcst.language=userenv(&apos;lang&apos;) and
mcst.category_set_name=&apos;Inv.Items&apos; and -- Read this from parameter
msib.inventory_item_id=csbs.component_item_id and
msib.organization_id=csbs.component_organization_id and
hoi.organization_id=csbs.component_organization_id and
hoi.org_information_context=&apos;Accounting Information&apos; and
gsob.set_of_books_id=to_number(hoi.org_information1) and
fc.currency_code=gsob.currency_code and
cic.inventory_item_id(+)=csbs.component_item_id and
cic.organization_id(+)=csbs.component_organization_id and
cic.cost_type_id=1 and -- Read this from parameter
cic.cost_type_id=cicd.cost_type_id and
cicd.inventory_item_id=csbs.component_item_id and
cicd.organization_id=csbs.component_organization_id and
cicd.resource_id is not null and
cce.cost_element_id(+)=cicd.cost_element_id and 
br.resource_id(+)=cicd.resource_id and
bd.department_id(+)=cicd.department_id and
abs(csbs.rollup_id)=203393 and -- This should come from &quot;Before Report trigger&quot;
csbs.top_inventory_item_id=6068 -- Read from parameter
order by
csbs.rollup_id,
csbs.sort_order,
decode(csbs.assembly_item_id,-1,1,2),
msib.segment1,
mp.organization_code</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>BOM</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>CSTRSCCRI_XML</XDO_DATA_SOURCE_CODE>
  <COPIED_FROM_GUID>A40B05374A76C3F9E053B46B6358381D</COPIED_FROM_GUID>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>Rakesh Supply Chain - Draft Works</REPORT_NAME>
    <DESCRIPTION>Rakesh : Supply chain Query BOM Indented Cost of Materials</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_ROW>
    <ANCHOR>:lp_alt_bom_desg</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_assignment_set_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_buy_cost_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_category_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_category_set_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_category_to</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_cost_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_default_org_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_description</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_eng_bill_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_explosion_level</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_inc_unimp_ecn_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_organization_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_range_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_report_level</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_report_option_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_report_type_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:lp_revision_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_alt_bom_desg</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_alt_bom_desg_dsp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_alt_rtg_desg</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_alt_rtg_desg_dsp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_assignment_set_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_assignment_set_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_buy_cost_detail</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_buy_cost_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_buy_cost_type_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_category_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_category_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_category_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_category_set_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_category_structure_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_category_to</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conversion_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conversion_type_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_type_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_default_cost_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_default_org_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_description</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_eng_bill_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_explosion_level</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_inc_unimp_ecn_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_item_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_item_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_item_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_item_to</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_lock_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_lot_size_option</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_lot_size_option_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_lot_size_setting</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_material_dtl_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_material_overhead_dtl_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_num_currencies</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_organization_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_organization_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_phantom_mat</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_qty_precision</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_range_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_level</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_option_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_type_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_revision_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_rollup_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_rollup_option_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_routing_dtl_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_trace</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:qty_precision</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_organization_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>BOM_SRS_ORG_CODE</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
organization_id id,
organization_code value,
organization_name description
from
org_organization_definitions
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select organization_code from org_organization_definitions where organization_id = fnd_profile.value(&apos;ORG_ID&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Id</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>
