P_LglCntntMWorkflowTaskDetail

DDL: P_LGLCNTNTMWORKFLOWTASKDETAIL SQL: PLGLCNTNTMWFTD Type: view COMPOSITE Package: VDM_LCM_LT

Legal Transaction Workflow Task Details

P_LglCntntMWorkflowTaskDetail is a Composite CDS View that provides data about "Legal Transaction Workflow Task Details" in SAP S/4HANA. It reads from 1 data source (I_LegalTransactionWorkflow) and exposes 19 fields with key fields LegalTransactionUUID, LegalTransactionTask. It has 5 associations to related views. Part of development package VDM_LCM_LT.

Data Sources (1)

SourceAliasJoin Type
I_LegalTransactionWorkflow I_LegalTransactionWorkflow from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_LglCntntMWorkflowTask _WorkflowTask $projection.WorkflowTaskInternalID = _WorkflowTask.WorkflowTaskInternalID and ( _WorkflowTask.WorkflowTaskType = 'W' or _WorkflowTask.WorkflowTaskType = 'B' )
[0..1] I_WorkflowTaskResultComment _WorkflowTaskResultComment _WorkflowTaskResultComment.WorkflowTaskInternalID = $projection.WorkflowTaskInternalID
[0..1] I_User _User _User.UserID = $projection.LegalTransactionTaskCurUsr
[0..*] I_WorkflowStepResultText _WorkflowTaskStepResult $projection.TopLevelWorkflowTaskDefinition = _WorkflowTaskStepResult.WorkflowScenarioDefinition and $projection.WorkflowTaskDefinitionVersion = _WorkflowTaskStepResult.WorkflowScenarioDefinitionVers and $projection.WorkflowTaskStepType = _WorkflowTaskStepResult.WorkflowStepType and $projection.WorkflowTaskResult = _WorkflowTaskStepResult.WorkflowStepResult
[1..1] I_LegalTransactionBase _LegalTransaction $projection.LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PLGLCNTNTMWFTD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Legal Transaction Workflow Task Details view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionUUID I_LegalTransactionWorkflow LegalTransactionUUID Universal Unique ID
KEY LegalTransactionTask
WorkflowTaskInternalID WorkflowTaskApplObject WorkflowTaskInternalID Work Item ID
LegalTransactionTaskStatus _WorkflowTask WorkflowTaskStatus
LegalTransactionTaskCrtedByUsr _WorkflowTask WorkflowTaskCreatedByUser
LegalTransactionTaskCurUsr _WorkflowTask WorkflowTaskCurrentUser
LglTransTskCrtnUTCDteTme _WorkflowTask WrkflwTskCreationUTCDateTime
LglCntntMTaskCompltnUTCDteTme _WorkflowTask WrkflwTskCompletionUTCDateTime
LegalTransactionTaskStatusName
TopLevelWorkflowTaskDefinition _WorkflowTask TopLevelWorkflowTaskDefinition
WorkflowTaskDefinitionVersion _WorkflowTask WorkflowTaskDefinitionVersion
WorkflowTaskStepType _WorkflowTask WorkflowTaskStepType
WorkflowTaskResult _WorkflowTask WorkflowTaskResult
LegalTransaction _LegalTransaction LegalTransaction Legal Transaction ID
LegalTransactionTitle _LegalTransaction LegalTransactionTitle Title
WorkflowTaskResultComment _WorkflowTaskResultComment WorkflowTaskResultComment
_LegalTransaction _LegalTransaction
_User _User
_WorkflowTaskStepResult _WorkflowTaskStepResult

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_LglCntntMWorkflowTaskDetail.
-- 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.
-- SQL view name: PLGLCNTNTMWFTD

CREATE VIEW P_LglCntntMWorkflowTaskDetail AS
SELECT
  I_LegalTransactionWorkflow.LegalTransactionUUID AS LegalTransactionUUID,
  cast(WorkflowTaskApplObject.WorkflowTaskInternalID as lcm_sww_wiid) AS LegalTransactionTask,
  WorkflowTaskApplObject.WorkflowTaskInternalID AS WorkflowTaskInternalID,
  _WorkflowTask.WorkflowTaskStatus AS LegalTransactionTaskStatus,
  _WorkflowTask.WorkflowTaskCreatedByUser AS LegalTransactionTaskCrtedByUsr,
  _WorkflowTask.WorkflowTaskCurrentUser AS LegalTransactionTaskCurUsr,
  _WorkflowTask.WrkflwTskCreationUTCDateTime AS LglTransTskCrtnUTCDteTme,
  _WorkflowTask.WrkflwTskCompletionUTCDateTime AS LglCntntMTaskCompltnUTCDteTme,
  _WorkflowTask._TaskStatus._Text[1:Language=$session.system_language].WorkflowTaskStatusDesc AS LegalTransactionTaskStatusName,
  _WorkflowTask.TopLevelWorkflowTaskDefinition AS TopLevelWorkflowTaskDefinition,
  _WorkflowTask.WorkflowTaskDefinitionVersion AS WorkflowTaskDefinitionVersion,
  _WorkflowTask.WorkflowTaskStepType AS WorkflowTaskStepType,
  _WorkflowTask.WorkflowTaskResult AS WorkflowTaskResult,
  _LegalTransaction.LegalTransaction AS LegalTransaction,
  _LegalTransaction.LegalTransactionTitle AS LegalTransactionTitle,
  _WorkflowTaskResultComment.WorkflowTaskResultComment AS WorkflowTaskResultComment
FROM I_LegalTransactionWorkflow
LEFT OUTER JOIN I_LglCntntMWorkflowTask AS _WorkflowTask ON WorkflowTaskInternalID = _WorkflowTask.WorkflowTaskInternalID AND ( _WorkflowTask.WorkflowTaskType = 'W' OR _WorkflowTask.WorkflowTaskType = 'B' )  -- association [0..1]
LEFT OUTER JOIN I_WorkflowTaskResultComment AS _WorkflowTaskResultComment ON _WorkflowTaskResultComment.WorkflowTaskInternalID = WorkflowTaskInternalID  -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON _User.UserID = LegalTransactionTaskCurUsr  -- association [0..1]
LEFT OUTER JOIN I_WorkflowStepResultText AS _WorkflowTaskStepResult ON TopLevelWorkflowTaskDefinition = _WorkflowTaskStepResult.WorkflowScenarioDefinition AND WorkflowTaskDefinitionVersion = _WorkflowTaskStepResult.WorkflowScenarioDefinitionVers AND WorkflowTaskStepType = _WorkflowTaskStepResult.WorkflowStepType AND WorkflowTaskResult = _WorkflowTaskStepResult.WorkflowStepResult  -- association [0..*]
LEFT OUTER JOIN I_LegalTransactionBase AS _LegalTransaction ON LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID  -- association [1..1]
;