Use SAP-.NET Connector to issue goods in IM & WM
Posted on 2004-09-18
I'm developing an application interface with SAP by using Visual Studio .NET and I have a problem about transaction controlling.
The problem is when I called the series of these BAPI to issue goods
BAPI_TRANSACTION_COMMIT (specify wait parameter with 'X')
Sometime BAPI_GOODSMVT_CREATE & BAPI_TRANSACTION_COMMIT success but BAPI_LTO_CREATE_POSTING_CHANGE fail. That make data in IM not consistent with WM.
Is there anyway to control the transaction that if BAPI_LTO_CREATE_POSTING_CHANGE fail then application should roll back the BAPI_GOODSMVT_CREATE to the original state?
This caused very unstability in my system.