on 07-20-2005 9:15 PM
Hi,
I am experiencing timing issues calling Bapi_Salesorder_Change immediately after executing Bapi_Salesorder_Createfromdat1 in a .NET Connector v2.0 environment.
Bapi_Salesorder_Change returns an error that the sales order does not exist (yet) and therefore fails updating the data. I suspect transaction commit has not yet completed in the SAP system of the Bapi_Salesorder_Createfromdat1 call since this error only occurrs sporadically (s. )
Since there is no support for CommitAndWait in .NET Connector v2.0 (s. ) I wonder what the best implementation strategy is in this case ?!
Is there a possibility to use a "SET UPDATE TASK LOCAL" approach from the .NET Connector ?
Thanks for any hints,
Andreas Koschinsky
P.S.: Sorry, posted this message originally under the wrong forumID
Hi Andreas:
We had this issue before. We implement a RFC wrapper on top of this BAPI with SET UPDATE TASK LOCAL.
Hope that help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dennis,
thanks for your answer - problem is introducing a new RFC function to a sap system involves a whole change request process requiring test & evaluation series etc. etc. So we always try to avoid that
I did some test implementations using "Bapi_Transaction_Commit" (though it sould not be used according to SAP - : Mr. Reiner Hille-Doering "because it can - wrongly used - cause deadlocks that bring your SAP system in an unusable state" - but he did not explain what "wrongly used" means...)
(1) DOES not work consistently, because Createfromdat1 Transaction might not be completed when Change is called
Bapi_Salesorder_Createfromdat1(..), Parameter WithOutCommit = " "
Bapi_Salesorder_Change()
Bapi_Salesorder_Change.CommitWork
(2) DOES work consistenly in test environment
Bapi_Salesorder_Createfromdat1(...), Parameter WithOutCommit = "X"
Bapi_Transaction_Commit("X", ...)
Bapi_Salesorder_Change()
Bapi_Salesorder_Change.CommitWork
Thanks for any further input on making this "SAP supported"
Greetings,
Andreas
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.