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
- Create the custom active table in SE11.
- Extend data model BP in MDGIMG with a type 4 entity and key assignment 3.
- Create the relationship to the parent entity with the required cardinality.
- Generate the data model-specific structures.
- Append the API DATA/DATAX structures.
- Implement the handler class inheriting from CL_MDG_BS_ECC_HANDLER.
- Map staging to API in MAP_DATA_2API.
- 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
SE11Create active table
Define the custom active-area table for persistent BP extension fields.
MDGIMGGeneral 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.
GENIL_MODEL_BROWSERCreate the GenIL dependent object and relation under BP_Root
Expose the custom entity in BOL/GenIL.
SM34View cluster VC_MDG_BS_GENIL_C
Map the MDG data model entity to the GenIL component BUPA.
SE80Copy 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
| Object | Purpose |
|---|---|
ZLFA1_EXT | Example 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?