P_EHSWorkflowTask

DDL: P_EHSWORKFLOWTASK Type: view BASIC

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

Data Sources (1)

SourceAliasJoin Type
swwwihead swwwihead from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PEHSWFTASK view
AbapCatalog.buffering.status #SWITCHED_OFF view
AbapCatalog.buffering.type #NONE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (13)

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
TopLevelWorkflowTaskDefinition top_task Top Task
WorkflowTaskCreatedByUser wi_cruser Creator
WorkflowTaskName wi_text Work item text
WorkflowTaskType wi_type Type
WorkflowTaskDefinitionExeType
EHSTaskInstanceStepNodeID

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_EHSWorkflowTask.
-- 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_EHSWorkflowTask 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,
  top_task AS TopLevelWorkflowTaskDefinition,
  wi_cruser AS WorkflowTaskCreatedByUser,
  wi_text AS WorkflowTaskName,
  wi_type AS WorkflowTaskType,
  cast( substring(def_guid, 29, 1) as swd_wfd_id ) AS WorkflowTaskDefinitionExeType,
  cast( substring(def_guid, 30, 10) as swd_wfd_id ) AS EHSTaskInstanceStepNodeID
FROM swwwihead
;