I am not able to find a way to get this solved yet.
Please take a look at this:
Source structure IDOC (can come multiple) >Snode1 (0..unbounded) >>Sfield1 >>Snode11(0..unbounded) >>>Sfield11(0..1) >Snode2 (0..unbounded) Target structure Recordset (1..unbounded) >Tnode1 (1..1) >Tnode2 (1..unbounded) >>Tfield2
For each incoming IDOC, one Recordset will be created.
node1 will always be created.
node2 will have to be created at least once, and condition will be the next:
IDOC/Snode1/Snode11/Sfield11 = "A" then create Tnode2 (under IDOC context).
Inside node2, there is a field called field2 which has same condition as :
if IDOC/Snode1/Snode11/Sfield11 = "A" then send IDOC/node1/field1 to Tfield2
I am not able to generate corresponding data here.
I tried with an if without else but it is giving me an error.
Anyone has any idea on how can I solve this?
Thanks in advance.