Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8456

Re: B1IF warehouse Transfer Document Duplication To Empty Document.

$
0
0

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=&apos;C&apos; and ./@id= &apos;atom6&apos;]/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=&apos;C&apos; and ./@id= &apos;atom6&apos;]/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>

 

Process.PNG

 

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:

Blank Stock Transfer.png

 

I hope these details helps a bit more.

 

Regards,
Gideon.


Viewing all articles
Browse latest Browse all 8456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>