<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: FA Asset Inventory Report -->
 <REPORTS_ROW>
  <GUID>67A2EDE960974ACFE05392D1825E453F</GUID>
  <SQL_TEXT>select 
papf.full_name &quot;Owner&quot;,
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_LOCATION&apos;,&apos;OFA&apos;,&apos;LOC#&apos;,101,null,fl.location_id,&apos;ALL&apos;,&apos;Y&apos;,&apos;VALUE&apos;)&quot;Location&quot;,
fab.asset_number || &apos; - &apos; || fat.description &quot;Asset - Description&quot;,
sum(fdh.units_assigned * fdd.units_modifier) &quot;Units&quot;,
fab.serial_number &quot;Serial Number&quot;,
fab.tag_number &quot;Tag&quot;,
sum(fdd.cost) &quot;Current Cost&quot;,
sum(fdd.reserve) reserve,
case when greatest(fb.date_placed_in_service, nvl(:p_from_date, fb.date_placed_in_service)) = least(fb.date_placed_in_service,nvl(:p_to_date, fb.date_placed_in_service))then 1 else 0 end &quot;New&quot;,
decode(fab.asset_type, &apos;CIP&apos;, &apos;C&apos;, &apos;EXPENSED&apos;, &apos;E&apos;, &apos;&apos;) &quot;Asset Type&quot;,
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COMP_CODE&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;GL_BALANCING&apos;,&apos;Y&apos;,&apos;VALUE&apos;)&quot;Comp Code&quot;,
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COST_CTR&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;FA_COST_CTR&apos;,&apos;Y&apos;,&apos;VALUE&apos;)&quot;Cost Center&quot;
                                                    
from 
fa_books fb,
fa_additions_b fab,
fa_additions_tl fat,
(select 
fdd.asset_id,
fdd.book_type_code,
fdd.distribution_id,
decode(fdd.deprn_source_code, &apos;B&apos;, fdd.addition_cost_to_clear, fdd.cost) cost,
fdd.deprn_reserve reserve,
1 units_modifier
from fa_deprn_detail fdd
where 
fdd.period_counter = (select max(period_counter) from fa_deprn_detail dd2 where dd2.book_type_code = fdd.book_type_code and dd2.asset_id = fdd.asset_id and dd2.distribution_id = fdd.distribution_id)
and book_type_code = :p_book
union all
select 
fa.asset_id,
fa.book_type_code,
fa.distribution_id,
decode(fl.lookup_code,&apos;ADDITION COST&apos;, decode(fa.debit_credit_flag, &apos;DR&apos;, 1, -1)*fa.adjustment_amount,0)cost,
decode(fl.lookup_code,&apos;DEPRECIATION RESERVE&apos;,decode(fa.debit_credit_flag, &apos;DR&apos;, -1, 1)*fa.adjustment_amount,0)reserve,
case when fl.lookup_code=&apos;ADDITION COST&apos; and fa.source_type_code in(&apos;TRANSFER&apos;,&apos;RETIREMENT&apos;,&apos;CIP RETIREMENT&apos;,&apos;RECLASS&apos;)
  then decode(fa.debit_credit_flag,&apos;DR&apos;,1,-1)
  else 0 
end units_modifier
from 
fa_adjustments fa, 
fa_lookups fl
where 
fl.lookup_type = &apos;JOURNAL ENTRIES&apos; 
and((fa.adjustment_type in (&apos;COST&apos;,&apos;CIP COST&apos;) and fl.lookup_code = &apos;ADDITION COST&apos;)
or  (fa.adjustment_type = &apos;RESERVE&apos; and fl.lookup_code = &apos;DEPRECIATION RESERVE&apos;))
AND fa.source_type_code not in (&apos;DEPRECIATION&apos;,&apos;ADDITION&apos;, &apos;CIP ADDITION&apos;) 
and fa.book_type_code = :P_BOOK 
and fa.period_counter_created = (select max(period_counter) from fa_deprn_detail dd2 where dd2.book_type_code = fa.book_type_code and dd2.asset_id = fa.asset_id and dd2.distribution_id = fa.distribution_id)
) fdd,
fa_distribution_history fdh,
fa_locations fl,
per_all_people_f papf,
gl_code_combinations gcc
where 1=1
and fb.book_type_code = :p_book
and fb.date_placed_in_service between nvl(:p_from_date, fb.date_placed_in_service) and nvl(:p_to_date, fb.date_placed_in_service)
and fb.period_counter_fully_retired is null
and fb.date_ineffective is null
and fab.asset_id = fb.asset_id
and fab.asset_id = fat.asset_id 
and fat.language = userenv(&apos;lang&apos;)
and fdh.asset_id = fb.asset_id
and fdh.book_type_code = fb.book_type_code
and fdh.date_ineffective is null
and fdh.assigned_to = papf.person_id(+)
and fdh.date_effective between nvl(papf.effective_start_date, fdh.date_effective) and nvl(papf.effective_end_date, fdh.date_effective)
and fdh.code_combination_id = gcc.code_combination_id
and fdd.asset_id = fdh.asset_id
and fdd.book_type_code = fdh.book_type_code
and fdd.distribution_id = fdh.distribution_id
and fdh.location_id = fl.location_id
and fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COST_CTR&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;FA_COST_CTR&apos;,&apos;Y&apos;,&apos;VALUE&apos;) 
between
nvl(:p_start_cc,fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COST_CTR&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;FA_COST_CTR&apos;,&apos;Y&apos;,&apos;VALUE&apos;)) 
and
nvl(:p_end_cc,fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COST_CTR&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;FA_COST_CTR&apos;,&apos;Y&apos;,&apos;VALUE&apos;))

