I_LCMContextEntity

DDL: I_LCMCONTEXTENTITY SQL: ILCMCTXENT Type: view BASIC

Basic view for LCM Context Entity

I_LCMContextEntity is a Basic CDS View that provides data about "Basic view for LCM Context Entity" in SAP S/4HANA. It reads from 1 data source (lcm_ctx_entity) and exposes 18 fields with key field LglCntntMCntxtEntityUUID. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
lcm_ctx_entity lcm_ctx_entity from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_LcmContext _LglCntntMContext $projection.LglCntntMContextUUID = _LglCntntMContext.LglCntntMContextUUID
[0..1] I_LCMEntityType _LCMEntityType _LCMEntityType.LglCntntMEntityType = $projection.LglCntntMEntityType
[0..*] I_LCMEntityTypeText _MainEntityTypeText $projection.LglCntntMEntityType = _MainEntityTypeText.LglCntntMEntityType
[0..1] I_PurchasingOrganization _PurchasingOrganization _PurchasingOrganization.PurchasingOrganization = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '05'
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '01'
[0..1] I_SalesOrganizationText _SalesOrganizationText _SalesOrganizationText.SalesOrganization = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '04' and _SalesOrganizationText.Language = $session.system_language
[0..1] I_Customer _Customer _Customer.Customer = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '02'
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '03'
[0..1] I_BusinessPartner _BusinessPartner _BusinessPartner.BusinessPartner = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '06'
[0..1] I_LCMEntityTypeText _EntityTypeText $projection.LglCntntMEntityType = _EntityTypeText.LglCntntMEntityType and _EntityTypeText.Language = $session.system_language

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ILCMCTXENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.representativeKey LglCntntMCntxtEntityUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Basic view for LCM Context Entity view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMCntxtEntityUUID lglcntntmcntxtentityuuid Universal Unique ID
LglCntntMContextUUID lglcntntmcontextuuid Universal Unique ID
LglCntntMTechEntityType _LCMEntityType LglCntntMTechEntityType Entity Techn. Type
LglCntntMRank lglcntntmrank Seq No
LglCntntMEntity lglcntntmentity Entity ID
LglCntntMEntityType lglcntntmentitytype Entity Type
LglCntntMIsMandatory lglcntntmismandatory Is Mandatory
LglCntntMIsMainEntity lglcntntmismainentity Main Entity
LglCntntMIsIntegRelevant lglcntntmisintegrelevant Integrated
_LglCntntMContext _LglCntntMContext
_EntityTypeText _EntityTypeText
_MainEntityTypeText _MainEntityTypeText
_PurchasingOrganization _PurchasingOrganization
_Supplier _Supplier
_SalesOrganizationText _SalesOrganizationText
_Customer _Customer
_CompanyCode _CompanyCode
_BusinessPartner _BusinessPartner

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_LCMContextEntity.
-- 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: ILCMCTXENT

CREATE VIEW I_LCMContextEntity AS
SELECT
  LglCntntMCntxtEntityUUID,
  LglCntntMContextUUID,
  _LCMEntityType.LglCntntMTechEntityType AS LglCntntMTechEntityType,
  LglCntntMRank,
  LglCntntMEntity,
  LglCntntMEntityType,
  LglCntntMIsMandatory,
  LglCntntMIsMainEntity,
  LglCntntMIsIntegRelevant
FROM lcm_ctx_entity
LEFT OUTER JOIN I_LcmContext AS _LglCntntMContext ON LglCntntMContextUUID = _LglCntntMContext.LglCntntMContextUUID  -- association [1..1]
LEFT OUTER JOIN I_LCMEntityType AS _LCMEntityType ON _LCMEntityType.LglCntntMEntityType = LglCntntMEntityType  -- association [0..1]
LEFT OUTER JOIN I_LCMEntityTypeText AS _MainEntityTypeText ON LglCntntMEntityType = _MainEntityTypeText.LglCntntMEntityType  -- association [0..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON _PurchasingOrganization.PurchasingOrganization = LglCntntMEntity AND LglCntntMTechEntityType = '05'  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = LglCntntMEntity AND LglCntntMTechEntityType = '01'  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON _SalesOrganizationText.SalesOrganization = LglCntntMEntity AND LglCntntMTechEntityType = '04' AND _SalesOrganizationText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = LglCntntMEntity AND LglCntntMTechEntityType = '02'  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = LglCntntMEntity AND LglCntntMTechEntityType = '03'  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON _BusinessPartner.BusinessPartner = LglCntntMEntity AND LglCntntMTechEntityType = '06'  -- association [0..1]
LEFT OUTER JOIN I_LCMEntityTypeText AS _EntityTypeText ON LglCntntMEntityType = _EntityTypeText.LglCntntMEntityType AND _EntityTypeText.Language = $session.system_language  -- association [0..1]
;