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

BAPI in a User-Exit

Former Member
0 Likes
520

Hello,

I need to cancel some other corresponding documents when I cancel a Billing document, for which I will be using a BAPI. I want the BAPI to commit only if the cancellation process is successful. Does a commit statement for BAPI's execute at the end of the cancellation process so that I do not have to use 'BAPI_TRANSACTION_COMMIT' in my User Exit code. Otherwise if the cancellation process fails then the corresponding documents would be cancelled but the Billing document would not.

Any help would be appreciated.

Thanks,

Alam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
439

if i get your question right, you are using an existing BAPI which would inturn call the commit via the FM, so in your exit, you need not perform the COMMIT..

2 REPLIES 2
Read only

Former Member
0 Likes
440

if i get your question right, you are using an existing BAPI which would inturn call the commit via the FM, so in your exit, you need not perform the COMMIT..

Read only

Former Member
0 Likes
439

Hi

If your are Using SD BAPI say for example --> BAPI_SALESORDER_CHANGE

you need to fire an explicit BAPI_TRANSACTION_COMMIT .

Please note :

{

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

}