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
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
LglCntntMMainLinkdObjType LglCntntMMainLinkdObjType
LglCntntMDocAmendmentType LglCntntMDocAmendmentType
LglCntntMDocEffectiveFromDate LglCntntMDocEffectiveFromDate
LglCntntMDocEffectiveToDate LglCntntMDocEffectiveToDate
LglCntntMSgntrPreference LglCntntMSgntrPreference
LglCntntMMainLinkedObject LglCntntMMainLinkedObject
LglCntntMDocLockedReasonCode LglCntntMDocLockedReasonCode
LglCntntMDocLockedReasonText _LglCntntMDocLockedReasonText LglCntntMDocLockedReasonText
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..1] of R_LegalDocTmplInfoTP    as _LegalDocTmplInfo
  composition [0..1] 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,
      LglCntntMMainLinkdObjType                                  as LglCntntMMainLinkdObjType,

      @Feature: 'LCM_DOC_AMENDMENT_TYPE_ENH'
      LglCntntMDocAmendmentType                                  as LglCntntMDocAmendmentType,

      @Feature: 'LCM_DOCUMENT_ENH'
      LglCntntMDocEffectiveFromDate                              as LglCntntMDocEffectiveFromDate,

      @Feature: 'LCM_DOCUMENT_ENH'
      LglCntntMDocEffectiveToDate                                as LglCntntMDocEffectiveToDate,

      @Feature: 'LCM_DOCUMENT_SIGNATURE_ENH'
      LglCntntMSgntrPreference,

      @Feature: 'LCM_DOC_ASSIGN_LINKEDOBJECT'
      LglCntntMMainLinkedObject,

      LglCntntMDocLockedReasonCode                               as LglCntntMDocLockedReasonCode,
      _LglCntntMDocLockedReasonText.LglCntntMDocLockedReasonText as LglCntntMDocLockedReasonText,

      _LegalTransaction.LglTransAccessLvl,
      _LegalTransaction.LglCntntMMainOrgCoCode,
      _LegalTransaction.LglCntntMMainOrgPurOrg,
      _LegalTransaction.LglCntntMMainOrgSalesOrg,

      /* Associations */
      _LegalTransaction,
      _LglCntntMDocAssemblyInfo,
      _LglCntntMTemplate,
      _LegalDocParCategory,
      _LegalDocStamp,
      _LegalDocObligation,
      _LegalDocTmplInfo,
      _LegalDocAgreement

}