R_SWWFLEXPROCMOSTRECENT

DDL: R_SWWFLEXPROCMOSTRECENT Type: view_entity

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

SourceAliasJoin Type
swp_header head from
swwflexproc proc right_outer
swwflexproc proc union_all

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_StepLogMostRecent _steplog _steplog.WorkflowInternalIdentifier = head.wf_id
[*] swpsteplog steplog steplog.wf_id = proc.wi_id

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
Metadata.allowExtensions true view
EndUserText.label ###GENERATED Core Data Service Entity view
Metadata.ignorePropagatedAnnotations true view

Fields (27)

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