How does a BRF+ decision table decide which row wins? How would you order the rows, and when would you pick a decision tree or a case expression instead?
Say your answer out loud first.
Practise another way
A decision table has condition columns and result columns. At runtime BRF+ checks the rows from the top; each cell is a range comparison, and when every condition in a row is true it returns that row's result.
So I put the most specific rows first and the general fallback rows last, otherwise a broad row hides a specific one.
If the table should return several matches, I configure it for that and type the result as a table. Case suits one test value; decision trees suit branching questions.
Structure A decision table expression has one or more condition columns (bound to context data objects) and one or more result columns. Each cell holds a range comparison: equals, between, greater than, a list, or empty.
SAP Learning describes the runtime: the input is compared row by row from the top. When all cells of a row evaluate to true, processing stops and that row's result is returned. If no row matches, the expression returns no match.
Ordering rule Because evaluation is sequential, most specific first:
| Customer group | Net amount | Discount % |
|---|---|---|
| DEALER | >= 50,000 | 15 |
| DEALER | (any) | 8 |
| (any) | >= 10,000 | 5 |
| (any) | (any) | 0 |
If the third row came first, a large dealer order would get 5 percent. The BRF+ check function warns about many such ordering problems. Also run the simulation from the workbench with edge values.
Several matches Output control in S/4HANA is a good real example. Its decision tables can return all matches for steps such as output type or channel.
An exclusive indicator stops evaluation at a row. In your own tables, a multiple-match setting needs a result data object of table type, so the caller loops over all hits.
When not to use a decision table
- Case expression: one test parameter compared with a list of values, like an ABAP CASE. Simple and readable.
- Decision tree: a chain of yes/no questions where later questions depend on earlier answers.
- Formula: the result is a calculation, not a lookup. A table result cell can itself call a formula.
- Database lookup: the values already live in a customizing table; do not copy them into a decision table.
Maintenance Decision tables can be exported to Excel and imported back, which business experts like. That is also the risk: an import can silently reorder rows, so simulate after each import.
Explains top-down evaluation, why specific rows go first, how multiple matches are returned, and when another expression type fits better.
Calls it 'like Excel', with no idea of row order, no-match handling or multiple results.
Putting the catch-all row at the top, or assuming BRF+ picks the 'best' row. It returns the first full match from the top unless configured otherwise.
- What does the function return if no row matches, and how do you handle that in ABAP?
- How would you test a decision table with 200 rows before it goes live?
- When would you replace a decision table with a database lookup?
3 official pages and 1 prep guide. Confidence: high. Checked 3 Dec 2026.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.