R_SWWFLEXPROCMOSTRECENT
###GENERATED Core Data Service Entity
R_SWWFLEXPROCMOSTRECENT is a CDS View that provides data about "###GENERATED Core Data Service Entity" in SAP S/4HANA. It reads from 3 data sources (swp_header, swwflexproc, swwflexproc) and exposes 27 fields with key field WorkflowInternalIdentifier. It has 2 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| swp_header | head | from |
| swwflexproc | proc | right_outer |
| swwflexproc | proc | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_StepLogMostRecent | _steplog | _steplog.WorkflowInternalIdentifier = head.wf_id |
| [*] | swpsteplog | steplog | steplog.wf_id = proc.wi_id |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | ###GENERATED Core Data Service Entity | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowInternalIdentifier | swp_header | wf_id | Workflow ID |
| Guid | swp_header | flex_id | WorklistID | |
| WorkflowScenarioDefinition | swp_header | wfd_id | Workflow definition | |
| WorkflowResourceChangedAt | swwflexproc | change_ts | Time Stamp | |
| WorkflowInstanceStatus | swwflexproc | status | Workflow Status | |
| WorkflowDefinitionIdentifier | swwflexproc | original_id | UUID | |
| WorkflowScenarioVersion | swwflexproc | scenario_version | Version | |
| WorkflowResourceFormatVersion | swwflexproc | format_version | Field of length 16 | |
| IsReviewFlow | swwflexproc | is_review_flow | Is Review Flow | |
| WorkflowLeadingObject | swwflexproc | appl_obj_id | Instance ID | |
| OriginalWorkflowResourceXML | swwflexproc | stream | Streams Allowed | |
| WorkflowInstanceChangedAt | _steplog | Timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| SAPApplicationComponent | _Component | SAPApplicationComponent | ||
| wi_idasWorkflowInternalIdentifier | ||||
| Guid | swwflexproc | id | WorklistID | |
| WorkflowScenarioDefinition | swwflexproc | scenario_id | Workflow definition | |
| WorkflowResourceChangedAt | swwflexproc | change_ts | Time Stamp | |
| WorkflowInstanceStatus | swwflexproc | status | Workflow Status | |
| WorkflowDefinitionIdentifier | swwflexproc | original_id | UUID | |
| WorkflowScenarioVersion | swwflexproc | scenario_version | Version | |
| WorkflowResourceFormatVersion | swwflexproc | format_version | Field of length 16 | |
| IsReviewFlow | swwflexproc | is_review_flow | Is Review Flow | |
| WorkflowLeadingObject | swwflexproc | appl_obj_id | Instance ID | |
| OriginalWorkflowResourceXML | swwflexproc | stream | Streams Allowed | |
| WorkflowInstanceChangedAt | steplog | timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| SAPApplicationComponent | _Component | SAPApplicationComponent | ||
| LocalLastChangedAt | swwflexproc | local_last_changed_at | Time Stamp |
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 R_SWWFLEXPROCMOSTRECENT.
-- 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.
CREATE VIEW R_SWWFLEXPROCMOSTRECENT AS
SELECT
head.wf_id AS WorkflowInternalIdentifier,
head.flex_id AS Guid,
head.wfd_id AS WorkflowScenarioDefinition,
proc.change_ts AS WorkflowResourceChangedAt,
proc.status AS WorkflowInstanceStatus,
proc.original_id AS WorkflowDefinitionIdentifier,
proc.scenario_version AS WorkflowScenarioVersion,
proc.format_version AS WorkflowResourceFormatVersion,
proc.is_review_flow AS IsReviewFlow,
proc.appl_obj_id AS WorkflowLeadingObject,
proc.stream AS OriginalWorkflowResourceXML,
_steplog.Timestamp AS WorkflowInstanceChangedAt,
_Component.SAPApplicationComponent AS SAPApplicationComponent,
proc.local_last_changed_at as LocalLastChangedAt AS wi_idasWorkflowInternalIdentifier,
proc.local_last_changed_at AS LocalLastChangedAt
FROM swp_header AS head
RIGHT OUTER JOIN swwflexproc AS proc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN R_StepLogMostRecent AS _steplog ON _steplog.WorkflowInternalIdentifier = head.wf_id -- association [1..1]
LEFT OUTER JOIN swpsteplog AS steplog ON steplog.wf_id = proc.wi_id -- association [*]
-- UNION ALL with additional select branch(es): swwflexproc
;
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