Documente Academic
Documente Profesional
Documente Cultură
Replication
www.sap.com
TABLE OF CONTENTS
INTRODUCTION ............................................................................................................................................... 3
PREREQUISITES.............................................................................................................................................. 3
Technical Prerequisites .................................................................................................................................. 3
Content-related Prerequisites/Background Information ............................................................................. 3
When Is The Replication Log Registered?.................................................................................................... 3
Tables Relevant for Building Related HANA Views ......................................................................................... 3
GENERALLY REQUIRED CONFIGURATION STEPS .................................................................................... 5
CREATE THE RELATED CALCULATION VIEWS .......................................................................................... 5
CalculationView DataReplication Overview .................................................................................................. 6
Node Join Join_RplctnStatus_to_BusSyst ....................................................................................................... 6
Node Projection Projection_Status_Text .......................................................................................................... 7
Node Join Join_RplctnStatus_to_Text .............................................................................................................. 8
Node Projection ProjRplcntStatusWithBusSyst ................................................................................................. 8
Node Projection Projection_OTC_Text ............................................................................................................. 9
Node Join Join_RplctnStatus_to_OTC_Text ................................................................................................... 11
Node Aggregation ............................................................................................................................................ 12
Node Semantics .............................................................................................................................................. 13
CalculationView DataReplicationQuery ...................................................................................................... 14
Add Calculated Columns ................................................................................................................................. 14
Create xsodata service ................................................................................................................................. 14
Syntax: ............................................................................................................................................................. 14
Test the xsodata Service: ................................................................................................................................ 14
Result: .............................................................................................................................................................. 15
INTRODUCTION
Starting with SAP Master Data Governance 7.0 SP02 (Feature Pack) SAP HANA-Based analytical
functions have been delivered to monitor and analyze processes using agreed Key Performance Indicators
(KPIs). These KPIs are calculated based on information in change requests and information regarding the
replication of data. This document explains how to build HANA-based calculation views that can be used to
analyze whether data replication occurs in accordance with agreed KPIs.
PREREQUISITES
Technical Prerequisites
You have enabled he HANA-based analytics for SAP Master Data Governance process for your deployment
scenario (Replication Scenario or Integrated Scenario.
For more information, see refer to the central How-to-Guide available on SCN which can be accessed with
the link in the appendix (Error! Reference source not found.).
Content-Related Prerequisites/Background Information
When Is the Replication Log Registered?
Data replication from source systems (for example the MDG HUB) to target systems can be triggered using
the following techniques:
Transaction DRFOUT
This transaction calls an outbound implementation which must be configured in Customizing. An
outbound implementation has to be implemented in the particular master data applications. Replication
can be triggered as initialization or for collected change pointers.
Membership API
The Membership API is called mostly from the MDG applications (for example, Business Partner,
Customer, or Material) when a change request is submitted.
Tables Relevant for Building Related HANA Views
The following tables are the necessary ones for creating the related HANA-based views:
Table head
Data Element
Description
DRFD_OBJ_REP_STA
MANDT
DRF_GUID_16
MDG_BUSINESS_SYSTEM_ID
MDG_OBJECT_TYPE_CODE_BS
DRF_OBJECT_ID
DRF_MESSAGE_LINK
MDG_CREQUEST
DRF_OUTB_IMPL
MDG_COMM_CHANNEL
TIMESTAMP
DRF_REPSTAT
DRF_RUN_ID
BALLOGHNDL
DRF_REP_BLOCKED
DRF_MSG_GUID
MANDT
BUSINESS_SYSTEM
BUS_SYS_ID
LOGSYS
RFCDEST
FILE_PATH
DEF_STORAGE_SERV
UNICODE_SYSTEM
MDG_BUS_SYS_TECH
Client
ID for DRF in the form of GUID Raw
16
Internal ID of business system
Business Object Type
Object ID
Message Number
Change Request
Outbound Implementation
Communication Channel
UTC Time Stamp in Short Form
(YYYYMMDDhhmmss)
Replication Status
Run ID
Application Log: Log Handle
Replication Blocked
Message Guid
Client
Business System
Internal ID of Business System
Logical System
Logical Destination (Specified in
Function Call)
Logical File Path
Download to Presentation Server
MDGI_OTC_BS
UNICODE_CODE_PAG
DISABLED
OBJECT_TYPE_CODE
CONSTANT_NAME
IS_PROJECTION
MAIN_OBJECT
OITC_FOR_REPL
MDG_BUS_ScYS_ATTR
MANDT
BUSINESS_SYSTEM
BUSINESS_OBJECT
COMM_CHANNEL
OBJ_CORRELATION
UPD_KM
PERSISTENCE
TIME_DEPENDENCY
Client
Business System
Business Object Type
Communication Channel
Key Harmonization
Update Key Mapping within ALE Audit
Inbound Processing
Storage Location for Data Replication
Target System Supports Time
Dependency
Summary:
1. Create the calculation view DataReplication.
2. Create the calculation view DataReplicationQuery.
3. Create the odata service.
Select the Cross Client as default client and select the default schema from which you want to use the
tables.
10
11
Node Aggregation
12
Node Semantics
This calculation view does not have a data category and has no privileges.
13
CalculationView DataReplicationQuery
You use a query view as a basis for creating KPIs.
The data category is CUBE and the privilege is Analytic Privileges, default client is Cross Client.
In this view, measures are calculated.
Data Type
Exception Aggregation
Columns
TotalReplication
Integer
COUNT_DISTINCT
RunId
Formula
IsFailed
VARCHAR (1)
if("StatusName"='SE' OR
"StatusName"='PE','X',' ')
14
Result:
Browser starts with a valid XML document.
15
www.sap.com