Skip to Content

Can synchronous update be restarted in SM13

Hello everyone,

I have a FM ZABC that updates a database tables. I call function ZABC in update task. After that, I use the statement "commit work and wait" to trigger the FM. But if there is an error, I cannot restart the records in SM13. That record has the status "synchronous update" and "restart not possible", "error (no retry)". I don't use batch input in this scenary.

If I use the statement "commit work" (asynchronous update), the restart can be possible.

While I have a further processing after commit work so I have to use "commit work and wait" to wait the process had finished.

My question is: Can synchronous update be restarted? I don't find any SAP documentation about this.

Thank you so much for reading.

Anna.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 16, 2019 at 05:47 AM

    No, a failed update task started via COMMIT WORK AND WAIT cannot be restarted in SM13 and elsewhere, even if the failed function module was flagged "can be restarted" (is that your case by the way?). There's no documentation about that as far as I know.

    You have to handle the error in your program:

    COMMIT WORK AND WAIT.
    IF sy-subrc <> 0.
      " Tell the user that something wrent wrong and 
      " that the developer should look at SM13
    ENDIF.
    Add a comment
    10|10000 characters needed characters exceeded

    • Hello,

      Thank you for your information. I set processing type in se37 is "start imme" (that means it was flagged "can be restarted"). I also think as the same, however, actually because I don't find any SAP documentation to make sure my assumption so I am looking for if anybody have the solution for this.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.