Skip to Content

Import multiple items from xml

Dear,

I have a - probably basic question.

I have installed the integration framework and for my first scenario, im trying to import new items from an XML into SAP Business one.

These items have an unknown itemcode (the last number used + 1).

In my XML, multiple items are defined, with a description and some extra fields.

Is it possible to import all the items in this XML in one run? And if yes, what does my atom look like?

Do i have to use a <xsl:for-each> ?

Or what is the exact syntax?

Thanks in advance.

Kind regards and allready the best wishes.

Frederik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 30, 2013 at 04:18 PM

    For outbound processing you can use the following.

    From the Help on Outbound Processing

    1.2 Multiple Single Messages Processing

    If you process multiple items, you usually want to hand them over to the receiver system as multiple single items. Indicate multiple single messaging with the root tag <b1im_multimsg> and the tag <b1im_msg> for each single message. The integration framework supports this for system types SAP Business One, Database and File System.

    <!-- batch processing for multiple message outbound -->

    <b1im_multimsg>

    <xsl:for-each select="$msg/… ">

    <!-- processing for a single item -->

    <b1im_msg>

    ... <!-- outbound schema for item master data -->

    </b1im_msg>

    </xsl:for-each>

    </b1im_multimsg>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.