Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

xml file to B1 Sales Order

Hi,

I'd like to read xml file which is not standard B1 xml file and created new sales order.

Thi is a data mapping xsl tempate

<xsl:template match="b1im:B1IMessage/b1im:Body/b1im:Payload[./@ObjectTypeId=&apos;Z.F.AnySystem_FileIn&apos;]">

<BOM>

<BO>

<AdmInfo>

<Object>17</Object>

<Version>2</Version>

</AdmInfo>

<Documents>

<row>

<DocDate>20100617</DocDate>

<DocDueDate>20100617</DocDueDate>

<CardCode><xsl:value-of select="Envelope/Documents/PurchaseOrder/TradingPartnerID"></xsl:value-of></CardCode>

</row>

</Documents>

<Document_Lines>

<row>

<xsl:for-each select="Envelope/Document_Lines/row">

<ItemCode><xsl:value-of select="ItemCode"></xsl:value-of></ItemCode>

<Quantity><xsl:value-of select="Quantity"></xsl:value-of></Quantity>

<Currency>USD</Currency>

<Rate>1</Rate>

<TaxCode>0</TaxCode>

</xsl:for-each>

</row>

</Document_Lines>

</BO>

</BOM>

</xsl:template>

Former Member
Not what you were looking for? View more on this topic or Ask a question