SRFD_DocumentDataEnriched

DDL: SRFD_DOCUMENTDATAENRICHED SQL: SRFV_DOCDATENRCD Type: view

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)

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

NameTypeDefault
p_schema_id srf_schema_id
p_partition_no srf_partition_no

Annotations (9)

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

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