Application Development 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: 

BAPI TRANSACTION COMMIT

Former Member
0 Kudos

Hi All,

Inputs required on following scenario :

BAPI No. 1 is called, UPDATE EMPID is executed inside the BAPI.

Now the session expires ( Auto rollback would be done).

New Session started.

But BAPI_TRANSACTION_COMMIT is called.

Will BAPI_TRANSACTION_COMMIT return an ERROR ?

What exactly would it return ?

How to test such a scenario in R/3 ?

Any pointers would be helpful.

Best regards,

Prashant

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi prashant,

1. Will BAPI_TRANSACTION_COMMIT return an ERROR

No it won't reutrn an error.

2. Bcos, when this bapi is executed,

There will be no pending update requests

for commting.

3. Hence, it would simply fire commit,

without any error and return sy-subrc = 0.

regards,

amit m.

2 REPLIES 2

Former Member
0 Kudos

BAPI_TRANSACTION_COMMIT will return or not return the message depending on whether the value of parameter WAIT is set to 'X'. If it has failed it will return 'Posting could not be carried out'

Well to test that scenario , i wud suggest look into the R/3 table you are updating after the call of RFC from the other system. after successive test runs check if the updates are okay.

This BAPI additionally refreshes the buffers associated with the table apart from the normal COMMIT and wait statement.

Former Member
0 Kudos

Hi prashant,

1. Will BAPI_TRANSACTION_COMMIT return an ERROR

No it won't reutrn an error.

2. Bcos, when this bapi is executed,

There will be no pending update requests

for commting.

3. Hence, it would simply fire commit,

without any error and return sy-subrc = 0.

regards,

amit m.