Question Status

Unanswered
jj_luca asked a question on 27 Feb 2015 1:54 PM

I am using Visual Studio 2012 and eConnect to integrate purchase order invoices into GP.  I am passing matched shipments in the taPopEnterMatchInvLine node along with a taPopDistribution node for freight.  The XML schema result is pasted below.  The document is created in GP and no errors are returned.  However, the freight distribution seems to be ignored.  The freight amount is entered at the header level, but the GL code is not inserted at the Distribution level and must be manually entered in GP after the fact.  Any ideas why?  I really need to be able to pass both the matched shipments (and sometimes even using taPopEnterMatchInvToShpMultiLine) along with a distribution line for freight.

<?xml version="1.0" encoding="UTF-8"?>

-<eConnect xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


-<POPEnterMatchInvoiceType>

<eConnectProcessInfo xsi:nil="true"/>

<taRequesterTrxDisabler_Items xsi:nil="true"/>

<taUpdateCreateItemRcd xsi:nil="true"/>

<taUpdateCreateVendorRcd xsi:nil="true"/>

<taCreateVendorAddress_Items xsi:nil="true"/>

<taPopRcptLineTaxInsert_Items xsi:nil="true"/>


-<taPopDistribution_Items>


-<taPopDistribution>

<POPTYPE>2</POPTYPE>

<POPRCTNM>10000082</POPRCTNM>

<ACTNUMST>000-0000-0000-59910</ACTNUMST>

<DEBITAMT>16.620000</DEBITAMT>

<DISTTYPE>3</DISTTYPE>

<VENDORID>SAG00001</VENDORID>

</taPopDistribution>

</taPopDistribution_Items>

<taAnalyticsDistribution_Items xsi:nil="true"/>


-<taPopEnterMatchInvLine_Items>


-<taPopEnterMatchInvLine>

<POPRCTNM>10000082</POPRCTNM>

<PONUMBER>PO0302059</PONUMBER>

<QTYINVCD>1000</QTYINVCD>

<ITEMNMBR>391-10004</ITEMNMBR>

<VENDORID>SAG00001</VENDORID>

<UNITCOST>0</UNITCOST>

<EXTDCOST>0</EXTDCOST>

<AUTOCOST>1</AUTOCOST>

</taPopEnterMatchInvLine>

</taPopEnterMatchInvLine_Items>

<taPopEnterMatchInvToShpMultiLine_Items xsi:nil="true"/>


-<taPopEnterMatchInvHdr>

<POPRCTNM>10000082</POPRCTNM>

<VNDDOCNM>0006773106</VNDDOCNM>

<receiptdate>12/31/2014</receiptdate>

<BACHNUMB>COR360-2015225</BACHNUMB>

<VENDORID>SAG00001</VENDORID>

<SUBTOTAL>0</SUBTOTAL>

<FRTAMNT>16.62000</FRTAMNT>

<AUTOCOST>1</AUTOCOST>

</taPopEnterMatchInvHdr>

<taMdaUpdate_Items xsi:nil="true"/>

</POPEnterMatchInvoiceType>

</eConnect>


Reply
Nickster responded on 28 Feb 2015 1:38 PM

Hi JJ,

You are using autocost option on the header which is causing econnect to ignore the distribution lines you are sending.  It simply fills the distribution using vendor and system defaults and vendor probably does not have default freight account. In order to send distribution lines for po invoice I think you have to set AutoCost false but that requires all distribution lines to be send manually freight plus all the po related ones which means you loose any automatic coding that comes from po lines.

Reply