C_LegalDocumentQuery
Legal Document Header - Query
C_LegalDocumentQuery (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
C_LegalDocumentQuery is a Consumption CDS View that provides data about "Legal Document Header - Query" in SAP S/4HANA. It reads from 1 data source (C_LegalDocumentCube) and exposes 39 fields with key field LglCntntMDocumentUUID.
SAP Help Documentation
| Category | CDS Views for Enterprise Contract Management |
|---|---|
| Status | Document Signature Status |
| Corresponding DataSource | For CDS views that have the annotation ANALYTICS.QUERY = true , enter the corresponding technical name of the analytical DataSource here. This name is 2C<value of annotation ABAPCATALOG.SQLVIEWNAME> , for example 2CCLCMLDQUERY for CDS view C_LegalDocumentQuery |
Purpose
This CDS view provides the data to answer the following business questions: What is the total number of legal documents in Accepted status? What is the total number of legal documents? What is the total number of legal documents that have been E-signed? What is the total number of legal documents waiting to be E-signed? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: Authorization Object: LCM_DOC activity ‘03’ (Legal Document Activity '03')
Structure
Further Important Fields Important fields in this view include the following: Field Name Description LGLCNTNTMDOCUMENTLINKEDOBJECT Linked Object LGLCNTNTMCREATEDDATE Creation Date LGLCNTNTMCHANGEDDATE Change Date LGLCNTNTMSIGNATUREDOCSTATUS Document Signature Status CALENDARYEAR Creation Year CALENDARQUARTER Creation Quarter CALENDARMONTH Creation Month LGLCNTNTMGOVLAWTEXT Governing Law Text LGLCNTNTMDOCTYPE Legal Content Document Type DOCUMENTDESCRIPTION Document Description LEGALTRANSACTIONTITLE Legal Transaction Title LGLCNTNTMDOCCONTENTTYPE Documnt Content Type
This CDS view provides the data to answer the following business questions: What is the total number of legal documents in Accepted status? What is the total number of legal documents? What is the total number of legal documents that have been E-signed? What is the total number of legal documents waiting to be E-signed? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: Authorization Object: LCM_DOC activity ‘03’ (Legal Document Activity '03')
Structure
Further Important Fields Important fields in this view include the following: Field Name Description LGLCNTNTMDOCUMENTLINKEDOBJECT Linked Object LGLCNTNTMCREATEDDATE Creation Date LGLCNTNTMCHANGEDDATE Change Date LGLCNTNTMSIGNATUREDOCSTATUS Document Signature Status CALENDARYEAR Creation Year CALENDARQUARTER Creation Quarter CALENDARMONTH Creation Month LGLCNTNTMGOVLAWTEXT Governing Law Text LGLCNTNTMDOCTYPE Legal Content Document Type DOCUMENTDESCRIPTION Document Description LEGALTRANSACTIONTITLE Legal Transaction Title LGLCNTNTMDOCCONTENTTYPE Documnt Content Type
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | CM-GF |
| Capabilities | Analytical Query |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view ...</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p><Business question></p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_LegalDocumentCube | LegalDocumentCube | from |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CLCMLDQUERY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| OData.publish | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Legal Document Header - Query | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_QUERY | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LglCntntMDocumentUUID | LglCntntMDocumentUUID | Universal Unique Identifier | |
| LglCntntMDocument | LglCntntMDocument | Document ID | ||
| LglCntntMDocumentLinkedObject | LglCntntMDocumentLinkedObject | Linked SAP Object | ||
| LglCntntMCreatedDate | LglCntntMCreatedDate | Creation Date | ||
| LglCntntMChangedDate | LglCntntMChangedDate | Change Date | ||
| LglCntntMSignatureDocStatus | LglCntntMSignatureDocStatus | Signature Document Status | ||
| CalendarYear | CalendarYear | Calendar Year | ||
| CalendarQuarter | CalendarQuarter | Calendar Quarter | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| LglCntntMGovLawText | LglCntntMGovLawText | Governing Law Text | ||
| LglCntntMDocType | LglCntntMDocType | Document Type | ||
| DocumentDescription | DocumentDescription | Document Title | ||
| LegalTransactionTitle | LegalTransactionTitle | Legal Transaction Title | ||
| LglCntntMDocContentType | LglCntntMDocContentType | Document Content Type | ||
| LglCntntMDocContentTypeName | LglCntntMDocContentTypeName | Content Type Name | ||
| LglCntntMDocAccessLvl | LglCntntMDocAccessLvl | Access Level | ||
| LglCntntMDocLowTouchLevelTxt | LglCntntMDocLowTouchLevelTxt | Short Text for Fixed Values | ||
| LglCntntMSgntrDocStatusName | LglCntntMSgntrDocStatusName | Short Text for Fixed Values | ||
| LegalDocumentVersion | LegalDocumentVersion | Version No. of Top Version | ||
| LglCntntMDocTemplateName | LglCntntMDocTemplateName | Document Template Name | ||
| LglCntntMDocTemplateVersion | LglCntntMDocTemplateVersion | Document Template Version | ||
| LglCntntMDocAssemblyStatusText | LglCntntMDocAssemblyStatusText | Assembly Status | ||
| LglCntntMDocStatusName | LglCntntMDocStatusName | Document Status | ||
| LegalTransaction | LegalTransaction | Legal Transaction ID | ||
| LglCntntMProfile | LglCntntMProfile | Profile | ||
| LglCntntMEntityName | LglCntntMEntityName | Main Entity | ||
| LegalTransactionHealthName | LegalTransactionHealthName | Status of Legal Transaction | ||
| LglCntntMMainOrgTypeName | LglCntntMMainOrgTypeName | Short Text for Fixed Values | ||
| LglCntntMEntityTypeName | LglCntntMEntityTypeName | Entity Type | ||
| LglCntntMMainOrgName | LglCntntMMainOrgName | Name of Company Code or Company | ||
| LglCntntMDocReferenceNumber | LglCntntMDocReferenceNumber | Document Reference Number | ||
| TotalNumberOfLegalDocuments | TotalNumberOfLegalDocuments | Total No. of Legal Documents | ||
| LegalDocTotalNrOfElectronicSgd | LegalDocTotalNrOfElectronicSgd | No. of E-signed Documents | ||
| LegalDocTotNrOfAcceptedStatus | LegalDocTotNrOfAcceptedStatus | No. of Documents in Accepted Status | ||
| LegalDocTotalNumberOfFiles | LegalDocTotalNumberOfFiles | Total No. of Files | ||
| LegalDocTotNrOfVirtualDocument | LegalDocTotNrOfVirtualDocument | Total No. of Virtual Documents | ||
| LegalDocTotalNmbrOfLowTouchDoc | LegalDocTotalNmbrOfLowTouchDoc | No. of Auto-assembled Documents | ||
| LglDocTotNrOfWaitElectronicSgd | LglDocTotNrOfWaitElectronicSgd | No. of Documents Waiting for E-sign | ||
| LegalDocAvgTimeFinalization | Average Document processing time |
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_LegalDocumentQuery.
-- 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: CLCMLDQUERY
CREATE VIEW C_LegalDocumentQuery AS
SELECT
LglCntntMDocumentUUID,
LglCntntMDocument,
LglCntntMDocumentLinkedObject,
LglCntntMCreatedDate,
LglCntntMChangedDate,
LglCntntMSignatureDocStatus,
CalendarYear,
CalendarQuarter,
CalendarMonth,
LglCntntMGovLawText,
LglCntntMDocType,
DocumentDescription,
LegalTransactionTitle,
LglCntntMDocContentType,
LglCntntMDocContentTypeName,
LglCntntMDocAccessLvl,
LglCntntMDocLowTouchLevelTxt,
LglCntntMSgntrDocStatusName,
LegalDocumentVersion,
LglCntntMDocTemplateName,
LglCntntMDocTemplateVersion,
LglCntntMDocAssemblyStatusText,
LglCntntMDocStatusName,
LegalTransaction,
LglCntntMProfile,
LglCntntMEntityName,
LegalTransactionHealthName,
LglCntntMMainOrgTypeName,
LglCntntMEntityTypeName,
LglCntntMMainOrgName,
LglCntntMDocReferenceNumber,
TotalNumberOfLegalDocuments,
LegalDocTotalNrOfElectronicSgd,
LegalDocTotNrOfAcceptedStatus,
LegalDocTotalNumberOfFiles,
LegalDocTotNrOfVirtualDocument,
LegalDocTotalNmbrOfLowTouchDoc,
LglDocTotNrOfWaitElectronicSgd,
cast( 100 as abap.int4 ) AS LegalDocAvgTimeFinalization
FROM C_LegalDocumentCube AS LegalDocumentCube
;
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