<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: EAM Senfor Intl Extrait des Ordres de Travail -->
 <REPORTS_ROW>
  <GUID>A7678C42B3768459E053B46B6358C80A</GUID>
  <SQL_TEXT>select distinct
          ecwo.asset_number &quot;Equipement&quot;
        , ecwo.asset_number_description &quot;Equipement designation&quot;
        , ecwo.area &quot;Zone&quot;
        , NVL(ecwo.asset_activity, &apos;NA&apos;) &quot;Activité&quot;
        , NVL(ecwo.asset_activity_description, &apos; &apos;) &quot;Activité designation&quot;
        , ecwo.scheduled_start_date &quot;Date de début programmé&quot;
        , ecwo.wip_entity_name &quot;Ordre de travail&quot;
        , ecwo.system_status_disp &quot;OT status&quot;
        , NVL((select to_char(msib.cumulative_total_lead_time*24, &apos;999.99&apos;) from dual,
          apps.mtl_system_items_b msib
          where ecwo.asset_activity_id = msib.inventory_item_id
          and     ecwo.organization_id = msib.organization_id)
          , &apos; &apos;) &quot;Temps prévu&quot;
        , ecwo.activity_cause_disp &quot;Cause d&apos;activité&quot; 
        , NVL((select distinct meaa.attribute2
               from apps.mtl_eam_asset_activities_v meaa
               where 1=1
               and ecwo.asset_activity_id = meaa.asset_activity_id
               and ecwo.organization_id = meaa.organization_id
               and NVL(end_date_active,sysdate + 1) &gt; sysdate), &apos; &apos;) &quot;Activité à risque&quot; -- Rev. 2      
        , ecwo.class_code &quot;Classe en-cours&quot;
        , ecwo.owning_department_code &quot;Département&quot;
        , ecwo.activity_type &quot;Type d&apos;activité&quot;
        , ecwo.priority_disp &quot;Priorité de travail&quot;
        , ecwo.shutdown_type_disp &quot;Arrêt&quot;
from      apps.eam_cfr_work_order_v ecwo
where   1=1
order by 4, 6</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>EAM Senfor Intl Extrait des Ordres de Travail</REPORT_NAME>
    <DESCRIPTION>Auteur: Ion Yilmaz 13.mai 2019
This report extracts eAM work order details from the eAM Work Order View. 
The particularity of this report is that it will also search for any valid attributes from the eAM asset activities view. For example, in this case the asset activity attribute2 is used to identify if the asset activity is an &apos;&apos;At Risk&apos;&apos; activity.  This attribute is also extracted in this report.
The cumulative total lead time, if present, of the activities is also output.
The primary usage of this report is in the tracking and planning of eAM maintenance work orders.
Revison 1 13.mai 2019 logic change to allow work orders without activities assigned to be included.
Revision 2 6.juin2020 Added disable date control for &apos;&apos;At Risk&apos;&apos; activities
License: Creative Commons CC with Attribution</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ecwo.organization_id=:P_organization_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV_SRS_ORG</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
to_char(organization_id) id,
organization_code value,
organization_name description
from
org_organization_definitions
where nvl(disable_date,sysdate+1)&gt;sysdate
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(
(select mp.organization_code from mtl_parameters mp where mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)),
(select oav.organization_code from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id and rownum=1)
)</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>ecwo.scheduled_start_date&gt;:P_SCHED_START_FROM</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Scheduled start from</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ecwo.scheduled_start_date&lt;:P_SCHED_START_TO</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Scheduled start to</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>
