I_LcmDocumentTP

DDL: I_LCMDOCUMENTTP SQL: ILCMDOCUMENTTP Type: view TRANSACTIONAL Package: APPL_LCM_DOC

TP View for Legal Document

I_LcmDocumentTP is a Transactional CDS View that provides data about "TP View for Legal Document" in SAP S/4HANA. It reads from 1 data source (I_LcmDocument) and exposes 98 fields with key field LglCntntMDocumentUUID. It has 11 associations to related views. Part of development package APPL_LCM_DOC.

Data Sources (1)

SourceAliasJoin Type
I_LcmDocument I_LcmDocument from

Associations (11)

CardinalityTargetAliasCondition
[0..*] I_LglCntntMDocumentStampTP _LglCntntMDocumentStampTP $projection.LglCntntMDocumentUUID = _LglCntntMDocumentStampTP.LglCntntMDocumentUUID
[1..1] I_LglCntntMDocTemplateInfoTP _LglCntntMDocTemplateInfoTP $projection.LglCntntMDocumentUUID = _LglCntntMDocTemplateInfoTP.LglCntntMDocumentUUID
[0..*] I_LglCntntMDocParCategoryTP _LglCntntMDocParCategoryTP $projection.LglCntntMDocumentUUID = _LglCntntMDocParCategoryTP.LglCntntMDocumentUUID
[1..1] I_LglCntntMVirtualDocVersTP _LglCntntMVirtualDocVersTP $projection.LglCntntMDocumentUUID = _LglCntntMVirtualDocVersTP.LglCntntMDocumentUUID
[0..*] I_LcmDocument _ParentDocument $projection.LglCntntMParentDocument = _ParentDocument.LglCntntMDocument
[0..*] I_LglCntntMDocStatusChgsTP _LglCntntMDocStatusChgsTP $projection.LglCntntMDocumentUUID = _LglCntntMDocStatusChgsTP.LglCntntMDocumentUUID
[1..*] I_LglCntntMDocObligationTP _LglCntntMDocObligationTP $projection.LglCntntMDocumentUUID = _LglCntntMDocObligationTP.LglCntntMDocumentUUID
[1..1] I_LglCntntMDocAggregation _LglCntntMDocAggregation _LglCntntMDocAggregation.LglCntntMDocumentUUID = $projection.LglCntntMDocumentUUID
[1..1] E_LegalDocument _Extenstion $projection.LglCntntMDocumentUUID = _Extenstion.LglCntntMDocumentUUID
[0..1] I_LglCntntMTemplate _LglCntntMTemplate $projection.LglCntntMTmplUUID = _LglCntntMTemplate.LglCntntMTmplUUID
[0..1] I_LglCntntMDocAgreementTP _LglCntntMDocAgreementTP $projection.LglCntntMDocumentUUID = _LglCntntMDocAgreementTP.LglCntntMDocumentUUID

Annotations (23)

NameValueLevelField
AbapCatalog.sqlViewName ILCMDOCUMENTTP view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #TRANSACTIONAL view
ObjectModel.representativeKey LglCntntMDocumentUUID view
ObjectModel.semanticKey LglCntntMDocument view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.writeActivePersistence LCM_DOCUMENT view
ObjectModel.writeDraftPersistence LCM_DOCUMENT_D view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.entityChangeStateId LglCntntMChangedUTCDateTime view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.sapObjectNodeType.name LegalDocument view
EndUserText.label TP View for Legal Document view

Fields (98)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMDocumentUUID I_LcmDocument LglCntntMDocumentUUID Universal Unique ID
LglCntntMDocument I_LcmDocument LglCntntMDocument Document ID
LglCntntMDocumentLinkedObject I_LcmDocument LglCntntMDocumentLinkedObject Object
LglCntntMDocumentLinkedObjKey I_LcmDocument LglCntntMDocumentLinkedObjKey UUID Char32
LglCntntMDocumentIsTopVersion I_LcmDocument LglCntntMDocumentIsTopVersion TRUE
LegalTransaction I_LcmDocument LegalTransaction Legal Transaction ID
LegalTransactionUUID I_LcmDocument LegalTransactionUUID Universal Unique ID
LegalTransactionTitle I_LcmDocument LegalTransactionTitle Title
LglCntntMDocContentType I_LcmDocument LglCntntMDocContentType Content Type
LglCntntMLanguage I_LcmDocument LglCntntMLanguage Language
LglCntntMParentDocument I_LcmDocument LglCntntMParentDocument Parent Document ID
LglCntntMDocAccessLvl I_LcmDocument LglCntntMDocAccessLvl Acs. Level
LglCntntMChangedByUser I_LcmDocument LglCntntMChangedByUser Changed By
LglCntntMChangedUTCDateTime I_LcmDocument LglCntntMChangedUTCDateTime Changed On
LglCntntMCreatedByUser I_LcmDocument LglCntntMCreatedByUser Created By
LglCntntMCreatedUTCDateTime I_LcmDocument LglCntntMCreatedUTCDateTime Created On
IsEndOfPurposeBlocked I_LcmDocument IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
LglCntntMIsMandatory I_LcmDocument LglCntntMIsMandatory Is Mandatory
LglCntntMAgingTemperature I_LcmDocument LglCntntMAgingTemperature
DocumentDescription I_LcmDocument DocumentDescription Doc. Name
LglCntntMProfile I_LcmDocument LglCntntMProfile Profile
InternalDocumentStatus I_LcmDocument InternalDocumentStatus Status
LglCntntMSignatureDocStatus I_LcmDocument LglCntntMSignatureDocStatus Sign Document Status
DocumentVersion I_LcmDocument DocumentVersion Docu. Version
LegalDocumentVersion I_LcmDocument LegalDocumentVersion Docu. Version
LglCntntMDocType I_LcmDocument LglCntntMDocType Document Type
LglCntntMDocAssemblyStatus I_LcmDocument LglCntntMDocAssemblyStatus Assembly Status
LglCntntMLongTextUUID I_LcmDocument LglCntntMLongTextUUID Description UUID
LglCntntMLongText I_LcmDocument LglCntntMLongText Trusted Site Content
LglCntntMLongTextMimeType I_LcmDocument LglCntntMLongTextMimeType MIMETYPE
LglCntntMTmplUUID I_LcmDocument LglCntntMTmplUUID Template UUID
LglCntntMVirtualDocVersKey I_LcmDocument LglCntntMVirtualDocVersKey Virtual Doc Version
LglCntntMVirtualDocSyncSts I_LcmDocument LglCntntMVirtualDocSyncSts Doc Content Sync Sts
LglCntntMCntxtDocUUID I_LcmDocument LglCntntMCntxtDocUUID Universal Unique ID
LglCntntMCreatedFromDocUUID I_LcmDocument LglCntntMCreatedFromDocUUID Universal Unique ID
LglCntntMMainLinkdObjType I_LcmDocument LglCntntMMainLinkdObjType Main Linked Obj Type
LglCntntMMainLinkedObject I_LcmDocument LglCntntMMainLinkedObject
LglCntntMDocEffectiveFromDate I_LcmDocument LglCntntMDocEffectiveFromDate Effective From
LglCntntMDocAmendmentType I_LcmDocument LglCntntMDocAmendmentType Amendment Type
LglCntntMSgntrPreference I_LcmDocument LglCntntMSgntrPreference Signature Preference
LegalDocumentSource I_LcmDocument LegalDocumentSource Legal Doc Source
LglCntntMDocReferenceNumber I_LcmDocument LglCntntMDocReferenceNumber Reference Number
LglCntntMDocLowTouchLevel I_LcmDocument LglCntntMDocLowTouchLevel Doc Low touch level
LglCntntMDocRefreshStatus I_LcmDocument LglCntntMDocRefreshStatus Content Refresh
FileName
MimeType
DocumentInfoRecordDocType
DocumentInfoRecordDocNumber
DocumentInfoRecordDocPart
DocumentInfoRecordDocVersion
LogicalDocument
PhysicalDocument
FileUUID
LglCntntMDocIsVersCreateEnable
LglCntntMDocumentHasStamp
LglCntntMDocIsCheckedIn
LglCntntMDocIsCrteStmpEnbld
LglCntntMDocIsCrteOblgnEnbld
LglCntntMDocIsFileChanged
LglCntntMIsVarblPushRqd
LglCntntMDocCheckOutTime
LglCntntMDocPrevStatus
LegalDocumentCreatedFrom
LglCntntMTmplName
IsCloudSystem
LglCntntMDocVirtualDocURL
LglCntntMNmbrOfAdminvDocUpdt LglCntntMNmbrOfAdminvDocUpdt No of Admin Update
LglCntntMDocumentKind LglCntntMDocumentKind Document Kind
LglCntntMDocPaperType I_LcmDocument LglCntntMDocPaperType Paper Type
LglCntntMVirtualDocDownloadURL
LglCntntMGovLaw I_LcmDocument LglCntntMGovLaw Governing Law
LglCntntMContext _Context LglCntntMContext Context ID
LglCntntMDocLockedReasonCode I_LcmDocument LglCntntMDocLockedReasonCode Locked Reason
LglCntntMDocIsToBeDeleted I_LcmDocument LglCntntMDocIsToBeDeleted Doc. To Be Deleted
LglCntntMTmplID _LglCntntMTemplate LglCntntMTmplID Template ID
LglCntntMCntxtDocumentID LglCntntMCntxtDocumentID Context Document ID
LglCntntMIsIntegRelevant LglCntntMIsIntegRelevant Integrated
_LglCntntMDocumentStampTP _LglCntntMDocumentStampTP
_LglCntntMDocTemplateInfoTP _LglCntntMDocTemplateInfoTP
_LglCntntMDocParCategoryTP _LglCntntMDocParCategoryTP
_LglCntntMDocStatusChgsTP _LglCntntMDocStatusChgsTP
_LglCntntMVirtualDocVersTP _LglCntntMVirtualDocVersTP
_LglCntntMDocObligationTP _LglCntntMDocObligationTP
_LglCntntMDocAgreementTP _LglCntntMDocAgreementTP
_LegalTransaction I_LcmDocument _LegalTransaction
_DocAttach I_LcmDocument _DocAttach
_ContentTypeText I_LcmDocument _ContentTypeText
_DocumentKindText I_LcmDocument _DocumentKindText
_AccessLvlText I_LcmDocument _AccessLvlText
_DocStatusText I_LcmDocument _DocStatusText
_SgntrDocStatusText I_LcmDocument _SgntrDocStatusText
_DocSyncStatusText I_LcmDocument _DocSyncStatusText
_LglCntntMDocLowTouchLvlTxt I_LcmDocument _LglCntntMDocLowTouchLvlTxt
_LglCntntMDocAmendmentTypeTxt I_LcmDocument _LglCntntMDocAmendmentTypeTxt
_LglCntntMSgntrPreferenceText I_LcmDocument _LglCntntMSgntrPreferenceText
_LglCntntMDocAssemblyInfo I_LcmDocument _LglCntntMDocAssemblyInfo
_LglCntntMDocPaperTypeTxt I_LcmDocument _LglCntntMDocPaperTypeTxt
_LglCntntMTemplate _LglCntntMTemplate

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_LcmDocumentTP.
-- 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: ILCMDOCUMENTTP

