cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping issues

Former Member
0 Kudos

Hi All,

We have the mapping issue .


Issue:  IF the segment E1WBB04 does not have a field HPEAN, then the mapping pick the wrong segment.


<E1WBB04 SEGMENT="1">

                     <EAN11>5088517000237</EAN11>

                     <EANTP>HE</EANTP>

  </E1WBB04>

  <E1WBB04 SEGMENT="1">

                     <EAN11>885170002371</EAN11>

                     <EANTP>UC</EANTP>

                     <HPEAN>X</HPEAN>

  </E1WBB04>


Mapping Condition : When HPEAN = X and EAN11 are in same segment  then we have to map EAN11 to target.


But the result is 5088517000237  instead of 885170002371. which is not HPEAN= X.


Please suggest the mapping or UDF for the same.

Thanks

Laxmi Bhushan

Accepted Solutions (0)

Answers (3)

Answers (3)

r_s_kulkarni11
Participant
0 Kudos

Hello Laxmi,

Please find the following mapping and the required output as per your requirement.

And the out put is

Thanks ,

Rahul

Former Member
0 Kudos

Hi,

U can use use mapwithdefault just after HPEAN and then check ur conditions.

Thanks

Amit Srivastava

r_s_kulkarni11
Participant
0 Kudos

Hello Laxmi,

Please try the following mapping -

IF <HPEAN> EqualS X AND < EAN11> exists then map it to target element.

Use IF without else amd keep the context of <EAN11> & <HPEAN> as <E1WBB04>