on 06-09-2008 8:49 AM
Hello experts,
I have a little problem with my Model.
The situation is that I have one Service which returns a table full of cars. One Attribute of this table is the carclass. Furthermore I have a Bapi which verifies the Employee Unit of the Logon Data. Now I want to do the following:
My model have to compare the employee Unit (K4) with the assigned carclass (compact class) so that my model can make a Decision. For that case I want to create a table which has two attributes. The employee unit and the carclass. The table should be the return - table of the Bapi which is responsible for the employee - unit and in it should be a rule which says something like that:
If employeeUnit ==K4 than set carclass to compactclass,
if employee Unit == K5 than set carclass to upper class
If employee Unit == K6 than set carclass to what ever
So that I have finally a list of unit with assigend carclasses.
How is the syntax for that Business logic?
Thank you
Regards
Marco
Hi Marco,
From your bapi Response-> draw the flow to table. In the table you would have the employeeUnit field already, add then a inputfield for Carclass.
Click on the carclass field on the right side (Configure panel) -> then value -> double click on fx / Define expression - > You would see the pop-up of Dynamic Expression Editor.
=IF(@employeeUnit==K4,"compactclass",IF(@employeeUnit==K5,"upper class ","whatever"))
You can use this filter if there are fewer employeeUnits....
Good Luck,
Dharmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.