Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

bapi transaction rollback issue

Hi,

I am elaborating my issue below.

1 ) I am using BAPI_PO_CREATE to create a po number.

2 ) Before use BAPI_TRANSACTION_COMMIT,

I am calling BAPI_GOODSMVT_CREATE to create material document, only by using the po number.

3 ) Once BAPI_GOODSMVT_CREATE is sucessfull then i am commiting both the bapi by BAPI_TRANSACTION_COMMIT.

4 ) But IF BAPI_GOODSMVT_CREATE is unsuccessful then i am calling BAPI_TRANSACTION_ROLLBACK for BAPI_PO_CREATE.

when i m checking by debug, its executing the BAPI_TRANSACTION_ROLLBACK,but the po is not removing / rollbacking from table like EKKO or EKPO table.

Please provide some suggestion, because if BAPI_GOODSMVT_CREATE is fails, i need to use BAPI_TRANSACTIOB_ROLLBACK  for both the above mentioned bapi.

Thanks & Regards,

Ajit sarangi

Former Member
Not what you were looking for? View more on this topic or Ask a question