Hi Radoslaw,
Sorry, it completely slipped my mind.
SAP Version: 9.1
SAP Patch: 3
The Warehouse Transfer structure below:
<StockTransfer xmlns="">
<xsl:variable name="vpGRN">
<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='C' and ./@id= 'atom6']/Message"></xsl:copy-of>
</xsl:variable>
<DocDate>
<xsl:value-of select="$vpGRN/Message/Delivery/DeliveryCompleteDateTime"></xsl:value-of>
</DocDate>
<TaxDate>
<xsl:value-of select="$vpGRN/Message/Delivery/DeliveryCompleteDateTime"></xsl:value-of>
</TaxDate>
</StockTransfer>
<StockTransfer_Lines xmlns="">
<xsl:variable name="vpGRN">
<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='C' and ./@id= 'atom6']/Message"></xsl:copy-of>
</xsl:variable>
<xsl:for-each select="$vpGRN/Message/Delivery/Item">
<xsl:variable name="length" select="string-length(ASNNo)"></xsl:variable>
<row>
<ItemCode>
<xsl:value-of select="SKU"></xsl:value-of>
</ItemCode>
<Quantity>
<xsl:value-of select="Quantity"></xsl:value-of>
</Quantity>
<WarehouseCode>KPW</WarehouseCode>
<FromWarehouseCode>PIT</FromWarehouseCode>
<U_ASNNo>
<xsl:value-of select="substring($vpGRN/Message/Delivery/Item/ASNNo,5,$length)"></xsl:value-of>
</U_ASNNo>
<!--<U_OrderNo>
<xsl:value-of select="jdbc:U_OrderNo"/>
</U_OrderNo>-->
</row>
</xsl:for-each>
</StockTransfer_Lines>
The process is as follow:
Get list of documents -> For each through and Read Files -> Manipulate Data into stock transfer document as shown above image -> submit document.
For each document added to sap the blank document is also added.
The below image shows how the stock transfer that is incorrect looks like in sap:
I hope these details helps a bit more.
Regards,
Gideon.