The data that needs to be managed and governed via a governance process is determined by the data model definition.
The standard content provides the option to configure what data needs to be governed based on the available data entities and attributes of the data model. It also provides the option to add additional entities or attributes that aren’t part of the standard data model.
Some common use cases for data model extension are adding industry-specific master data attributes, adding enhanced data fields that already exist in the master data repository tables (extended SAP S/4HANA and SAP ERP tables), adding process-specific attributes, and adding fields that need to exist only in SAP Master Data Governance staging tables and not in SAP S/4HANA and SAP ERP tables (flex option), among others. These requirements can be achieved by adding additional entities or extending the standard entities with new attributes. These new entities can be mapped to the reuse area or can be flex entities. The relationships between the new entities and the existing entities need to be maintained to validate the data. The most common use cases for a data model extension include the following:
The following sections discuss various steps to implement these data model enhancements, from adding attributes to the standard data model to adding new entities to data models.
Adding attributes to the standard data model can be accomplished by adding attributes to the existing entities or defining an entity relationship. Attributes can be added only to storage type 1 or type 4 entities. The new entities can be flex entities or reuse entities, based on the entity definition and type of data (master, reference, process-specific, etc.). If the newly added field is part of a check table or has foreign keys, then a storage type 3 entity is defined, and a relationship is configured with the linked entity. If the field already exists in the SAP S/4HANA and SAP ERP tables (reuse option), mappings between the staging and active area need to be maintained through the SMT mapping.
For the business partner data model, if the business partner-related field needs to be part of the customer or vendor UI, CVI mapping needs to be defined to map the field from the business partner model to the corresponding customer or vendor field. Because the finance data model (0G), unlike the material master or business partner data model, is based on the flex option, SMT mapping isn’t required.
The customer namespace for adding fields is ZZ or YY. A namespace and custom package need to be provided on configuration; the structures are generated on activation of the data model. They can be visualized in the configuration view to display the graphical model. The generated tables can also be verified by Transaction MDG_DATA_MODEL.
After the data model is extended, the data model is activated and generated so that the extended fields can be used in the governance process. The staging area needs to be adjusted by running report USMD_ADJUST_STAGING, which helps in adjusting the staging area for the linked change requests. The generated structures are used to configure and extend the UIs based on the entity/attribute relationships.
After the attributes to be enhanced or added are identified, the standard data model can be extended. For the business partner data model enhancements, CVI mapping needs to be updated if the business partner fields need to be mapped to the customer/supplier structure. You can extend the model by following these steps:
The data model can be extended with additional entities. The data associated with these entities can be stored in SAP Master Data Governance or in SAP S/4HANA and SAP ERP tables upon activation of the change request. The newly defined entities need to be linked to other entities via relationships. The cardinality of the relationship is determined based on the data set.
The steps to extend the standard data model with new entities are the same. For the material data model, the MDG_BS_MAT_API_SEGMENTS_ EXT Business Add-In (BAdI) is also implemented.
After the data model is extended, the UI needs to be enhanced. For the business partner model, the Generic Interaction Layer (GenIL) model is also extended to connect the data model with the GenIL model, which integrates the model fields to the UI. The mapping of the GenIL model to the data model is done through view cluster VC_MDG_BS_GENIL_C (Transaction SM34).
Editor’s note: This post has been adapted from a section of the book SAP Master Data Governance: The Comprehensive Guide by Bikram Dogra, Antony Isacc, Homiar Kalwachwala, Dilip Radhakrishnan, Syama Srinivasan, Sandeep Chahal, Santhosh Cheekoti, Rajani Khambhampati, Vikas Lodha, and David Quirk.