Skip to Content

Map XML to Idoc

Hi, I'm using SAP BC 4.7. I try to convert XML-File into an own Idoc.

The structure of XML-File is: one Header and N positions.

I've a problem to map the position recordlist from XML-File to the idoc.

In a LOOP-Step I map the positions in a recordlist, but in the Recordlist there is only the last record.

The flow looks the follwing:

map (Routing Rule Flow. Add your changes after this node.)








LOOP with two Map-Steps



Transport Service: OutboundProcess (Don't change the label(or name) of this node)

I tried to use out-array in the LOOP-Step, but it's created an Objectlist and I could not converted it to the Idoc.

Also I tried to use without out-array in the Loop-Step, but there ist only the last record in recordlist.

What can I do?

Thanks in advanced.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 16, 2008 at 07:49 AM


    I didn't understand this flow as you are using your logic. I just understand that you want to map the xml records to some IDoc which you are receiving using the routing rules you defiened in Administrator console.

    Thats why your first step is that map and you are getting the thing there.

    My concern is that, when you are looping over the xml records are you adding the values correctly to the resulting IDoc. I mean to say is that when you are mapping values from xml Record to IDoc , Is the values adding or its just over writing. Check this out will solve your problem

    I guess its over writiing\.


    Aashish Sinha

    PS ; reward points if helpful

    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.