Hello friends,
I am working on an IDOC to file scenario and when I am trying to map the IDOC it's taking the value only for the first node and when it fails the condition it's giving error.
The structure of the idoc is as below :
<E1EDK14 SEGMENT="">
<QUALF>Z03</QUALF>
<ORGID>ER-12345-ER</ORGID>
</E1EDK14>
<E1EDK14 SEGMENT="">
<QUALF>Z06</QUALF>
<ORGID>AB-1223-ER</ORGID>
</E1EDK14>
and my mapping is done in this way :
ORGID-------->
then
QUALF---->equalsS ------> if ---->substring (3..8)----->OrderNumber
else
Constant----->
(Z06)
Constant---->
(00000000)
and when I test I am getting the value in OrderNumber as "0000"
But when I change the value of QUALF to "Z06" for the first node, it gives the correct result as "12345".
Could you please verify my mapping and suggest something,such that it takes the value of ORGID wherever it finds QUALF = Z06 ,but not only for first node?
Thanks in advance !
Regards,
Sambaran