Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 5 of 6

Replication to connected systems

10 min

Listen to this lesson

0:00 / 9:23

Governing a record is half the job. The other half is getting the activated record to every system that needs it, in the right format and with the right identifiers. In MDG on SAP S/4HANA this is done by the Data Replication Framework (DRF). DRF decides what goes where, when and how. Even with co-deployment, where the operational record in SAP S/4HANA is updated directly, other systems still need the data: at Contoso, the warranty claims app on SAP BTP needs customers and products.

The DRF building blocks

Replication modelGroups which business objects go to which receiving systems, with the outbound implementations to use; activated before use
Outbound implementationThe delivered logic that sends one object type in one format, for example business partners by SOAP or materials by IDoc
FiltersRestrict which records go to a receiver, such as only customers in company code 1710
Business systemsLogical names for receivers, with technical settings such as key harmonization
Communication channelSOAP services, ALE/IDoc, RFC or file, directly or via middleware such as SAP Integration Suite
Key and value mappingTranslation of identifiers and code values between MDG and each receiver
The parts of a DRF set-up. Customizing is reached through transaction DRFIMG.
The Sign-Off Table · thesignofftable.com/academy/sap-xpr-206
ModeWhenTool
InitializationFirst load of a receiver, or re-sending everything that matches the filtersDRFOUT, replication mode initialization
Change replicationOngoing: changed records are collected and sentChange pointers processed by DRFOUT, often scheduled
Direct replicationImmediately after activation, triggered by the processConfigured per replication model
ManualResend selected records after an error is fixedDRFOUT for selected keys, or from the MDG UI

Replication modes. For MDG-F (financials), SAP recommends starting replication from the MDG UI rather than DRFOUT, because DRFOUT does not handle the edition logic properly.

Replication of a changed customer to the warranty claims app, with the confirmation updating key mapping.
The Sign-Off Table · thesignofftable.com/academy/sap-xpr-206

Key mapping and value mapping

If a receiver uses the same keys as MDG, no key mapping is needed. If it assigns its own numbers, MDG must remember which key in the receiver belongs to which record. A receiver can send its new number back, and MDG stores it in the key mapping. Value mapping translates code values, such as a country code or a payment term, where the receiver uses different codes. Both must be set up during the project and are a frequent source of replication errors.

Key mapping links an MDG record to its key in each receiving system; value mapping translates code lists per receiver.
The Sign-Off Table · thesignofftable.com/academy/sap-xpr-206
Contoso receiverObjectsChannelKeys
Warranty claims app (SAP BTP)Customers (sold-to and ship-to), products CMC-ALT-100 and CMC-ALT-240SOAP via SAP Integration Suite in CMC_PRODApp assigns its own IDs; key mapping kept in MDG
Data warehouse extract (planned)Customers and suppliersFile or API, to be decidedSame keys as MDG; no key mapping

Contoso's replication targets (illustrative course data).

Formats you will meet

Business partners are commonly replicated with SOAP services, and with ALE IDocs where receivers expect them: DEBMAS for customers, CREMAS for suppliers and MATMAS for materials. RFC and file channels exist for special cases. Each receiver gets the format it can process, so one activation can produce several messages in different formats. With co-deployment, remember that the operational record is updated by activation itself; DRF is only needed for systems outside CMP. For the warranty claims app, Theo's team maps the SOAP message in SAP Integration Suite to the app's own API, and the app returns its identifier in a confirmation.

Question to ask per receiverWhy it matters
Which objects and which parts of each object?Defines the outbound implementation and any segment filters
Which records?Defines object filters, for example by company code or sales area
How quickly?Direct replication or scheduled change replication
Whose keys and codes?Defines key mapping and value mapping
Who watches errors?Defines monitoring and the resend process

Five questions that make up the replication design for one receiver.

Monitoring replication

  • DRFRSD (Display Object Replication Status) gives an overview of what was sent where and whether it succeeded.
  • SLG1 with object DRF_OUTBOUND shows detailed application logs for replication errors.
  • For IDoc channels, the IDoc monitors show the message status; for SOAP, the service monitoring in the sending system and in SAP Integration Suite.
  • In the MDG UI, a replication status function on a record shows its replication logs.
  • A "no key mapping found" warning in the log usually means the receiver never confirmed a key, or key mapping was not maintained.

What goes wrong in testing

PitfallConsequencePrevention
Only the create case testedChanges and blocks never reach the receiverTest create, change, block and mark for deletion
Filters uncheckedMonterrey customers leak to a US-only receiverTest records just inside and just outside each filter
Key mapping not verifiedDuplicates in the receiver after the next changeChange the record twice and check the receiver has one record
Receiver down during testErrors never retriedTest the resend path after an outage

Typical replication test failures.

What would you do?

After go-live of MDG, the warranty claims app shows two records for Great Lakes Fleet Services. The DRF log for the second message has a "no key mapping found" warning. What is the most likely cause?

Key points
  • DRF sends governed records to receivers: replication model, outbound implementations, filters, channels.
  • Modes: initialization, change replication, direct and manual resend (DRFOUT).
  • Key mapping and value mapping are needed when receivers use different keys or codes.
  • Monitor with DRFRSD, SLG1 (DRF_OUTBOUND) and the integration layer.

Check your understanding · not graded

Lesson check

  1. 1. Which transaction triggers outbound replication runs, for example an initialization?

  2. 2. When is key mapping needed for a receiving system?

  3. 3. Where do you look for detailed replication error logs?

  4. 4. Why test changes twice for a receiver with its own keys?