Posted on 16/02/2016 10:26:32
Hi Thomas,
Which version of NAV are you using?
I believe that this is only implemented in NAV 2013 and later. However, if it is needed for 2009r2, I don't think it'll be a big task for a NAV developer to merge that functionality from the 2013 codeunit.
I've just checked the NAV 2013 code unit, and It has the code for ICC:
CASE xmlrootnode.LocalName OF
'GetEcomData': GetEcomData(Request,XMLdocIn);
'PutEcomOrders': PutEcomOrders(Request,XMLdocIn);
'CalculateOrder': PutEcomOrdersLive(Request,XMLdocIn);
'PutEcomUsers': PutEcomUsers(Request,XMLdocIn);
'GetPDFForItem':
BEGIN
CLEAR(Request);
CASE Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@type') OF
'OpenOrder': Request.ADDTEXT(PrintReportasPDF(1,Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@id')));
'Invoice': Request.ADDTEXT(PrintReportasPDF(2,Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@id')));
'Credit': Request.ADDTEXT(PrintReportasPDF(3,Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@id')));
ELSE
ERROR(STRSUBSTNO('Report %1 NOT FOUND',xmlrootnode.LocalName));
END;
END;
'GetList':
BEGIN
CLEAR(Request);
CASE Get_TextFromNode(XMLdocIn,'/GetList/@type') OF
'OpenOrder': GetList(1,Get_TextFromNode(XMLdocIn,'/GetList/@customerID'),Request,XMLdocIn);
'Invoice': GetList(2,Get_TextFromNode(XMLdocIn,'/GetList/@customerID'),Request,XMLdocIn);
'Credit': GetList(3,Get_TextFromNode(XMLdocIn,'/GetList/@customerID'),Request,XMLdocIn);
ELSE
ERROR(STRSUBSTNO('table %1 NOT FOUND',xmlrootnode.LocalName));
END;
END;
'GetItem':
BEGIN
CLEAR(Request);
CASE Get_TextFromNode(XMLdocIn,'/GetList/@type') OF
'OpenOrder': GetItem(1,Request,XMLdocIn);
'Invoice': GetItem(2,Request,XMLdocIn);
'Credit': GetItem(3,Request,XMLdocIn);
ELSE
ERROR(STRSUBSTNO('table %1 NOT FOUND',xmlrootnode.LocalName));
END;
END;