Skip to Content
Mar 03, 2011 at 03:32 PM

Mapping data (structure issue)


Hi Gurus,

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)
>Snode2 (0..unbounded)

Target structure
Recordset (1..unbounded)
>Tnode1 (1..1)
>Tnode2 (1..unbounded)

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.