I_LegalDocumentAPI01

DDL: I_LEGALDOCUMENTAPI01 SQL: ILEGALDOCAPI01 Type: view BASIC Package: VDM_LCM_DOC

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

CategoryCDS Views for Enterprise Contract Management
StatusInternal 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

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSourcing & Procurement
Application ComponentCM-DOC-2CL
CapabilitiesData 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
PackageSourcing 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

Data Sources (1)

SourceAliasJoin Type
I_LegalDocument I_LegalDocument from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_LegalTransactionAPI01 _LegalTransaction $projection.LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID
[1..1] E_LegalDocument _Extension $projection.LglCntntMDocumentUUID = _Extension.LglCntntMDocumentUUID

Annotations (14)

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

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