ERPClimb logoERPClimb
Derivations
Master Data Governanceintermediate 8 min read

Configuring and Troubleshooting Derivation Rules with BRFplus in MDG (Part 3)

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

Configuring and Troubleshooting Derivation Rules with BRFplus in MDG (Part 3) — learning sheetIn one line: 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.ERPClimb.com / MDG / LESSON 3/4 / LEARNING SHEETConfiguring and Troubleshooting Derivation Rules withBRFplus in MDG (Part 3)1 · IN ONE LINELearn how derivation rules are built using BRFplus (or the rules engine available in yourMDG release), wired into the data model and UI, executed at runtime, and diagnosed whenvalues fail to populate as expected.2 · KEY IDEAS EXPLAINED1Derivations exist to remove manual, error-pronedata entry by letting the system infer fieldvalues from other known data. In MDG, the mostcommon implementation vehicle is BRFplus (BusinessRule Framework plus), which is invoked through aderivation step attached to a Business Activity or…2The design starts with identifying the triggerpoint: derivations can fire on initial creation ofa change request, on saving a step, beforevalidation, or when a specific field changes (forexample, deriving a reconciliation account when aG/L account's account group and chart of accounts…3At runtime, when a user progresses a changerequest or the workflow step is processed, theframework resolves the sequence of activederivation steps for that Business Activity,builds the context object from current entitydata, and calls into BRFplus. BRFplus evaluates…4Common configuration constructs include decisiontables keyed by combinations of master dataattributes (e.g., country plus material typederives a default valuation class), formulas forconcatenation or numeric calculations (e.g.,building a search term from multiple fields), and…3 · DO · AVOIDBest practice!Common mistakeDocument the sequence of derivation andvalidation steps for each Business Activity so…Always include a default/catch-all row orfallback logic in decision tables to avoid…Use BRFplus simulation and trace tools tovalidate context data before assuming a rule…✕Assuming a derivation is active withoutchecking the Business Activity/entity…✕Building decision tables without a default orcatch-all row, so unmatched input combinations…✕Mapping BRFplus context fields to sourcefields that are not yet populated at the point…4 · IN A REAL PROJECTA global chemicals company governs material master records in MDG and wants to auto-derive the default storagecondition and hazardous material indicator based on material group and country of production, so plant datastewards do not have to look up this mapping manually. The team builds a BRFplus decision table keyed by…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

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
  • 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.