What is BRF+, and what are its main building blocks? Walk me from an application down to a single rule.
Say your answer out loud first.
Practise another way
BRF+ is SAP's ABAP-based rules engine: business rules live as modelled objects instead of IF statements in code. Everything sits in an application, which sets the storage type and package.
A function is the entry point ABAP calls; its context holds the input data objects and it returns a result.
The logic is either a top expression, such as a decision table, or rulesets made of rules with an IF condition and actions. Expressions and data objects are reusable building blocks.
BRF+ (Business Rule Framework plus, also written BRFplus) is part of the ABAP platform. You model rules in the BRFplus workbench (transaction BRFPLUS), and the runtime turns them into generated ABAP code.
The object hierarchy
- Application: the container. It carries the storage type (system, customizing or master data) and the development package, which decides whether it is transportable or local. Both are fixed once saved.
- Function: what a program calls. Its context lists the input data objects; its result data object is what comes back. A function runs in functional mode, event mode, or both.
- Ruleset: a container of rules assigned to a function. One function can have several rulesets, run in a defined order; one ruleset can serve several functions. Helper values go into ruleset variables.
- Rule: an IF condition with a mandatory true branch and an optional false branch. A rule can process an expression, set context values or trigger an action. It only runs inside a ruleset.
- Expression: the computing unit. SAP ships types such as Boolean, case, constant, database lookup, decision table, decision tree, formula, function call, loop, procedure call, search tree, table operation and value range. You can also build your own expression type.
- Action: an expression that returns no value, such as send e-mail, start workflow, log message or procedure call.
- Data object: element, structure or table, ideally bound to a DDIC type so value helps and checks come for free.
What happens at runtime SAP Learning describes it: BRF+ generates an ABAP class for the function the first time it is called, or when you generate it manually. That is why BRF+ is fast in production, and why you regenerate after a transport.
A simple picture
Application ZSD_DISCOUNT_RULES (storage type: customizing)
Function GET_DISCOUNT context: CUSTOMER_GROUP, NET_AMOUNT
result: DISCOUNT_PCT mode: functional
Top expression: decision table DT_DISCOUNT
Why interviewers ask it They want to hear that a function is the only thing ABAP should know about. The caller passes context values and reads the result.
Whether the rule is a decision table or a decision tree today is a modelling detail. It can change without touching the ABAP code.
Names the hierarchy correctly (application, function with context and result, rulesets and rules, expressions, actions, data objects) and explains that ABAP only talks to the function.
Says 'BRF+ is decision tables' and cannot say what a function, a ruleset or the context is.
Treating a decision table as the thing you call. ABAP calls the function; decision tables are expressions behind it and can be swapped without code changes.
- What is the difference between an expression and an action?
- Why bind BRF+ data objects to DDIC types?
- Can one ruleset be used by two functions?
3 official pages and 2 prep guides. Confidence: high. Checked 3 Dec 2026.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.