SRFD_DocumentDataHierarchySrc
Generated Document Data Hierarchy Source
SRFD_DocumentDataHierarchySrc is a CDS View that provides data about "Generated Document Data Hierarchy Source" in SAP S/4HANA. It reads from 1 data source (SRFD_DocumentDataEnriched) and exposes 24 fields with key field StatryRptDocDataUUID. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| SRFD_DocumentDataEnriched | SRFD_DocumentDataEnriched | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| p_schema_id | srf_schema_id | |
| p_partition_no | srf_partition_no |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | SRFD_DocumentDataHierarchySrc | _Parent | $projection.StatryRptDocUUID = _Parent.StatryRptDocUUID and $projection.StatryRptSchemaParentElementId = _Parent.StatryRptSchemaElementId and $projection.StatryRptSchemaParentAttribId = _Parent.StatryRptSchemaAttributeId and $projection.StatryRptParentSequenceNumber = _Parent.StatryRptSequenceNumber |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | Generated Document Data Hierarchy Source | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptDocDataUUID | StatryRptDocDataUUID | ||
| StatryRptDocUUID | StatryRptDocUUID | |||
| StatryRptTaskUUID | StatryRptTaskUUID | |||
| StatryRptgEntity | StatryRptgEntity | Reporting Entity | ||
| StatryRptCategory | StatryRptCategory | Report ID | ||
| StatryRptPeriodStartDate | StatryRptPeriodStartDate | Start Date | ||
| StatryRptPeriodEndDate | StatryRptPeriodEndDate | End Date | ||
| StatryRptReportingPeriodNumber | StatryRptReportingPeriodNumber | Period Number | ||
| StatryRptRunID | StatryRptRunID | Report Run ID | ||
| StatryRptDocument | StatryRptDocument | Snapshot ID | ||
| StatryRptSchemaElementId | StatryRptSchemaElementId | |||
| StatryRptSchemaAttributeId | StatryRptSchemaAttributeId | |||
| StatryRptSequenceNumber | StatryRptSequenceNumber | |||
| StatryRptSchemaParentElementId | StatryRptSchemaParentElementId | |||
| StatryRptSchemaParentAttribId | ||||
| StatryRptParentSequenceNumber | StatryRptParentSequenceNumber | |||
| StatryRptDocDataValue | StatryRptDocDataValue | |||
| StatryRptDocDataChangeInd | StatryRptDocDataChangeInd | |||
| StatryRptDocDataGeneratedValue | StatryRptDocDataGeneratedValue | |||
| StatryRptDocDataModifiedValue | StatryRptDocDataModifiedValue | |||
| StatryRptSchemaRefElementId | StatryRptSchemaRefElementId | |||
| StatryRptDocDataRefValue | StatryRptDocDataRefValue | |||
| StatryRptSchemaSingleValLeafEl | StatryRptSchemaSingleValLeafEl | |||
| _Parent | _Parent |
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 SRFD_DocumentDataHierarchySrc.
-- 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.
-- Parameters: p_schema_id : srf_schema_id, p_partition_no : srf_partition_no
CREATE VIEW SRFD_DocumentDataHierarchySrc AS
SELECT
StatryRptDocDataUUID,
StatryRptDocUUID,
StatryRptTaskUUID,
StatryRptgEntity,
StatryRptCategory,
StatryRptPeriodStartDate,
StatryRptPeriodEndDate,
StatryRptReportingPeriodNumber,
StatryRptRunID,
StatryRptDocument,
StatryRptSchemaElementId,
StatryRptSchemaAttributeId,
StatryRptSequenceNumber,
StatryRptSchemaParentElementId,
'' AS StatryRptSchemaParentAttribId,
StatryRptParentSequenceNumber,
StatryRptDocDataValue,
StatryRptDocDataChangeInd,
StatryRptDocDataGeneratedValue,
StatryRptDocDataModifiedValue,
StatryRptSchemaRefElementId,
StatryRptDocDataRefValue,
StatryRptSchemaSingleValLeafEl
FROM SRFD_DocumentDataEnriched
LEFT OUTER JOIN SRFD_DocumentDataHierarchySrc AS _Parent ON StatryRptDocUUID = _Parent.StatryRptDocUUID AND StatryRptSchemaParentElementId = _Parent.StatryRptSchemaElementId AND StatryRptSchemaParentAttribId = _Parent.StatryRptSchemaAttributeId AND StatryRptParentSequenceNumber = _Parent.StatryRptSequenceNumber -- association [0..*]
;
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