SAP MDG · DATA MODEL UI

How do I extend an SAP MDG Business Partner data model with a custom entity using the Reuse Option?

Use the Reuse Option pattern: create a type 4 custom entity under the BP parent in MDGIMG, generate the model-specific structures, map it in a handler class inheriting from CL_MDG_BS_ECC_HANDLER, connect it through GenIL and VC_MDG_BS_GENIL_C, and persist activated data with an update-task function module to a custom active table.

Use the Reuse Option pattern: create a type 4 custom entity under the BP parent in MDGIMG, generate the model-specific structures, map it in a handler class inheriting from CL_MDG_BS_ECC_HANDLER, connect it through GenIL and VC_MDG_BS_GENIL_C, and persist activated data with an update-task function module to a custom active table.

Use the Reuse Option pattern for MDG BP extensions: define the custom entity in MDGIMG with Storage/Use Type 4 and Key Assignment 3, generate the staging/mapping structures, connect the entity in GENIL_MODEL_BROWSER and VC_MDG_BS_GENIL_C, then implement the access handler to move data between staging, API structures, and the active table during activation.

Process flow

  1. Create the custom active table in SE11.
  2. Extend data model BP in MDGIMG with a type 4 entity and key assignment 3.
  3. Create the relationship to the parent entity with the required cardinality.
  4. Generate the data model-specific structures.
  5. Append the API DATA/DATAX structures.
  6. Implement the handler class inheriting from CL_MDG_BS_ECC_HANDLER.
  7. Map staging to API in MAP_DATA_2API.
  8. Map API/active data back to staging in MAP_DATA_2STA and read active data in READ_OBJECT_DATA . Persist activated data in SAVE_ADDITIONAL_OBJECT_DATA using an update-task FM. Extend the GenIL model in GENIL_MODEL_BROWSER and map it in VC_MG
SE11

Create active table

Define the custom active-area table for persistent BP extension fields.

MDGIMG

General Settings → Data Modeling → Edit Data Model

Create the custom BP entity, set Storage and Use Type 4, key assignment 3, and define the relationship to the parent entity.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
General Settings
Data Modeling
Edit Data Model
GENIL_MODEL_BROWSER

Create the GenIL dependent object and relation under BP_Root

Expose the custom entity in BOL/GenIL.

SM34

View cluster VC_MDG_BS_GENIL_C

Map the MDG data model entity to the GenIL component BUPA.

SE80

Copy standard component configuration such as FPM_FORM_UIBB_GL2 or list UIBB configuration

Create the custom UIBB configuration and add it to the BP OVP.

Referenced tables

ObjectPurpose
ZLFA1_EXTExample custom active table for persisted BP extension data.
/1MD/*Generated MDG staging tables created by model generation.

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

Related questions and keywords

Alternative questions

  • How do I add a custom BP sub-node in MDG using Reuse Option?
  • What are the steps to implement a custom MDG BP entity with staging, GenIL, and active-table persistence?
  • How do I configure a type 4 BP entity and persist it to a custom table in SAP MDG?

Possible questions

  • How do I add a custom BP sub-node in MDG using Reuse Option?
  • What are the steps to implement a custom MDG BP entity with staging, GenIL, and active-table persistence?
  • How do I configure a type 4 BP entity and persist it to a custom table in SAP MDG?
  • Which handler class methods are used for MDG BP custom entity mapping?
  • How do I connect a custom MDG entity to the BP UIBB in FPM?
  • Why does a custom MDG BP value disappear after entry?
  • How do I troubleshoot missing active-table updates after activation?

Keywords

SAP MDGBusiness PartnerBP extensionReuse Optioncustom entityStorage and Use Type 4Key Assignment 3MDGIMGGENIL_MODEL_BROWSERVC_MDG_BS_GENIL_CCL_MDG_BS_ECC_HANDLERMAP_DATA_2APIMAP_DATA_2STAREAD_OBJECT_DATASAVE_ADDITIONAL_OBJECT_DATAIN UPDATE TASKFPMCL_BS_BP_GUIBB_FORMCL_BS_BP_CONNECTOR_BOL_REL/1MD/stagingactive table