SRFD_DocumentDataHierarchySrc

DDL: SRFD_DOCUMENTDATAHIERARCHYSRC Type: view_entity

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)

SourceAliasJoin Type
SRFD_DocumentDataEnriched SRFD_DocumentDataEnriched from

Parameters (2)

NameTypeDefault
p_schema_id srf_schema_id
p_partition_no srf_partition_no

Associations (1)

CardinalityTargetAliasCondition
[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)

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

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