I_LCMContextAggr

DDL: I_LCMCONTEXTAGGR SQL: ILCMCONTEXTAGGR Type: view COMPOSITE Package: VDM_LCM_CTX

Aggregation view for I_LCMCONTEXT

I_LCMContextAggr is a Composite CDS View that provides data about "Aggregation view for I_LCMCONTEXT" in SAP S/4HANA. It reads from 1 data source (I_LglCntntMContextBasic) and exposes 18 fields with key field LglCntntMContextUUID. It has 2 associations to related views. Part of development package VDM_LCM_CTX.

Data Sources (1)

SourceAliasJoin Type
I_LglCntntMContextBasic I_LglCntntMContextBasic from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_LglCntntMContextBasic _PreviousLglCntntMContext $projection.LglCntntMPrevCntxtVers = _PreviousLglCntntMContext.LglCntntMContextUUID
[0..1] I_LglCntntMContextBasic _NextLglCntntMContext $projection.LglCntntMContextUUID = _NextLglCntntMContext.LglCntntMPrevCntxtVers

Annotations (13)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName ILCMCONTEXTAGGR view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey LglCntntMContextUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Aggregation view for I_LCMCONTEXT view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMContextUUID LglCntntMContextUUID Universal Unique ID
LglCntntMContextStatus LglCntntMContextStatus Status
FldCtrlLglCntntMContextStatus 1
FldCtrlLglCntntMProfile 1
LglCntntMPrevCntxtVers LglCntntMPrevCntxtVers Universal Unique ID
LglCntntMNextCntxtUUID _NextLglCntntMContext LglCntntMContextUUID Universal Unique ID
LglCntntMNextCntxt _NextLglCntntMContext LglCntntMContextVersion Context Version
LglCntntMNextCntxtTitle
LglCntntMPrevCntxtUUID _PreviousLglCntntMContext LglCntntMContextUUID Universal Unique ID
LglCntntMPrevCntxt _PreviousLglCntntMContext LglCntntMContextVersion Context Version
LglCntntMPrevCntxtTitle
ChangeDocObject
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
LglCntntMProfile LglCntntMProfile Profile
LglCntntMNumerator
LglCntntMMainOrgType LglCntntMMainOrgType Main Organisation Ty
_PreviousLglCntntMContext _PreviousLglCntntMContext
_NextLglCntntMContext _NextLglCntntMContext

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_LCMContextAggr.
-- 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: ILCMCONTEXTAGGR

CREATE VIEW I_LCMContextAggr AS
SELECT
  LglCntntMContextUUID,
  LglCntntMContextStatus,
  1 AS FldCtrlLglCntntMContextStatus,
  1 AS FldCtrlLglCntntMProfile,
  LglCntntMPrevCntxtVers,
  _NextLglCntntMContext.LglCntntMContextUUID AS LglCntntMNextCntxtUUID,
  _NextLglCntntMContext.LglCntntMContextVersion AS LglCntntMNextCntxt,
  concat_with_space(_NextLglCntntMContext.LglCntntMContextTitle, _NextLglCntntMContext.LglCntntMContext, 1) AS LglCntntMNextCntxtTitle,
  _PreviousLglCntntMContext.LglCntntMContextUUID AS LglCntntMPrevCntxtUUID,
  _PreviousLglCntntMContext.LglCntntMContextVersion AS LglCntntMPrevCntxt,
  concat_with_space(_PreviousLglCntntMContext.LglCntntMContextTitle, _PreviousLglCntntMContext.LglCntntMContext, 1) AS LglCntntMPrevCntxtTitle,
  cast( concat( 'CONTEXT', concat( LglCntntMContext, LglCntntMContextVersion )) as cdobjectv ) AS ChangeDocObject,
  IsEndOfPurposeBlocked,
  LglCntntMProfile,
  cast( 1 as abap.int8 ) AS LglCntntMNumerator,
  LglCntntMMainOrgType
FROM I_LglCntntMContextBasic
LEFT OUTER JOIN I_LglCntntMContextBasic AS _PreviousLglCntntMContext ON LglCntntMPrevCntxtVers = _PreviousLglCntntMContext.LglCntntMContextUUID  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMContextBasic AS _NextLglCntntMContext ON LglCntntMContextUUID = _NextLglCntntMContext.LglCntntMPrevCntxtVers  -- association [0..1]
;