on 07-19-2012 5:32 PM
Hi gurus,
we have following input values
<root>
<Person>
<Name>jurgen</Name>
</Person>
<Person>
<Name>julia</Name>
</Person>
<Person>
<Name>jochen</Name>
</Person>
<Person>
<Name>jens</Name>
</Person>
</root>
and need the following output:
<root>
<Person>
<Name>jurgen</Name>
<Name>julia</Name>
<Name>jochen</Name>
<Name>jens</Name>
</Person>
</root>
Can any one guide me.
Thanks
Sorry,
the output should be:
<root>
<Person>
<Name1>jurgen</Name1>
<Name2>julia</Name2>
<Name3>jochen</Name3>
<Name4>jens</Name4>
</Person>
</root>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
try this mapping
name----->remove context-->copy value[0]------->Name1
name----->remove context-->copy value[1]------->Name2
name----->remove context-->copy value[2]------->Name3
name----->remove context-->copy value[3]------->Name4
set context to root of source message.
Regards
Anupam
Very simple...
name (source) --> removecontext --> name(target)
refer this wiki for example
http://wiki.sdn.sap.com/wiki/display/XI/Explain+node+functions
Note; Create target structure's person (1 to 1) and name (1 to unbounded) & while mapping name (source) context set to Person.
Message was edited by: Baskar Gopalakrishnan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
just make the name as 1...unbound and map it without the context change
you can also check BIT460 (mapping workshop) if you need more help with mappings,
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.