Link to home
Start Free TrialLog in
Avatar of gigades
gigades

asked on

Use SAP-.NET Connector to issue goods in IM & WM

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_GOODSMVT_CREATE
BAPI_TRANSACTION_COMMIT (specify wait parameter with 'X')
BAPI_LTO_CREATE_POSTING_CHANGE

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.

Please help.
ASKER CERTIFIED SOLUTION
Avatar of Nexplicit
Nexplicit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial