SAP MDG · COMMUNITY

How do I add a custom table/node to Business Partner consolidation in SAP MDG?

Use this guide to add a customer-specific table such as ZSUPPLIER_RATING to Business Partner consolidation or mass processing on SAP MDG 8.0+ / SAP S/4HANA 1610+. The extension covers the consolidation classes, the process model, and the activation flow into a Change Request when Central Governance is in scope.

Use this guide to add a customer-specific table such as ZSUPPLIER_RATING to Business Partner consolidation or mass processing on SAP MDG 8.0+ / SAP S/4HANA 1610+. The extension covers the consolidation classes, the process model, and the activation flow into a Change Request when Central Governance is in scope.

This guide explains how to extend Business Partner consolidation or mass processing with a custom table such as ZSUPPLIER_RATING. It applies to SAP MDG 8.0 or higher and SAP S/4HANA 1610 or higher, and the example shows how supplier-rating data is loaded, processed, and finally stored in a custom Z-table after activation.

Process flow

  1. Use the guide to extend the Business Partner data model for MDG Consolidation or MDG Mass Processing.
  2. Prepare the prerequisite Central Governance extension if the data must flow into a Change Request.
  3. Create `ZCL_MDC_DATA_BP` inheriting from `CL_MDC_DATA_BP`.
  4. Redefine `TABLE_NAME_BY_TYPE` when the custom table name is 16 characters or when custom source/process table names are used.
  5. Redefine `APPEND_ACTIVE_RECORDS`.
  6. Redefine `IF_MDC_DATA~CONTAINS_LOB_DATA` if LOB data is involved.
  7. Create `ZCL_MDC_MODEL_BP` inheriting from `CL_MDC_MODEL_BP`.
  8. Redefine `READ_ALL_DATA`, `MAP_EXTENSIONS_2API`, and `SAVE_BUSINESS_PARTNER_ACTIVE`.
MDCIMG

Specify Process Model → View Cluster VC_MDC_MODEL → Business Object Type 147 → Tables

Add `ZSUPPLIER_RATING` as a process table for Business Partner and maintain the table/model relationships.

SE19

Enhancement Spot MDG_BS_CUST_SUPP_CR_SI

Create the BAdI implementation for Change Request staging integration.

Referenced tables

ObjectPurpose
ZSUPPLIER_RATINGCustomer-specific supplier-rating table used in the example.
ZSUPPLIER_RA_SRCGenerated source database table for the custom node.
ZSUPPLIER_RA_PRCGenerated process database table for the custom node.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • What is this guide about?
  • How do I add a custom table/node to Business Partner consolidation?
  • Which releases support this extension?

Possible questions

  • What is the supplier-rating business scenario?
  • Where is custom supplier-rating data stored after activation?
  • What must be extended before MDG can process a new table?
  • What are the three main extension areas?
  • Do I need to extend the Central Governance supplier model?
  • Is the MDG-S/MDG-C model extension covered by this guide?
  • Which data access class should I create?
  • What superclass does ZCL_MDC_DATA_BP inherit from?
  • When must TABLE_NAME_BY_TYPE be redefined?

Keywords

MDG ConsolidationMDG Mass ProcessingBusiness Partnernode extensiontable extensionSAP MDG 8.0S/4HANA 1610Supplier RatingsZSUPPLIER_RATINGsource tablesprocess tablescustom Z-tableMDG Consolidation classesprocess modelChange Requestcustomer tableCentral GovernanceERP SupplierprerequisiteMDG-S