Quantcast
Channel: SCN : Discussion List - SAP CRM: Sales
Viewing all articles
Browse latest Browse all 1559

Creating sales order in CRM using web services and unable to save

$
0
0

Hello Experts,

 

 

I have designed a web service for creating sales order which will be triggered from legacy system passing the required information from legacy system to web servcie.

 

Web service is created with help of WS_DESIGN_TOOL.It generated the create function module to create order

 

When I try to test the FM passing all the data, i'm unable to save it. I checked in debugging and found that it was calling rollback because of objects failed to save. Further debugging i got to know that SAP has made a hardcode check on business objects for Sales order 'BUS2000115', (Line 105 for MAINTAIN_ORDERS (CL_CRM_INTLAY_BTIL)) which will modify the changed objects including all the related objects which changed. Then for every entry corresponding to header data, it changes the object type to BTOrder. Now in changed objects or objects to save list, we have 3 duplicate entries. And order_save saves 1 and fails other two thus causing rollback.

 

Everything happening is standard with no custom code at all.

 

What should be done to save the order in DB? Kindly help.

 

Thanks in advance.

 

 

Best Regards,

Latif Bansal


Viewing all articles
Browse latest Browse all 1559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>