cancel
Showing results for 
Search instead for 
Did you mean: 

My 'IF THEN ELSE' possible with graphical mapping tool ?

robert_lippmann
Explorer
0 Kudos

Hello,

Being new to XI I got into some issues during message mappings.

I want to say:

if externrole = 'BY'

then saprole = 'AG' and sappartner = externpartner.

else.

if externrole = 'DP'

then saprole = 'WE' and sappartner = externpartner.

endif.

I try this with the graphical mapping. Is this possible ?

How do I link two standard 'if' functions together.

Robert

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Robert,

This is possible by graphical mapping. Do the mapping in the following way.

->Use if with else

*if--->externrole EqualsS AG

*then->AG[Constant]

*Else->o\p of the following IF w\o Else.

*O\p-->saprole

->If without Else

*if--->externrole EqualsS DP

*then->WE[Constant]

->For sappartner map it to externalpartner.

Hope this helps.

Regards,

Jesse.

Message was edited by: Jesse George

claus_wallacher
Active Participant
0 Kudos

Hi Robert,

for your specific scenario it is the easiest to use the FixValue function.

Your mappings would be:

externrole -> FixValue -> saprole

externpartner -> sappartner

In the FixValue properties you can define the value mapping (BY -> AG and DP -> WE)

Regards,

Claus

Former Member
0 Kudos

Hi,

Yes it is possible to have If-Else in graphical mapping.

Thanks,

Prateek

moorthy
Active Contributor
0 Kudos

Hi,

Yes it is possible as mentioned. It is very easy to do with Java User Defined functions. To look more readable. Instead of so many/nodes graphics..

Using inbuilt function

First take If-else

In the else part , you can give the next if without else function

Regards

Moorthy

udo_martens
Active Contributor
0 Kudos

Hi Robert,

just drop a second "if" into the the output (branch) of the first. Take a "if wihtout else" for the second.

Regards,

Udo