Skip to Content
avatar image
Former Member

Input table values to a field to the BRF+ function

To one of the input fields in a decision table, i have multiple values to be passed.

I have added table to the context of function. Also, created decision table with input as data element which is the line type of table added to the context of function. Output is also a table.

But, table values are not getting populated. In debugging, I found that data element is not getting the values passed to the context table input.

Request your input/suggestions on this topic

Thanks and Regards,

Eldho

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 15, 2017 at 12:38 AM

    Not entirely sure what your'e trying to accomplish, but it sounds like you want to return all results that match a number of input values?

    If this is correct, BRFplus doesn't support that. You can call the expression multiple times, either via a table loop in BRFplus or by calling it multiple times from ABAP for each entry and combining the result. Performance should be similar.

    Add comment
    10|10000 characters needed characters exceeded

    • This is probably the worst option. BRF+ decision table are not really tables in the database sense. They can contain complex expressions for any field, so you cannot just 'read the contents'.

      I would still go with one of the two alternatives I suggested:

      - Perform a BRF+ query from ABAP for each row, or

      - create a BRF+ expression to loop though your values and call the table expression for each entry.

      I would imagine the performance would be similar.

      A third option is to simplify the BRF+ query by leaving out the table parameter (Element B), get the whole result set and filter it in ABAP. But I'm not a big fan of this approach because you're splitting your rule across two platforms.

      Or redesign your rule.