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

  1. Create and generate flex data model `ZZ` in `MDGIMG`
  2. Maintain `CARR`, add `URL`, maintain `CURR`, and define the `CARR`-`CURR` relationship
  3. Run `USMD_DATA_MODEL` in `SE38` to identify generated tables
  4. If needed, define mapping context in `IDMIMG`
  5. Define business object type and object identifier assignment in `DRFIMG`
  6. Create object node type `ZZSF` and object identifier type `ZZSF`
  7. Generate `CARR` and `CURR` model-specific structures and verify in `SE11`
  8. Create package `Z_ZZ_PACKAGE` and function group `Z_ZZ_FUNC_GROUP` in `SE80`
MDGIMG

General Settings > Data Modeling > Edit Data Model

Create and generate the flex data model `ZZ`, maintain entities `CARR` and `CURR`, and define their relationship.

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

Data Replication > Enhance Default Settings for Outbound Implementations

Define business objects, object identifiers, key-structure assignment, outbound implementations, filter objects, and replication model-related settings.

IDMIMG

Define a Mapping Context for UKMS > Define Mapping Contexts

Optional key-mapping setup for the flex custom object.

VMIMG

Value Mapping Customizing

Referenced by the guide as the IMG transaction for value mapping.

SE38

Run report `USMD_DATA_MODEL`

Identify generated tables for the flex data model.

SE80

Create package / create function group

Create `Z_ZZ_PACKAGE` and `Z_ZZ_FUNC_GROUP` for the outbound interface objects.

Referenced tables

ObjectPurpose
Generated flex tablesActive and inactive data persistence for the flex custom object model; the guide instructs you to identify them using `USMD_DATA_MODEL`.
MARAExample of active-data storage in the reuse option.
LFA1Example 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?

Keywords

MDGcustom objectflex optiondata replicationDRFactive datachange requestreuse optioninactive datagenerated tablesMARALFA1MDGIMGDRFIMGIDMIMGVMIMGData Replication Frameworkkey mappingvalue mappingZZ