FAQ Overview:
Answer:
Usually, the supplier item number is a mandatory field for import into the ERP system. Sometimes no supplier item numbers are transmitted in the PDF order. This means that the elements SUPPLIER_AID or even ARTICLE_ID are missing in the extracted XML structure.
For validation, however, these elements must be present in the structure. For this purpose, two XSLT templates are created in the “blue” process 1 as follows:
<xsl:template match="ORDERS_ITEM"> <xsl:copy> <xsl:apply-templates select="@*|node()" /> <!-- Check if ARTICLE_ID exists. If not, then create ARTICLE_ID/SUPPLIER_AID empty --> <xsl:if test="not(ARTICLE_ID)"> <ARTICLE_ID> <SUPPLIER_AID></SUPPLIER_AID> </ARTICLE_ID> </xsl:if> </xsl:copy> </xsl:template> <xsl:template match="ARTICLE_ID"> <xsl:copy> <xsl:apply-templates select="@*|node()" /> <!-- Check whether SUPPLIER_AID exists. If not, then create empty --> <xsl:if test="not(SUPPLIER_AID)"> <SUPPLIER_AID></SUPPLIER_AID> </xsl:if> </xsl:copy> </xsl:template>
- In the validation, a rule on SUPPLIER_AID is stored as a mandatory field, e.g. with
Lenght != 0
.