‎2007 Dec 13 4:33 PM
hi
if the bapi doesnt update databsse
we have to use BAPI_TRANSACTION_COMMIT it will update the databse
by checking only we are knowing it.
so
how to know when we have to use BAPI_TRANSACTION_COMMIT without checking(whether the main bapi will update).
is there any difference to between the
bapis
1) . which are not use BAPI_TRANSACTION_COMMIT
2) . which are use BAPI_TRANSACTION_COMMIT
‎2007 Dec 13 7:25 PM
As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands.
Reason : The caller should have control of the transaction. Several BAPIs should be able to be combined within one LUW.
The following commands must not be used:
CALL TRANSACTION
SUBMIT REPORT
SUBMIT REPORT AND RETURN
Check the link for further details on this.
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
Regards,
Abhishek Jolly
‎2007 Dec 13 7:25 PM
As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands.
Reason : The caller should have control of the transaction. Several BAPIs should be able to be combined within one LUW.
The following commands must not be used:
CALL TRANSACTION
SUBMIT REPORT
SUBMIT REPORT AND RETURN
Check the link for further details on this.
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
Regards,
Abhishek Jolly
‎2007 Dec 14 6:43 AM
thanku abhisek
wt finally i understood is
so internally commit work calls with only 'BAPI_TRANSACTION_COMMIT'
‎2007 Dec 14 10:14 AM
Yes, the BAPI's created with new guidelines will not have COMMIT WORK or ROLLBACK Statement in it. Based on the Failure/Success of the BAPI we have to explicitly call BAPI_TRANSACTION_ROLLBACK and BAPI_TRANSACTION_COMMIT which will have ROLLBACK WORK or COMMIT WORK Respectively in it.
Regards,
Abhishek
‎2007 Dec 14 10:25 AM
Hi Srinu,
Check the below link,
<b>Kindly Reward points if you found this reply helpful</b>,
Cheers,
Chaitanya.