on 07-04-2008 7:16 AM
Hello experts,
I have a problem in my graphical mapping.This is the example:
from each segment A in IDOC has to be made Tag A or Tag B in output XML.
Segment A has a field USER_STATUS and if it is X than Tag B has to be made otherwise Tag A.
Segment A is 0..9999999. occurence
Tag A 0..unbounded
Tag B 0..unbounded.
I made a mapping
mapping for Tag A:
USER_STATUS -> mapwith default(empty)->length->EqualsA (with Constant =0)-> createif->Tag A
for Tag B as following:
USER_STATUS -> mapwith default(empty)->EqualsS (with Constant =X)-> createif->Tag B
The problem is that in output XML, I have only one Tag A or B (depending on field USER_STATUS in first occurence of the segment) while in inbound IDOC 5 segments are with different value of the field: USER_STATUS.
Does anyone idea to solve this problem!
Thank you very much for your effort.
King regards,
Danijela Zivanovic
HI,
CAn you try this way,
Use Maping Node UseOneAsMany for Tag B
and pass 3 inputs as
Constant[]----
>
USER_STATUS -> mapwith default(empty)->EqualsS (with Constant =X)----
>
USER_STATUS -> mapwith default(empty)->EqualsS (with Constant =X)----
>
Same way try for Tag A also.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.