Hi,
I need to create a credit memo (for damaged goods) from a c# program and import it into GP using eConnect. I tried to use a code similar as the code to import a new invoice (by changing the DOCType) but it does fails saying:
Message: Error Number = 183 Stored Procedure taSopLineIvcInsert Error Description = Line quantity does not equal the return types (QUANTITY <> QTYINSVC+QTYINUSE+QTYDMGED+QTYRTRND+QTYONHND)
This is the document I'm sending
Thank,
Ignacui
<?xml version="1.0" encoding="utf-8"?>
<eConnect xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema">
<SOPTransactionType>
<eConnectProcessInfo xsi:nil="true" />
<taRequesterTrxDisabler_Items xsi:nil="true" />
<taUpdateCreateItemRcd xsi:nil="true" />
<taUpdateCreateCustomerRcd xsi:nil="true" />
<taCreateCustomerAddress_Items xsi:nil="true" />
<taSopSerial_Items xsi:nil="true" />
<taSopLotAuto_Items xsi:nil="true" />
<taSopLineIvcInsert_Items>
<taSopLineIvcInsert>
<SOPTYPE>4</SOPTYPE>
<SOPNUMBE>100193 </SOPNUMBE>
<CUSTNMBR>EC1070 </CUSTNMBR>
<DOCDATE>08/18/2015</DOCDATE>
<ITEMNMBR>032 </ITEMNMBR>
<UNITPRCE>2.2</UNITPRCE>
<XTNDPRCE>2.2</XTNDPRCE>
<QUANTITY>1</QUANTITY>
<ITEMDESC>RECONDO TOAST REGULAR</ITEMDESC>
<DOCID>RTN</DOCID>
<SLPRSNID>02 </SLPRSNID>
<ADDRESS1>1200 PALM AVENUE</ADDRESS1>
<CITY>HIALEAH</CITY>
<ACTLSHIP>08/18/2015</ACTLSHIP>
<CURNCYID>Z-US$ </CURNCYID>
</taSopLineIvcInsert>
</taSopLineIvcInsert_Items>
<taSopLineIvcInsertComponent_Items xsi:nil="true" />
<taSopTrackingNum_Items xsi:nil="true" />
<taSopCommissions_Items xsi:nil="true" />
<taSopLineIvcTaxInsert_Items xsi:nil="true" />
<taCreateSopPaymentInsertRecord_Items xsi:nil="true" />
<taSopUserDefined xsi:nil="true" />
<taSopDistribution_Items xsi:nil="true" />
<taAnalyticsDistribution_Items xsi:nil="true" />
<taSopMultiBin_Items xsi:nil="true" />
<taSopHdrIvcInsert>
<SOPTYPE>4</SOPTYPE>
<DOCID>RTN</DOCID>
<SOPNUMBE>100193 </SOPNUMBE>
<DOCDATE>08/18/2015</DOCDATE>
<CUSTNMBR>EC1070 </CUSTNMBR>
<CUSTNAME>EL CAMPO FRUTERIA</CUSTNAME>
<ADDRESS1>1200 PALM AVENUE</ADDRESS1>
<FAXNUMBR>00088210700000</FAXNUMBR>
<CITY>HIALEAH</CITY>
<STATE>FL</STATE>
<ZIPCODE>33010</ZIPCODE>
<COUNTRY>USA</COUNTRY>
<SUBTOTAL>2.2</SUBTOTAL>
<DOCAMNT>2.2</DOCAMNT>
<SLPRSNID>02 </SLPRSNID>
<BACHNUMB>Imported Batch</BACHNUMB>
<CURNCYID>Z-US$ </CURNCYID>
</taSopHdrIvcInsert>
<taSopToPopLink xsi:nil="true" />
<taSopUpdateCreateProcessHold xsi:nil="true" />
<taCreateSOPTrackingInfo xsi:nil="true" />
<taMdaUpdate_Items xsi:nil="true" />
</SOPTransactionType>
</eConnect>
*This post is locked for comments