P_EHSWorkflowHeader

DDL: P_EHSWORKFLOWHEADER Type: view COMPOSITE

P_EHSWorkflowHeader is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (swwwihead) and exposes 9 fields with key field WorkflowTaskInternalID.

Data Sources (1)

SourceAliasJoin Type
swwwihead swwwihead from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PEHSWFLHDR view
AbapCatalog.buffering.status #SWITCHED_OFF view
AbapCatalog.buffering.type #NONE view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY WorkflowTaskInternalID wi_id WorkItem ID
WorkflowTaskStatus wi_stat Status
WorkflowTaskDefinition wi_rh_task Task
WorkflowTaskPriority wi_prio Priority
WrkflwTskCreationUTCDateTime crea_tmp Created On
WrkflwTskCompletionUTCDateTime wi_aed_timestamp Completed
TopLevelWorkflowTask top_wi_id Top Level Workflow
WorkflowTaskCreatedByUser wi_cruser Creator
WorkflowTaskName wi_text Work item text

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 P_EHSWorkflowHeader.
-- 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 P_EHSWorkflowHeader AS
SELECT
  wi_id AS WorkflowTaskInternalID,
  wi_stat AS WorkflowTaskStatus,
  wi_rh_task AS WorkflowTaskDefinition,
  wi_prio AS WorkflowTaskPriority,
  crea_tmp AS WrkflwTskCreationUTCDateTime,
  wi_aed_timestamp AS WrkflwTskCompletionUTCDateTime,
  top_wi_id AS TopLevelWorkflowTask,
  wi_cruser AS WorkflowTaskCreatedByUser,
  wi_text AS WorkflowTaskName
FROM swwwihead
;