SAP MDG · COMMUNITY
How do I configure replication for an MDG custom object using flex mode?
In MDG flex mode, active custom-object data is stored in generated tables and replicated with DRF from the model's active data only. The source guide shows an end-to-end example using data model ZZ, business object ZZSF, outbound interface ZZ_SFLIGHT, replication model ZZSF, and runtime execution with DRFOUT.
In MDG flex mode, active custom-object data is stored in generated tables and replicated with DRF from the model's active data only. The source guide shows an end-to-end example using data model ZZ, business object ZZSF, outbound interface ZZ_SFLIGHT, replication model ZZSF, and runtime execution with DRFOUT.
In the flex option, MDG Custom Object active data is stored in generated tables, and replication is performed through the Data Replication Framework using the active data only. The guide’s example walks through model ZZ, entities CARR and CURR, outbound interface ZZ_SFLIGHT, and replication model ZZSF.
Process flow
- Create/generate flex data model `ZZ` with `CARR`, `CURR`, and their relationship.
- Identify generated tables with `
USMD_DATA_MODEL`. - If required, enable key mapping.
- Create Business Object Type and Main Context assignment.
- Define Object Node.
- Create/assign Object Identifier Type.
- Generate `CARR` and `CURR` data-model-specific structures.
- Verify generated structures in `SE11`.
MDGIMGGeneral Settings > Data Modeling > Edit Data Model
Create and generate the flex data model `ZZ` with entity types `CARR` and `CURR`.
SE38Run report `USMD_DATA_MODEL`
Identify the generated tables for the flex data model.
Define a Mapping Context for UKMS > Define Mapping Contexts
Enable key mapping if required and maintain mapping context/custom tables with Z namespace.
DRFIMGData Replication > Enhance Default Settings for Outbound Implementations > Define Business Objects and Object Identifiers
Create the Business Object Type and assign key structures to object identifiers.
SE80Create package and function group
Create package `Z_ZZ_PACKAGE` and function group `Z_ZZ_FUNC_GROUP`.
Create and maintain the outbound interface model
Create outbound interface model `ZZ_SFLIGHT` and generate function module `ZZ_SFLIGHT`.
Referenced tables
| Object | Purpose |
|---|---|
USMD_DATA_MODEL | Used to identify the generated tables for the flex data model. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- What does this guide cover?
- How is custom-object master data distributed from MDG?
- What is the difference between flex and reuse replication?
Possible questions
- Give me the end-to-end configuration for MDG custom-object replication in flex mode.
- Which transactions are used for MDG custom-object replication?
- How do I create the ZZ flex model?
- How do I set up DRFOUT for a flex custom object?
- What is the purpose of
USMD_DATA_MODELin this scenario?