‎2008 Oct 24 7:32 AM
hi
Can we write commit work inside BAPI function module.if not why.
I know that we have to call BAPI_TRANSACTION_COMMIT after calling BAPI.
my doubt is why it is not recommended to write commit work in BAPI FM.
regards
prasanna kumar
‎2008 Oct 24 7:36 AM
BAPI doesnt have COMMIT inside we need to call the COMMIT Transaction after calling the BAPI function. Sometimes SAP will do auto commit after a session is over. we cant say when that commit is executed. So it better to call BAPI_TRANSACTION_COMMIT after every BAPI call.
‎2008 Oct 24 7:40 AM
hi Jaya,
Acc. to me.. BAPI with commit work is not the standarad practice as it is used by standarrd programs and is the standard way of updating tables. and also in some cases rollback might be required.
In case you need commit work, you can go for ZBAPi with your bapi and commit bapi in it.
In case you want to test both in a single go, you can test it through SE37, check my post in wiki for same,
https://www.sdn.sap.com/irj/sdn/wiki?path=%2fdisplay%2fabap%2ffunction%2bmodule%2btest%2bsequence
Sachin
‎2008 Nov 20 6:47 AM
after the execution of bapi u want to display the data .
in my bapi there is a savion interaction betn bapi.
bapi to savion data transfer so u write coomit bapi after end of ur progarm.