on 07-17-2006 3:17 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes it is possible to have If-Else in graphical mapping.
Thanks,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.