SRFD_DocumentDataFilterBase
Base view for preview filter grouping
SRFD_DocumentDataFilterBase is a CDS View that provides data about "Base view for preview filter grouping" in SAP S/4HANA. It reads from 2 data sources (SRFD_DocumentData, srf_element) and exposes 17 fields with key fields StatryRptDocUUID, StatryRptTaskUUID, StatryRptSchemaElementId, StatryRptSchemaAttributeId, StatryRptSequenceNumber. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| SRFD_DocumentData | RunData | from |
| srf_element | SchElem | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| p_partition_no | srf_partition_no | |
| p_element_id | srf_element_id | |
| p_schema_id | srf_schema_id | |
| p_log_version | srf_dmlg_version |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | srf_rep_run_dmlg | _RunLog | RunData.StatryRptDocUUID = _RunLog.parent_key and RunData.StatryRptSchemaElementId = _RunLog.element_id and RunData.StatryRptSequenceNumber = _RunLog.sequence_no and RunData.StatryRptParentSequenceNumber = _RunLog.parent_seq_no and _RunLog.dmlg_version = $parameters.p_log_version and (_RunLog.change_indicator = '' or _RunLog.change_indicator = 'N' ) |
| [1] | srf_rep_run_data | _RunDataParent | _RunDataParent.parent_key = RunData.StatryRptDocUUID and _RunDataParent.root_key = RunData.StatryRptTaskUUID and _RunDataParent.element_id = SchElem.parent_element_id and _RunDataParent.attribute_id is initial and _RunDataParent.sequence_no = RunData.StatryRptParentSequenceNumber and _RunDataParent.partition_no = $parameters.p_partition_no |
| [0..1] | SRFD_DocumentData | _RefElem | RunData.StatryRptDocUUID = _RefElem.StatryRptDocUUID and RunData.StatryRptTaskUUID = _RefElem.StatryRptTaskUUID and SchElem.reference_element_id = _RefElem.StatryRptSchemaElementId and RunData.StatryRptSequenceNumber = _RefElem.StatryRptSequenceNumber and RunData.StatryRptParentSequenceNumber = _RefElem.StatryRptParentSequenceNumber |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Base view for preview filter grouping | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptDocUUID | SRFD_DocumentData | StatryRptDocUUID | UUID |
| KEY | StatryRptTaskUUID | SRFD_DocumentData | StatryRptTaskUUID | UUID |
| KEY | StatryRptSchemaElementId | SRFD_DocumentData | StatryRptSchemaElementId | OAN Element ID |
| KEY | StatryRptSchemaAttributeId | SRFD_DocumentData | StatryRptSchemaAttributeId | INT4 |
| KEY | StatryRptSequenceNumber | SRFD_DocumentData | StatryRptSequenceNumber | Sqnc No. in Ext File |
| KEY | StatryRptParentSequenceNumber | SRFD_DocumentData | StatryRptParentSequenceNumber | Sqnc No. in Par File |
| StatryRptDocDataChangeInd | SRFD_DocumentData | StatryRptDocDataChangeInd | Change Type | |
| StatryRptPreviousSeqNo | SRFD_DocumentData | StatryRptPreviousSeqNo | ||
| StatryRptSubordinalNo | SRFD_DocumentData | StatryRptSubordinalNo | Subordinal Number | |
| StatryRptLogVersion | ||||
| StatryRptPartitionNo | ||||
| StatryRptSchemaParentElementId | srf_element | parent_element_id | Parent Id | |
| StatryRptSchemaRefElementId | srf_element | reference_element_id | Reference element Id | |
| StatryRptDocDataValue | SRFD_DocumentData | StatryRptDocDataValue | ||
| _RunLog | _RunLog | |||
| _RunDataParent | _RunDataParent | |||
| _RefElem | _RefElem |
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_DocumentDataFilterBase.
-- 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_partition_no : srf_partition_no, p_element_id : srf_element_id, p_schema_id : srf_schema_id, p_log_version : srf_dmlg_version
CREATE VIEW SRFD_DocumentDataFilterBase AS
SELECT
RunData.StatryRptDocUUID AS StatryRptDocUUID,
RunData.StatryRptTaskUUID AS StatryRptTaskUUID,
RunData.StatryRptSchemaElementId AS StatryRptSchemaElementId,
RunData.StatryRptSchemaAttributeId AS StatryRptSchemaAttributeId,
RunData.StatryRptSequenceNumber AS StatryRptSequenceNumber,
RunData.StatryRptParentSequenceNumber AS StatryRptParentSequenceNumber,
RunData.StatryRptDocDataChangeInd AS StatryRptDocDataChangeInd,
RunData.StatryRptPreviousSeqNo AS StatryRptPreviousSeqNo,
RunData.StatryRptSubordinalNo AS StatryRptSubordinalNo,
$parameters.p_log_version AS StatryRptLogVersion,
$parameters.p_partition_no AS StatryRptPartitionNo,
SchElem.parent_element_id AS StatryRptSchemaParentElementId,
SchElem.reference_element_id AS StatryRptSchemaRefElementId,
RunData.StatryRptDocDataValue AS StatryRptDocDataValue
FROM SRFD_DocumentData AS RunData
INNER JOIN srf_element AS SchElem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN srf_rep_run_dmlg AS _RunLog ON RunData.StatryRptDocUUID = _RunLog.parent_key AND RunData.StatryRptSchemaElementId = _RunLog.element_id AND RunData.StatryRptSequenceNumber = _RunLog.sequence_no AND RunData.StatryRptParentSequenceNumber = _RunLog.parent_seq_no AND _RunLog.dmlg_version = $parameters.p_log_version AND (_RunLog.change_indicator = '' OR _RunLog.change_indicator = 'N' ) -- association [0..*]
LEFT OUTER JOIN srf_rep_run_data AS _RunDataParent ON _RunDataParent.parent_key = RunData.StatryRptDocUUID AND _RunDataParent.root_key = RunData.StatryRptTaskUUID AND _RunDataParent.element_id = SchElem.parent_element_id AND _RunDataParent.attribute_id is initial AND _RunDataParent.sequence_no = RunData.StatryRptParentSequenceNumber AND _RunDataParent.partition_no = $parameters.p_partition_no -- association [1]
LEFT OUTER JOIN SRFD_DocumentData AS _RefElem ON RunData.StatryRptDocUUID = _RefElem.StatryRptDocUUID AND RunData.StatryRptTaskUUID = _RefElem.StatryRptTaskUUID AND SchElem.reference_element_id = _RefElem.StatryRptSchemaElementId AND RunData.StatryRptSequenceNumber = _RefElem.StatryRptSequenceNumber AND RunData.StatryRptParentSequenceNumber = _RefElem.StatryRptParentSequenceNumber -- association [0..1]
;
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