Configuring and Troubleshooting Derivation Rules: Runtime Flow and Diagnostics (Part 2)
Preview · a free account unlocks the full lesson
Learn how derivation rules are configured using the MDG rule framework and BRF+, how they execute during the change request lifecycle, and how to troubleshoot when derived values are wrong, missing, or inconsistent.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Once the business need for a derivation is clear, an MDG configuration specialist implements it by linking a BRF+ application (or the relevant rule artifact in the applicable release) to the specific business activity and entity type in the governance configuration, so that the framework knows when to call the rule during change request processing.
The typical configuration steps are: define or confirm the entity type and attribute in the data model that will receive the derived value, build the BRF+ decision table or rule expression with the correct context (the input attributes MDG passes in, such as country, entity type, classification), map the rule's output back to the target field, and assign this rule to the correct processing step, commonly a step tied to entity validation and derivation configuration for that business object and business activity (create, change, or both).
Runtime flow matters because timing determines what data is available when the rule fires. Typically, derivation rules execute after the user has entered or changed data in the UI, at a defined checkpoint before the change request advances, and potentially again at later workflow steps if configured to re-run.
This means a rule that depends on an attribute filled in a later UI step may not yet have that attribute available if it runs too early, producing an empty or default fallback value. Conversely, if a derivation runs multiple times across the change request lifecycle without idempotent logic, it can unexpectedly overwrite a value that a downstream approver manually corrected.
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
- Code example
- 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.