Skip to Content
avatar image
Former Member

xml file to B1 Sales Order


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;]">











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





<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>










Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 22, 2010 at 06:46 AM

    And This is a xml details to read

    <ENV:Envelope TransactionID="234567" xmlns:ENV="schemas-hiwg-org-au:EnvelopeV1.0">





    <PurchaseOrder RecordType="10" xmlns="schemas-hiwg-org-au:PurchaseOrderV2.0">









    <ItemCode>Nylon Black</ItemCode>




    <ItemCode>Nylon White</ItemCode>





    But this event is fileted with this result message

    "Mapping from LocalObjectType Envelope to object Type failed."

    I've tried to use ENV:Envelope logical objecttype instead of Envelope. But result is same.

    I hope someone can help me


    Add comment
    10|10000 characters needed characters exceeded

    • Hi Joanne,

      In order to import some information from an Inbound file you need to:

      1. Create an object type for the FileSystem system type.

      B1iSN Tools -> Development Tools -> Generator Object Type

      2. Generate a mapping for the new object you created.

      B1iSN Tools -> Configuration Tools -> Config File Inbound - Map

      I think in your case the mapping is missing.

      There is a presentation available in SMP and pointed from SDN explaining a File2DB sample. The inbound part is the same for your File2B1 scenario. Please have a look at it: (SAP user required for SMP).

      You have also other samples in the B1iSN tips for beginners blog at:


      Hope it helps