System status in plant maintenance

Hi :
I still have doubt in using  FM status_read and tables jest and tj02t.
My requirement is to select work orders( auart), planned hrs( arbei), actual hrs( ismnw ) based on 'date range', 'work order type', func location ( tplnr ), 'abc indicator ( abckz).
i have to list all work orders:
for a particular planning plant say '1000' , systm status including CNF, TECO, CLSD, excluding PCNF , CRTD , DLFL and REL, I have to include all work orders except SM02 and CP01 and also exclude work orders scheduled outside query period .
When the above is done, i need to sum planned work work hours scheduled for that week , divided by sum of planned work hrs.
I am done with select statement part, how can i find system status or how to calculate system status .
thx.
Raghu

once u pass required data to this FM , u will get all status of the PM order , from that status table u have to check weather it is closed or Technically Completed or Confirmed orders. So here  u have to looop status table with these conditions.
sample code will be.
loop at itab.
read statustab with key order = itab-order
                                   stat  = 'CLSD'.
if sy-subrc ne 0.
check for TECO.
if sy-subrc ne 0.
check for CNF.
else.
here no need to consider other orders which are not in that given list.
endif.
endif.
endif.
endloop.
Regards
Peram

Similar Messages

  • Regarding TECO system status in Plant maintenance

    Can anyone suggest me the BADI or exit for blocking TECO status along with SDRQ user status

    Hi,
         Please check the user exit : IWO10004 Maintenance order: Customer check for order completion
    I believe the above user exit gets triggered when TECO is set ..
    Check whether FMs STATUS_READ or STATUS_CHECK is helpful or no
    If system status or user status is not there in DB Table then u may have to read via structure ..
    Check this link Block Order TECO on the basis of operation User Status
    regrds
    pushpa

  • Reg. System status of Plant maintainance work order.

    Hi All,
    I have a req. where we need to fetch all the PM orders on some conditions and calculate planned and actual costs.
    I want to know what is the system status when costs are supposed to exist.
    thanks.

    Hi,
    As you are aware there are two types of costs.
    1 planned Cost this will get updated irrespective of your order system status. As soon as you maintain Material or Opertion with activity type.
    Even if you select exterenal cantrol key in operation, what ever you give the cost while filling the data for PR generation will pick up for planned cost. Simillarly for material PR too.
    2. Actual cost  this wil get update when you post the material or confirm the operations. You can post material provided your order system status is REL released That means you can say actual cost posting will happen provided order is released.
    Hope it's help ful.
    Reg,
    N.Nagaraju

  • System status and user status don't appear in maintenance order

    I can't see the user status or the system status in the maintenance order header or equipment header or any report although when pressing the button information you can see it

    Hi Michael Nawar ,
    Please check have you define Status profile and status in T code OIBS ?  , and for object like PM order whether you have assigned it to your defined order type in T code OIOG ?
    and for equipment check in SPRO Master Data in Plant Maintenance and Customer Service >> Technical Objects >> Equipment >>Assign User Status Profile to Equipment Category.
    Riyaj

  • System Status TECO should update automatically in Maintenance Order

    Hi,
    Our Client has a requirement in the Maintenance Order.
    Whenever we confirm the Last Open Operation in the Order, the system status should automatically update to TECO.
    Any Inputs, please let me know.
    Thanks in advance!!

    Hi again,
    Fairly old thread now but... (Wanted to share some info here for anyone interested)
    Correct and accurate, using any of these FM:
    STATUS_CHANGE_INTERN
    STATUS_CHANGE_EXTERN
    or IBAPI_ALM_ORDER_TECO_SET
    This will definitely work as I have used them and this did work then.
    What I would do is this:
    - Check in chosen User-Exit if all needed prerequisites are meet for the operations first of course
    - If this is possible during the saving process then just use say FM STATUS_CHANGE_INTERN for the update. Commit will then not be needed as we are in "IW32"-transaction mode already.
    - If the above is not possible then I would create a FM that is called in "in update task" from the very same User-Exit with the Order number as importing parameter. What will happen is that the Order will first be saved and then the FM will be running afterwards.
    Process now:
    - Call the FM from the User-Exit "in update task"  with the Order number as importing parameter
    - Wait for Order to be saved (first try to lock, if locked: wait x secs, try to lock again etc, when OK to lock -> unlock again)
    - Read sufficient Order data to determine if prerequisites are met
    - Use say FM STATUS_CHANGE_INTERN for the update (here OBJNR can be read from table AUFK for the Order number)
    - Remember to do a COMMIT"
    Done.
    BR, Johan

  • System Warning and Error Messages in Plant Maintenance

    Hi All,
    Where can I find the list of system warning and error messages for Plant Maintenance?
    Thanks
    Andrew

    Hi,
    Follow the following path in SPRO. Some of the standard messages you will fond there:
    Plant Maint & Customer Serivces - Maintenanace & Service Processing - Maint. & Service Orders - Message Control.
    SM

  • Maintenance order system status

    Hi Guys,
    Currently system status in maintenance order is not in sequence, so user is getting confused about the status. I have suggested for user status which is more precise to get to knwo the status, but they want the system status also updated to be in sequence so that they can look at the last status and update to whomever enquiring abt that, also they asked me to change the descriptiion of the order status. I think we can do that update in table "TJ02T" with the ABAP'ers help as I dont have acces to update the table, but tell me how I can make the system status to display it in sequence in maintenance order, anything we can control over configuration or we need developers help to update the functional module "STATUS_TEXT_EDIT".
    All your help are really appreciated. Thanks in advance.

    Thanks for your advise. I have already talked ot them to use the user status in case of better understanding the status.The users are specific about the active status which means in each update of teh order they want the latest status to be listed in the top, but in maint. order after release once the goods movement is posted the release status is still listed top and then followed by goods posted status, also when you do time confirmation the confirmation status listed below release status and above goods posted status. Finally when you TECO the order the released staus is gone and TECO listed top which is fine but settlement rule created status listed at the bottom of the statuses which they dont want, they want teh active status should be listed in sequence every time order is get updated and they want to see what are steps order gone thru.
    If I define the user status profile and want to update automatically the user statuses when the updates are done, for example I have define the initial step as created and want to updated automatically to release status when order is released, same way for each updates, How we can do this is there anyway we can control thru config or we have go for development???? pls let me know the procedure. I have already created the user statuses with priority and assigned to order types.

  • Plant Maintenance CLSD Status

    I would like to know any Function Module to complete (Business) the PM order since the calling transaction approach is not preferred.
    I tried the Function module STATUS_CHANGE_INTERN to set the system status to CLSD. The PM order changed the system status but the order can still be edited by the user.

    All it does is doing an update into the JEST table. The changes that are observed in transaction after manually doing an Business Complete ( for example, all the fields greying out) cannot be achieved in this function module.
    I just came across a bapi BAPI_ALM_ORDER_MAINTAIN, but i guess its mainly dealing with changing user status please verify and let me know.
    If i get any on changing internal status, will let u know.

  • User exit for Previous and current system status  for  5 transactions

    Hi Experts
    My Objective to capture the Previous and current status  of system status  for  5 transactions  in their  user exits .
    Description                                         Business Object               Transaction
    Production Order operations              BUS2005                            CO02 to edit Production Order
    Maintenance Orders                           BUS2007A                         IW32 to edit Plant Maintenance Order
    INTernal   ORDER                                 BUS2075                          KO02 to edit Internal Order
    WorkBreakdownStruct                       BUS2054                          CJ02 To edit the WBS element
    Project System Network                      BUS2002                           CN22 to edit Network
    Activities Network
    For Both Production order  and   Project System Network Activities Network    ,
    i got  User exit  "  EXIT_SAPLCOBT_001  " 
    But i am not sure whether we can use this or  not for our purpose . When i am changing status and  then saving ,  my  break point comes  to  EXIT_SAPLCOBT_001  .
    But  can we capture   JEST   or   JCDS  related  data   in that  user  exit  or  How can we capture both Previous status  and Current ( Means New changed status ) . For eg  From Released   to   Technically complete   etc.
    I want Status changed and its immedtiate previous status. 
    Do i need to check Exit  or BADI  before  and after Saving .
    Thanks
    Regards
    Gaurav
    Edited by: TheGaurav on Sep 8, 2011 10:28 AM

    Hi Himanshu
    Many Thanks for the reply . 
    I also had some other processing needs to be done on the basis of those status. .
    So do you have any idea or  how to find what all exits or BADIs  i can use for all of these 5 transactions , where
    i can get data for JCDS ( or JEST ) .
    CO02 to edit Production Order                 
    IW32 to edit Plant Maintenance Order
    KO02 to edit Internal Order
    CJ02 To edit the WBS element
    CN22 to edit Network        
    can we use   EXIT_SAPLCOBT_001  for    CO02  and  CN22   .
    Edited by: TheGaurav on Sep 8, 2011 1:21 PM

  • System status search

    Hi :
      In Plant Maintenance , i was able to find system status using the function
    'STATUS_TEXT_EDIT'. From the returned string i want only those status whose value is CNF or TECO or CLSD and excluding the status if it contains  PCNF or CRTD or DLFL or REL.
    How can i search the variable ( v_status ) returned from the function 'STATUS_TEXT_EDIT'.
    Thanks.
    Raghu

    Try something like this.
    if (  str cs 'CLSD'
       or str cs 'CNF'
       or str cs 'TECO' )
    and
       (  str ns 'PCNF'
      and str ns 'CRTD'
      and str ns 'DLFL' ) .
    endif.
    STR is the string which contains the status from the funciton module.
    Regards,
    Rich Heilman

  • REG. SAP Plant Maintenance

    Hi All,
    I have an peculiar issue in plant maintenance.
    I have created a new Equipment and now it is in status - INST and PRO.
    If is execute IH03 transaction I am able to see this Equipment whereas the other users are not able to see this new equipment in IH03.
    The issue is not only with IH03 even the equipment is not visible in transactions like Create notification, Maintenance orders, Maintenance plans.
    please throw some light.
    Whereas the other equipment which was created very long with deletion flag set. Even that get displayed. As I assume it should not get displayed right.
    Regards,
    MBN.

    I hope, for the below points there is no separate configuration.
    1) Set List Processing for Fleet management objects.
    2) Set reference object screen for Vehicles.
    For 3) Consumption Relevant Counter reading Update.
    IMG => PM & CS => Information systems for PM & CS => Configure Measurement document update
    I hope, this is common for all the versions. Please check.

  • System Status and User Status

    HI Team,
    Is there any way by which i can hide or make in display mode my user and system status icon in PM order, which i can do in notification.
    Thanx in advance

    To the best of my knowledge, you can not hide the Icon. But you can restrict the user not to change the status by Authorization key.
    For User status:-
    Create keys by
    SPRO setting
    Plant Maintenance and Customer Service >Master Data in Plant Maintenance and Customer Service>Basic Settings-->Create Authorization Keys for User Status Authorizations
    Assign this keys to your user statuses. Basis will use it for user roles.
    As the System statuses changed by the business transactions, need to find the authorization object (BASIS) and restrict the user.
    [Useful Info|http://www.sapfans.com/forums/viewtopic.php?p=823900].
    Babu

  • SAp Plant MAintenance certification test questions

    Hi all,
    I am due to take Plant MAintenance certification  this march.It would be greatful if I can get some sample question before I appear for this exam.

    The examination questions are based on the functionality and features of the SAP PM.  The possible topics covers are:
    1. Organizational Units and Master Data in Plant Maintenance
    Organizational Units
          - Maintenance Plant and Planning Plant
          - Work Centers
          - Storage Locations  Functional Locations
          - Structure Indicator
          - Reference Location and Functional Location
          - Creation Options
          - Data Transfer  Equipment
          - Installation/Dismantling at Functional Locations
          - Equipment Hierarchy
          - Change Documentation
          - Equipment Category  Material and Serial Numbers
          - Serial Number Profile
          - Goods Movement and Warehouse Stock
          - Valuation Batches  Bills of Material (BOM)
          - Assemblies
          - BOM Categories
          - Item Categories
          - Change Documentation  Additional Functions
          - Configuration
          - Classification
          - Measuring Points and Counters
          - Partners and Addresses
          - Document Link
          - Status Management
          - Permits and Warranties
          - Data Transfer
    2. Maintenance Processing
    Breakdown Maintenance
    Preventive Maintenance Processing
          - Notification Types
          - Objects and Object Information
          - Catalogs and Catalog Profiles
          - List Viewer for Notifications and Orders
          - Order Type
          - Object List
          - Operation List
          - Relationships
          - Material List
          - Availability Check
          - Order Release and Printing
          - Material Withdrawal
          - Completion Confirmation in Time
          - Technical Completion Confirmation
          - Technical Completion
          - Action Log and Document Flow  Processing External Services
          - External Services as Individual Purchase Order
          - External Services with External Work Centers
          - External Services with Service Entry Sheets  Processing Refurbishment Tasks
          - Valuation Type and Valuation Category in the Material Master
          - Refurbishment Without Serial Numbers
          - Refurbishment with Serial Numbers
          - Inventory Management and Controlling  Processing Maintenance Projects
          - Planning and Executing Maintenance Projects
          - Completion, Settlement, and Monitoring of Maintenance Projects  CATS - Cross-Application Time Sheets
          - Data Entry Profile
          - Data Entry Sheet
          - Data Transfer  Capacity Planning
          - Scheduling
          - Work Center and Available Capacity
          - Capacity Leveling
          - Employee Assignment
    3. Controlling Functions in Plant Maintenance
    Plant Maintenance in the Organizational Structures of Accounting
          - Budget Planning and Monitoring
          - Cost Estimation
          - Planned/Actual Cost Determination
          - Order Settlement
          - Logistics Information System (LIS)
          - Plant Maintenance Information System (PMIS)
          - Enhancement Options
    4. Preventive Maintenance
    Task List Management
          - Task List Types
          - Profile and User Fields
          - Component Assignment
          - Task List and Order  Single Cycle Plan
          - Structure
          - Scheduling Indicator
          - Deadline Monitoring  Strategy Plan
          - Maintenance Strategy
          - Task List and Maintenance Strategy  Performance-Based Maintenance Planning
          - Counters and Measurement Documents
          - Maintenance Plan Scheduling  Maintenance Planning with Several Counters
          - Cycle Sets
          - Link Type 
    (Referece: SAP-IMG.COM)

  • Creating Z report for material stock (plant maintenance module)

    hello,
    we are implemented Plant maintenance module (SAP PM)  in our organization.
    our requirement is to create a stock report which will incldue
    followings:-
    1)material number
    2)plant number
    3) storage location
    4) material type
    5)valuation type
    6)Opening Stock 
    7) OpValue 
    8)Received Stock  
    9)   ReceiptValue      
    10)   Issue Stock          
    11)  IssueValue        
    12)  Closing Stock      
    13)  Closing Value
    we want above details in ALV grid format.
    to gert all the details for perticular material, we calcute closing stock and closing value in following manner:-
    opening stock + received  stock - issue stock = closing stock
    opening value + recipt value - issue value = closing value
    we are unable to find table name for  accessing  opening stock,  received  stock , issue stock  & opening value ,recipt value , issue value from system. please suggest table name information for getting above details  for creating Z report

    Dear friend,
    Before to make a decision to bulid a custom report make sure you have checked out the following standard transactions:
    MB5T Stock in Transit
    MMBE Stock Overview
    MD04 Stock/Reqs list
    MB53 Plant Stock Availability
    MB52 Warehouse Stock
    MB5M Expiration Date list
    MB5B Stock for Posting Date
    MB5T Stock in Transit
    MBBS Valuated Special Stock
    MBLB Stock with Subcontractor
    The possible tables are:
    MARA, MARD, MARC, VBEP, VBAK(VBAP), EKKO(EKPO), EKBE, EBAN, EBEW, MSEG, MKPF,...
    Good luck!

  • Intercompany Stock Transfer starting from Plant Maintenance

    Dear SAP Experts,
    We are planning to implement Intercompany Stock Transfer Process starting from Plant Maintenance side.
    We would like to be able to order for maintenance work order material which belongs to different plant.
    After adding such material to work order system should automatically create purchase requisition with Item Category U – Stock Transfer.
    Such purchase requisition will be then converted to P.O. Then standard MM process will follow meaning on supplying plant side Delivery & Goods Issue will take place. And on receiving plant side Goods Receipt against P.O.
    Can you please let me know whether there is standard process which covers what was described above especially part on Plant Maintenance side?
    If there is no standard process can you please advise (propose some best practices) how we can realized such request?
    Many thanks in advance.
    Grzegorz

    Grzegorz
    From memory, with intercompany trading you need to create a PO/PR on Company A and a corresponding Sales Order on Company B.
    This can be automated via MM
    I would suggest you ask the question in the MM Forum..
    PeteA

Maybe you are looking for