Skip to Content
avatar image
Former Member

Create purchasedeliverynotes error 5002

when i created a purchasedeliverynotes by integration framework. i get a error:"

Exception : DI Error: (-5002) Base document card and target document card do not match." the xml formart is :

<BOM>
<xsl:attribute name="MesEntry"><xsl:value-of select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]/jdbc:MesEntry"></xsl:value-of></xsl:attribute>
<BO>
<AdmInfo>
<Object>20</Object>
<Version>2</Version>
</AdmInfo>
<Documents>
<row>
<DocDate>
<xsl:value-of select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]/jdbc:DocDate"></xsl:value-of>
</DocDate>
<DocDueDate>
<xsl:value-of select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]/jdbc:DocDate"></xsl:value-of>
</DocDueDate>

<CardCode>
<xsl:value-of select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]/jdbc:venderCode"></xsl:value-of>
</CardCode>

</row>
</Documents>
<Document_Lines>
<xsl:for-each select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]">
<row>
<!-- multiple such elements are allowed -->
<LineNum>
<xsl:value-of select="jdbc:LineNum"></xsl:value-of>
</LineNum>
<ItemCode>
<xsl:value-of select="jdbc:ItemCode"></xsl:value-of>
</ItemCode>
<Quantity>
<xsl:value-of select="jdbc:Quantity"></xsl:value-of>
</Quantity>
<WarehouseCode>
<xsl:value-of select="jdbc:WhsCode"></xsl:value-of>
</WarehouseCode>
<BarCode>
<xsl:value-of select="jdbc:DistNumber"></xsl:value-of>
</BarCode>
<BaseEntry>
<xsl:value-of select="jdbc:BaseEntry"></xsl:value-of>
</BaseEntry>
<BaseLine>
<xsl:value-of select="jdbc:BaseLine"></xsl:value-of>
</BaseLine>
<LocationCode>
<xsl:value-of select="jdbc:BinAbsEntry"></xsl:value-of>
</LocationCode>
<Price>
<xsl:value-of select="jdbc:Price"></xsl:value-of>
</Price>
<BaseType>20</BaseType>
</row>
</xsl:for-each>
</Document_Lines>
<BatchNumbers>
<xsl:for-each select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]">
<row>
<BatchNumber>
<xsl:value-of select="jdbc:DistNumber"></xsl:value-of>
</BatchNumber>
<Quantity>
<xsl:value-of select="jdbc:Quantity"></xsl:value-of>
</Quantity>
<BaseLineNumber>
<xsl:value-of select="jdbc:BaseLine"></xsl:value-of>
</BaseLineNumber>
</row>
</xsl:for-each>
</BatchNumbers>
<DocumentLinesBinAllocations>
<xsl:for-each select="$msg/jdbc:SqlResult/jdbc:ResultSet/jdbc:Row[./jdbc:ID=$count]">
<row>
<BinAbsEntry>
<xsl:value-of select="jdbc:BinAbsEntry"></xsl:value-of>
</BinAbsEntry>
<Quantity>
<xsl:value-of select="jdbc:Quantity"></xsl:value-of>
</Quantity>
<BaseLineNumber>
<xsl:value-of select="jdbc:BaseLine"></xsl:value-of>
</BaseLineNumber>
<SerialAndBatchNumbersBaseLine>0</SerialAndBatchNumbersBaseLine>
</row>
</xsl:for-each>
</DocumentLinesBinAllocations>
</BO>
</BOM>

please help!!!

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers