I_LglCntntMContextBasic
LCM Context Basic
I_LglCntntMContextBasic is a Basic CDS View that provides data about "LCM Context Basic" in SAP S/4HANA. It reads from 1 data source (lcm_context) and exposes 43 fields with key field LglCntntMContextUUID. It has 18 associations to related views. Part of development package VDM_LCM_CTX.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| lcm_context | lcm_context | from |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_LglCntntMGovLaw | _LglCntntMGovLaw | $projection.LglCntntMGovLaw = _LglCntntMGovLaw.LglCntntMGovLaw |
| [0..1] | I_LglCntntMAccessLvlText | _LglCntntMAccessLvlText | $projection.LglCntntMCntxtAccessLvl = _LglCntntMAccessLvlText.LglCntntMAccessLvl and _LglCntntMAccessLvlText.Language = $session.system_language |
| [0..*] | I_LglCntntMMainOrgTypeText | _LglCntntMMainOrgTypeText | $projection.LglCntntMMainOrgType = _LglCntntMMainOrgTypeText.LglCntntMMainOrgType |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.LglCntntMMainOrgPurOrg = _PurchasingOrganization.PurchasingOrganization |
| [0..*] | I_SalesOrganizationText | _SalesOrganizationText | $projection.LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization |
| [0..1] | I_LglCntntMProfileText | _LglCntntMProfileText | $projection.LglCntntMProfile = _LglCntntMProfileText.LglCntntMProfile and _LglCntntMProfileText.Language = $session.system_language |
| [0..*] | I_LglCntntMIntegTypeText | _LglCntntMIntegTypeText | $projection.LglCntntMIntegrationType = _LglCntntMIntegTypeText.LglCntntMIntegrationType |
| [1..*] | I_LCMContextParentCategory | _ContextParentCategory | $projection.LglCntntMContextUUID = _ContextParentCategory.LglCntntMContextUUID |
| [1..*] | I_LCMContextCategory | _ContextCategory | $projection.LglCntntMContextUUID = _ContextCategory.LglCntntMContextUUID |
| [1..*] | I_LCMContextEntity | _ContextEntity | $projection.LglCntntMContextUUID = _ContextEntity.LglCntntMContextUUID |
| [1..1] | I_LCMContextEntity | _MainContextEntity | $projection.LglCntntMContextUUID = _MainContextEntity.LglCntntMContextUUID and _MainContextEntity.LglCntntMIsMainEntity = 'X' |
| [0..1] | I_LCMStatusText | _ContextStatusText | $projection.LglCntntMContextStatus = _ContextStatusText.LglCntntMStatus and _ContextStatusText.Language = $session.system_language |
| [0..1] | I_LanguageText | _LanguageText | $projection.LglCntntMCntxtLanguage = _LanguageText.LanguageCode and _LanguageText.Language = $session.system_language |
| [0..1] | I_LCMUserAddressAssignment | _Owner | $projection.LglCntntMContextOwner = _Owner.ContactCardID |
| [0..1] | I_LCMUserAddressAssignment | _CreatedBy | $projection.LglCntntMCreatedByUser = _CreatedBy.ContactCardID |
| [0..1] | I_LCMUserAddressAssignment | _ChangedBy | $projection.LglCntntMChangedByUser = _ChangedBy.ContactCardID |
| [0..1] | I_LglCntntMUserDetails | _OwnerUserDetails | _OwnerUserDetails.ContactCardID = $projection.LglCntntMContextOwner |
| [1..1] | E_LglCntntMContext | _Extension | $projection.LglCntntMContextUUID = _Extension.LglCntntMContextUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILCMCONTEXTBASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | LglCntntMContextUUID | 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 | LCM Context Basic | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LglCntntMContextUUID | lglcntntmcontextuuid | Universal Unique ID | |
| LglCntntMContext | lglcntntmcontext | Context ID | ||
| LglCntntMContextVersion | lglcntntmcontextversion | Context Version | ||
| LglCntntMContextTitle | lglcntntmcontexttitle | Title | ||
| LglCntntMContextStatus | lglcntntmcontextstatus | Status | ||
| LglCntntMStsPrfl | lglcntntmstsprfl | Status Profile | ||
| LglCntntMContextOwner | lglcntntmcontextowner | Owner | ||
| LglCntntMCreatedByUser | lglcntntmcreatedbyuser | Created By | ||
| LglCntntMCreatedUTCDateTime | lglcntntmcreatedutcdatetime | Created On | ||
| LglCntntMChangedUTCDateTime | lglcntntmchangedutcdatetime | Changed On | ||
| LglCntntMChangedByUser | lglcntntmchangedbyuser | Changed By | ||
| LglCntntMContextValidFromDate | lglcntntmcontextvalidfromdate | Valid From | ||
| LglCntntMContextValidToDate | lglcntntmcontextvalidtodate | Valid To | ||
| LglCntntMCntxtLanguage | lglcntntmcntxtlanguage | Language | ||
| LglCntntMPrevCntxtVers | lglcntntmprevcntxtvers | Universal Unique ID | ||
| LglCntntMCntxtIsReadOnly | lglcntntmcntxtisreadonly | Read Only | ||
| LglCntntMProfile | lglcntntmprofile | Profile | ||
| IsEndOfPurposeBlocked | isendofpurposeblocked | Busin. Purp. Cmpltd. | ||
| LglCntntMGovLaw | lglcntntmgovlaw | Governing Law | ||
| LglCntntMCntxtAccessLvl | lglcntntmcntxtaccesslvl | Acs. Level | ||
| LglCntntMMainOrgType | lglcntntmmainorgtype | Main Organisation Ty | ||
| LglCntntMMainOrgCoCode | lglcntntmmainorgcocode | Entity ID | ||
| LglCntntMMainOrgSalesOrg | lglcntntmmainorgsalesorg | Entity ID | ||
| LglCntntMMainOrgPurOrg | lglcntntmmainorgpurorg | Entity ID | ||
| LglCntntMLongTextUUID | lglcntntmlongtextuuid | Description UUID | ||
| LglCntntMIntegrationType | lglcntntmintegrationtype | Integration Variant | ||
| _LglCntntMGovLaw | _LglCntntMGovLaw | |||
| _LglCntntMAccessLvlText | _LglCntntMAccessLvlText | |||
| _LglCntntMMainOrgTypeText | _LglCntntMMainOrgTypeText | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _SalesOrganizationText | _SalesOrganizationText | |||
| _LglCntntMProfileText | _LglCntntMProfileText | |||
| _LglCntntMIntegTypeText | _LglCntntMIntegTypeText | |||
| _ContextParentCategory | _ContextParentCategory | |||
| _ContextCategory | _ContextCategory | |||
| _ContextEntity | _ContextEntity | |||
| _MainContextEntity | _MainContextEntity | |||
| _ContextStatusText | _ContextStatusText | |||
| _LanguageText | _LanguageText | |||
| _Owner | _Owner | |||
| _CreatedBy | _CreatedBy | |||
| _ChangedBy | _ChangedBy | |||
| _OwnerUserDetails | _OwnerUserDetails |
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_LglCntntMContextBasic.
-- 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: ILCMCONTEXTBASIC
CREATE VIEW I_LglCntntMContextBasic AS
SELECT
LglCntntMContextUUID,
LglCntntMContext,
LglCntntMContextVersion,
LglCntntMContextTitle,
LglCntntMContextStatus,
LglCntntMStsPrfl,
LglCntntMContextOwner,
LglCntntMCreatedByUser,
LglCntntMCreatedUTCDateTime,
LglCntntMChangedUTCDateTime,
LglCntntMChangedByUser,
LglCntntMContextValidFromDate,
LglCntntMContextValidToDate,
LglCntntMCntxtLanguage,
LglCntntMPrevCntxtVers,
LglCntntMCntxtIsReadOnly,
LglCntntMProfile,
IsEndOfPurposeBlocked,
LglCntntMGovLaw,
LglCntntMCntxtAccessLvl,
LglCntntMMainOrgType,
LglCntntMMainOrgCoCode,
LglCntntMMainOrgSalesOrg,
LglCntntMMainOrgPurOrg,
LglCntntMLongTextUUID,
LglCntntMIntegrationType
FROM lcm_context
LEFT OUTER JOIN I_LglCntntMGovLaw AS _LglCntntMGovLaw ON LglCntntMGovLaw = _LglCntntMGovLaw.LglCntntMGovLaw -- association [0..1]
LEFT OUTER JOIN I_LglCntntMAccessLvlText AS _LglCntntMAccessLvlText ON LglCntntMCntxtAccessLvl = _LglCntntMAccessLvlText.LglCntntMAccessLvl AND _LglCntntMAccessLvlText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LglCntntMMainOrgTypeText AS _LglCntntMMainOrgTypeText ON LglCntntMMainOrgType = _LglCntntMMainOrgTypeText.LglCntntMMainOrgType -- association [0..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON LglCntntMMainOrgPurOrg = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization -- association [0..*]
LEFT OUTER JOIN I_LglCntntMProfileText AS _LglCntntMProfileText ON LglCntntMProfile = _LglCntntMProfileText.LglCntntMProfile AND _LglCntntMProfileText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LglCntntMIntegTypeText AS _LglCntntMIntegTypeText ON LglCntntMIntegrationType = _LglCntntMIntegTypeText.LglCntntMIntegrationType -- association [0..*]
LEFT OUTER JOIN I_LCMContextParentCategory AS _ContextParentCategory ON LglCntntMContextUUID = _ContextParentCategory.LglCntntMContextUUID -- association [1..*]
LEFT OUTER JOIN I_LCMContextCategory AS _ContextCategory ON LglCntntMContextUUID = _ContextCategory.LglCntntMContextUUID -- association [1..*]
LEFT OUTER JOIN I_LCMContextEntity AS _ContextEntity ON LglCntntMContextUUID = _ContextEntity.LglCntntMContextUUID -- association [1..*]
LEFT OUTER JOIN I_LCMContextEntity AS _MainContextEntity ON LglCntntMContextUUID = _MainContextEntity.LglCntntMContextUUID AND _MainContextEntity.LglCntntMIsMainEntity = 'X' -- association [1..1]
LEFT OUTER JOIN I_LCMStatusText AS _ContextStatusText ON LglCntntMContextStatus = _ContextStatusText.LglCntntMStatus AND _ContextStatusText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LanguageText AS _LanguageText ON LglCntntMCntxtLanguage = _LanguageText.LanguageCode AND _LanguageText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LCMUserAddressAssignment AS _Owner ON LglCntntMContextOwner = _Owner.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_LCMUserAddressAssignment AS _CreatedBy ON LglCntntMCreatedByUser = _CreatedBy.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_LCMUserAddressAssignment AS _ChangedBy ON LglCntntMChangedByUser = _ChangedBy.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_LglCntntMUserDetails AS _OwnerUserDetails ON _OwnerUserDetails.ContactCardID = LglCntntMContextOwner -- association [0..1]
LEFT OUTER JOIN E_LglCntntMContext AS _Extension ON LglCntntMContextUUID = _Extension.LglCntntMContextUUID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA