DHRDB_API_PACKAGE
CDS View for replication portions
DHRDB_API_PACKAGE is a CDS View that provides data about "CDS View for replication portions" in SAP S/4HANA. It reads from 3 data sources (DHRDB_METRICS_PACKAGE, dhrdb_package, dhrdb_producer) and exposes 14 fields with key fields producer_id, buffer_id, package_id, Objname, Objtype.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| DHRDB_METRICS_PACKAGE | met | left_outer |
| dhrdb_package | pack | inner |
| dhrdb_producer | prod | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CDS View for replication portions | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | producer_id | dhrdb_producer | producer_id | Registration ID |
| KEY | buffer_id | dhrdb_package | buffer_id | Buffer Table ID |
| KEY | package_id | dhrdb_package | package_id | Report Chain ID |
| KEY | Objname | dhrdb_producer | objname | Table Name |
| KEY | Objtype | dhrdb_producer | objtype | Translation OType |
| NumberofRecords | DHRDB_METRICS_PACKAGE | number_of_records | Value | |
| ProcessedRecords | DHRDB_METRICS_PACKAGE | processed_records | ||
| ProcessedBytes | DHRDB_METRICS_PACKAGE | processed_bytes | ||
| Status | dhrdb_package | status | Workflow Status | |
| StatusTs | dhrdb_package | status_ts | Time Stamp | |
| PrioReadEnabled | dhrdb_package | prio_read_enabled | Priority Read Enab | |
| PartitionId | dhrdb_package | partition_id | UUID | |
| ProducerType | dhrdb_producer | producer_type | Producer Type Code | |
| ConsumerType | dhrdb_producer | consumer_type | Consumer Type Code |
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_API_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_API_PACKAGE AS
SELECT
prod.producer_id AS producer_id,
pack.buffer_id AS buffer_id,
pack.package_id AS package_id,
prod.objname AS Objname,
prod.objtype AS Objtype,
met.number_of_records AS NumberofRecords,
met.processed_records AS ProcessedRecords,
met.processed_bytes AS ProcessedBytes,
pack.status AS Status,
pack.status_ts AS StatusTs,
pack.prio_read_enabled AS PrioReadEnabled,
pack.partition_id AS PartitionId,
prod.producer_type AS ProducerType,
prod.consumer_type AS ConsumerType
FROM dhrdb_producer AS prod
INNER JOIN dhrdb_package AS pack ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN DHRDB_METRICS_PACKAGE AS met 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