‎2009 Feb 04 8:22 AM
what happens if function module "BAPI_TRANSACTION_COMMIT" is called after any bapi fumction module which should not have internal commit called.
if conditions arent checked before function module "BAPI_TRANSACTION_COMMIT" called, does a error record (from return table of 1st bapi called is not checked) will get updated or inserted into a database table.
Thanks,
lokesh
‎2009 Feb 04 8:33 AM
until unless we use BAPI_TRANSACTION_COMMIT after BAPI, the changes will not reflect to database.
‎2009 Feb 04 8:36 AM
HI
BAPI_TRANSACTION_COMMIT Is to COMMIT the changes to DB Since COMMIT is not allowed in BAPIs.
Regards,
Hakim
‎2009 Feb 05 11:48 AM
Hi Lokesh,
what happens if function module "BAPI_TRANSACTION_COMMIT" is called after any bapi fumction module which should not have internal commit called.
BAPI usually don't have commit itself. You have to use this for reflecting the changes in database.
if conditions arent checked before function module "BAPI_TRANSACTION_COMMIT" called, does a error record (from return table of 1st bapi called is not checked) will get updated or inserted into a database table.
If an BAPI is having error it can't be committed to database. As the BAPI itself is not returning the success result how can it can be committed. The changes will reflect in database for successful messages.
Give it a try using my post on wiki.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/functionModuleTest+Sequence
Sachin