Extend SAP Master Data Governance (MDG) -S / SAP Master Data Governance (MDG) -C Data Model by a New Field (Reuse Option)

SAP Master Data Governance provides an out-of-the box solution for the central management of various master data objects such as financial objects, supplier, and material. But SAP Master Data Governance also provides the flexibility to customize the solution, when pre-delivered content does not fully match customer requirements. Download the Document

PUBLICHow-To: Extend MDG-S / MDG-C by a newcustom-defined field (reuse option)Applicable Releases:From EhP6 for SAP ERP 6.0 and from S/4HANA 1511Version 4.0December 2024
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material.2 / 65Document HistoryDocument Version Description1.0 First official release of this guide (March 2012)2.0 Layout (July 2020)3.0 Additional information (August 2022)4.0 Additional information (December 2024)
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material.3 / 651. BUSINESS SCENARIO 41.1. DATA M ODEL 42. STEP BY STEP EXPLANATION 52.1. E XTENDED FIELD EXISTS IN BUSINESS P ARTNER O NLY 52.1.1. Extend the BUT000 Data Model 72.1.2. Extend the MDG Data Model 92.1.3. Generate Data Model-Specific Structures for MDG 112.1.4. Define SMT Mapping 132.1.5. Check Customizing 192.1.6. Define Field Properties for UI 202.1.7. Custom Handler Class 202.1.8. Define Field Mapping for SAP HANA-Based Search 212.1.9. Enhance Search UIBB 232.1.10. Adjust Staging Area of Linked Change Requests 252.1.11. Test Your Configuration 252.2. E XTENDED FIELD EXISTS IN VENDOR / CUSTOMER O NLY 272.2.1. Extend the MDG Data Model 282.2.2. Generate Data Model-Specific Structures for MDG 312.2.3. Define SMT Mapping 332.2.4. Test Your Configuration 392.3. E XTENDED FIELD EXISTS IN BUSINESS P ARTNER AND IN VENDOR / CUSTOMER 412.3.1. Extend LFA1 422.3.2. Implement Enhancement Spot CVI_CUSTOM_MAPPER 452.3.3. Test Your Configuration 472.4. USER I NTERFACE CONFIGURATION 482.4.1. Adaptation Options in Floorplan Manager 482.4.2. Adding a New Field to UI for Single Maintenance (BUT000 Extension Case) 492.4.3. Adding a New Field to the UI for Single Maintenance (Extended Field Exists in Vendor / Customer Only)513. ADDITIONAL INFORMATION 543.1. FURTHER READING 543.1.1. Information on SAP MDG on SAP S/4HANA 543.1.2. SAP Roadmap Explorer 543.1.3. Related Information 543.2. SAP N OTES 544. APPENDIX 564.1. E XAMPLE CODING FOR CLASS ZCL_CUSTOM_BP_HANDLER 56
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material.4 / 651. BUSINESS SCENARIOSAP Master Data Governance provides business processes to find, create, change, and mark master datafor deletion. It supports the governance of master data in a central hub and the distribution to connectedoperational and business intelligence systems.Domain-specific content (data models, user interfaces, workflows) is provided as part of the standard forseveral application areas. It is a common requirement from customers to adapt the MDG data models to theirspecific needs.This How To Guide describes how to extend the data model BP by adding attributes that already exist asdatabase fields in the appropriate customer includes.1.1. Data ModelIn SAP Master Data Governance data can be stored in the staging area or in the active area. The stagingarea temporarily stores the working version of master data that is undergoing change within a changerequest process. The active area permanently stores active instances of master data after changes havebeen approved by a change request process.Extending the data model in SAP Master Data Governance with custom attributes involves changes to thedata structures in the active area and in the staging area. It also involves defining a mapping between these.You can extend the data model BP by adding attributes that already exist as database fields in theappropriate ERP tables. This method of extending the data model is called the MDG reuse option.Your implementation of the reuse option depends on the ERP tables that store the master data after it isactivated. The following options are available: Extended field exists in Business Partner Extended field exists in Vendor / CustomerThe new field is only extended as a database field in the customer include Ext. Interface:Central Vendor Data / Data Fields (VMDS_EI_VMD_CENTRAL_DATA) for the vendor datamodel as well as in either the customer include Ext. Interface: Central Vendor Data / X-Fields (VMDS_EI_VMD_CENTRAL_DATA_XFLAG) for the vendor data model or in theequivalent customer include for the customer data model. Extended Field Exists in Business Partner and in Vendor / CustomerThe new field is extended as a database field in both the Business Partner and in customerincludes for vendor / customer.Each of the sections in this document contains detailed step-by-step implementation instructions. Follow thesteps in the section that is appropriate for your scenario.These cases are also shown in the figure below.Note:You can create new attributes in the customer namespace, for example, under ZZ* and YY*.Add field( reuse )Field only inBusiness PartnerField only inVendor /CustomerField in both BPand Vendor /Customer
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material.5 / 652. STEP BY STEP EXPLANATIONEven though we have to distinguish three cases for the field extension, the implementation steps are verysimilar. The implementation involves the following main tasks: Extending the ERP data model Extending the MDG data model Generating the MDG data model specific structures Defining SMT mapping Implement CVI mapping (if applicable)The main differences in the implementation approaches can be identified from the table below. During thestep “define SMT mapping” it is important to map to the right structures. If the field extension was made inboth business partner and vendor / customer you must additionally implement the CVI mapping (but onlySMT mapping to BP is necessary).Implementation Steps Field only inBusiness PartnerField only inVendor/CustomerField in both BP andVendor/ CustomerExtend ERP data model Extend MDG data model Generate MDG data model Define SMT mapping 1 2 1Implement CVI mapping Table: Implementation steps for extending the MDG-S/C data model by a new fieldSMT Mappings1MDG staging ↔ Business Partner2MDG staging ↔ Vendor / Customer2.1. Extended Field Exists in Business Partner OnlyYou want to extend the MDG data model for Business Partner by additional fields. The fields are added tothe Central Data entity type as shown in the figure below.