Configuring and Extending Entity Types, Attributes, and Relationships
A practical walkthrough of how consultants extend or configure MDG data models by adding entity types, attributes, and relationships, and how these choices ripple into UI, rules, and replication.
Explanation
Once a consultant moves beyond understanding data models conceptually, the next step is configuring or extending them for real project requirements. Common scenarios include adding a custom attribute to a standard entity type (for example, a new classification field on Business Partner), creating a new custom entity type to govern an object not covered by standard content, or defining a new relationship between existing entity types to support a business scenario such as linking a Supplier record to a custom risk assessment entity. When extending a standard entity type, the attribute typically needs to exist first at the underlying business object or API level, often through an append structure or an extension mechanism appropriate to the object type. Once the field exists at that level, it is mapped into the MDG data model as an attribute of the corresponding entity type. This mapping step is what allows MDG's change request framework, validation and derivation rules, and workflow-driven UI to reference the field. Skipping this mapping and trying to reference the field only in a UI layer without model awareness leads to fields that display but do not participate correctly in governance logic, validation, or replication. Creating a new custom entity type is a more significant undertaking. It requires defining the entity type's key structure, its attributes, and importantly, its relationship to existing entity types if it is meant to be edited in the context of another governed object, such as being a dependent entity of a Business Partner. Relationships in the data model are typically hierarchical (parent-child) or associative, and the choice affects how the change request UI nests information, how many change requests are needed to touch related data, and how validation rules can navigate from one entity to a related one when checking cross-entity consistency. A critical intermediate-level skill is understanding the downstream impact of data model changes. Adding an attribute affects: the UI configuration (a new field must be placed on a UI floorplan to be visible and editable), the rule framework (validations or derivations may need to reference the new attribute), and replication (if the new attribute must flow to receiving systems, the corresponding replication model or interface mapping must also be updated so the attribute is not silently dropped in transit). Neglecting any one of these three areas is a very common integration gap: consultants add a field to the model and UI, but forget to extend replication mapping, so business users see and edit a field that never reaches the receiving ERP or subscriber system. In S/4HANA on-premise and private cloud editions, this configuration work is generally accessible to project teams through standard extensibility tooling and configuration activities, with reasonable flexibility to add custom entity types and relationships. In S/4HANA Cloud Public Edition, extensibility is more constrained: SAP provides defined extension points and in-app extensibility tools, and the ability to freely create arbitrary new entity types or relationships is more limited, with SAP's cloud extensibility framework governing what is possible. Consultants should validate current extensibility scope for the specific cloud edition and release in question rather than assuming on-premise-level flexibility. Testing a data model change should always include: verifying the field is visible and editable through the correct UI floorplan for the applicable change request type, verifying at least one relevant validation or derivation rule can read or write the new attribute, and verifying the field round-trips correctly through any relevant replication or activation step so it lands correctly in the receiving system's corresponding structure.
Code example
* Conceptual example of an entity type attribute addition (illustrative, not literal syntax)* Step 1: Extend underlying business object structure* - Add custom field ZZRISK_CATEGORY to Supplier extension structure* Step 2: Map field as attribute on MDG entity type* - Entity Type: Supplier* - New Attribute: ZZRISK_CATEGORY (mapped to extension field)* Step 3: Add attribute to UI configuration* - Floorplan: Supplier Change Request - General Data tab* - Field: ZZRISK_CATEGORY, editable, with label 'Risk Category'* Step 4: Reference attribute in a validation rule* - Rule: IF ZZRISK_CATEGORY = 'HIGH' THEN require approval step* Step 5: Confirm attribute is included in outbound replication mapping* - Interface/Replication Model: Supplier Master* - Field mapping: ZZRISK_CATEGORY -> corresponding target field or custom BAdI mappingReal project scenario
A project team is asked to add a supplier risk classification field that must trigger an additional approval step in the change request workflow when set to 'HIGH', and must also be visible in the receiving ERP system after activation. The consultant extends the underlying structure, maps the field into the data model as an attribute, places it on the appropriate UI tab, wires a validation rule to route high-risk changes through an extra approval step, and separately confirms with the integration team that the replication mapping includes the new field so it is not lost during distribution to the target system.
Common mistakes
โข Adding a field to the UI without first confirming it exists as a mapped attribute on the entity type in the data model. โข Forgetting to update replication or interface mapping after adding a new attribute, causing the field to be edited but never sent downstream. โข Creating new relationships without considering how they change the number of change requests needed to complete a business transaction. โข Assuming public cloud extensibility matches on-premise flexibility for creating new entity types or relationships. โข Not testing validation or derivation rules against the new attribute before considering the change complete.
Best practices
โข Treat every data model attribute addition as a four-part change: business object extension, data model mapping, UI placement, and replication mapping. โข Involve the integration or interface team early when a new attribute must reach receiving systems, rather than discovering the gap in testing. โข Use relationship design to minimize unnecessary change request fragmentation while keeping data model complexity manageable. โข Validate extensibility scope for the specific SAP deployment edition before committing to a design that assumes full on-premise flexibility. โข Include end-to-end round-trip testing (UI entry, rule evaluation, replication) in the test plan for any data model change.
Interview angle
Expect questions about the end-to-end impact of adding a custom field to an MDG governance object: candidates should be able to describe the chain from business object extension, to data model attribute mapping, to UI placement, to rule referencing, to replication mapping, showing they understand this is a multi-layer change rather than a single configuration step.