Hi Bastian,
Glad to see ur Reply instantly... But Can u pls be clear??? I am new to B1if.. Where should i make that Docentry? Below is my XSLT for Atom3.. Can u pls help me with this info???
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="" b1im:force=""><xsl:output method="xml" encoding="UTF-8" indent="yes"></xsl:output><xsl:param name="atom"></xsl:param><xsl:param name="sessionid"></xsl:param><xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']"></xsl:variable><xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"></xsl:variable><xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"></xsl:variable><xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover='P']/@Id"></xsl:variable><xsl:template match="/">
<Msg xmlns="urn:com.sap.b1i.vplatform:entity">
<xsl:copy-of select="/vpf:Msg/@*"></xsl:copy-of>
<xsl:copy-of select="/vpf:Msg/vpf:Header"></xsl:copy-of>
<Body>
<xsl:copy-of select="/vpf:Msg/vpf:Body/*"></xsl:copy-of>
<Payload Role="X" id="{$atom}">
<xsl:call-template name="transform"></xsl:call-template>
</Payload>
</Body>
</Msg>
</xsl:template><xsl:template name="transform">
<xsl:variable name="DocEntryCode" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/BOM/BO/Documents/row/DocEntry"></xsl:variable>
<xsl:variable name="DocNumCode" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/BOM/BO/Documents/row/DocNum"></xsl:variable>
<xsl:variable name="ClientPO" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/BOM/BO/Documents/row/NumAtCard"></xsl:variable>
<FinalAtomResult xmlns="">
<BOM>
<BO>
<AdmInfo>
<Object>17</Object>
<Version>2</Version>
</AdmInfo>
<Documents>
<row>
<CardCode>
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[@id='atom1']/row[./col[1]=$vpSender]/col[2]"></xsl:value-of>
</CardCode>
<Reference1>
<xsl:value-of select="$msg/BOM/BO/Documents/row/Reference1"></xsl:value-of>
</Reference1>
<Reference2>
<xsl:value-of select="$msg/BOM/BO/Documents/row/Reference2"></xsl:value-of>
</Reference2>
<Comments>
Based On PO(LMC): <xsl:value-of select="$msg/BOM/BO/Documents/row/DocNum"></xsl:value-of>
</Comments>
<DocDueDate>
<xsl:value-of select="$msg/BOM/BO/Documents/row/DocDueDate"></xsl:value-of>
</DocDueDate>
<NumAtCard>
<xsl:value-of select="$ClientPO"></xsl:value-of>
</NumAtCard>
</row>
</Documents>
<Document_Lines>
<xsl:for-each select="$msg/BOM/BO/Document_Lines/*">
<row>
<LineNum>
<xsl:value-of select="LineNum"></xsl:value-of>
</LineNum>
<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>
</row>
</xsl:for-each>
</Document_Lines>
</BO>
</BOM>
</FinalAtomResult>
</xsl:template></xsl:stylesheet>