DHSQL_REPLICATION_METRIC
Statistics of SQL replication
DHSQL_REPLICATION_METRIC is a CDS View that provides data about "Statistics of SQL replication" in SAP S/4HANA. It reads from 2 data sources (DHRDB_API_METRIC, dhsql_replicatn) and exposes 7 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| DHRDB_API_METRIC | metr | left_outer |
| dhsql_replicatn | repl | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Statistics of SQL replication | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| schema_name | dhsql_replicatn | sql_service_name | SQL Service ID | |
| object_name | dhsql_replicatn | alias_name | Short Description | |
| Uname | dhsql_replicatn | uname | User Name | |
| package_size | dhsql_replicatn | portion_size | INT4 | |
| process_data | DHRDB_API_METRIC | processed_bytes | ||
| data_read | DHRDB_API_METRIC | data_read | ||
| created_at | dhsql_replicatn | created_at | Uploaded On |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view DHSQL_REPLICATION_METRIC.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW DHSQL_REPLICATION_METRIC AS
SELECT
repl.sql_service_name AS schema_name,
repl.alias_name AS object_name,
repl.uname AS Uname,
repl.portion_size AS package_size,
metr.processed_bytes AS process_data,
metr.data_read AS data_read,
repl.created_at AS created_at
FROM dhsql_replicatn AS repl
LEFT OUTER JOIN DHRDB_API_METRIC AS metr ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA