Hi gurus !
I am using a 'createIf' node function to create a node in the target if a source field equates to a particular value. Normally, it would mean that only those fields in the source node that satisfies the condition of the 'createIf' would be available to be mapped to the target node's fields. However, I would like a field from another node in the source to be mapped onto the same target node's fields.
Source (IDoc - DELVRY03)-
<E1EDL20>
......
<E1EDL22>
...
<VSBED_BEZ>Trial testing</VSBED_BEZ>
</E1EDL22>
.......
<E1ADRM1>
<PARTNER_Q>WE</PARTNER_Q>
.....
<NAME1>xxxx</NAME1>
<NAME2>xxxx</NAME2>
......
</E1ADRM1>
/TargetNode = createIf(equalsS(/partner_q), Constant('WE')))
/TargetNode/name1=/E1ADRM1/NAME1 - working
/TargetNode/name2=/E1ADRM1/NAME2 - working
/TargetNode/vsbed=/E1EDL22/VSBED_BEZ - field not displayed in output at all
Currently '/TargetNode/vsbed' is not being output at all, leave alone a blank entry, though the test shows the value appearing correctly under 'Display Queue'. Is there any trick that I could try ?
Cheers,
Ashok.