C_LegalDocumentQuery

DDL: C_LEGALDOCUMENTQUERY SQL: CLCMLDQUERY Type: view CONSUMPTION

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

CategoryCDS Views for Enterprise Contract Management
StatusDocument Signature Status
Corresponding DataSourceFor 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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentCM-GF
CapabilitiesAnalytical Query
PackageSourcing & 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>&lt;Business question&gt;</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

Data Sources (1)

SourceAliasJoin Type
C_LegalDocumentCube LegalDocumentCube from

Annotations (15)

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

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