‎2007 Mar 01 10:42 AM
I've got a custom FM which is called in background task, which is refusing to honour the commit work and wait commands. The FM intermittently fails if the DB updates are slow and the FM tries to read from the DB tables before the data has been committed
I'm calling function BAPI_SHIPMENT_CREATE, followed by BAPI_TRANSACTION_COMMIT with the WAIT parameter set. I've even tried an explicit commit work and wait.
Might this have something to do with the fact that the background task is executed asynchronously?
‎2007 Mar 01 10:44 AM
‎2007 Mar 01 10:53 AM
Hi Chris,
I guess if you give the Commit work command instead of Commit work and wait between the two FMs, your problem is solved.
Ravi.
‎2007 Mar 01 11:17 AM
I should have mentioned that the FM is called as part of a user dialog, so I don't think UPDATE TASK is viable.
The problem is that COMMIT WORK AND WAIT is behaving like COMMIT WORK
‎2007 Mar 01 1:47 PM
‎2007 Mar 02 1:24 PM