Data Replication of Customer Master Data Using ALE
Replication of master data from the MDG hub to the connected systems and clients can be done using Application Link Enabling (ALE).
Set up RFC connections (in both directions: hub to client and client to hub for ADRMAS and DEBMAS)
Set up the RFC connection: Run transaction SM59
(configuration of RFC connections) and provide the required RFC destination details.
To define a logical system in Customizing for SAP Netweaver
run transaction SALE
and then choose . Enter all target systems/clients as logical systems.
Create Global Company code for ALE
Run this activity in Customizing for SAP Netweaver
under . Create cross system company codes and map all company codes in use to the global company code defined.
Maintain distribution model in SAP ERP (Outbound) for the distribution of Customer Master using ADRMAS and DEBMAS:
Run transaction SALE
(Display ALE Customizing) and choose . Alternatively, run transaction BD64
(Display Distribution Model).
In change mode, create a new model. Choose the Create Model View
. Enter a short text and a technical name.
Choose Add Message Type
for the newly created model.
Enter names for the logical source and destination systems and choose message type DEBMAS
.
Choose Add BAPI
for the newly created model.
Enter the logical sender system and receiver system. In the Obj.Name/Interface
field, enter AddressOrg and in the Method
field, enter SaveReplica.
Create partner profile
Run transaction SALE
and choose . Alternatively, run transaction BD82
(Generate Partner Profile).
Select the newly created model and in the Partner System
field, enter the logical destination system.
Enter the ALE-User and the following values in the corresponding fields, and execute.
Field | Value |
|---|---|
Version | 3 |
Pack Size | 100 |
Output Mode | Transfer IDoc immediately |
Inb. Parameters: Processing | Trigger immediately |
To verify your settings, run transaction WE20
and from the Partner Profiles
menu, choose Partner type LS
. Verify that Partner type LS
is the logical destination system.
In the detail screen, the chosen message types ADRMAS
and DEBMAS
must appear as outbound parameters.
Distribute model view to receiving system.
Run transaction SALE
and choose . Alternatively, run transaction BD64
.
Select the new model and choose .
Verify that the correct receiving system is marked and choose Enter
.
Verify within the receiving system that the model view was created.
Run transaction SALE
and choose . Alternatively, run transaction BD82
.
Select the distributed model and the partner system.
Enter the ALE-User and the following values in the corresponding fields, and execute.
Field | Value |
|---|---|
Version | 3 |
Pack Size | 100 |
Output Mode | Transfer IDoc immediately |
Inb. Parameters: Processing | Trigger immediately |
To verify your settings, run transaction WE 20
and from the partner profiles menu, choose partner type LS. Verify that partner type LS is the logical destination system.
In the detail screen, the chosen message types ADRMAS
and DEBMAS
must appear as inbound parameters.
Replication ALE Using the Data Replication Framework (DRF)
Prerequisite: Receiving systems/clients are defined in the SLD (system landscape directory). For more information, see Customizing for Master Data Governance, Central Governance under .
Define technical settings for business system under .
To define a new business system and to maintain the logical system for the receiving systems, choose New Entries
.
Enter a business system, for example ABC_123 and a logical system, for example ABCCLNT123, select the Define Bus. Systems, BOs
view, and enter the BO Type
159 (Customer).
Make sure that under in the line 986_5 (MDG Customer via ALE) the Sup. Key H
(Support Key Harmonization) flag is set.
Mark the BO Type
159 (Customer), select the Define Bus. Systems, BOs, Communication Channel
view, enter the C. Channel
Replication via IDoc, and select the value Key Mapping for the Key Harm.
field.
Note
If you select Harmonized IDs (no key mapping) for Key Harm.
you have to use ALE inbound. It is not possible to import data using MDG DIF (Data Import Framework).
Define replication model (replication of customer) under
Using New Entries
, define a new replication model and enter a description.
Mark the line and choose Assign Outbound Implementation
. Create a new entry and enter the following values:
Outb. Impl.: 986_5 (MDG Customer via ALE)
Communication Channel: Replication via IDoc
Filter time: 2 (filter after change analysis)
Mark the line and choose Assign Target System for Repl. Model/Outb.Impl
. Create a new entry and enter the business system name for the receiving system created in the step before.
Choose Assign Outbound Parameter
. Create a new entry, enter the following values, and save.
Outb. Parameter: PACK_SIZE_BULK
Outb. Parameter value: 100 (example value)
Return to the Define Replication Model
view. Optionally, you can also add an expiration time for the log.
Choose Save
to save your entries.
Mark the newly created replication model, and choose Activate
.
For more information, see Master Data Governance, Central Governance
under .
Enable monitoring of IDoc posting (ALE Audit)
In the hub system: Run transaction BD64
to maintain a distribution model and define the direction MDG client to MDG hub.
For more information about distribution models, see Distribution Model.
Open transaction WE20
and navigate to the partner profile for the client system.
Enter the following inbound parameters without changing further data:
Message type: ALEAUD
Process code: AUD2
Replicate the distribution model to the target system using transaction BD64
.
In the client system: To generate a partner profile open transaction SALE
and choose . Then select .
Open transaction WE20
, navigate to the partner profile and enter the outbound parameter ALEAUD.
To configure the replication of audit documents open the transaction SALE
and choose .
You can schedule the report RBDSTATE as a background job to run on a regular base.