Hi Bastian,
Sorry, but I have another problem. Maybe you can help me again with this.
I have a inbound file with 2300 lines. The processing of this takes up to four hours. Do you have a tip to speed up the processing?
This is an example of my ImportFile:
ItemCode; Quantity
9015426;10
9015427;20
etc...
This is my atom0.xsl
<?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="R" id="{$atom}"> <xsl:call-template name="transform"></xsl:call-template> </Payload> </Body> </Msg> </xsl:template> <xsl:template name="transform"> <!-- batch processing for multiple message outbound --> <b1im_multimsg xmlns=""> <!-- batch processing for incoming DSV or TXT file with multiple items, skip first line --> <xsl:for-each select="$msg/row[position()>1]"> <!-- processing for a single item --> <b1im_msg> <B1out type="object"> <Items> <row> <ItemCode> <xsl:value-of select="./col[1]"></xsl:value-of> </ItemCode> <U_SuppOnHand> <xsl:value-of select="./col[2]"></xsl:value-of> </U_SuppOnHand> </row> </Items> </B1out> </b1im_msg> </xsl:for-each> </b1im_multimsg> </xsl:template></xsl:stylesheet>