When importing using the eConnect type POPEnterMatchInvoiceType it seems that taPopEnterMatchInvLine requires the POPRCTNM value to be set before importing. Using the POPReceivingsType with the taPopRcptLineInsert it automatically sets it to the next Receipt Number. Auto-setting the next number is also the default behavior in all other eConnect types that we have used.
Does anybody know why taPopEnterMatchInvLine requires that POPRCTNM value needs to be set beforehand?
Background:
This error is returned "eConnectTraceSource Error: 735 : Create Entity produced the following exception:
Procedure or function 'taPopEnterMatchInvLine' expects parameter '@I_vPOPRCTNM', which was not supplied."
This occurs before taPopEnterMatchInvLinePre procedure is called so we are not able to get the next receipt number there either. This means that we would have to set the next receipt number already in the foreign system that generates the eConnect XML, but which normally do not have access to GP.
Any hints appreciated.
Regards, Stig