You can read the RETURN table and if the error is there you can use the WAIT syntax to wait for some itme.
Like:
WAIT UP TO 10 SECONDS.
Regards,
Naimesh Patel
In most cases, you get this kind of issues when there is a lock on the object that you trying to update or if you are creating and updating the same object in the same program flow. If it is the first case, introduction of a DO... ENDDO may help. In the later case, BAPI_TRANSACTION_COMMIT with WAIT = 'X' after the create call helps.
DO.
call bapi.
if there is an error in the return messages.
continue.
else.
exit.
ENDDO.
Add a comment