cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping - Execution of several Logical expressions

tharaka_fernando
Contributor
0 Kudos

Dear All,

I have several mapping scenarios that needs to be executed. here is one of them.. Need your ideas on how to implement this mapping logic.

Below is the Source Structure

Target :

LOGIC : If AssortNo == NUM AND Code == Value where Type = "Def1" AND Size == Value where type = "Def4" then pass AssortNo to EDL4-VBELN.

Accepted Solutions (0)

Answers (2)

Answers (2)

RaghuVamseedhar
Active Contributor
0 Kudos

Fernando,

Please check grouping example in this blog

former_member184720
Active Contributor
0 Kudos

it's similar to your previous question..

You can use the UDF that i shared there..

If you have already tried(modified the UDF) and not working, share your mapping  and display queue screenshots.

tharaka_fernando
Contributor
0 Kudos

Hi Hareesh,

thank you for the reply..

As you said , I wrote a very simple UDF for testing , only to check the 01st condition that is;

If AssortNo == NUM

UDF

for(int i=0;i<assort.length;i++){

for(int m=0;m<number.length;m++){

if(number[m].equals(assort[i])){

result.addValue("true");

continue;

}

}

}

Duplicated Assortment node twice  with Assort with values 10 and 20 each.

then I Duplicated "PackUnit" Node twice.

A PackUnit --- two PackUnit Items A i , A ii

B PackUnit  -- One PackUnit Items B i

please refer below

But the loop is taking only 01st "PackUnit" vlaues...that is A i and A ii

Thanks all in advance