Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

synchronization problem for bapi

Former Member
0 Likes
475

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.

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
437

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

Read only

0 Likes
437

Thanks Suresh,

But can you show me how to define the XML ?

where is it ?

Thanks.

Read only

0 Likes
437

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