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

How make a BAPI without COMMIT

Former Member
0 Likes
1,191

In SAP 4.6D after invoking a BAPI (without COMMIT WORK)are updated the DB automatically. I need take commit control via RFC.

I need call a BAPI via RFC an then call BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK via RFC in the same session to control the global transaccion.

How I make a BAPI without autocommit ?

Thank you,

Alejandro

2 REPLIES 2
Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
780

Why don't you create a custom RFC function module that will call that Bapi and depending on the result, will call Bapi commit or rollback. In your remote system, call that RFC function module.

Read only

Former Member
0 Likes
780

If I understand you correctly, you do not want a BAPI call to automatically commit the updates to the database until you make an explicit call to BAPI_TRANSACTION_COMMIT.

This is how all BAPI's should behave. If you are calling standard BAPI's they should behave just the way you want.

Could you please let me know which BAPI are you having problem with?