‎2007 Feb 21 3:13 PM
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.
‎2007 Feb 21 5:26 PM
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..
‎2007 Feb 21 5:26 PM
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..
‎2007 Feb 22 9:45 AM
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.
}