I_LegalDocumentAPI01
Legal Document
I_LegalDocumentAPI01 (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Legal Document · Sourcing & Procurement
I_LegalDocumentAPI01 is a Basic CDS View that provides data about "Legal Document" in SAP S/4HANA. It reads from 1 data source (I_LegalDocument) and exposes 18 fields with key field LglCntntMDocumentUUID. It has 2 associations to related views. Part of development package VDM_LCM_DOC.
SAP Help Documentation
| Category | CDS Views for Enterprise Contract Management |
|---|---|
| Status | Internal Document status |
Purpose
The CDS view provides the general information about the Legal Document and provides the prerequisites for answering the following business questions: What are the Legal Documents of Legal Transactions? What is a Legal Document Number? What is the Content Type and Language the Legal Document? What is the Access Level of the Legal Document? What is the Status of the Legal Document? What is the Version of the Legal Document? Is it Top Version of a Legal Document? Is it Mandatory Legal Document? When was the Legal Document Created/ Changed and by whom?
Prerequisites
You can create reports for Manage Legal Document application using this CDS view. Users who want to run these reports must have a role based on the <business role template name> business role template. In this role, the following restriction types must be set to read access: Legal Transaction Profile Legal Transaction Access Level Main Organization Type Company Code Sales Organizations Purchase Organization Main Organization (One of the above types) Legal Document Content Type Legal Document Access Level Legal Document Status These restriction types are edited in the Maintain Business Roles app.
Structure
Business Objects This view is built on the following business objects: Legal Document Measures and attributes Some important attributes are: Parameter Description LglCntntMDocumentUUID Unique Identifier of the Legal Document LglCntntMDocument Legal Document Number LglCntntMDocumentIsTopVersion Legal Document is top version LegalTransaction Legal Transaction Number LegalTransactionUUID Unique Identifier of the Legal Transaction LglCntntMDocContentType Legal Document Content Type LglCntntMDocAccessLvl Legal Document Access Level InternalDocumentStatus Internal Document status LglCntntMLanguage Language DocumentDescription Document Description LglCntntMIsMandatory Legal Document is Mandatory LegalDocumentVersion Legal Document Version
The CDS view provides the general information about the Legal Document and provides the prerequisites for answering the following business questions: What are the Legal Documents of Legal Transactions? What is a Legal Document Number? What is the Content Type and Language the Legal Document? What is the Access Level of the Legal Document? What is the Status of the Legal Document? What is the Version of the Legal Document? Is it Top Version of a Legal Document? Is it Mandatory Legal Document? When was the Legal Document Created/ Changed and by whom?
Prerequisites
You can create reports for Manage Legal Document application using this CDS view. Users who want to run these reports must have a role based on the <business role template name> business role template. In this role, the following restriction types must be set to read access: Legal Transaction Profile Legal Transaction Access Level Main Organization Type Company Code Sales Organizations Purchase Organization Main Organization (One of the above types) Legal Document Content Type Legal Document Access Level Legal Document Status These restriction types are edited in the Maintain Business Roles app.
Structure
Business Objects This view is built on the following business objects: Legal Document Measures and attributes Some important attributes are: Parameter Description LglCntntMDocumentUUID Unique Identifier of the Legal Document LglCntntMDocument Legal Document Number LglCntntMDocumentIsTopVersion Legal Document is top version LegalTransaction Legal Transaction Number LegalTransactionUUID Unique Identifier of the Legal Transaction LglCntntMDocContentType Legal Document Content Type LglCntntMDocAccessLvl Legal Document Access Level InternalDocumentStatus Internal Document status LglCntntMLanguage Language DocumentDescription Document Description LglCntntMIsMandatory Legal Document is Mandatory LegalDocumentVersion Legal Document Version
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Sourcing & Procurement |
| Application Component | CM-DOC-2CL |
| Capabilities | Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Sourcing and Procurement for SAP S/4HANA Cloud Public Edition |
| Description | <p>The CDS view provides the general information about the Legal Document and provides the prerequisites for answering the following business questions:</p> <ul> <li> <p>What are the Legal Documents of Legal Transactions?</p> </li> <li> <p>What is a Legal Document Number?</p> </li> <li> <p>What is the Content Type and Language the Legal Document?</p> </li> <li> <p>What is the Access Level of the Legal Document?</p> </li> <li> <p>What is the Status of the Legal Document?</p> </li> <li> <p>What is the Version of the Legal Document?</p> </li> <li> <p>Is it Top Version of a Legal Document?</p> </li> <li> <p>Is it Mandatory Legal Document?</p> </li> <li> <p>When was the Legal Document Created/ Changed and by whom?</p> </li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LegalDocument | I_LegalDocument | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LegalTransactionAPI01 | _LegalTransaction | $projection.LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID |
| [1..1] | E_LegalDocument | _Extension | $projection.LglCntntMDocumentUUID = _Extension.LglCntntMDocumentUUID |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILEGALDOCAPI01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | LglCntntMDocumentUUID | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | LegalDocument | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| EndUserText.label | Legal Document | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LglCntntMDocumentUUID | LglCntntMDocumentUUID | Universal Unique Identifier | |
| LglCntntMDocument | LglCntntMDocument | Document ID | ||
| LglCntntMDocumentIsTopVersion | LglCntntMDocumentIsTopVersion | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | ||
| LegalTransaction | LegalTransaction | Legal Transaction ID | ||
| LegalTransactionUUID | LegalTransactionUUID | Universal Unique Identifier | ||
| LglCntntMDocContentType | LglCntntMDocContentType | Document Content Type | ||
| LglCntntMDocAccessLvl | LglCntntMDocAccessLvl | Access Level | ||
| InternalDocumentStatus | InternalDocumentStatus | Document Status | ||
| LglCntntMLanguage | LglCntntMLanguage | Language Key | ||
| DocumentDescription | DocumentDescription | Doc. Name | ||
| LglCntntMIsMandatory | LglCntntMIsMandatory | Is Mandatory | ||
| DocumentVersion | DocumentVersion | Obsolete:--Document Version | ||
| LegalDocumentVersion | LegalDocumentVersion | Legal Document Version | ||
| LglCntntMChangedByUser | LglCntntMChangedByUser | Changed By User | ||
| LglCntntMChangedUTCDateTime | LglCntntMChangedUTCDateTime | Changed UTC Date Time | ||
| LglCntntMCreatedByUser | LglCntntMCreatedByUser | Created By | ||
| LglCntntMCreatedUTCDateTime | LglCntntMCreatedUTCDateTime | Created On | ||
| _LegalTransaction | _LegalTransaction |
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_LegalDocumentAPI01.
-- 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: ILEGALDOCAPI01
CREATE VIEW I_LegalDocumentAPI01 AS
SELECT
LglCntntMDocumentUUID,
LglCntntMDocument,
LglCntntMDocumentIsTopVersion,
LegalTransaction,
LegalTransactionUUID,
LglCntntMDocContentType,
LglCntntMDocAccessLvl,
InternalDocumentStatus,
LglCntntMLanguage,
DocumentDescription,
LglCntntMIsMandatory,
DocumentVersion,
LegalDocumentVersion,
LglCntntMChangedByUser,
LglCntntMChangedUTCDateTime,
LglCntntMCreatedByUser,
LglCntntMCreatedUTCDateTime
FROM I_LegalDocument
LEFT OUTER JOIN I_LegalTransactionAPI01 AS _LegalTransaction ON LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID -- association [1..1]
LEFT OUTER JOIN E_LegalDocument AS _Extension ON LglCntntMDocumentUUID = _Extension.LglCntntMDocumentUUID -- 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