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 44 fields with key field LglCntntMDocumentUUID. It has 7 associations to related views.
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..*] | R_LegalDocTmplInfoTP | _LegalDocTmplInfo | |
| [0..*] | 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 (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LglCntntMDocumentUUID | LglCntntMDocumentUUID | ||
| LglCntntMDocument | LglCntntMDocument | |||
| LglCntntMDocumentLinkedObject | LglCntntMDocumentLinkedObject | |||
| LglCntntMDocumentLinkedObjKey | LglCntntMDocumentLinkedObjKey | |||
| LegalTransaction | LegalTransaction | |||
| LegalTransactionUUID | LegalTransactionUUID | |||
| LglCntntMDocContentType | LglCntntMDocContentType | |||
| LglCntntMLanguage | LglCntntMLanguage | |||
| DocumentDescription | DocumentDescription | |||
| LglCntntMDocAccessLvl | LglCntntMDocAccessLvl | |||
| LegalDocumentSource | LegalDocumentSource | |||
| LglCntntMChangedUTCDateTime | LglCntntMChangedUTCDateTime | |||
| LglCntntMChangedByUser | LglCntntMChangedByUser | |||
| LglCntntMCreatedUTCDateTime | LglCntntMCreatedUTCDateTime | |||
| LglCntntMCreatedByUser | LglCntntMCreatedByUser | |||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | |||
| InternalDocumentStatus | InternalDocumentStatus | |||
| LglCntntMDocPaperType | LglCntntMDocPaperType | |||
| LglCntntMProfile | LglCntntMProfile | |||
| LglCntntMDocType | LglCntntMDocType | |||
| LglCntntMDocumentIsTopVersion | LglCntntMDocumentIsTopVersion | |||
| LglCntntMVirtualDocVersKey | LglCntntMVirtualDocVersKey | |||
| LglCntntMDocAssemblyStatus | LglCntntMDocAssemblyStatus | |||
| LglCntntMTmplUUID | LglCntntMTmplUUID | |||
| LglCntntMDocLowTouchLevel | LglCntntMDocLowTouchLevel | |||
| LglCntntMTmplID | _LglCntntMTemplate | LglCntntMTmplID | ||
| LglCntntMParentDocument | LglCntntMParentDocument | |||
| LglCntntMIsMandatory | LglCntntMIsMandatory | |||
| DocumentVersion | DocumentVersion | |||
| LegalDocumentVersion | LegalDocumentVersion | |||
| LglCntntMDocReferenceNumber | LglCntntMDocReferenceNumber | |||
| LglCntntMDocumentKind | LglCntntMDocumentKind | |||
| LglTransAccessLvl | _LegalTransaction | LglTransAccessLvl | ||
| LglCntntMMainOrgCoCode | _LegalTransaction | LglCntntMMainOrgCoCode | ||
| LglCntntMMainOrgPurOrg | _LegalTransaction | LglCntntMMainOrgPurOrg | ||
| LglCntntMMainOrgSalesOrg | _LegalTransaction | LglCntntMMainOrgSalesOrg | ||
| _LegalTransaction | _LegalTransaction | |||
| _LglCntntMDocAssemblyInfo | _LglCntntMDocAssemblyInfo | |||
| _LglCntntMTemplate | _LglCntntMTemplate | |||
| _LegalDocParCategory | _LegalDocParCategory | |||
| _LegalDocStamp | _LegalDocStamp | |||
| _LegalDocObligation | _LegalDocObligation | |||
| _LegalDocTmplInfo | _LegalDocTmplInfo | |||
| _LegalDocAgreement | _LegalDocAgreement |
@AccessControl:{
authorizationCheck: #CHECK,
personalData.blocking: #BLOCKED_DATA_EXCLUDED
}
@EndUserText.label: 'Legal Document'
@ObjectModel: {
usageType: {
sizeCategory: #L,
serviceQuality: #C,
dataClass:#TRANSACTIONAL
}
}
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@Metadata.ignorePropagatedAnnotations:true
@ObjectModel.sapObjectNodeType.name:'LegalDocument'
define root view entity R_LegalDocumentTP
as select from I_LcmDocument
//Child Node
composition [0..*] of R_LegalDocParCategoryTP as _LegalDocParCategory
composition [0..*] of R_LegalDocStampTP as _LegalDocStamp
composition [0..*] of R_LegalDocObligationTP as _LegalDocObligation
composition [0..*] of R_LegalDocTmplInfoTP as _LegalDocTmplInfo
composition [0..*] of R_LegalDocAgreementTP as _LegalDocAgreement
//Template
association [0..1] to I_LglCntntMTemplate as _LglCntntMTemplate on $projection.LglCntntMTmplUUID = _LglCntntMTemplate.LglCntntMTmplUUID
//Extension
association [1..1] to E_LegalDocument as _Extenstion on $projection.LglCntntMDocumentUUID = _Extenstion.LglCntntMDocumentUUID
{
key LglCntntMDocumentUUID as LglCntntMDocumentUUID,
LglCntntMDocument as LglCntntMDocument,
LglCntntMDocumentLinkedObject as LglCntntMDocumentLinkedObject,
LglCntntMDocumentLinkedObjKey as LglCntntMDocumentLinkedObjKey,
LegalTransaction as LegalTransaction,
LegalTransactionUUID as LegalTransactionUUID,
LglCntntMDocContentType as LglCntntMDocContentType,
LglCntntMLanguage as LglCntntMLanguage,
DocumentDescription as DocumentDescription,
LglCntntMDocAccessLvl as LglCntntMDocAccessLvl,
LegalDocumentSource as LegalDocumentSource,
// For Etag
@Semantics.systemDateTime.lastChangedAt: true
LglCntntMChangedUTCDateTime as LglCntntMChangedUTCDateTime,
LglCntntMChangedByUser as LglCntntMChangedByUser,
LglCntntMCreatedUTCDateTime as LglCntntMCreatedUTCDateTime,
LglCntntMCreatedByUser as LglCntntMCreatedByUser,
@Semantics.booleanIndicator: true
IsEndOfPurposeBlocked as IsEndOfPurposeBlocked,
InternalDocumentStatus as InternalDocumentStatus,
LglCntntMDocPaperType as LglCntntMDocPaperType,
LglCntntMProfile as LglCntntMProfile,
LglCntntMDocType as LglCntntMDocType,
LglCntntMDocumentIsTopVersion as LglCntntMDocumentIsTopVersion,
LglCntntMVirtualDocVersKey as LglCntntMVirtualDocVersKey,
LglCntntMDocAssemblyStatus as LglCntntMDocAssemblyStatus,
LglCntntMTmplUUID as LglCntntMTmplUUID,
LglCntntMDocLowTouchLevel as LglCntntMDocLowTouchLevel,
_LglCntntMTemplate.LglCntntMTmplID as LglCntntMTmplID,
LglCntntMParentDocument as LglCntntMParentDocument,
LglCntntMIsMandatory as LglCntntMIsMandatory,
@UI.hidden:true
DocumentVersion as DocumentVersion, // Don't cast(DocumentVersion as dokvr)
LegalDocumentVersion as LegalDocumentVersion, //new field for document version number(NUMC4)
LglCntntMDocReferenceNumber as LglCntntMDocReferenceNumber,
LglCntntMDocumentKind as LglCntntMDocumentKind,
_LegalTransaction.LglTransAccessLvl,
_LegalTransaction.LglCntntMMainOrgCoCode,
_LegalTransaction.LglCntntMMainOrgPurOrg,
_LegalTransaction.LglCntntMMainOrgSalesOrg,
/* Associations */
_LegalTransaction,
_LglCntntMDocAssemblyInfo,
_LglCntntMTemplate,
_LegalDocParCategory,
_LegalDocStamp,
_LegalDocObligation,
_LegalDocTmplInfo,
_LegalDocAgreement
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LCMDOCUMENT",
"I_LEGALTRANSACTION",
"I_LGLCNTNTMTEMPLATE"
],
"ASSOCIATED":
[
"I_LEGALTRANSACTION",
"I_LGLCNTNTMDOCASSEMBLYINFO",
"I_LGLCNTNTMTEMPLATE",
"R_LEGALDOCAGREEMENTTP",
"R_LEGALDOCOBLIGATIONTP",
"R_LEGALDOCPARCATEGORYTP",
"R_LEGALDOCSTAMPTP",
"R_LEGALDOCTMPLINFOTP"
],
"BASE":
[
"I_LCMDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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