on 01-18-2021 6:59 AM
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>
Hi,
it would be helpfull to see the real payload sent to the atom.
Have you been through "3.4.8 Testing and Debugging the Process Flow" in the help section of integration framework ? Once you get the real message, we could evaluate the correctness of the payload.
See the note 2057143 - DI API_How to Prepare and Debug an XML Payload
https://launchpad.support.sap.com/#/notes/2057143
You could validate the payload format with the tool within the note.
Hope it helps !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello PIERRE BROTHIER
good to see you again,
I have attached my error message below pls help medownloadmessagelog.txt
when i select my rectest.xml test message and run the debug I get the same error as:
please help.
the sender payload is :
<Payload Role="S" Result="0000" Msg="">
<BOM xmlns="">
<BO>
<AdmInfo>
<Object>13</Object>
</AdmInfo>
<OINV>
<row>
<DocEntry>189</DocEntry>
<DocNum>20010180</DocNum>
<DocType>I</DocType>
<Handwrtten>N</Handwrtten>
<Printed>N</Printed>
<DocDate>20210111</DocDate>
<DocDueDate>20210210</DocDueDate>
<CardCode>0001</CardCode>
<CardName>ELECTROSTEEL CASTINGS LIMITED</CardName>
<Address>Kokatta, West Bengal 30, B.T. Road, Khardah, P.O Sukchar, -700115 IN</Address>
<NumAtCard/>
<DocTotal>200.000000</DocTotal>
<AtcEntry>0</AtcEntry> ...... <U_ReasonNameforVehicleUpdate/> </row> </OINV>
<INV1> <row> <LineNum>0</LineNum> <ItemCode>ABC0001</ItemCode> <Dscription>ABC</Dscription> <Quantity>2.000000</Quantity> .... </row> </INV1> .........
</BO>
</BOM>
Well,
it's quite strange that you have table name instead of object name in you payload.
That rely on the specific retrieval method.
You have the option to choose the export option the DI API provides:
AllNodes exports all database fields using database field name tags
ValidNodesOnly exports read/write fields using database field name tags
NodesAsProperties exports all database fields using public property name tags
ExportImportNode exports read/write fields using public property name tags
Be sure to use "NodeAsProperties". You can check if it"s ok in the payload.
The source type should be 9 and not 0 as I can see in the xml.
<b1e:sourcetype>9</b1e:sourcetype>
You will get the object, and will probably solved you problem.
Yes i thought the same, i have also raised a question about this
https://answers.sap.com/questions/13229587/b1if-sender-object-list-template-is-different-from.html
i tried changing the export option and selected every options and tried debugging and still got the same error and the B1e sourtype didnt change .
do i need to repair my B1if? or something?
help pls
Thank you for your time
User | Count |
---|---|
96 | |
10 | |
9 | |
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.