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

BAPI Commit Issue

Former Member
0 Likes
518

Hi All,

I am running two BAPI one for Good movement and one for order confirmation.

With BAPI 1 table MSEG ,AUFM and AFPO and From BAPI2 Table AFRU are being updated.

I have following scenario in which I am facing problem .

Case 1

BAPI 1 No Error - Commit

BAPI 2 no Error - Commit

Working Fine all table are updated,

CASE 2

BAPI 2 No Error - Committed

BAPI 1 No Error - Committed

Working Fine all table are updated,

CASE 3

BAPI 1 No Error

BAPI 2 No Error Committed

In this Case the Table AFPO is not being updated while all other table updated properly.

CASE 4

BAPI 2 No Error

BAPI 1 No Error Committed

In this Case the Table AFRU is not being updated while all other table updated properly.

Please provide the valuable help.

Regards

Swati

2 REPLIES 2
Read only

Former Member
0 Likes
470

hai swathi r u using commit separately or u using only single commit for both bapis

and please mention which bapis u r using

just bapi1 and bapi2 we cant say what is the problem

regards

m.a

Read only

Former Member
0 Likes
470

if the second BAPI Fail then I am reversing the document creating by the first BAPI.

BAPI 1 : Create Material document.

BAPI 2 : Good Movement

if BAPI 2 Fail user Reverser document BAPI.

Regards

Swati