Automate

 View Only
  • 1.  IW38 PM_order change

    Posted 02-19-2020 10:07
      |   view attached
    hi 
    I' trying to change the status of PM-orders linked to WBS-elements.
    I've created a small script using T-code IW38 to get the list of orders and do a mass change to set the status to TECO but the script fails giving a runtime error
    In debugging mode I do not find the error
    the script is attached, please have a look and let me know how to solve this

    ------------------------------
    Jan Ruesen

    ------------------------------

    Attachment(s)

    zip
    IW38 script.zip   5.11 MB 1 version


  • 2.  RE: IW38 PM_order change

    Posted 02-20-2020 09:57
    How does your script know which order to change?  I don't see an order number in the data.

    ------------------------------
    Darrell Dorsey | SAP PM Specialist
    Ascend Performance Materials Holdings Inc. | 7133056303
    ------------------------------



  • 3.  RE: IW38 PM_order change

    Posted 02-20-2020 16:56
    Also, if you are using IW38 you don't need winshuttle for that.  Simply bring up the list, select all and click the TECO button.  If you don't want to do it that way, then you option is IW32 as stated below.

    ------------------------------
    Darrell Dorsey | SAP PM Specialist
    Ascend Performance Materials Holdings Inc. | 7133056303
    ------------------------------



  • 4.  RE: IW38 PM_order change

    Posted 02-24-2020 02:07

    Hi Darrell

    Thanks but the reason for starting IW38 is we want to automate the process of closing or changing projects in SAP and for this you need to start by closing all orders/networks etc link to the existing wbs's as a 1st step

     

    Best regards

    Jan






  • 5.  RE: IW38 PM_order change

    Posted 02-20-2020 11:59
      |   view attached
    ​I saw your entry today about an IW38 script.  I use SAP Plant Maintenance as well and although I use IW38 all the time it is not a good T-code to use for a script.  Use IW32 for your script to make changes instead of IW38.  Try a few recordings with some kind of small change to see if you get results.  TECO is a status change so the "checkered flag" button is actually =ARCH for your recording and depending on your skill set that might be easy to understand or simply crazy.  If all of this is difficult to understand trust me I have been there too.  I have a script for TECO and it works well.  My security level won't permit me to attach a script but I have attached an image (slightly doctored by IT so to mask internal data).  A phone call or a webinar might be in order to sort out the details.  I have been writing scripts for a couple of years so I am not an expert.    


    ------------------------------
    Art Cecil | Maintenance Engr
    DSM Engineering Plastics, Inc. | 812 435 7553
    ------------------------------



  • 6.  RE: IW38 PM_order change

    Posted 02-21-2020 07:42
    IW38 or IW72 is a list transaction that has the functionality to TECO the orders you select.

    List to TECO
    If you need to use a script, use IW32.



    ------------------------------
    Steven Paschall
    ------------------------------



  • 7.  RE: IW38 PM_order change

    Posted 02-24-2020 02:10

    Thanks Art

    I was hoping to be able to use IW38 but if that is no option we'll have to stick to IW32

    Best regards

    Jan Ruesen