cancel
Showing results for 
Search instead for 
Did you mean: 

Filter Settings

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you

Answers (0)