Skip to Content
Former Member
Jul 19, 2005 at 12:52 AM

BAPI_SALESORDER_CREATEFROMDAT2 - quanity =0 when consumed& exposed as WSDL


Dear all,

Any help on this is greatly appreciated. We have developed a .NET application that will consumed the create order bapi web services that's being generated from WAS 6.20. ICM is set up and working properly. However, when we executed the .NET application, quantity related fields in all both structures (ORDER_ITEMS_IN and ORDER_SCHEDULES_IN) does not get posted correctly in the sales order as we have a zero value in those fields. And I did pass an "X" into the other 2 structures (ORDER_SCHEDULES_INX and ORDER_ITEMS_INX). I tested the same dataset in both SAP (se37) and a direct bapi call (with a Z RFC with BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT) in another .NET application, and they had been executed successfully. Everything was posted correctly in SAP.

So I activated the debugger in txn. SICF for SOAP RFC (/sap/bc/soap/rfc), and noticed the quantity value did not even get passed into the structures (ORDER_ITEMS_IN and ORDER_SCHEDULES_IN) when I am inside of the Z RFC. I tried to narrow down to the mapping of the body of the WSDL file within the SOAP SAP program, but it has been unsuccessful as I am not familiar with construct of the SOAP program. Any idea on what the SAP technical processing differences are between a web service call and a direct bapi call?

Any insights on this will be greatly appreciated!!!

Thanks much and best regards,