Skip to Content
0
Jan 18, 2021 at 06:59 AM

(-2028) In "BP Code", enter vendor code -The di call #1 did fail

306 Views

Hello there , i have hardcoded my CardCode in a B1 to B1 A/R to A/P invoice scenario and also tried giving CardType as well but i still get an error as Error: (-2028) In "BP Code", enter vendor code -The di call #1 did fail.

please help me out , thank you

here is my coding in the final atom:

<BOM>

<BO>

<AdmInfo>

<Object>18</Object>

<Version>2</Version>

</AdmInfo>

<OINV>

<row>

<DocEntry> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocEntry"></xsl:value-of> </DocEntry>

<DocNum> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocNum"></xsl:value-of> </DocNum>

<DocType> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocType"></xsl:value-of> </DocType>

<Series>95</Series>

<CardCode>0027</CardCode>

<CardType>S</CardType>

<DocDate> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocDate"></xsl:value-of> </DocDate>

<DocDueDate> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocDueDate"></xsl:value-of> </DocDueDate>

<DocTotal> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocTotal"></xsl:value-of> </DocTotal>

<DocRate> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocRate"></xsl:value-of> </DocRate>

<Ref1> <xsl:value-of select="$msg/BOM/BO/OINV/row/Ref1"></xsl:value-of> </Ref1>

<DocTime> <xsl:value-of select="$msg/BOM/BO/OINV/row/DocTime"></xsl:value-of> </DocTime>

<CntctCode> <xsl:value-of select="$msg/BOM/BO/OINV/row/CntctCode"></xsl:value-of> </CntctCode>

<TaxDate> <xsl:value-of select="$msg/BOM/BO/OINV/row/TaxDate"></xsl:value-of> </TaxDate>

<Comments> <xsl:value-of select="$msg/BOM/BO/OINV/row/Comments"></xsl:value-of> </Comments>

<U_GrpNm> <xsl:value-of select="$msg/BOM/BO/OINV/row/U_GrpNm"></xsl:value-of> </U_GrpNm>

<BPLId>0</BPLId>

<DocumentsOwner><xsl:value-of select="$msg/BOM/BO/OINV/row/DocumentsOwner"></xsl:value-of></DocumentsOwner>

</row>

</OINV>

<INV1>

<xsl:for-each select="$msg/BOM/BO/INV1/row">

<row>

<ItemCode> <xsl:value-of select="ItemCode"></xsl:value-of> </ItemCode>

<Quantity> <xsl:value-of select="Quantity"></xsl:value-of> </Quantity>

<Price> <xsl:value-of select="Price"></xsl:value-of> </Price>

<UnitPrice> <xsl:value-of select="UnitPrice"></xsl:value-of> </UnitPrice>

<OcrCode> <xsl:value-of select="OcrCode"></xsl:value-of> </OcrCode>

<MeasureUnit> <xsl:value-of select="MeasureUnit"></xsl:value-of> </MeasureUnit>

<Currency> <xsl:value-of select="Currency"></xsl:value-of> </Currency>

<LineNum> <xsl:value-of select="LineNum"></xsl:value-of> </LineNum>

<TaxCode><xsl:value-of select="TaxCode"></xsl:value-of></TaxCode>

<SlpCode><xsl:value-of select="SlpCode"></xsl:value-of></SlpCode>

</row>

</xsl:for-each>

</INV1>

</BO>

</BOM>