Extending and Customizing MDG Data Models with Custom Entities and Relationships (Part 4)
Preview · a free account unlocks the full lesson
Learn how consultants extend standard MDG data models by adding custom entity types, attributes, and relationships to support governance requirements that go beyond delivered master data domains, and how these extensions ripple through UI, workflow, and replication layers.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Standard MDG data models for business partner, material, cost center, supplier and custom objects cover common attributes, but almost every real implementation needs extensions: additional classification codes, region-specific compliance fields, relationships to custom reference objects, or entirely new governed entity types for domains SAP does not deliver out of the box (contracts, assets, pricing conditions, or industry-specific master records).
Understanding how the data model layer connects to everything downstream is what separates a consultant who can configure fields from one who can design a governance solution that survives support pack upgrades.
The data model in MDG is the foundation layer: it defines entity types, their attributes, key structures, and relationships between entities (for example, a business partner entity related to an address entity, or a material entity related to plant-specific data).
Every other governance artifact — UI configuration, change request (CR) type, workflow, validation/derivation rules, data replication framework (DRF) outbound settings — is built on top of this model. When you extend the model, you are not just adding a field; you are extending the contract that all these layers rely on.
A typical extension pattern for adding attributes follows this sequence: first, identify whether the target entity type already exists in the delivered model (most implementations reuse standard entities like business partner or material rather than building custom entity types from scratch, because custom entity types require significantly more effort — you must define the full entity structure, key generation logic, and often custom BAdI implementations for validation, derivation, and UI rendering).
For attribute extensions, you typically work through the extension include structures provided for standard entities, add the field there, then activate the field in the relevant UI configuration (Web Dynpro floorplan or Fiori-based UI depending on deployment) and in the search/model configuration so the field is visible in change requests and staging.
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.