C_LglCntntMOpenDocument
Open documents OVP
C_LglCntntMOpenDocument is a Consumption CDS View that provides data about "Open documents OVP" in SAP S/4HANA. It reads from 1 data source (C_LCMDocumentTP) and exposes 33 fields with key field LglCntntMDocumentUUID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_LCMDocumentTP | C_LCMDocumentTP | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_LegalTransactionTP | _LegalTransactionTP | C_LCMDocumentTP.LegalTransactionUUID = _LegalTransactionTP.LegalTransactionUUID |
| [0..1] | I_LCMUserContactCard | _ChangedByContactCard | _ChangedByContactCard.ContactCardType = 'User' and _ChangedByContactCard.ContactCardID = $projection.LglCntntMChangedByUser and _ChangedByContactCard.ContactCardRole = 'Creator' |
| [1..1] | I_LglCntntMDocInfoAttachment | _DocAttach | $projection.LglCntntMDocumentLinkedObjKey = _DocAttach.LinkedSAPObjectKey |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CLCMOPENDOCS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.semanticKey | LegalDocument | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Open documents OVP | view | |
| UI.headerInfo.title.value | DocumentDescription | view | |
| UI.headerInfo.title.type | #STANDARD | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LglCntntMDocumentUUID | LglCntntMDocumentUUID | Universal Unique ID | |
| LegalDocument | LegalDocument | Document ID | ||
| LglCntntMDocumentLinkedObjKey | LglCntntMDocumentLinkedObjKey | UUID Char32 | ||
| DocumentDescription | DocumentDescription | Doc. Name | ||
| LglCntntMDocStatusName | _DocStatusText | LglCntntMDocStatusName | Long Text | |
| LglCntntMDocContentTypeName | _ContentTypeText | LglCntntMDocContentTypeName | Long Text | |
| LglCntntMDocContentType | LglCntntMDocContentType | Content Type | ||
| LegalTransactionTitle | LegalTransactionTitle | Title | ||
| LglCntntMChangedUTCDateTime | LglCntntMChangedUTCDateTime | Changed On | ||
| LglCntntMChangedByUser | LglCntntMChangedByUser | Changed By | ||
| LglCntntMChangedByFullName | ||||
| LegalContext | _LegalTransactionTP | LegalContext | Context ID | |
| LglCntntMContextVersion | _LegalTransactionTP | LglCntntMContextVersion | Context Version | |
| LglCntntMEntity | _LegalTransactionTP | LglCntntMEntity | Entity ID | |
| LglCntntMEntityType | _LegalTransactionTP | LglCntntMEntityType | Entity Type | |
| LglCntntMEntityName | _LegalTransactionTP | LglCntntMEntityName | ||
| LegalTransaction | LegalTransaction | Legal Transaction ID | ||
| LglCntntMCreatedUTCDateTime | LglCntntMCreatedUTCDateTime | Created On | ||
| DocumentInfoRecordDocType | _DocAttach | DocumentInfoRecordDocType | Document Type | |
| DocumentInfoRecordDocNumber | _DocAttach | DocumentInfoRecordDocNumber | Document | |
| DocumentInfoRecordDocPart | _DocAttach | DocumentInfoRecordDocPart | Document Part | |
| DocumentInfoRecordDocVersion | _DocAttach | DocumentInfoRecordDocVersion | Doc. Version | |
| LogicalDocument | _DocAttach | LogicalDocument | Log. document | |
| PhysicalDocument | _DocAttach | PhysicalDocument | Phys. Document | |
| LglCntntMDocType | LglCntntMDocType | Document Type | ||
| LglCntntMVirtualDocDownloadURL | ||||
| LglCntntMTmplUUID | LglCntntMTmplUUID | Template UUID | ||
| LglCntntMVirtualDocVersKey | LglCntntMVirtualDocVersKey | Virtual Doc Version | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| InternalDocumentStatus | InternalDocumentStatus | Status | ||
| LegalTransactionUUID | C_LCMDocumentTP | LegalTransactionUUID | Universal Unique ID | |
| _LegalTransaction | C_LCMDocumentTP | _LegalTransaction | ||
| LglCntntMDocAccessLvl | LglCntntMDocAccessLvl | Acs. Level |
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 C_LglCntntMOpenDocument.
-- 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: CLCMOPENDOCS
CREATE VIEW C_LglCntntMOpenDocument AS
SELECT
LglCntntMDocumentUUID,
LegalDocument,
LglCntntMDocumentLinkedObjKey,
DocumentDescription,
_DocStatusText.LglCntntMDocStatusName AS LglCntntMDocStatusName,
_ContentTypeText.LglCntntMDocContentTypeName AS LglCntntMDocContentTypeName,
LglCntntMDocContentType,
LegalTransactionTitle,
LglCntntMChangedUTCDateTime,
LglCntntMChangedByUser,
cast('' as ad_namtext) AS LglCntntMChangedByFullName,
_LegalTransactionTP.LegalContext AS LegalContext,
_LegalTransactionTP.LglCntntMContextVersion AS LglCntntMContextVersion,
_LegalTransactionTP.LglCntntMEntity AS LglCntntMEntity,
_LegalTransactionTP.LglCntntMEntityType AS LglCntntMEntityType,
_LegalTransactionTP.LglCntntMEntityName AS LglCntntMEntityName,
LegalTransaction,
LglCntntMCreatedUTCDateTime,
_DocAttach.DocumentInfoRecordDocType AS DocumentInfoRecordDocType,
_DocAttach.DocumentInfoRecordDocNumber AS DocumentInfoRecordDocNumber,
_DocAttach.DocumentInfoRecordDocPart AS DocumentInfoRecordDocPart,
_DocAttach.DocumentInfoRecordDocVersion AS DocumentInfoRecordDocVersion,
_DocAttach.LogicalDocument AS LogicalDocument,
_DocAttach.PhysicalDocument AS PhysicalDocument,
LglCntntMDocType,
cast( '' as abap.char(300) ) AS LglCntntMVirtualDocDownloadURL,
LglCntntMTmplUUID,
LglCntntMVirtualDocVersKey,
IsEndOfPurposeBlocked,
InternalDocumentStatus,
C_LCMDocumentTP.LegalTransactionUUID AS LegalTransactionUUID,
C_LCMDocumentTP._LegalTransaction AS _LegalTransaction,
LglCntntMDocAccessLvl
FROM C_LCMDocumentTP
LEFT OUTER JOIN C_LegalTransactionTP AS _LegalTransactionTP ON C_LCMDocumentTP.LegalTransactionUUID = _LegalTransactionTP.LegalTransactionUUID -- association [1..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _ChangedByContactCard ON _ChangedByContactCard.ContactCardType = 'User' AND _ChangedByContactCard.ContactCardID = LglCntntMChangedByUser AND _ChangedByContactCard.ContactCardRole = 'Creator' -- association [0..1]
LEFT OUTER JOIN I_LglCntntMDocInfoAttachment AS _DocAttach ON LglCntntMDocumentLinkedObjKey = _DocAttach.LinkedSAPObjectKey -- 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