DHSQL_REPLICATION_METRIC

DDL: DHSQL_REPLICATION_METRIC Type: view_entity

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)

SourceAliasJoin Type
DHRDB_API_METRIC metr left_outer
dhsql_replicatn repl from

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;