cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed for Graphical mapping.Tag only once produces

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)