cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping from a single XML to multiple XMLs

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi ken

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

Thanx

Vinod

MichalKrawczyk
Active Contributor
0 Kudos

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