Application Development and Automation 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: 
Read only

Standard BAPI issue

Former Member
0 Likes
334

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.

1 REPLY 1
Read only

Former Member
0 Likes
306

Hi,

COMMIT WORK AND WAIT.

WAIT UPTO 2 seconds.

Best regards,

Prashant