on 04-13-2006 9:46 AM
Hi,
I have one mapping problem. The source xml has element, which has a numeric value. In the target XML (FIDCCP02-idoc) one node (E1FISEG) should be generated as many times as the value is. Is this possible in message mapping?
Hi Tapio,
yes it is
you have to create a user function
which will create as many contexts as the values
in this element (in a loop for example)
and then you'll have many segments
E1FISEG <-- this node must have occurance 0..unbounded
of course to do that
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You could solve this using message mapping, with a user defined function.
<tag>-->userdefined func-> split by value-><Ttag>
in the user defined function, write a logic which would take the value as input and add an empty element(or "") to a resultlist container.
Now, for each element in the resultlist container, a splitbyvalue will be occuring.
i.e, for each element in the container,a <Ttag> element will be created.
Also, you would have to use split by value node function for the parent of <Ttag>, since, for each <Ttag> there must also be a parent created.
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tapio,
All you have to do is map your field to the field in segment E1FISEG.
Then Map node E1FISEG with the node in which your field is existing and change the context to one step up.
Also, put split by value.
So if ur sender structure looks like
<header>
<node>
<field>
</field>
</Node>
<Header>
then map the field to the field in segment E1FISEG.
map node to E1FISEG. Change the context to Header and put split by value
Regards
Vijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.