This what I found was needed as a minimum:
The Header:
/* Populate the sales order values into eConnect SO header section */
sopHdrIvc.SOPTYPE = SOPTYPE;
sopHdrIvc.SOPNUMBE = SOPNUMBE;
sopHdrIvc.DOCID = DOCID;
sopHdrIvc.CUSTNMBR = CUSTNMBR;
sopHdrIvc.BACHNUMB = batchNumber;
sopHdrIvc.DOCDATE = DOCDATE;
sopHdrIvc.UpdateExisting = 1;
The Detail:
/* Populate the sales order values into eConnect SO detail section */
sopLine = new taSopLineIvcInsert_ItemsTaSopLineIvcInsert();
sopLine.SOPTYPE = SOPTYPE;
sopLine.SOPNUMBE = SOPNUMBE;
sopLine.CUSTNMBR = CUSTNMBR;
sopLine.DOCDATE = DOCDATE;
sopLine.ITEMNMBR = ITEMNMBR;
sopLine.QUANTITY = QUANTITY - QTYTBAOR;
sopLine.QTYFULFI = QTYFULFI;
sopLine.QTYTBAOR = QTYTBAOR;
sopLine.LOCNCODE = LOCNCODE;
sopLine.SHIPMTHD = SHIPMTHD;
sopLine.LNITMSEQ = LNITMSEQ;
sopLine.UpdateIfExists = 1;
What I need to accomplish is to take a file sent back to our client from an outside WMS.
Every now and then what ships is not what we sent to the WMS so any shortages get backordered.