‎2007 Oct 04 6:02 AM
Hi Friends,
I am trying to cancel multiple event bookings (Training and Event Management) by calling a standard BAPI (BAPI_DELETE_ATTENDANCE). The BAPI is called within a loop. The problem is, not all the bookings are getting cancelled at the first run. Suppose if there are 20 bookings to be cancelled the BAPI cancels 8 at the first run. Then i have to run the program again to cancel the next few. Why is this happening?
What else do i have to do? I called BAPI_TRANSACTION_COMMIT after the BAPI execution. Doesnt help. Tried COMMIT WORK. No use.
Please help me with a solution ASAP.
Thanks in advance.
Nathan.
‎2007 Oct 04 6:03 AM
Hi,
COMMIT WORK AND WAIT.
WAIT UPTO 2 seconds.
Best regards,
Prashant