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

About function module "BAPI_TRANSACTION_COMMIT"

Former Member
0 Likes
799

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

3 REPLIES 3
Read only

Former Member
0 Likes
507

until unless we use BAPI_TRANSACTION_COMMIT after BAPI, the changes will not reflect to database.

Read only

abdul_hakim
Active Contributor
0 Likes
507

HI

BAPI_TRANSACTION_COMMIT Is to COMMIT the changes to DB Since COMMIT is not allowed in BAPIs.

Regards,

Hakim

Read only

Former Member
0 Likes
507

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