on 02-23-2006 9:50 AM
Hi all,
I am creating a sales order using bapi Bapi_Salesorder_Createfromdat2 in vb.
I know that I should also call Bapi_transaction_commit after calling Bapi_Salesorder_Createfromdat2.
But the vb returns an error:
An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll
Additional information: Method SAPProxy1.Bapi_Salesorder_Createfromdat2 can not be reflected.
It works fine (with sales order no. generated but not wrote to database) if I don't call the Bapi_transaction_commit. but it gives error once I use it. What's wrong or any missing steps that I should do?
Thanks.
p.s and it returns error after running line 2 in the SAPProxy1.vb:
Line1: Public Sub New(ByVal ConnectionString As String)
Line2: MyBase.New(ConnectionString)
Line3: End Sub
Message was edited by: Macy Lo
Please remove Bapi_transaction_commit from your proxy and use the builtin CommitWork method instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
It works if I use the CommitWork method. But it seems that it can't handle the synchronization problem.
As the standard bapi Bapi_transaction_commit allows us to specify the wait parameter, but I just can't use it, it gives error:
The XML element named 'RETURN' from namespace '' references distinct types SAP.Connector.BAPIRET2 and SAP.Connector.BAPIRET2Table. Use XML attributes to specify another XML name or namespace for the element or types.
What could I do ? thanks.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.