SAP MDG · REPLICATION OUTBOUND
How do I configure data replication for an SAP MDG custom object using the flex option?
Configure the MDG custom object in flex mode by building the flex data model, generating the model-specific structures, setting up the DRF outbound interface and filter, assigning the replication model, and then running DRFOUT. Replication sends active data only; inactive data remains in the generated MDG tables.
Configure the MDG custom object in flex mode by building the flex data model, generating the model-specific structures, setting up the DRF outbound interface and filter, assigning the replication model, and then running DRFOUT. Replication sends active data only; inactive data remains in the generated MDG tables.
To configure MDG custom-object replication in the flex option, first create and generate the flex data model, then set up the DRF outbound interface, filter, and replication model. The guide’s example uses a customer model `ZZ` with entities `CARR` and `CURR`, and it shows that replication is driven from active data only.
Process flow
- Create and generate flex data model `ZZ` in `MDGIMG`
- Maintain `CARR`, add `URL`, maintain `CURR`, and define the `CARR`-`CURR` relationship
- Run `
USMD_DATA_MODEL` in `SE38` to identify generated tables - If needed, define mapping context in `IDMIMG`
- Define business object type and object identifier assignment in `DRFIMG`
- Create object node type `ZZSF` and object identifier type `ZZSF`
- Generate `CARR` and `CURR` model-specific structures and verify in `SE11`
- Create package `Z_ZZ_PACKAGE` and function group `Z_ZZ_FUNC_GROUP` in `SE80`
MDGIMGGeneral Settings > Data Modeling > Edit Data Model
Create and generate the flex data model `ZZ`, maintain entities `CARR` and `CURR`, and define their relationship.
DRFIMGData Replication > Enhance Default Settings for Outbound Implementations
Define business objects, object identifiers, key-structure assignment, outbound implementations, filter objects, and replication model-related settings.
Define a Mapping Context for UKMS > Define Mapping Contexts
Optional key-mapping setup for the flex custom object.
Value Mapping Customizing
Referenced by the guide as the IMG transaction for value mapping.
SE38Run report `USMD_DATA_MODEL`
Identify generated tables for the flex data model.
SE80Create package / create function group
Create `Z_ZZ_PACKAGE` and `Z_ZZ_FUNC_GROUP` for the outbound interface objects.
Referenced tables
| Object | Purpose |
|---|---|
Generated flex tables | Active and inactive data persistence for the flex custom object model; the guide instructs you to identify them using `USMD_DATA_MODEL`. |
MARA | Example of active-data storage in the reuse option. |
LFA1 | Example of active-data storage in the reuse option. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- How do I configure replication for an MDG custom object using flex mode?
- What does this guide cover?
- How is custom-object master data distributed from MDG?
Possible questions
- What is the difference between flex and reuse replication?
- Where is active data stored in flex mode?
- Does MDG replicate inactive data?
- Which transactions are used for MDG custom-object replication?
- What is DRFIMG used for?
- What is IDMIMG used for?
- How do I create the ZZ flex model?
- Which example entities are used?
- How are CARR and CURR modeled?