R_LegalDocumentTP

DDL: R_LEGALDOCUMENTTP Type: view_entity TRANSACTIONAL Package: RAP_LCM_DOC

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)

SourceAliasJoin Type
I_LcmDocument I_LcmDocument from

Associations (7)

CardinalityTargetAliasCondition
[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)

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

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