Source IDOC :
Z1WHCONS 0..n
Z1WHCUSTC 0..n
Z1WHCUSTCH 0..n
Z1WHCUTM 0..n
comment 0..1
Z1CUSTCD 0..n
Z1WHCUTM and Z1CUSTCD are at same level under node Z1WHCUSTCH.
Target:
BOX 0..n -- Z1WHCUSTC when Z1WHCONS is initial
Line 0..n -- Z1CUSTCD
comment 0..n --- Z1WHCUTM-comment field
MIXPLT 0..n -- Z1WHCONS
BOX 0..n -- -- Z1WHCUSTC when Z1WHCONS is not initial
Line 0..n -- Z1CUSTCD
comment 0..n --- Z1WHCUTM-comment field
First Box and Mixplt are at same level.
I am not getting comment data when BOX and BOX with MIxplt data is coming in source xml.
How can I do comment mapping using graphical mapping or UDF.