Configuring and Troubleshooting Derivation Rules with BRFplus in MDG (Part 3)
Preview · a free account unlocks the full lesson
Learn how derivation rules are built using BRFplus (or the rules engine available in your MDG release), wired into the data model and UI, executed at runtime, and diagnosed when values fail to populate as expected.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Derivations exist to remove manual, error-prone data entry by letting the system infer field values from other known data. In MDG, the most common implementation vehicle is BRFplus (Business Rule Framework plus), which is invoked through a derivation step attached to a Business Activity or entity type in the governance configuration.
Some MDG releases and domains expose simplified rule configuration through Customizing activities that internally generate or reference BRFplus functions, so the underlying mechanism is often BRFplus even when the entry point looks like a table-based Customizing screen.
The design starts with identifying the trigger point: derivations can fire on initial creation of a change request, on saving a step, before validation, or when a specific field changes (for example, deriving a reconciliation account when a G/L account's account group and chart of accounts are set, or deriving a language-independent search term when a description is entered).
You configure the derivation step against a Business Activity and Entity Type combination, specify the BRFplus application and function ID to call, and map the context data (the fields from the entity that BRFplus needs as input) to the BRFplus data object model.
Inside BRFplus, you build a Decision Table, Formula, or Rule Flow that reads the input context and returns one or more derived values, which the framework then writes back to the corresponding fields on the governed entity.
At runtime, when a user progresses a change request or the workflow step is processed, the framework resolves the sequence of active derivation steps for that Business Activity, builds the context object from current entity data, and calls into BRFplus. BRFplus evaluates the top-level rule (often a decision table ordered by priority or a ruleset with conditions) and returns a result, which is written to the UI or persisted to the staging area of the change request.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.