SRFD_DocumentDataEnriched
Generated Document Data
SRFD_DocumentDataEnriched is a CDS View that provides data about "Generated Document Data" in SAP S/4HANA. It reads from 5 data sources (SRFD_DocumentData, SRFD_SchemaElementEnriched, srf_rep_run, srf_rep_run_doc, srf_reporting) and exposes 24 fields with key field StatryRptDocDataUUID.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| SRFD_DocumentData | doc_data | from |
| SRFD_SchemaElementEnriched | SchElem | inner |
| srf_rep_run | srf_rep_run | inner |
| srf_rep_run_doc | srf_rep_run_doc | inner |
| srf_reporting | srf_reporting | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| p_schema_id | srf_schema_id | |
| p_partition_no | srf_partition_no |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SRFV_DOCDATENRCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Generated Document Data | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptDocDataUUID | SRFD_DocumentData | StatryRptDocDataUUID | UUID |
| StatryRptDocUUID | SRFD_DocumentData | StatryRptDocUUID | UUID | |
| StatryRptTaskUUID | SRFD_DocumentData | StatryRptTaskUUID | UUID | |
| StatryRptgEntity | srf_reporting | reporting_entity | Reporting Entity | |
| StatryRptCategory | srf_reporting | rep_cat_id | Report ID | |
| StatryRptPeriodStartDate | srf_reporting | begin_of_period | Start Date | |
| StatryRptPeriodEndDate | srf_reporting | end_of_period | End Date | |
| StatryRptReportingPeriodNumber | srf_reporting | reporting_period_num | Period Number | |
| StatryRptRunID | srf_rep_run | report_run_id | Report Run ID | |
| StatryRptDocument | srf_rep_run_doc | document_id | Snapshot ID | |
| StatryRptSchemaElementId | SRFD_DocumentData | StatryRptSchemaElementId | OAN Element ID | |
| StatryRptSchemaAttributeId | SRFD_DocumentData | StatryRptSchemaAttributeId | INT4 | |
| StatryRptSequenceNumber | SRFD_DocumentData | StatryRptSequenceNumber | Sqnc No. in Ext File | |
| StatryRptParentSequenceNumber | SRFD_DocumentData | StatryRptParentSequenceNumber | Sqnc No. in Par File | |
| StatryRptSchemaParentElementId | SRFD_SchemaElementEnriched | StatryRptSchemaParentElementId | ||
| StatryRptDocDataGeneratedValue | SRFD_DocumentData | StatryRptDocDataGeneratedValue | Value | |
| StatryRptDocDataModifiedValue | SRFD_DocumentData | StatryRptDocDataModifiedValue | Value | |
| StatryRptDocDataValue | SRFD_DocumentData | StatryRptDocDataValue | ||
| StatryRptDocDataChangeInd | SRFD_DocumentData | StatryRptDocDataChangeInd | Change Type | |
| StatryRptSchemaRefElementId | SRFD_SchemaElementEnriched | StatryRptSchemaRefElementId | ||
| StatryRptSchemaSingleValLeafEl | SRFD_SchemaElementEnriched | StatryRptSchemaSingleValLeafEl | ||
| StatryRptPartitionNo | ||||
| StatryRptPreviousSeqNo | SRFD_DocumentData | StatryRptPreviousSeqNo | ||
| StatryRptSubordinalNo | SRFD_DocumentData | StatryRptSubordinalNo | Subordinal Number |
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_DocumentDataEnriched.
-- 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.
-- SQL view name: SRFV_DOCDATENRCD
-- Parameters: p_schema_id : srf_schema_id, p_partition_no : srf_partition_no
CREATE VIEW SRFD_DocumentDataEnriched AS
SELECT
doc_data.StatryRptDocDataUUID AS StatryRptDocDataUUID,
doc_data.StatryRptDocUUID AS StatryRptDocUUID,
doc_data.StatryRptTaskUUID AS StatryRptTaskUUID,
srf_reporting.reporting_entity AS StatryRptgEntity,
srf_reporting.rep_cat_id AS StatryRptCategory,
srf_reporting.begin_of_period AS StatryRptPeriodStartDate,
srf_reporting.end_of_period AS StatryRptPeriodEndDate,
srf_reporting.reporting_period_num AS StatryRptReportingPeriodNumber,
srf_rep_run.report_run_id AS StatryRptRunID,
srf_rep_run_doc.document_id AS StatryRptDocument,
doc_data.StatryRptSchemaElementId AS StatryRptSchemaElementId,
doc_data.StatryRptSchemaAttributeId AS StatryRptSchemaAttributeId,
doc_data.StatryRptSequenceNumber AS StatryRptSequenceNumber,
doc_data.StatryRptParentSequenceNumber AS StatryRptParentSequenceNumber,
SchElem.StatryRptSchemaParentElementId AS StatryRptSchemaParentElementId,
doc_data.StatryRptDocDataGeneratedValue AS StatryRptDocDataGeneratedValue,
doc_data.StatryRptDocDataModifiedValue AS StatryRptDocDataModifiedValue,
doc_data.StatryRptDocDataValue AS StatryRptDocDataValue,
doc_data.StatryRptDocDataChangeInd AS StatryRptDocDataChangeInd,
SchElem.StatryRptSchemaRefElementId AS StatryRptSchemaRefElementId,
SchElem.StatryRptSchemaSingleValLeafEl AS StatryRptSchemaSingleValLeafEl,
$parameters.p_partition_no AS StatryRptPartitionNo,
doc_data.StatryRptPreviousSeqNo AS StatryRptPreviousSeqNo,
doc_data.StatryRptSubordinalNo AS StatryRptSubordinalNo
FROM SRFD_DocumentData AS doc_data
INNER JOIN srf_reporting ON /* join condition not captured in parsed metadata */
INNER JOIN srf_rep_run_doc ON /* join condition not captured in parsed metadata */
INNER JOIN srf_rep_run ON /* join condition not captured in parsed metadata */
INNER JOIN SRFD_SchemaElementEnriched AS SchElem 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