Skip to Content
0
Former Member
Mar 01, 2007 at 10:42 AM

Background Tasks and Commit Work and Wait

512 Views

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?