Solved

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

Posted on 2004-09-18
5
1,180 Views
Last Modified: 2013-12-08
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.
0
Comment
Question by:gigades
5 Comments
 

Accepted Solution

by:
Nexplicit earned 125 total points
ID: 12118550
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.
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 125 total points
ID: 12130092
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
User entered charges to incorrect vendor - need to Correct 3 92
Export from Postgres as fixed width file 3 151
crm 2010 on premise 5 89
ERP application comparison 1 36
Supply Chain Event Management Supply chain visibility is the ability of a company to track its products and business processes in supply chain towards building operational excellence. The goal of supply chain visibility is to improve and strength…
When CRM stops functioning propperly or mysteriously disappears then this is something you should always check. This can be useful when looking at an end users machine or your own machine if you are the end user. It may be fairly obvious to some but…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question