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?