DHRDB_METRICS_PACKAGE
Provides statistical data for RDB
DHRDB_METRICS_PACKAGE is a CDS View that provides data about "Provides statistical data for RDB" in SAP S/4HANA. It reads from 10 data sources and exposes 6 fields with key fields buffer_id, package_id.
Data Sources (10)
| Source | Alias | Join Type |
|---|---|---|
| DHRDB_EVENT_TAB_AGGR | co | left_outer |
| DHRDB_EVENT_TAB_AGGR | cr | from |
| dhrdb_metrics_tab_aggr | mi_lifespan | left_outer |
| dhrdb_metrics_tab_aggr | mi_num_bytes | left_outer |
| dhrdb_metrics_tab_aggr | mi_num_rec_arc | left_outer |
| dhrdb_metrics_tab_aggr | mi_num_rec_del | left_outer |
| dhrdb_metrics_tab_aggr | mi_num_rec_il | left_outer |
| dhrdb_metrics_tab_aggr | mi_num_rec_ins | left_outer |
| dhrdb_metrics_tab_aggr | mi_num_rec_upd | left_outer |
| dhrdb_metrics_tab_aggr | mi_read_ms | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Provides statistical data for RDB | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | buffer_id | DHRDB_EVENT_TAB_AGGR | buffer_id | Buffer Table ID |
| KEY | package_id | DHRDB_EVENT_TAB_AGGR | package_id | Report Chain ID |
| created_at | DHRDB_EVENT_TAB_AGGR | min_ts | ||
| committed_at | DHRDB_EVENT_TAB_AGGR | max_ts | ||
| package_size | dhrdb_metrics_tab_aggr | max_value | Maximum Value | |
| processed |
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 DHRDB_METRICS_PACKAGE.
-- 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 DHRDB_METRICS_PACKAGE AS
SELECT
cr.buffer_id AS buffer_id,
cr.package_id AS package_id,
cr.min_ts AS created_at,
co.max_ts AS committed_at,
mi_num_bytes.max_value AS package_size,
cast( co.one as abap.int8 ) AS processed
FROM DHRDB_EVENT_TAB_AGGR AS cr
LEFT OUTER JOIN DHRDB_EVENT_TAB_AGGR AS co ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_num_bytes ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_num_rec_il ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_num_rec_ins ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_num_rec_upd ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_num_rec_del ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_num_rec_arc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_lifespan ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dhrdb_metrics_tab_aggr AS mi_read_ms 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