R_LegalDocumentTP
Legal Document
R_LegalDocumentTP is a Transactional CDS View that provides data about "Legal Document" in SAP S/4HANA. It reads from 1 data source (I_LcmDocument) and exposes 52 fields with key field LglCntntMDocumentUUID. It has 7 associations to related views. Part of development package RAP_LCM_DOC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LcmDocument | I_LcmDocument | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_LglCntntMTemplate | _LglCntntMTemplate | $projection.LglCntntMTmplUUID = _LglCntntMTemplate.LglCntntMTmplUUID |
| [1..1] | E_LegalDocument | _Extenstion | $projection.LglCntntMDocumentUUID = _Extenstion.LglCntntMDocumentUUID |
| [0..*] | R_LegalDocParCategoryTP | _LegalDocParCategory | |
| [0..*] | R_LegalDocStampTP | _LegalDocStamp | |
| [0..*] | R_LegalDocObligationTP | _LegalDocObligation | |
| [0..1] | R_LegalDocTmplInfoTP | _LegalDocTmplInfo | |
| [0..1] | R_LegalDocAgreementTP | _LegalDocAgreement | |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Legal Document | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.sapObjectNodeType.name | LegalDocument | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LglCntntMDocumentUUID | LglCntntMDocumentUUID | Universal Unique ID | |
| LglCntntMDocument | LglCntntMDocument | Document ID | ||
| LglCntntMDocumentLinkedObject | LglCntntMDocumentLinkedObject | Object | ||
| LglCntntMDocumentLinkedObjKey | LglCntntMDocumentLinkedObjKey | UUID Char32 | ||
| LegalTransaction | LegalTransaction | Legal Transaction ID | ||
| LegalTransactionUUID | LegalTransactionUUID | Universal Unique ID | ||
| LglCntntMDocContentType | LglCntntMDocContentType | Content Type | ||
| LglCntntMLanguage | LglCntntMLanguage | Language | ||
| DocumentDescription | DocumentDescription | Doc. Name | ||
| LglCntntMDocAccessLvl | LglCntntMDocAccessLvl | Acs. Level | ||
| LegalDocumentSource | LegalDocumentSource | Legal Doc Source | ||
| LglCntntMChangedUTCDateTime | LglCntntMChangedUTCDateTime | Changed On | ||
| LglCntntMChangedByUser | LglCntntMChangedByUser | Changed By | ||
| LglCntntMCreatedUTCDateTime | LglCntntMCreatedUTCDateTime | Created On | ||
| LglCntntMCreatedByUser | LglCntntMCreatedByUser | Created By | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| InternalDocumentStatus | InternalDocumentStatus | Status | ||
| LglCntntMDocPaperType | LglCntntMDocPaperType | Paper Type | ||
| LglCntntMProfile | LglCntntMProfile | Profile | ||
| LglCntntMDocType | LglCntntMDocType | Document Type | ||
| LglCntntMDocumentIsTopVersion | LglCntntMDocumentIsTopVersion | TRUE | ||
| LglCntntMVirtualDocVersKey | LglCntntMVirtualDocVersKey | Virtual Doc Version | ||
| LglCntntMDocAssemblyStatus | LglCntntMDocAssemblyStatus | Assembly Status | ||
| LglCntntMTmplUUID | LglCntntMTmplUUID | Template UUID | ||
| LglCntntMDocLowTouchLevel | LglCntntMDocLowTouchLevel | Doc Low touch level | ||
| LglCntntMTmplID | _LglCntntMTemplate | LglCntntMTmplID | Template ID | |
| LglCntntMParentDocument | LglCntntMParentDocument | Parent Document ID | ||
| LglCntntMIsMandatory | LglCntntMIsMandatory | Is Mandatory | ||
| DocumentVersion | DocumentVersion | Docu. Version | ||
| LegalDocumentVersion | LegalDocumentVersion | Docu. Version | ||
| LglCntntMDocReferenceNumber | LglCntntMDocReferenceNumber | Reference Number | ||
| LglCntntMDocumentKind | LglCntntMDocumentKind | Document Kind | ||
| LglCntntMMainLinkdObjType | LglCntntMMainLinkdObjType | Main Linked Obj Type | ||
| LglCntntMDocAmendmentType | LglCntntMDocAmendmentType | Amendment Type | ||
| LglCntntMDocEffectiveFromDate | LglCntntMDocEffectiveFromDate | Effective From | ||
| LglCntntMDocEffectiveToDate | LglCntntMDocEffectiveToDate | Valid From | ||
| LglCntntMSgntrPreference | LglCntntMSgntrPreference | Signature Preference | ||
| LglCntntMMainLinkedObject | LglCntntMMainLinkedObject | |||
| LglCntntMDocLockedReasonCode | LglCntntMDocLockedReasonCode | Locked Reason | ||
| LglCntntMDocLockedReasonText | _LglCntntMDocLockedReasonText | LglCntntMDocLockedReasonText | ||
| LglTransAccessLvl | _LegalTransaction | LglTransAccessLvl | Acs. Level | |
| LglCntntMMainOrgCoCode | _LegalTransaction | LglCntntMMainOrgCoCode | Entity ID | |
| LglCntntMMainOrgPurOrg | _LegalTransaction | LglCntntMMainOrgPurOrg | Entity ID | |
| LglCntntMMainOrgSalesOrg | _LegalTransaction | LglCntntMMainOrgSalesOrg | Entity ID | |
| _LegalTransaction | _LegalTransaction | |||
| _LglCntntMDocAssemblyInfo | _LglCntntMDocAssemblyInfo | |||
| _LglCntntMTemplate | _LglCntntMTemplate | |||
| _LegalDocParCategory | _LegalDocParCategory | |||
| _LegalDocStamp | _LegalDocStamp | |||
| _LegalDocObligation | _LegalDocObligation | |||
| _LegalDocTmplInfo | _LegalDocTmplInfo | |||
| _LegalDocAgreement | _LegalDocAgreement |
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 R_LegalDocumentTP.
-- 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.
CREATE VIEW R_LegalDocumentTP AS
SELECT
LglCntntMDocumentUUID,
LglCntntMDocument,
LglCntntMDocumentLinkedObject,
LglCntntMDocumentLinkedObjKey,
LegalTransaction,
LegalTransactionUUID,
LglCntntMDocContentType,
LglCntntMLanguage,
DocumentDescription,
LglCntntMDocAccessLvl,
LegalDocumentSource,
LglCntntMChangedUTCDateTime,
LglCntntMChangedByUser,
LglCntntMCreatedUTCDateTime,
LglCntntMCreatedByUser,
IsEndOfPurposeBlocked,
InternalDocumentStatus,
LglCntntMDocPaperType,
LglCntntMProfile,
LglCntntMDocType,
LglCntntMDocumentIsTopVersion,
LglCntntMVirtualDocVersKey,
LglCntntMDocAssemblyStatus,
LglCntntMTmplUUID,
LglCntntMDocLowTouchLevel,
_LglCntntMTemplate.LglCntntMTmplID AS LglCntntMTmplID,
LglCntntMParentDocument,
LglCntntMIsMandatory,
DocumentVersion,
LegalDocumentVersion,
LglCntntMDocReferenceNumber,
LglCntntMDocumentKind,
LglCntntMMainLinkdObjType,
LglCntntMDocAmendmentType,
LglCntntMDocEffectiveFromDate,
LglCntntMDocEffectiveToDate,
LglCntntMSgntrPreference,
LglCntntMMainLinkedObject,
LglCntntMDocLockedReasonCode,
_LglCntntMDocLockedReasonText.LglCntntMDocLockedReasonText AS LglCntntMDocLockedReasonText,
_LegalTransaction.LglTransAccessLvl AS LglTransAccessLvl,
_LegalTransaction.LglCntntMMainOrgCoCode AS LglCntntMMainOrgCoCode,
_LegalTransaction.LglCntntMMainOrgPurOrg AS LglCntntMMainOrgPurOrg,
_LegalTransaction.LglCntntMMainOrgSalesOrg AS LglCntntMMainOrgSalesOrg
FROM I_LcmDocument
LEFT OUTER JOIN I_LglCntntMTemplate AS _LglCntntMTemplate ON LglCntntMTmplUUID = _LglCntntMTemplate.LglCntntMTmplUUID -- association [0..1]
LEFT OUTER JOIN E_LegalDocument AS _Extenstion ON LglCntntMDocumentUUID = _Extenstion.LglCntntMDocumentUUID -- association [1..1]
LEFT OUTER JOIN R_LegalDocParCategoryTP AS _LegalDocParCategory ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LegalDocStampTP AS _LegalDocStamp ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LegalDocObligationTP AS _LegalDocObligation ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LegalDocTmplInfoTP AS _LegalDocTmplInfo ON /* condition not available in parsed metadata */ -- association [0..1]
LEFT OUTER JOIN R_LegalDocAgreementTP AS _LegalDocAgreement ON /* condition not available in parsed metadata */ -- association [0..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