• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1218
  • Last Modified:

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_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.

Please help.
2 Solutions
When BAPI_GOODSMVT_CREATE returns SUCCESS, the transaction is committed.  The only way you can rollback is create another BAPI_GOODSMVT_CREATE with a different movement type that reverses the entry.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now