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: 

BAPI_TRANSACTION_COMMIT is not waiting enough to update..

Former Member
0 Kudos
131

Hi,

I've an internal table that consists of purchase requisition items of a purchase requisition. I call 'bapi_requisiton_delete' and after it call 'bapi_transaction_commit' while looping the internal table. But for the second item it gives an error like 'Requisition item is handling...' . Despite of I set wait parameter of bapi_transaction_commit I got this error. Anybody has any idea about this issue??

2 REPLIES 2

former_member182040
Active Contributor
0 Kudos
77

You can use


CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    wait = 'X'.

OR


  COMMIT WORK AND WAIT.

Former Member
0 Kudos
77

Kindly go through this blog.

/people/tobias.trapp/blog/2008/04/19/abap-pitfalls-part-1--lock-objects-and-commit-work

Regards

DPM