group by 
papf.full_name,
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_LOCATION&apos;,&apos;OFA&apos;,&apos;LOC#&apos;,101,null,fl.location_id,&apos;ALL&apos;,&apos;Y&apos;,&apos;VALUE&apos;),
fab.asset_number || &apos; - &apos; || fat.description,
fab.serial_number,
fab.tag_number,
case when greatest(fb.date_placed_in_service, nvl(:p_from_date, fb.date_placed_in_service)) = least(fb.date_placed_in_service,nvl(:p_to_date, fb.date_placed_in_service))then 1 else 0 end,
decode(fab.asset_type, &apos;CIP&apos;, &apos;C&apos;, &apos;EXPENSED&apos;, &apos;E&apos;, &apos;&apos;),
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COMP_CODE&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;GL_BALANCING&apos;,&apos;Y&apos;,&apos;VALUE&apos;),
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_COST_CTR&apos;,&apos;SQLGL&apos;,&apos;GL#&apos;,gcc.chart_of_accounts_id,null,gcc.code_combination_id,&apos;FA_COST_CTR&apos;,&apos;Y&apos;,&apos;VALUE&apos;),
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;D_LOCATION&apos;,&apos;OFA&apos;,&apos;LOC#&apos;,101,null,fl.location_id,&apos;ALL&apos;,&apos;Y&apos;,&apos;VALUE&apos;)
</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <XDO_APPLICATION_SHORT_NAME>OFA</XDO_APPLICATION_SHORT_NAME>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>FA Asset Inventory Report</REPORT_NAME>
    <DESCRIPTION>Application: Assets
Source: Asset Inventory Report (Enginatics)</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_book</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_end_cc</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_from_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_start_cc</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_to_date</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_book</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FA_CORP_BOOK</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
book_type_code id,
book_type_code value,
book_type_name description
from
fa_book_controls_sec
where book_class=&apos;CORPORATE&apos;
order by book_type_code
</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Book</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_start_cc</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>From Cost Center</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_end_cc</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>To Cost Center</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>:p_from_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>From Date Placed in Service</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>:p_to_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>To Date Placed in Service</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>
