I_LglCntntMTskCompltnByType

DDL: I_LGLCNTNTMTSKCOMPLTNBYTYPE SQL: ILCMTSKCMPBYTYPE Type: view COMPOSITE Package: VDM_LCM_COMMON

Task Completion by Task Type

I_LglCntntMTskCompltnByType is a Composite CDS View that provides data about "Task Completion by Task Type" in SAP S/4HANA. It reads from 1 data source (I_LglCntntMTask) and exposes 12 fields with key fields LegalTransactionUUID, LegalTransactionTaskType, LegalTransactionTask. It has 1 association to related views. Part of development package VDM_LCM_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_LglCntntMTask I_LglCntntMTask from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_LegalTransactionEntityMain _LegalTransactionEntityMain $projection.LegalTransactionUUID = _LegalTransactionEntityMain.LegalTransactionUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ILCMTSKCMPBYTYPE view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Task Completion by Task Type view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionUUID LegalTransactionUUID Universal Unique ID
KEY LegalTransactionTaskType LegalTransactionTaskType
KEY LegalTransactionTask LegalTransactionTask
LegalTransactionTaskTypeName
CalendarYear
CurrentYear
LglCntntMEntity _LegalTransactionEntityMain LglCntntMEntity Entity ID
LglCntntMEntityType _LegalTransactionEntityMain LglCntntMEntityType Entity Type
LglCntntMContext LglCntntMContext Context ID
LglCntntMContextVersion LglCntntMContextVersion Context Version
LglCntntMCreatedUTCDateTime LglTransTskCrtnUTCDteTme
_LegalTransaction _LegalTransaction

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 I_LglCntntMTskCompltnByType.
-- 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: ILCMTSKCMPBYTYPE

CREATE VIEW I_LglCntntMTskCompltnByType AS
SELECT
  LegalTransactionUUID,
  LegalTransactionTaskType,
  LegalTransactionTask,
  _WorkflowStepType._WorkflowTaskStepTypeText[1:Language=$session.system_language].WorkflowStepTypeSubject AS LegalTransactionTaskTypeName,
  cast( substring(cast(substring(cast(LglCntntMTaskCompltnUTCDteTme as abap.char(32)),1,8) as abap.dats), 1, 4) as calendaryear ) AS CalendarYear,
  substring(cast($session.system_date as abap.char( 8 ) ), 1, 4) AS CurrentYear,
  _LegalTransactionEntityMain.LglCntntMEntity AS LglCntntMEntity,
  _LegalTransactionEntityMain.LglCntntMEntityType AS LglCntntMEntityType,
  LglCntntMContext,
  LglCntntMContextVersion,
  LglTransTskCrtnUTCDteTme AS LglCntntMCreatedUTCDateTime
FROM I_LglCntntMTask
LEFT OUTER JOIN I_LegalTransactionEntityMain AS _LegalTransactionEntityMain ON LegalTransactionUUID = _LegalTransactionEntityMain.LegalTransactionUUID  -- association [0..1]
;