How Do I Validate that the EAN or Supplier Item Number Is Given?

Answer:

Since either the EAN or supplier item number can occur, use the field AID in the “blue” process 1, in order to be able to check that one of the two numbers is there.

For this purpose, an XSLT template is created in the “blue” process 1 as follows:

<!-- AID for check if SUPPLIER_AID or EAN exists -->
  <xsl:template match="ORDERS_ITEM/ARTICLE_ID">
    <xsl:copy>
      <AID>
        <xsl:value-of select="SUPPLIER_AID" />
        <xsl:value-of select="INTERNATIONAL_AID" />
      </AID>
      <xsl:apply-templates />
    </xsl:copy>
  </xsl:template>
  • In the validation, a rule on AID is stored as a mandatory field with Lenght != 0.
  • EAN and supplier item numbers are then each specified as an optional field with their own validation.

More Information:

  • Automatic Validation: Link
  • 8 Steps to Automatically Process PDF Documents: Link

Was This Post Helpful?