CREATE VIEW I_LcmDocumentTP AS
SELECT
  I_LcmDocument.LglCntntMDocumentUUID AS LglCntntMDocumentUUID,
  I_LcmDocument.LglCntntMDocument AS LglCntntMDocument,
  I_LcmDocument.LglCntntMDocumentLinkedObject AS LglCntntMDocumentLinkedObject,
  I_LcmDocument.LglCntntMDocumentLinkedObjKey AS LglCntntMDocumentLinkedObjKey,
  I_LcmDocument.LglCntntMDocumentIsTopVersion AS LglCntntMDocumentIsTopVersion,
  I_LcmDocument.LegalTransaction AS LegalTransaction,
  I_LcmDocument.LegalTransactionUUID AS LegalTransactionUUID,
  I_LcmDocument.LegalTransactionTitle AS LegalTransactionTitle,
  I_LcmDocument.LglCntntMDocContentType AS LglCntntMDocContentType,
  I_LcmDocument.LglCntntMLanguage AS LglCntntMLanguage,
  I_LcmDocument.LglCntntMParentDocument AS LglCntntMParentDocument,
  I_LcmDocument.LglCntntMDocAccessLvl AS LglCntntMDocAccessLvl,
  I_LcmDocument.LglCntntMChangedByUser AS LglCntntMChangedByUser,
  I_LcmDocument.LglCntntMChangedUTCDateTime AS LglCntntMChangedUTCDateTime,
  I_LcmDocument.LglCntntMCreatedByUser AS LglCntntMCreatedByUser,
  I_LcmDocument.LglCntntMCreatedUTCDateTime AS LglCntntMCreatedUTCDateTime,
  I_LcmDocument.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  I_LcmDocument.LglCntntMIsMandatory AS LglCntntMIsMandatory,
  I_LcmDocument.LglCntntMAgingTemperature AS LglCntntMAgingTemperature,
  I_LcmDocument.DocumentDescription AS DocumentDescription,
  I_LcmDocument.LglCntntMProfile AS LglCntntMProfile,
  I_LcmDocument.InternalDocumentStatus AS InternalDocumentStatus,
  I_LcmDocument.LglCntntMSignatureDocStatus AS LglCntntMSignatureDocStatus,
  I_LcmDocument.DocumentVersion AS DocumentVersion,
  I_LcmDocument.LegalDocumentVersion AS LegalDocumentVersion,
  I_LcmDocument.LglCntntMDocType AS LglCntntMDocType,
  I_LcmDocument.LglCntntMDocAssemblyStatus AS LglCntntMDocAssemblyStatus,
  I_LcmDocument.LglCntntMLongTextUUID AS LglCntntMLongTextUUID,
  I_LcmDocument.LglCntntMLongText AS LglCntntMLongText,
  I_LcmDocument.LglCntntMLongTextMimeType AS LglCntntMLongTextMimeType,
  I_LcmDocument.LglCntntMTmplUUID AS LglCntntMTmplUUID,
  I_LcmDocument.LglCntntMVirtualDocVersKey AS LglCntntMVirtualDocVersKey,
  I_LcmDocument.LglCntntMVirtualDocSyncSts AS LglCntntMVirtualDocSyncSts,
  I_LcmDocument.LglCntntMCntxtDocUUID AS LglCntntMCntxtDocUUID,
  I_LcmDocument.LglCntntMCreatedFromDocUUID AS LglCntntMCreatedFromDocUUID,
  I_LcmDocument.LglCntntMMainLinkdObjType AS LglCntntMMainLinkdObjType,
  I_LcmDocument.LglCntntMMainLinkedObject AS LglCntntMMainLinkedObject,
  I_LcmDocument.LglCntntMDocEffectiveFromDate AS LglCntntMDocEffectiveFromDate,
  I_LcmDocument.LglCntntMDocAmendmentType AS LglCntntMDocAmendmentType,
  I_LcmDocument.LglCntntMSgntrPreference AS LglCntntMSgntrPreference,
  I_LcmDocument.LegalDocumentSource AS LegalDocumentSource,
  I_LcmDocument.LglCntntMDocReferenceNumber AS LglCntntMDocReferenceNumber,
  I_LcmDocument.LglCntntMDocLowTouchLevel AS LglCntntMDocLowTouchLevel,
  I_LcmDocument.LglCntntMDocRefreshStatus AS LglCntntMDocRefreshStatus,
  cast( '' as abap.char(200) ) AS FileName,
  cast( '' as abap.char(128) ) AS MimeType,
  cast( '' as dokar ) AS DocumentInfoRecordDocType,
  cast( '' as abap.char(25) ) AS DocumentInfoRecordDocNumber,
  cast( '' as abap.char(3) ) AS DocumentInfoRecordDocPart,
  cast( '' as abap.char(2) ) AS DocumentInfoRecordDocVersion,
  cast( '' as abap.char(32) ) AS LogicalDocument,
  cast( '' as abap.char(32) ) AS PhysicalDocument,
  cast( '' as sysuuid_c ) AS FileUUID,
  '' AS LglCntntMDocIsVersCreateEnable,
  '' AS LglCntntMDocumentHasStamp,
  '' AS LglCntntMDocIsCheckedIn,
  '' AS LglCntntMDocIsCrteStmpEnbld,
  '' AS LglCntntMDocIsCrteOblgnEnbld,
  '' AS LglCntntMDocIsFileChanged,
  '' AS LglCntntMIsVarblPushRqd,
  cast( 00 as lcm_created_on ) AS LglCntntMDocCheckOutTime,
  cast( '' as lcm_doc_created_from ) AS LegalDocumentCreatedFrom,
  cast( '' as lcm_tmpl_name ) AS LglCntntMTmplName,
  cast ('' as abap.char(4) ) AS IsCloudSystem,
  cast ( '' as abap.char(255) ) AS LglCntntMDocVirtualDocURL,
  LglCntntMNmbrOfAdminvDocUpdt,
  LglCntntMDocumentKind,
  I_LcmDocument.LglCntntMDocPaperType AS LglCntntMDocPaperType,
  cast ('' as abap.char(255) ) AS LglCntntMVirtualDocDownloadURL,
  I_LcmDocument.LglCntntMGovLaw AS LglCntntMGovLaw,
  _Context.LglCntntMContext AS LglCntntMContext,
  I_LcmDocument.LglCntntMDocLockedReasonCode AS LglCntntMDocLockedReasonCode,
  I_LcmDocument.LglCntntMDocIsToBeDeleted AS LglCntntMDocIsToBeDeleted,
  _LglCntntMTemplate.LglCntntMTmplID AS LglCntntMTmplID,
  LglCntntMCntxtDocumentID,
  LglCntntMIsIntegRelevant,
  I_LcmDocument._LegalTransaction AS _LegalTransaction,
  I_LcmDocument._DocAttach AS _DocAttach,
  I_LcmDocument._ContentTypeText AS _ContentTypeText,
  I_LcmDocument._DocumentKindText AS _DocumentKindText,
  I_LcmDocument._AccessLvlText AS _AccessLvlText,
  I_LcmDocument._DocStatusText AS _DocStatusText,
  I_LcmDocument._SgntrDocStatusText AS _SgntrDocStatusText,
  I_LcmDocument._DocSyncStatusText AS _DocSyncStatusText,
  I_LcmDocument._LglCntntMDocLowTouchLvlTxt AS _LglCntntMDocLowTouchLvlTxt,
  I_LcmDocument._LglCntntMDocAmendmentTypeTxt AS _LglCntntMDocAmendmentTypeTxt,
  I_LcmDocument._LglCntntMSgntrPreferenceText AS _LglCntntMSgntrPreferenceText,
  I_LcmDocument._LglCntntMDocAssemblyInfo AS _LglCntntMDocAssemblyInfo,
  I_LcmDocument._LglCntntMDocPaperTypeTxt AS _LglCntntMDocPaperTypeTxt
FROM I_LcmDocument
LEFT OUTER JOIN I_LglCntntMDocumentStampTP AS _LglCntntMDocumentStampTP ON LglCntntMDocumentUUID = _LglCntntMDocumentStampTP.LglCntntMDocumentUUID  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMDocTemplateInfoTP AS _LglCntntMDocTemplateInfoTP ON LglCntntMDocumentUUID = _LglCntntMDocTemplateInfoTP.LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN I_LglCntntMDocParCategoryTP AS _LglCntntMDocParCategoryTP ON LglCntntMDocumentUUID = _LglCntntMDocParCategoryTP.LglCntntMDocumentUUID  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMVirtualDocVersTP AS _LglCntntMVirtualDocVersTP ON LglCntntMDocumentUUID = _LglCntntMVirtualDocVersTP.LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN I_LcmDocument AS _ParentDocument ON LglCntntMParentDocument = _ParentDocument.LglCntntMDocument  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMDocStatusChgsTP AS _LglCntntMDocStatusChgsTP ON LglCntntMDocumentUUID = _LglCntntMDocStatusChgsTP.LglCntntMDocumentUUID  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMDocObligationTP AS _LglCntntMDocObligationTP ON LglCntntMDocumentUUID = _LglCntntMDocObligationTP.LglCntntMDocumentUUID  -- association [1..*]
LEFT OUTER JOIN I_LglCntntMDocAggregation AS _LglCntntMDocAggregation ON _LglCntntMDocAggregation.LglCntntMDocumentUUID = LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN E_LegalDocument AS _Extenstion ON LglCntntMDocumentUUID = _Extenstion.LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN I_LglCntntMTemplate AS _LglCntntMTemplate ON LglCntntMTmplUUID = _LglCntntMTemplate.LglCntntMTmplUUID  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMDocAgreementTP AS _LglCntntMDocAgreementTP ON LglCntntMDocumentUUID = _LglCntntMDocAgreementTP.LglCntntMDocumentUUID  -- association [0..1]
;