Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can synchronous update be restarted in SM13

0 Kudos
602

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.

2 REPLIES 2

Sandra_Rossi
Active Contributor
245

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.

0 Kudos
245

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.