Automate

 View Only
  • 1.  Script fails after the first row - IR02

    Posted 06-11-2025 05:56
      |   view attached

    Hi all, I was wondering if anybody has seen this sort of thing before!

    I've recorded a script with t-code IR02 (maintain workcentre) in SAP ECC.

    The steps are: -

    Enter plant and workcentre

    Click on "capacities" (either directly or via the tab within the transaction)

    Click on the capacities header

    change the factory calendar

    save.

    This works for the first row but fails on subsequent rows. Debugging the script, it seems to save the first one but not save after that. Does anybody have any insight as to what it is doing differently after the first row and any workaround?

    (I've attached the script - for test purposes I'm just updating a test workcentre)

    Many thanks!!

    Mark



    ------------------------------
    Mark Berbezier
    SAP Analyst
    SEVERN TRENT WATER LIMITED
    ------------------------------

    Attachment(s)



  • 2.  RE: Script fails after the first row - IR02

    Employee
    Posted 06-11-2025 14:28
    Edited by Sigrid Kok 06-12-2025 10:02

    Hi Mark

    This was a bit of a puzzle.  It seems to stop with the message on the first one and then the rest don't run, because it's expecting the initial screen where you enter plant and work center, but it's stuck here:

    I tried to add an EXIT step at the end - no good.

    I tried to back out of the Capacity header and then save - no good.

    I tried checking the Start SAP GUI checkbox - no good.

    Then I re-recorded selecting BATCH mode as the recording mode, and it seems to work, but you don't get a good message "No message is returned from SAP" and no extended log is available in batch mode.

    FYI,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: Script fails after the first row - IR02

    Posted 06-12-2025 02:10

    Hi,I think I had same issue in another transactional script and this was resolved by updating in the properties of the mapper(right side in mapper) by changing  "Renew session after" from "0" to "1". Maybe worth a try.



    ------------------------------
    Oddgeir Wold
    Masterdata Expert
    Yara International Asa
    Oslo
    ------------------------------



  • 4.  RE: Script fails after the first row - IR02

    Posted 06-12-2025 03:46

    Thankyou both!

    Oddgeir - that worked! Reset session after [n] transactions, setting this to 1, thank you for sharing your experience!!

    Kind regards,

    Mark



    ------------------------------
    Mark Berbezier
    SAP Analyst
    SEVERN TRENT WATER LIMITED
    ------------------------------