I_LglCntntMDocContextInfo

DDL: I_LGLCNTNTMDOCCONTEXTINFO SQL: ILCMSTATCHK Type: view COMPOSITE Package: VDM_LCM_LT

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)

SourceAliasJoin Type
I_LcmContext Context inner
I_LcmDocument Document from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_LCMUserContactCard _ContextOwner Context.LglCntntMContextOwner = _ContextOwner.ContactCardID
[1..1] I_LglCntntMUserDetails _ContextUserDetails Context.LglCntntMContextOwner = _ContextUserDetails.ContactCardID

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;