Hi Markus,
the workflow would be the following:
- Create a function module/class with static method that contains your logic for the dynamic determination of the result
- Create a procedure call expression (see Procedure Call Expression - Business Rule Framework plus (BRFplus) - SAP Library). You have to assign your function module from step one in this expression in order to get it called and do the mapping of the importing and exporting parameters. When you create the expression be sure that the reuslt data object of the expression is the same as the data object that is defined in your result column of the decision table.
-> A function call expression (the name is a little bit misleading) is intended to call a BRFplus function not a function module. - Now you can assign the procedure call expression to a cell of the result column (here the build-in search of the BRFplus will only offer you expression with the result data object type identical to the one of the result column of the decision table)
When you now simulate the decision table and the condition columns of the row are fulfilled where you assigned the expression as result your fucntion module should get called.
Hope that helps
BR
Christian