Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Mapping problem for IDOC to file scenario

$
0
0

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


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>