I_LglCntntMDocContextInfo
Legal Document - Context Information
I_LglCntntMDocContextInfo is a Composite CDS View that provides data about "Legal Document - Context Information" in SAP S/4HANA. It reads from 2 data sources (I_LcmContext, I_LcmDocument) and exposes 25 fields with key fields LegalTransactionUUID, LglCntntMDocumentUUID. It has 2 associations to related views. Part of development package VDM_LCM_LT.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LcmContext | Context | inner |
| I_LcmDocument | Document | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LCMUserContactCard | _ContextOwner | Context.LglCntntMContextOwner = _ContextOwner.ContactCardID |
| [1..1] | I_LglCntntMUserDetails | _ContextUserDetails | Context.LglCntntMContextOwner = _ContextUserDetails.ContactCardID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILCMSTATCHK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Legal Document - Context Information | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.representativeKey | LegalTransactionUUID | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LegalTransactionUUID | I_LcmDocument | LegalTransactionUUID | Universal Unique ID |
| KEY | LglCntntMDocumentUUID | I_LcmDocument | LglCntntMDocumentUUID | Universal Unique ID |
| LegalTransaction | I_LcmDocument | LegalTransaction | Legal Transaction ID | |
| LglCntntMContextUUID | I_LcmDocument | LglCntntMContextUUID | Universal Unique ID | |
| LglCntntMDocument | I_LcmDocument | LglCntntMDocument | Document ID | |
| DocumentDescription | I_LcmDocument | DocumentDescription | Doc. Name | |
| LglCntntMDocumentLinkedObject | I_LcmDocument | LglCntntMDocumentLinkedObject | Object | |
| LglCntntMDocumentLinkedObjKey | I_LcmDocument | LglCntntMDocumentLinkedObjKey | UUID Char32 | |
| InternalDocumentStatus | I_LcmDocument | InternalDocumentStatus | Status | |
| LglCntntMDocStatusName | I_LcmDocument | LglCntntMDocStatusName | Long Text | |
| LglCntntMDocContentType | I_LcmDocument | LglCntntMDocContentType | Content Type | |
| LglCntntMDocAccessLvl | I_LcmDocument | LglCntntMDocAccessLvl | Acs. Level | |
| LglCntntMDocType | I_LcmDocument | LglCntntMDocType | Document Type | |
| LglCntntMDocumentKind | I_LcmDocument | LglCntntMDocumentKind | Document Kind | |
| LglCntntMDocAssemblyStatus | ||||
| LglCntntMDocAgrmtCoreStatus | ||||
| LglCntntMContext | I_LcmContext | LglCntntMContext | Context ID | |
| LglCntntMContextOwner | I_LcmContext | LglCntntMContextOwner | Owner | |
| FirstName | ||||
| LastName | ||||
| EmailAddress | ||||
| _LegalTransaction | I_LcmDocument | _LegalTransaction | ||
| IsEndOfPurposeBlocked | I_LcmDocument | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| LglCntntMProfile | I_LcmDocument | LglCntntMProfile | Profile | |
| _ContextOwner | _ContextOwner |
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_LglCntntMDocContextInfo.
-- 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: ILCMSTATCHK
CREATE VIEW I_LglCntntMDocContextInfo AS
SELECT
Document.LegalTransactionUUID AS LegalTransactionUUID,
Document.LglCntntMDocumentUUID AS LglCntntMDocumentUUID,
Document.LegalTransaction AS LegalTransaction,
Document.LglCntntMContextUUID AS LglCntntMContextUUID,
Document.LglCntntMDocument AS LglCntntMDocument,
Document.DocumentDescription AS DocumentDescription,
Document.LglCntntMDocumentLinkedObject AS LglCntntMDocumentLinkedObject,
Document.LglCntntMDocumentLinkedObjKey AS LglCntntMDocumentLinkedObjKey,
Document.InternalDocumentStatus AS InternalDocumentStatus,
Document.LglCntntMDocStatusName AS LglCntntMDocStatusName,
Document.LglCntntMDocContentType AS LglCntntMDocContentType,
Document.LglCntntMDocAccessLvl AS LglCntntMDocAccessLvl,
Document.LglCntntMDocType AS LglCntntMDocType,
Document.LglCntntMDocumentKind AS LglCntntMDocumentKind,
Document._LglCntntMDocAssemblyInfo.LglCntntMDocAssemblyStatus AS LglCntntMDocAssemblyStatus,
Document._LglCntntMDocAgreement.LglCntntMDocAgrmtCoreStatus AS LglCntntMDocAgrmtCoreStatus,
Context.LglCntntMContext AS LglCntntMContext,
Context.LglCntntMContextOwner AS LglCntntMContextOwner,
_ContextUserDetails[1:inner].FirstName AS FirstName,
_ContextUserDetails[1:inner].LastName AS LastName,
_ContextUserDetails[1:inner]._DefaultEmailAddress.EmailAddress AS EmailAddress,
Document._LegalTransaction AS _LegalTransaction,
Document.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
Document.LglCntntMProfile AS LglCntntMProfile
FROM I_LcmDocument AS Document
INNER JOIN I_LcmContext AS Context ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_LCMUserContactCard AS _ContextOwner ON Context.LglCntntMContextOwner = _ContextOwner.ContactCardID -- association [1..1]
LEFT OUTER JOIN I_LglCntntMUserDetails AS _ContextUserDetails ON Context.LglCntntMContextOwner = _ContextUserDetails.ContactCardID -- 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