<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: WIP - Senfor Intl Production Job Details -->
 <REPORTS_ROW>
  <GUID>31BE452F60710AD7E06362FB0905BA10</GUID>
  <SQL_TEXT>-- WIP - WIP Production Job Details
--This program extracts job details with release and operation dates and elapsed times according to when the transactions were entered in Oracle. 
--Author: Ion Yilmaz

select distinct 
       mp.organization_code &quot;ORG&quot;,
       We.Wip_Entity_Name    JOB,
       msib.segment1         ASSEMBLY,
       msib.description     &quot;DESCRIPTION&quot;,
       (SELECT distinct  
        mc1.CONCATENATED_SEGMENTS
        FROM 
        apps.mtl_item_categories mic,        
        apps.mtl_category_sets_tl mcst1,        
        apps.mtl_category_sets_b mcs1,              
        apps.mtl_categories_b_kfv mc1,        
        apps.mtl_system_items_b msiv1  
        WHERE mic.category_set_id = mcs1.category_set_id    
        AND mcs1.category_set_id = mcst1.category_set_id    
        AND mcst1.LANGUAGE = USERENV (&apos;LANG&apos;)    
        AND mic.category_id = mc1.category_id          
        AND msiv1.organization_id = mic.organization_id    
        AND msiv1.inventory_item_id = mic.inventory_item_id    
        and mic.category_set_id=3
        and msiv1.segment1=msib.segment1) &quot;PRODUCT FAMILY&quot;,
       (SELECT Meaning
        FROM apps.fnd_lookup_values
        WHERE lookup_type LIKE &apos;WIP_ENTITY&apos; and lookup_code = we.entity_type and language = &apos;US&apos;) TYPE,
       Wdj.Class_Code        CLASS,
       wdj.net_quantity      QUANTITY,
       (SELECT NVL(msib1.segment1, &apos; &apos;)
        from apps.mtl_system_items_b msib1
        where msib1.inventory_item_id  = wdj.bom_reference_id
        and msib1.ORGANIZATION_ID = wdj.ORGANIZATION_ID) &quot;BOM REFERENCE&quot;,
        wdj.bom_revision &quot;BOM REV&quot;,
        NVL(Wdj.Alternate_BOM_Designator, &apos; &apos;) &quot;ALTERNATE BOM&quot;, 
       (SELECT NVL(msib2.segment1, &apos; &apos;)
        from apps.mtl_system_items_b msib2
        where msib2.inventory_item_id  = wdj.routing_reference_id
        and     msib2.ORGANIZATION_ID = wdj.ORGANIZATION_ID) &quot;ROUTING REFERENCE&quot;,
        wdj.routing_revision &quot;ROUTING REV&quot;,
        NVL(Wdj.Alternate_Routing_Designator, &apos; &apos;) &quot;ALTERNATE ROUTING&quot;, 
       (SELECT Meaning
        FROM apps.fnd_lookup_values   
        WHERE lookup_type LIKE &apos;WIP_CLASS_TYPE&apos; and lookup_code = wdj.job_type and language = &apos;US&apos;) &quot;WO TYPE&quot;,
       (SELECT Meaning
        FROM apps.fnd_lookup_values   
        WHERE lookup_type LIKE &apos;WIP_JOB_STATUS&apos; and lookup_code = wdj.status_type and language = &apos;US&apos;) &quot;WO STATUS&quot;,
       NVL(We.Description, &apos; &apos;)        &quot;WO DESCRIPTION&quot;, 
    --   to_date(Wdj.scheduled_start_date,&apos;dd-mon-yyyy hh24:mi:ss&apos;) 
   Wdj.scheduled_start_date &quot;SCHEDULED_START_DATE&quot;,
       to_date(Wdj.date_released,&apos;dd-mon-yyyy hh24:mi:ss&apos;) &quot;WO RELEASE DATE&quot;,
       to_date(Wdj.scheduled_completion_date,&apos;dd-mon-yyyy hh24:mi:ss&apos;) &quot;SCHEDULED_COMPLETION_DATE&quot;,       
       to_date(Wdj.date_completed,&apos;dd-mon-yyyy hh24:mi:ss&apos;) &quot;WO COMPLETION DATE&quot;,
       trunc(Wdj.date_completed)-trunc(Wdj.scheduled_completion_date) &quot;DAYS LATE&quot;,
       wdj.date_closed &quot;WO CLOSED DATE&quot;,
       bosv.department_code &quot;DEPARTMENT&quot;,
       wo.Operation_Seq_Num &quot;OPERATION SEQ NUM&quot;,
       wo.attribute1 LABEL,
       wo.description OPERATION_DESCRIPTION,
       to_date(Wo.First_Unit_Start_Date,&apos;dd-mon-yyyy hh24:mi:ss&apos;) OPN_START_DATE, 
       to_date(Wo.Last_Unit_Completion_Date,&apos;dd-mon-yyyy hh24:mi:ss&apos;) OPN_COMPLETION_DATE,
       NVL(Bso.Operation_Code, &apos; &apos;) OPERATION_CODE, 
       wdj.start_quantity &quot;ORDER QTY&quot;,
       wdj.quantity_completed &quot;QTY COMPLETE&quot;,
       wdj.quantity_scrapped &quot;QTE SCRAPPED&quot;,
       ((wdj.quantity_scrapped/wdj.start_quantity)*100) &quot;SCRAP %&quot;,
       (Select Round((wo.Last_Unit_Completion_Date - wo.First_Unit_Start_Date)* 24*60,2)&quot;Round&quot; from DUAL) &quot;PLANNED RUN TIME (MINS)&quot;,
       (select round ((Wdj.date_completed - Wdj.date_released)* 24*60,2) &quot;Round&quot; from DUAL)  &quot;ACTUAL ELAPSED TIME (MINS)&quot;,
       (select Round(((wo.Last_Unit_Completion_Date - wo.First_Unit_Start_Date)-(Wdj.date_completed - Wdj.date_released))* 24*60,2) &quot;Round&quot; from DUAL)&quot;OVER/UNDER RUN&quot;
       
from   
       apps.wip_operations wo        
      ,apps.wip_entities we
      ,apps.wip_discrete_jobs  wdj 
      ,apps.mtl_system_items_b msib
      ,apps.bom_operational_routings bor    
      ,apps.bom_operation_sequences bos
      ,apps.bom_standard_operations bso
      ,apps.BOM_OPERATION_SEQUENCES_V bosv
      ,apps.mfg_lookups ml
      ,apps.mtl_parameters mp
where  1=1
and    wo.wip_entity_id   = we.wip_entity_id 
and    wo.operation_sequence_id = bos.operation_sequence_id
and    wo.operation_sequence_id = bosv.operation_sequence_id
and    wdj.wip_entity_id  = we.wip_entity_id
and    msib.inventory_item_id  = wdj.primary_item_id
and    msib.ORGANIZATION_ID = wdj.ORGANIZATION_ID
and    msib.inventory_item_id = bor.assembly_item_id
and    bos.routing_sequence_id = bor.routing_sequence_id
and    bso.standard_operation_id(+) = bos.standard_operation_id
and    wdj.organization_id=mp.organization_id
--and    ml.lookup_code (+) = to_number(bos.shutdown_type)  
--and    ml.lookup_type (+) = &apos;BOM_EAM_SHUTDOWN_TYPE&apos;  
and    we.entity_type not in (6,7)  
--and    Wdj.Class_Code not in (&apos;BLDGMAINT&apos;, &apos;CALIB&apos;, &apos;ENGMAINT&apos;, &apos;MAINT&apos;)
and     wdj.status_type = 4
and    mp.organization_code=&apos;M1&apos;
--and we.wip_entity_name = &apos;MC31749&apos;
and wdj.creation_date &gt; &apos;01-jan-2009&apos;
Order by to_date(Wdj.date_released,&apos;dd-mon-yyyy hh24:mi:ss&apos;), We.Wip_Entity_Name, Wo.Operation_Seq_Num</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>WIP - Senfor Intl Production Job Details</REPORT_NAME>
    <DESCRIPTION>2May2025</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
  </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>
