I am updating some sales orders via C# using web services. What I have noticed is that the sales line details API is updating incorrect line details, even after explicitly setting product code + line numbers. It seem that it is updating line detail based on the order received rather than observing the product code and line number.
An example is I have a sales order with four line details (1000 -> 4000). I only want to update line 4000.
My XML payload to the webservice is:
<?xml version="1.0" encoding="UTF-16"?>
-<PARAMxmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<GRPID="SOH0_1"><FLDNAME="BPCORD">ABC001</FLD><FLDNAME="SALFCY">UATSITE</FLD></GRP>
-<TABID="SOH4_1"SIZE="1">
-<LINNUM="1"><FLDNAME="ITMREF">HNP00019</FLD><FLDNAME="NUMLIG">4000</FLD><FLDNAME="SOPLIN">4000</FLD><FLDNAME="QTY">12</FLD><FLDNAME="ITMDES">This is a closed line really</FLD></LIN></TAB></PARAM>
I'm calling the webservice "SOH" endpoint, using the Modify method. The call is working correctly and updating the line detail, unfortunately, its the wrong line detail.
I've tried omitting the SOPLIN field, etc. If I omit the NUMLIG field, then a new line detail is inserted (as expected).
Sale Order API updating wrong line detail
in General Discussion
Posted
Hi,
We are on X3 V12 90.24.54.
I am updating some sales orders via C# using web services. What I have noticed is that the sales line details API is updating incorrect line details, even after explicitly setting product code + line numbers. It seem that it is updating line detail based on the order received rather than observing the product code and line number.
An example is I have a sales order with four line details (1000 -> 4000). I only want to update line 4000.
My XML payload to the webservice is:
I'm calling the webservice "SOH" endpoint, using the Modify method. The call is working correctly and updating the line detail, unfortunately, its the wrong line detail.
I've tried omitting the SOPLIN field, etc. If I omit the NUMLIG field, then a new line detail is inserted (as expected).
Any ideas?