Skip to Content
author's profile photo Former Member
Former Member

Mapping from a single XML to multiple XMLs

With my little knowledge of XI mapping, I am trying to map the following:

<rows>

<id>Grumpy</id>

<id>Dopey</id>

<id>Sleepy</id>

</rows>

Now I am trying to split the ids to multiple rows as shown below:

<row>

<id>Grumpy</id>

</row>

<row>

<id>Dopey</id>

</row>

<row>

<id>Sleepy</id>

</row>

Does anyone know how to do this? I greatly appreciate it.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 30, 2005 at 09:58 PM

    Hi Ken,

    take a look at SplitbyValue function:

    http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

    this sould be what you're looking for:)

    regards,

    michal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2005 at 05:38 AM

    Hi ken

    In mapping just map <id> to row. For each row it will generate new row.

    Thanx

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2005 at 06:38 AM

    Hi vinod,

    That dosen't work like that. You cannot map a leaf node to an element-node. It will throw a mapping error.

    Cheers,

    Siva Maranani.

    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.