‎2006 Feb 28 3:38 AM
Hi all,
I have to write a vb program to call a series of transactions using bapi.
e.g. create sales order
I use the standard bapi BAPI_SALESORDER_CREATEFROMDAT2 to do so, then use BAPI_TRANSACTION_COMMIT to commit.
But it returns an error in my vb that:
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.
and someone here has suggested me to use the method CommitWork instead. but this does not handle the synchronization. How to handle this? Thanks.
‎2006 Feb 28 3:48 AM
Hi Macy,
Both the BAPIs use the RETRUN parameter.. But the difference is that,in BAPI_SALESORDER_CREATEFROMDAT2 its a Table (will hold more than one record) whereas in BAPI_TRANSACTION_COMMIT its a structure(will hold only one record).. you probably have to define another XML name for the RETURN parameter in the second BAPI.
Regards,
Suresh Datti
‎2006 Feb 28 4:00 AM
Thanks Suresh,
But can you show me how to define the XML ?
where is it ?
Thanks.
‎2006 Feb 28 4:04 AM
Hi Macy,
It should probably be on the Business Connector.. I haven't worked on it.. so cannot help you on that..
Regards,
Suresh Datti