ERPClimb logoERPClimb
Derivations
Master Data Governanceintermediate 8 min read

Configuring and Troubleshooting Derivation Rules: Runtime Flow and Diagnostics (Part 2)

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

Configuring and Troubleshooting Derivation Rules: Runtime Flow and Diagnostics (Part 2) — learning sheetIn one line: 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.ERPClimb.com / MDG / LESSON 2/4 / LEARNING SHEETConfiguring and Troubleshooting Derivation Rules: RuntimeFlow and Diagnostics (Part 2)1 · IN ONE LINELearn how derivation rules are configured using the MDG rule framework and BRF+, how theyexecute during the change request lifecycle, and how to troubleshoot when derived values arewrong, missing, or inconsistent.2 · KEY IDEAS EXPLAINED1Once the business need for a derivation is clear,an MDG configuration specialist implements it bylinking a BRF+ application (or the relevant ruleartifact in the applicable release) to thespecific business activity and entity type in thegovernance configuration, so that the framework…2Runtime flow matters because timing determineswhat data is available when the rule fires.Typically, derivation rules execute after the userhas entered or changed data in the UI, at adefined checkpoint before the change requestadvances, and potentially again at later workflow…3Integration considerations: derived values becomepart of the active area of the change request andlater part of the master record once the changerequest completes, so any distribution orreplication happening afterward will carry thederived value, not the original entered value. If…4Troubleshooting a misbehaving derivation typicallystarts by reproducing the exact input combinationthat produced the wrong output and testing theBRF+ rule in isolation using its owntrace/simulation capability, if available in therelease, to confirm whether the rule itself is…3 · DO · AVOIDBest practice!Common mistakeAlways include an explicit fallback/defaultoutcome in decision tables to avoid blank…Verify and document which business activities(create, change, or both) and which workflow…Maintain a test matrix covering everymeaningful attribute combination plus at least…✕Omitting a fallback/default row in decisiontables, causing blank or null results for any…✕Assuming a derivation rule fires at the sameprocessing step for both create and change…✕Mapping the wrong source attribute into therule context, so the rule technically runs but…4 · IN A REAL PROJECTDuring UAT for an MDG material governance rollout, testers report that valuation class is derived correctlyfor materials created in the base plant but comes back blank for a newly onboarded plant. Investigation showsthe decision table only had rows for the original three plants; the new plant combination fell through to a…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

Free account

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

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.