SAP How-To Guide: Field Extension for
Business Partner/Supplier/Customer in
MDG Consolidation and Mass
Processing
Applies to:
SAP MDG, Consolidation and SAP MDG, Mass Processing running on release SAP MDG 8.0 or higher and
SAP S/4HANA 1610 or higher.
Summary
SAP MDG, Consolidation and SAP MDG, Mass Processing are applications that provide master data
consolidation capabilities for SAP Business Suite customers focusing on those who already use SAP MDG.
If the domain-specific solution does not fully meet customer requirements, these applications can be
customized and extended. This guide explains how to extend the data model for the Business Partner data
model by creating a new field.
Company: SAP SE
Created on: February 2020
Version: 1.1
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 1
SAP How-To Guide: Field Extension for Business Partner/Supplier/Customer in MDG Consolidation and Mass Processing
Table of Contents
Applies to: ........................................................................................................................................................... 1
Summary............................................................................................................................................................. 1
Table of Contents ............................................................................................................................................... 2
Introduction ......................................................................................................................................................... 3
Scenario – New Supplier Field ........................................................................................................................... 3
Step by step Implementation Guide ................................................................................................................... 4
1. Extend Process Model ........................................................................................................................... 4
2. Extend MDG for writing new field into Change Request ....................................................................... 6
3. Data Dictionary Objects ......................................................................................................................... 6
Data Element ZLICENSE CHAR10 .............................................................................................................................. 6
Structure ZLFA1_APPEND with field ZLICENSE type ZLICENSE .............................................................................. 6
Enhance Table LFA1 with Append Structure ZLFA1_APPEND ................................................................................... 6
Copyright............................................................................................................................................................. 7
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 2
SAP How-To Guide: Field Extension for Business Partner/Supplier/Customer in MDG Consolidation and Mass Processing
Introduction
This document explains how to add a new field to the Business Partner data model.
If you have used Customizing includes (for example, INCL_EEW_BUT000) to extend your Business Partner
Model, these extensions are automatically part of MDG Consolidation tables and you don’t have to extend
the MDG Consolidation data model.
The following scenario is complex, especially with regards to integration with SAP MDG.
We recommend that you perform all corresponding steps from the following How-To Guide before working
with this one:
SAP How-To Guide: Extend MDG-S / MDG-C Data Model by a New Field (Reuse Option)
Scenario – New Supplier Field
You want to extend the MDG data model for Business Partner with an additional field for Supplier Data. The
field should be added to the General Data entity as shown in the figure below. How to add this field is
described in the Guide mentioned above. During a consolidation or mass process, the additional Supplier
Field is loaded into source, process, and result tables. The consolidation or mass process such as the
Matching or Best Record Calculation should be able to process this new field. After activation, the value of
this new field is stored in a custom Z-field.
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 3
SAP How-To Guide: Field Extension for Business Partner/Supplier/Customer in MDG Consolidation and Mass Processing
Step by step Implementation Guide
The following steps provide details on how to extend the BP data model by adding a new field, LICENSE, in
an append structure, for example, ZLFA1_APPEND in table LFA1 ERP Supplier.
For details of the individual DDIC-objects, refer to the Data Dictionary Objects section in the Appendix.
1. Extend Process Model
1. Start the Implementation Guide Activity Specify Process Model in the implementation guide for
Consolidation (Transaction MDCIMG).
2. Select Business Object Type 147 (Business Partner) and choose Resultant Artifacts.
3. The following screen appears.
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 4
SAP How-To Guide: Field Extension for Business Partner/Supplier/Customer in MDG Consolidation and Mass Processing
4. Select the Package in which you want to create the relevant DDIC-objects.
5. Please check if the new entries for “Source Append Name” and “Process Append Name” are unique.
You will find proposals in the screen above.
If the Customer Append Name has a length of 30 characters, then you must change the Source
Append Name and the Process Append Name into unique names. You can do this by deleting the
last 4 characters and enhancing it with _SRC for the Source Append Name and _PRC for the
Process Append Name.
In all other cases, you can take the proposals.
6. Select the row in Table LFA1 with the corresponding appends.
7. Choose Apply Selected Templates & Appends .
Now all relevant DDIC-objects relevant for consolidation using the new Supplier Append Structure have been
created.
Fields using a “Large Object Binary” data type
If your custom field uses a “Large Object Binary” related data type (e.g. a string, blob, raw binary or similar),
you need to enhance the create and redefine the Business Partner Data Access class.
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 5
SAP How-To Guide: Field Extension for Business Partner/Supplier/Customer in MDG Consolidation and Mass Processing
Create a new class ZCL_MDC_DATA_BP that inherits from class CL_MDC_DATA_BP. The new class will
then be used in consolidation processes involving Process Model 147 (Business Partner). The following
method must be redefined:
• IF_MDC_DATA~ CONTAINS_LOB_DATA
A redefinition of this method is only required if the new custom field is using a “large binary object”
data type. In this case, ensure that the method returns “abap_true” for the affected table(s).
2. Extend MDG for writing new field into Change Request
The previously mentioned prerequisite extensibility guide for MDG “Extend MDG-S / MDG-C Data Model by
a New Field (Reuse Option)” describes the steps required for extending MDG-S / MDG-C with a new field.
For LFA1 please execute the following steps from the Guide above:
• Section Extend LFA1:
o Add the structure ZLFA1_APPEND to table LFA1
o Add the structure ZLFA1_APPEND to structure VMDS_EI_VMD_CENTRAL_DATA
o Add the structure ZLFA1_APPEND to structure VMDS_EI_VMD_CENTRAL_DATA_XFLAG
Activate the changes.
• Section Adjust Staging Area of Linked Change Requests
• Section Define SMT mapping:
o Mapping SUPPL_BP_VENGEN_2API
o Mapping SUPPL_BP_VENGEN_2STA
• Enhance the UI with the New Field.
3. Data Dictionary Objects
This section contains all DDIC-objects that have not been automatically created / generated and are used in
the example implementation.
Data Element ZLICENSE CHAR10
Structure ZLFA1_APPEND with field ZLICENSE type ZLICENSE
Enhance Table LFA1 with Append Structure ZLFA1_APPEND
Result
The process model for Business Partner has been extended with a new field. The consolidation or mass
process result can be written into the active database table and into Change Requests.
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 6
SAP How-To Guide: Field Extension for Business Partner/Supplier/Customer in MDG Consolidation and Mass Processing
Copyright
© Copyright 2020 SAP SE. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,
iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,
PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,
BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,
Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of
Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts
Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by
Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned
herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and
other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document
serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP
Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the
express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an
additional warranty.
SAP COMMUNITY NETWORK https://community.sap.com/topics/master-data-governance
© 2020 SAP SE 7