C_LegalTransactionTP
Legal Transaction
C_LegalTransactionTP is a Consumption CDS View that provides data about "Legal Transaction" in SAP S/4HANA. It reads from 1 data source (I_LegalTransactionTP) and exposes 131 fields with key field LegalTransactionUUID. It has 51 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LegalTransactionTP | LglTransaction | from |
Associations (51)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LegalTransactionAggr | _LegalTransactionAggrgn | $projection.LegalTransactionUUID = _LegalTransactionAggrgn.LegalTransactionUUID |
| [0..1] | C_LglCntntMContextQuickView | _LglCntntMContextQuickView | $projection.LglCntntMContextVersion = _LglCntntMContextQuickView.LglCntntMContextVersion and $projection.LegalContext = _LglCntntMContextQuickView.LegalContext |
| [0..*] | C_LegalTransactionEntityTP | _LegalTransactionEntityTP | $projection.LegalTransactionUUID = _LegalTransactionEntityTP.LegalTransactionUUID |
| [0..*] | C_LegalTransactionIntContactTP | _LegalTransactionIntContactTP | $projection.LegalTransactionUUID = _LegalTransactionIntContactTP.LegalTransactionUUID |
| [0..*] | C_LegalTransactionExtContactTP | _LegalTransactionExtContactTP | $projection.LegalTransactionUUID = _LegalTransactionExtContactTP.LegalTransactionUUID |
| [0..1] | C_LegalTransRnwlAndTermnTP | _LegalTransRnwlAndTermnTP | $projection.LegalTransactionUUID = _LegalTransRnwlAndTermnTP.LegalTransactionUUID |
| [0..*] | C_LegalTransactionDateTP | _LegalTransactionDateTP | $projection.LegalTransactionUUID = _LegalTransactionDateTP.LegalTransactionUUID |
| [0..*] | C_LegalTransactionReminderTP | _LegalTransactionReminderTP | $projection.LegalTransactionUUID = _LegalTransactionReminderTP.LegalTransactionUUID |
| [0..*] | C_LegalTrRelationshipTP | _LegalTrRelationshipTP | $projection.LegalTransactionUUID = _LegalTrRelationshipTP.LegalTransactionUUID |
| [0..*] | C_LegalTrLinkedObjectsTP | _LegalTrLinkedObjectsTP | $projection.LegalTransactionUUID = _LegalTrLinkedObjectsTP.LegalTransactionUUID |
| [0..*] | C_LegalTransactionStartedTasks | _LegalTransactionStartedTasks | $projection.LegalTransactionUUID = _LegalTransactionStartedTasks.LegalTransactionUUID |
| [0..*] | C_LglCntntMWrkflwDocLink | _LglCntntMWrkflwDocLink | $projection.LegalTransactionUUID = _LglCntntMWrkflwDocLink.LegalTransactionUUID |
| [0..*] | C_LglCntntMTaskGroupTP | _LglCntntMTaskGroupTP | $projection.LegalTransactionUUID = _LglCntntMTaskGroupTP.LegalTransactionUUID |
| [0..*] | C_LglCntntMTaskGroup | _LglCntntMTaskGroup | $projection.LegalTransactionUUID = _LglCntntMTaskGroup.LegalTransactionUUID |
| [1..*] | C_LegalTrCategoryGroupTP | _LegalTrCategoryGroupTP | $projection.LegalTransactionUUID = _LegalTrCategoryGroupTP.LegalTransactionUUID |
| [0..*] | C_LCMLegalTrDocument | _LCMLegalTrDocument | $projection.LegalTransaction = _LCMLegalTrDocument.LegalTransaction and _LCMLegalTrDocument.LglCntntMDocumentIsTopVersion = 'X' |
| [0..*] | C_LglCntntMDocRefresh | _LglCntntMDocRefresh | $projection.LegalTransaction = _LglCntntMDocRefresh.LegalTransaction |
| [0..*] | C_LglCntntMRefreshDocAgreement | _LglCntntMRefreshDocAgreement | $projection.LegalTransaction = _LglCntntMRefreshDocAgreement.LegalTransaction |
| [0..*] | C_LCMLegalTrDocument | _LglCntntMWrkflwDocAttach | _LglCntntMWrkflwDocAttach.LegalTransaction = $projection.LegalTransaction and _LglCntntMWrkflwDocAttach.LglCntntMDocumentIsTopVersion = 'X' and _LglCntntMWrkflwDocAttach.LglCntntMIsRstrcdDocCntnt = '' and ( ( InternalDocumentStatus <> 'A1' and InternalDocumentStatus <> 'NW' ) and( ( LglCntntMDocType = 'D' and( ( _LglCntntMWrkflwDocAttach.LglCntntMSignatureDocStatus <> '01' and _LglCntntMWrkflwDocAttach.LglCntntMDocIsLockedForCollabn <> 'X' and LglCntntMDocRefreshStatus is null or( LglCntntMDocRefreshStatus <> 'EVLTN' and LglCntntMDocRefreshStatus <> 'REQRD' ) ) ) ) or( LglCntntMDocType = 'V' and( LglCntntMDocAssemblyStatus = 'final' and( LglCntntMDocRefreshStatus is null or( LglCntntMDocRefreshStatus <> 'EVLTN' and LglCntntMDocRefreshStatus <> 'REQRD' ) ) ) ) ) ) |
| [0..*] | C_LegalTransactionDocLinkTP | _LegalTransactionDocLinkTP | $projection.LegalTransactionUUID = _LegalTransactionDocLinkTP.LegalTransactionUUID |
| [0..*] | C_LglCntntMRelshpDocLink | _LTRelshpDocLink | $projection.LegalTransactionUUID = _LTRelshpDocLink.LegalTransactionUUID |
| [1..*] | C_LegalTransactionSgntrGrp | _LegalTransactionSgntrGrp | $projection.LegalTransactionUUID = _LegalTransactionSgntrGrp.LegalTransactionUUID |
| [1..*] | C_LegalTransCollaboration | _LegalTransCollaboration | $projection.LegalTransactionUUID = _LegalTransCollaboration.LegalTransactionUUID |
| [1..*] | C_LegalTransactionPhase | _LegalTransactionPhase | $projection.LegalTransactionUUID = _LegalTransactionPhase.LegalTransactionUUID |
| [0..1] | C_LegalTrContextIdValueHelp | _LegalTrContextIdValueHelp | $projection.LglCntntMContextVersion = _LegalTrContextIdValueHelp.LglCntntMContextVersion and $projection.LegalContext = _LegalTrContextIdValueHelp.LglCntntMContext |
| [0..1] | C_LegalTransactionIdValueHelp | _LegalTransactionIdValueHelp | $projection.LegalTransaction = _LegalTransactionIdValueHelp.LegalTransaction |
| [0..1] | C_LegalTransactionHealthVH | _LegalTransactionHealthVH | $projection.LegalTransactionHealth = _LegalTransactionHealthVH.LegalTransactionHealth |
| [0..1] | C_LCMUserValueHelp | _CreatedBy | $projection.LglCntntMCreatedByUser = _CreatedBy.UserID |
| [0..1] | C_LCMUserValueHelp | _ChangedBy | $projection.LglCntntMChangedByUser = _ChangedBy.UserID |
| [0..1] | C_LcmLanguageValueHelp | _LanguageValueHelp | $projection.LglCntntMLanguage = _LanguageValueHelp.Language |
| [0..1] | C_LglCntntMMainEntity | _LglCntntMMainEntity | $projection.LegalTransactionUUID = _LglCntntMMainEntity.LegalTransactionUUID |
| [0..1] | C_LglCntntMGovLawVH | _LCMGovLawVH | $projection.LglCntntMGovLaw = _LCMGovLawVH.LglCntntMGovLaw |
| [0..1] | C_LglTransAccLvlValHelp | _LglTransAccLvlValHelp | $projection.LglTransAccessLvlFilter = _LglTransAccLvlValHelp.LglCntntMAccessLvl |
| [0..1] | C_LglTransAccLvlEditValHelp | _LglTransAccLvlEditValHelp | $projection.LglTransAccessLvl = _LglTransAccLvlEditValHelp.LglCntntMAccessLvl and $projection.LglCntntMProfile = _LglTransAccLvlEditValHelp.LglCntntMProfile |
| [0..1] | C_LglTransMainOrgCoCodeEditVH | _LglTransMainOrgCoCodeEditVH | $projection.LglCntntMMainOrgCoCode = _LglTransMainOrgCoCodeEditVH.CompanyCode |
| [0..1] | C_LglTransMainOrgPurOrgEditVH | _LglTransMainOrgPurOrgEditVH | $projection.LglCntntMMainOrgPurOrg = _LglTransMainOrgPurOrgEditVH.PurchasingOrganization |
| [0..1] | C_LglTransMainOrgSlsOrgEditVH | _LglTransMainOrgSlsOrgEditVH | $projection.LglCntntMMainOrgSalesOrg = _LglTransMainOrgSlsOrgEditVH.SalesOrganization |
| [0..1] | C_LCMCompanyCodeValueHelp | _CompanyCodeValueHelp | $projection.LglCntntMMainOrgCoCode = _CompanyCodeValueHelp.CompanyCode |
| [0..1] | C_LCMPurchasingOrgValueHelp | _PurchasingOrgValueHelp | $projection.LglCntntMMainOrgPurOrg = _PurchasingOrgValueHelp.PurchasingOrganization |
| [0..1] | C_LCMSalesOrganizationVH | _SalesOrganizationVH | $projection.LglCntntMMainOrgSalesOrg = _SalesOrganizationVH.SalesOrganization |
| [0..1] | I_LCMUserContactCard | _CreatedByContactCard | _CreatedByContactCard.ContactCardType = 'User' and _CreatedByContactCard.ContactCardID = $projection.LglCntntMCreatedByUser and _CreatedByContactCard.ContactCardRole = 'Creator' |
| [0..1] | I_LCMUserContactCard | _ChangedByContactCard | _ChangedByContactCard.ContactCardType = 'User' and _ChangedByContactCard.ContactCardID = $projection.LglCntntMChangedByUser and _ChangedByContactCard.ContactCardRole = 'Creator' |
| [0..1] | C_LglCntntMProfileValueHelp | _LglCntntMProfileValueHelp | $projection.LglCntntMProfile = _LglCntntMProfileValueHelp.LglCntntMProfile and $projection.LglCntntMIntegrationType = _LglCntntMProfileValueHelp.LglCntntMIntegrationType |
| [0..1] | C_LglCntntMIntegTypeVH | _LglCntntMIntegTypeVH | $projection.LglCntntMProfile = _LglCntntMIntegTypeVH.LglCntntMProfile and $projection.LglCntntMIntegrationType = _LglCntntMIntegTypeVH.LglCntntMIntegrationType |
| [0..*] | C_LglCntntMNotesLglTrans | _LglCntntMNotesLglTrans | _LglCntntMNotesLglTrans.LglCntntMParApplObjUUID = LglTransaction.LegalTransactionUUID |
| [0..*] | C_LglCntntMNotesLglTransObj | _LglCntntMNotesLglTransObj | _LglCntntMNotesLglTransObj.LglCntntMParApplObjUUID = LglTransaction.LegalTransactionUUID |
| [0..*] | C_LglCntntMRelshpUseCaseStatus | _LglCntntMRelshpUseCaseStatus | $projection.LegalTransactionUUID = _LglCntntMRelshpUseCaseStatus.LegalTransactionUUID |
| [0..1] | C_LCMActiveCntxtIdValueHelp | _LCMActiveCntxtIdValueHelp | $projection.LglCntntMContextUUID = _LCMActiveCntxtIdValueHelp.LglCntntMContextUUID |
| [0..1] | C_LegalContentRequestCntxtIDVH | _LegalContentRequestCntxtIDVH | $projection.LglCntntMContextUUID = _LegalContentRequestCntxtIDVH.LglCntntMContextUUID |
| [0..*] | C_LglCntntMDocOblgnReminder | _LglCntntMDocOblgnReminder | $projection.LegalTransaction = _LglCntntMDocOblgnReminder.LegalTransaction |
| [0..*] | C_LglCntntMDocObligation | _LglCntntMDocObligation | $projection.LegalTransaction = _LglCntntMDocObligation.LegalTransaction |
Annotations (21)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | CLEGALTRTP | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Legal Transaction | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.semanticKey | LegalTransaction | view | |
| ObjectModel.representativeKey | LegalTransactionUUID | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| UI.headerInfo.typeName | Legal Transaction | view | |
| UI.headerInfo.typeNamePlural | Legal Transactions | view | |
| UI.headerInfo.title.value | LegalTransactionTitle | view | |
| UI.headerInfo.description.value | LegalTransaction | view | |
| Search.searchable | true | view |
Fields (131)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LegalTransactionUUID | LegalTransactionUUID | Universal Unique ID | |
| LegalTransaction | LegalTransaction | Legal Transaction | ||
| LegalTransactionTitle | LegalTransactionTitle | Title | ||
| LglCntntMContextUUID | I_LegalTransactionTP | LglCntntMContextUUID | Universal Unique ID | |
| LegalContext | LglCntntMContext | Context | ||
| LglCntntMContextVersion | LglCntntMContextVersion | Context Version | ||
| LglCntntMContext | LglCntntMContext | Context ID | ||
| LglCntntMContextTitle | LglCntntMContextTitle | Title | ||
| LglCntntMProfile | LglCntntMProfile | Profile | ||
| LglCntntMIntegrationType | LglCntntMIntegrationType | Integration Variant | ||
| LglCntntMEntityType | I_LegalTransactionTP | LglCntntMEntityType | Main Entity Type | |
| LglCntntMEntityTypeName | ||||
| LglCntntMEntity | I_LegalTransactionTP | LglCntntMEntity | Main Entity | |
| LglCntntMEntityName | ||||
| LglCntntMLinkdObjType | ||||
| LglCntntMLinkdObj | ||||
| LegalTransactionIsTriggerObj | ||||
| LglCntntMLanguage | LglCntntMLanguage | Language | ||
| LglCntntMGovLaw | LglCntntMGovLaw | Governing Law | ||
| LglCntntMGovLawText | _LCMGovLawVH | LglCntntMGovLawText | Governing Law | |
| LglTransAccessLvl | LglTransAccessLvl | Access Level | ||
| LglCntntMAccessLvlName | _LglCntntMAccessLvlText | LglCntntMAccessLvlName | Long Text | |
| LglTransAccessLvlFilter | LglTransAccessLvl | Access Level | ||
| LglCntntMMainOrgType | LglCntntMMainOrgType | Main Organization Type | ||
| LglCntntMMainOrgCoCode | LglCntntMMainOrgCoCode | Main Organization | ||
| CompanyCodeName | ||||
| LglCntntMMainOrgSalesOrg | LglCntntMMainOrgSalesOrg | Main Organization | ||
| SalesOrganizationName | ||||
| LglCntntMMainOrgPurOrg | LglCntntMMainOrgPurOrg | Main Organization | ||
| PurchasingOrganizationName | ||||
| LglCntntMMainOrg | Main Organization | |||
| LglCntntMMainOrgName | ||||
| LglCntntMChangedByUser | LglCntntMChangedByUser | Changed By | ||
| LglCntntMChangedByFullName | ||||
| LglCntntMCreatedByUser | LglCntntMCreatedByUser | Created By | ||
| LglCntntMCreatedByFullName | ||||
| LglCntntMDocAssemblyIsActv | ||||
| LglCntntMIcrtsIsActive | ||||
| LglCntntMChangedUTCDateTime | LglCntntMChangedUTCDateTime | Changed On | ||
| ChangeDocObject | ||||
| LglCntntMDocCreateEnabled | ||||
| LglCntntMDocEditEnabled | ||||
| LglCntntMSgntrIsAuthForSndg | ||||
| LglCntntMSgntrIsAuthForCancel | ||||
| LglCntntMCreatedUTCDateTime | LglCntntMCreatedUTCDateTime | Created On | ||
| LglTransHealthCriticality | ||||
| LegalTransactionHealth | LegalTransactionHealth | Status | ||
| LglTransWrkFlwModInstce | LglTransWrkFlwModInstce | Instance ID | ||
| LegalTransactionSource | LegalTransactionSource | LegalTr Source | ||
| LglCntntMNotesCnt | ||||
| IsEndOfPurposeBlocked | I_LegalTransactionTP | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| LglTransWrkflwButtonIsEnabled | ||||
| LglCntntMRtntnPerdStartDate | LglCntntMRtntnPerdStartDate | Start of Retention Period | ||
| LglCntntMLongText | LglCntntMLongText | Description | ||
| LglCntntMLongTextMimeType | LglCntntMLongTextMimeType | |||
| LglCntntMCntntTypeAuthorized | ||||
| LglCntntMIsCopyFirstTimeDraft | ||||
| LglCntntMFilterCategory | Category | |||
| LglCntntMIntCntctType | Internal Contact Type | |||
| LglCntntMIntCntctUser | User as Internal Contact | |||
| LglCntntMIsMainEntity | Is Main Entity | |||
| LglCntntMEntityTypeFilter | Entity Type | |||
| LglCntntMFilterEntity | Entity | |||
| LglCntntMDateType | Date Type | |||
| LglCntntMFromDate | Start Date | |||
| LglCntntMToDate | End Date | |||
| LglCntntMSgntrIsDisabled | ||||
| LglCntntMDocSuppdSignatureType | ||||
| LglCntntMgmtDOCUSIGNIsEnabled | ||||
| LglCntntMCrtedFrmLglTransUUID | LglCntntMCrtedFrmLglTransUUID | Universal Unique ID | ||
| LglCntntMCrtedFromLglTrans | ||||
| LglCntntMCrtedFrmLglTransTitle | ||||
| LglCntntMLglTransLgHdlr | ||||
| IsCloudSystem | ||||
| LglCntntMIntContactTeam | Team as Internal Contact | |||
| LglCntntMIsCollabnActive | ||||
| _LegalTransactionEntityTP | _LegalTransactionEntityTP | Entity Type | ||
| _LegalTransactionIntContactTP | _LegalTransactionIntContactTP | Internal Contact Type | ||
| _LegalTransactionExtContactTP | _LegalTransactionExtContactTP | |||
| _LegalTransactionReminderTP | _LegalTransactionReminderTP | |||
| _LegalTrRelationshipTP | _LegalTrRelationshipTP | |||
| _LegalTrLinkedObjectsTP | _LegalTrLinkedObjectsTP | Linked Object Type | ||
| _LegalTransactionDateTP | _LegalTransactionDateTP | Date Type | ||
| _LegalTransRnwlAndTermnTP | _LegalTransRnwlAndTermnTP | |||
| _LegalTrCategoryGroupTP | _LegalTrCategoryGroupTP | |||
| _LegalTransactionIdValueHelp | _LegalTransactionIdValueHelp | |||
| _LegalTrContextIdValueHelp | _LegalTrContextIdValueHelp | |||
| _LegalTransactionHealthVH | _LegalTransactionHealthVH | |||
| _CreatedBy | _CreatedBy | |||
| _ChangedBy | _ChangedBy | |||
| _LanguageValueHelp | _LanguageValueHelp | |||
| _LglTransAccLvlEditValHelp | _LglTransAccLvlEditValHelp | |||
| _LglTransAccLvlValHelp | _LglTransAccLvlValHelp | |||
| _LglTransMainOrgCoCodeEditVH | _LglTransMainOrgCoCodeEditVH | |||
| _LglTransMainOrgSlsOrgEditVH | _LglTransMainOrgSlsOrgEditVH | |||
| _LglTransMainOrgPurOrgEditVH | _LglTransMainOrgPurOrgEditVH | |||
| _ChangedByContactCard | _ChangedByContactCard | |||
| _CreatedByContactCard | _CreatedByContactCard | |||
| _LegalTransactionStartedTasks | _LegalTransactionStartedTasks | |||
| _LegalTransactionAggrgn | _LegalTransactionAggrgn | |||
| _LglCntntMMainEntity | _LglCntntMMainEntity | |||
| _LglCntntMTaskGroup | _LglCntntMTaskGroup | |||
| _LCMLegalTrDocument | _LCMLegalTrDocument | |||
| _LTRelshpDocLink | _LTRelshpDocLink | |||
| _LegalTransactionDocLinkTP | _LegalTransactionDocLinkTP | |||
| _LglCntntMWrkflwDocLink | _LglCntntMWrkflwDocLink | |||
| _LglCntntMTaskGroupTP | _LglCntntMTaskGroupTP | |||
| _LegalTransactionSgntrGrp | _LegalTransactionSgntrGrp | |||
| _LegalTransCollaboration | _LegalTransCollaboration | |||
| _LglCntntMProfileValueHelp | _LglCntntMProfileValueHelp | |||
| _LCMGovLawVH | _LCMGovLawVH | |||
| _LglCntntMContextQuickView | _LglCntntMContextQuickView | |||
| _LglCntntMProfileText | _LglCntntMProfileText | |||
| _LglCntntMIntegTypeText | _LglCntntMIntegTypeText | |||
| _LglCntntMAccessLvlText | _LglCntntMAccessLvlText | |||
| _LanguageText | _LanguageText | |||
| _LegalTransactionHealthText | _LegalTransactionHealthText | |||
| _SalesOrganizationText | _SalesOrganizationText | |||
| _LglCntntMMainOrgTypeText | _LglCntntMMainOrgTypeText | |||
| _LCMEntityTypeText | _LCMEntityTypeText | |||
| _LglCntntMNotesLglTrans | _LglCntntMNotesLglTrans | |||
| _LglCntntMNotesLglTransObj | _LglCntntMNotesLglTransObj | |||
| _LglCntntMRelshpUseCaseStatus | _LglCntntMRelshpUseCaseStatus | |||
| _LCMActiveCntxtIdValueHelp | _LCMActiveCntxtIdValueHelp | |||
| _LegalContentRequestCntxtIDVH | _LegalContentRequestCntxtIDVH | |||
| _LglCntntMWrkflwDocAttach | _LglCntntMWrkflwDocAttach | |||
| _LegalTransactionPhase | _LegalTransactionPhase | |||
| _LglCntntMDocOblgnReminder | _LglCntntMDocOblgnReminder | |||
| _LglCntntMDocObligation | _LglCntntMDocObligation | |||
| _LglCntntMDocRefresh | _LglCntntMDocRefresh | |||
| _LglCntntMRefreshDocAgreement | _LglCntntMRefreshDocAgreement |
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 C_LegalTransactionTP.
-- 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: CLEGALTRTP
CREATE VIEW C_LegalTransactionTP AS
SELECT
LegalTransactionUUID,
LegalTransaction,
LegalTransactionTitle,
LglTransaction.LglCntntMContextUUID AS LglCntntMContextUUID,
LglCntntMContext AS LegalContext,
LglCntntMContextVersion,
LglCntntMContext,
LglCntntMContextTitle,
LglCntntMProfile,
LglCntntMIntegrationType,
LglTransaction.LglCntntMEntityType AS LglCntntMEntityType,
LglTransaction._LCMEntityTypeText[1: Language = $session.system_language].LglCntntMEntityTypeName AS LglCntntMEntityTypeName,
LglTransaction.LglCntntMEntity AS LglCntntMEntity,
cast ('' as char80) AS LglCntntMEntityName,
cast('' as lcm_linkobj_type) AS LglCntntMLinkdObjType,
cast('' as lcm_linkedobject_id) AS LglCntntMLinkdObj,
cast('' as lcm_lt_is_trigger_object) AS LegalTransactionIsTriggerObj,
LglCntntMLanguage,
LglCntntMGovLaw,
_LCMGovLawVH.LglCntntMGovLawText AS LglCntntMGovLawText,
LglTransAccessLvl,
_LglCntntMAccessLvlText.LglCntntMAccessLvlName AS LglCntntMAccessLvlName,
LglTransAccessLvl AS LglTransAccessLvlFilter,
LglCntntMMainOrgType,
LglCntntMMainOrgCoCode,
cast( '' as butxt ) AS CompanyCodeName,
LglCntntMMainOrgSalesOrg,
cast( '' as salesorganizationname ) AS SalesOrganizationName,
LglCntntMMainOrgPurOrg,
cast('' as mm_a_purg_org_name ) AS PurchasingOrganizationName,
cast( '' as lcm_entity_id ) AS LglCntntMMainOrg,
cast( '' as abap.char(25)) AS LglCntntMMainOrgName,
LglCntntMChangedByUser,
cast('' as ad_namtext) AS LglCntntMChangedByFullName,
LglCntntMCreatedByUser,
cast('' as ad_namtext) AS LglCntntMCreatedByFullName,
cast('' as abap.char( 1 )) AS LglCntntMDocAssemblyIsActv,
cast( '' as lcm_icrts_is_active ) AS LglCntntMIcrtsIsActive,
LglCntntMChangedUTCDateTime,
cast ( '' as cdobjectv ) AS ChangeDocObject,
cast('' as abap_boolean ) AS LglCntntMDocCreateEnabled,
cast( '' as abap_boolean ) AS LglCntntMDocEditEnabled,
cast( '' as abap_boolean ) AS LglCntntMSgntrIsAuthForSndg,
cast( '' as abap_boolean ) AS LglCntntMSgntrIsAuthForCancel,
LglCntntMCreatedUTCDateTime,
cast ( 0 as int1 ) AS LglTransHealthCriticality,
LegalTransactionHealth,
LglTransWrkFlwModInstce,
LegalTransactionSource,
cast ( 0 as abap.int8 ) AS LglCntntMNotesCnt,
LglTransaction.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
'' AS LglTransWrkflwButtonIsEnabled,
LglCntntMRtntnPerdStartDate,
LglCntntMLongText,
LglCntntMLongTextMimeType,
'' AS LglCntntMCntntTypeAuthorized,
'' AS LglCntntMIsCopyFirstTimeDraft,
cast( '' as abap.numc( 6 ) ) AS LglCntntMFilterCategory,
cast( '' as lcm_contact_type ) AS LglCntntMIntCntctType,
cast( '' as lcm_username ) AS LglCntntMIntCntctUser,
cast( '' as lcm_is_main_entity) AS LglCntntMIsMainEntity,
cast( '' as lcm_entity_type) AS LglCntntMEntityTypeFilter,
cast( '' as lcm_entity_id ) AS LglCntntMFilterEntity,
cast( '' as lcm_date_type ) AS LglCntntMDateType,
cast( '' as lcm_valid_from ) AS LglCntntMFromDate,
cast( '' as lcm_valid_to ) AS LglCntntMToDate,
cast( '' as boole_d ) AS LglCntntMSgntrIsDisabled,
cast ( '' as char1 ) AS LglCntntMDocSuppdSignatureType,
'' AS LglCntntMgmtDOCUSIGNIsEnabled,
LglCntntMCrtedFrmLglTransUUID,
cast('' as lcm_legaltr_id) AS LglCntntMCrtedFromLglTrans,
cast('' as lcm_title) AS LglCntntMCrtedFrmLglTransTitle,
cast('' as lcm_lt_log_handle) AS LglCntntMLglTransLgHdlr,
cast ('' as is_cloud_system ) AS IsCloudSystem,
cast('' as lcm_intcntctteam) AS LglCntntMIntContactTeam,
cast('' as lcm_is_collabn_active) AS LglCntntMIsCollabnActive
FROM I_LegalTransactionTP AS LglTransaction
LEFT OUTER JOIN I_LegalTransactionAggr AS _LegalTransactionAggrgn ON LegalTransactionUUID = _LegalTransactionAggrgn.LegalTransactionUUID -- association [1..1]
LEFT OUTER JOIN C_LglCntntMContextQuickView AS _LglCntntMContextQuickView ON LglCntntMContextVersion = _LglCntntMContextQuickView.LglCntntMContextVersion AND LegalContext = _LglCntntMContextQuickView.LegalContext -- association [0..1]
LEFT OUTER JOIN C_LegalTransactionEntityTP AS _LegalTransactionEntityTP ON LegalTransactionUUID = _LegalTransactionEntityTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionIntContactTP AS _LegalTransactionIntContactTP ON LegalTransactionUUID = _LegalTransactionIntContactTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionExtContactTP AS _LegalTransactionExtContactTP ON LegalTransactionUUID = _LegalTransactionExtContactTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTransRnwlAndTermnTP AS _LegalTransRnwlAndTermnTP ON LegalTransactionUUID = _LegalTransRnwlAndTermnTP.LegalTransactionUUID -- association [0..1]
LEFT OUTER JOIN C_LegalTransactionDateTP AS _LegalTransactionDateTP ON LegalTransactionUUID = _LegalTransactionDateTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionReminderTP AS _LegalTransactionReminderTP ON LegalTransactionUUID = _LegalTransactionReminderTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTrRelationshipTP AS _LegalTrRelationshipTP ON LegalTransactionUUID = _LegalTrRelationshipTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTrLinkedObjectsTP AS _LegalTrLinkedObjectsTP ON LegalTransactionUUID = _LegalTrLinkedObjectsTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionStartedTasks AS _LegalTransactionStartedTasks ON LegalTransactionUUID = _LegalTransactionStartedTasks.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LglCntntMWrkflwDocLink AS _LglCntntMWrkflwDocLink ON LegalTransactionUUID = _LglCntntMWrkflwDocLink.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LglCntntMTaskGroupTP AS _LglCntntMTaskGroupTP ON LegalTransactionUUID = _LglCntntMTaskGroupTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LglCntntMTaskGroup AS _LglCntntMTaskGroup ON LegalTransactionUUID = _LglCntntMTaskGroup.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTrCategoryGroupTP AS _LegalTrCategoryGroupTP ON LegalTransactionUUID = _LegalTrCategoryGroupTP.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN C_LCMLegalTrDocument AS _LCMLegalTrDocument ON LegalTransaction = _LCMLegalTrDocument.LegalTransaction AND _LCMLegalTrDocument.LglCntntMDocumentIsTopVersion = 'X' -- association [0..*]
LEFT OUTER JOIN C_LglCntntMDocRefresh AS _LglCntntMDocRefresh ON LegalTransaction = _LglCntntMDocRefresh.LegalTransaction -- association [0..*]
LEFT OUTER JOIN C_LglCntntMRefreshDocAgreement AS _LglCntntMRefreshDocAgreement ON LegalTransaction = _LglCntntMRefreshDocAgreement.LegalTransaction -- association [0..*]
LEFT OUTER JOIN C_LCMLegalTrDocument AS _LglCntntMWrkflwDocAttach ON _LglCntntMWrkflwDocAttach.LegalTransaction = LegalTransaction AND _LglCntntMWrkflwDocAttach.LglCntntMDocumentIsTopVersion = 'X' AND _LglCntntMWrkflwDocAttach.LglCntntMIsRstrcdDocCntnt = '' AND ( ( InternalDocumentStatus <> 'A1' AND InternalDocumentStatus <> 'NW' ) AND( ( LglCntntMDocType = 'D' AND( ( _LglCntntMWrkflwDocAttach.LglCntntMSignatureDocStatus <> '01' AND _LglCntntMWrkflwDocAttach.LglCntntMDocIsLockedForCollabn <> 'X' AND LglCntntMDocRefreshStatus is null OR( LglCntntMDocRefreshStatus <> 'EVLTN' AND LglCntntMDocRefreshStatus <> 'REQRD' ) ) ) ) OR( LglCntntMDocType = 'V' AND( LglCntntMDocAssemblyStatus = 'final' AND( LglCntntMDocRefreshStatus is null OR( LglCntntMDocRefreshStatus <> 'EVLTN' AND LglCntntMDocRefreshStatus <> 'REQRD' ) ) ) ) ) ) -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionDocLinkTP AS _LegalTransactionDocLinkTP ON LegalTransactionUUID = _LegalTransactionDocLinkTP.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LglCntntMRelshpDocLink AS _LTRelshpDocLink ON LegalTransactionUUID = _LTRelshpDocLink.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionSgntrGrp AS _LegalTransactionSgntrGrp ON LegalTransactionUUID = _LegalTransactionSgntrGrp.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN C_LegalTransCollaboration AS _LegalTransCollaboration ON LegalTransactionUUID = _LegalTransCollaboration.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN C_LegalTransactionPhase AS _LegalTransactionPhase ON LegalTransactionUUID = _LegalTransactionPhase.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN C_LegalTrContextIdValueHelp AS _LegalTrContextIdValueHelp ON LglCntntMContextVersion = _LegalTrContextIdValueHelp.LglCntntMContextVersion AND LegalContext = _LegalTrContextIdValueHelp.LglCntntMContext -- association [0..1]
LEFT OUTER JOIN C_LegalTransactionIdValueHelp AS _LegalTransactionIdValueHelp ON LegalTransaction = _LegalTransactionIdValueHelp.LegalTransaction -- association [0..1]
LEFT OUTER JOIN C_LegalTransactionHealthVH AS _LegalTransactionHealthVH ON LegalTransactionHealth = _LegalTransactionHealthVH.LegalTransactionHealth -- association [0..1]
LEFT OUTER JOIN C_LCMUserValueHelp AS _CreatedBy ON LglCntntMCreatedByUser = _CreatedBy.UserID -- association [0..1]
LEFT OUTER JOIN C_LCMUserValueHelp AS _ChangedBy ON LglCntntMChangedByUser = _ChangedBy.UserID -- association [0..1]
LEFT OUTER JOIN C_LcmLanguageValueHelp AS _LanguageValueHelp ON LglCntntMLanguage = _LanguageValueHelp.Language -- association [0..1]
LEFT OUTER JOIN C_LglCntntMMainEntity AS _LglCntntMMainEntity ON LegalTransactionUUID = _LglCntntMMainEntity.LegalTransactionUUID -- association [0..1]
LEFT OUTER JOIN C_LglCntntMGovLawVH AS _LCMGovLawVH ON LglCntntMGovLaw = _LCMGovLawVH.LglCntntMGovLaw -- association [0..1]
LEFT OUTER JOIN C_LglTransAccLvlValHelp AS _LglTransAccLvlValHelp ON LglTransAccessLvlFilter = _LglTransAccLvlValHelp.LglCntntMAccessLvl -- association [0..1]
LEFT OUTER JOIN C_LglTransAccLvlEditValHelp AS _LglTransAccLvlEditValHelp ON LglTransAccessLvl = _LglTransAccLvlEditValHelp.LglCntntMAccessLvl AND LglCntntMProfile = _LglTransAccLvlEditValHelp.LglCntntMProfile -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgCoCodeEditVH AS _LglTransMainOrgCoCodeEditVH ON LglCntntMMainOrgCoCode = _LglTransMainOrgCoCodeEditVH.CompanyCode -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgPurOrgEditVH AS _LglTransMainOrgPurOrgEditVH ON LglCntntMMainOrgPurOrg = _LglTransMainOrgPurOrgEditVH.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgSlsOrgEditVH AS _LglTransMainOrgSlsOrgEditVH ON LglCntntMMainOrgSalesOrg = _LglTransMainOrgSlsOrgEditVH.SalesOrganization -- association [0..1]
LEFT OUTER JOIN C_LCMCompanyCodeValueHelp AS _CompanyCodeValueHelp ON LglCntntMMainOrgCoCode = _CompanyCodeValueHelp.CompanyCode -- association [0..1]
LEFT OUTER JOIN C_LCMPurchasingOrgValueHelp AS _PurchasingOrgValueHelp ON LglCntntMMainOrgPurOrg = _PurchasingOrgValueHelp.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_LCMSalesOrganizationVH AS _SalesOrganizationVH ON LglCntntMMainOrgSalesOrg = _SalesOrganizationVH.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _CreatedByContactCard ON _CreatedByContactCard.ContactCardType = 'User' AND _CreatedByContactCard.ContactCardID = LglCntntMCreatedByUser AND _CreatedByContactCard.ContactCardRole = 'Creator' -- association [0..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _ChangedByContactCard ON _ChangedByContactCard.ContactCardType = 'User' AND _ChangedByContactCard.ContactCardID = LglCntntMChangedByUser AND _ChangedByContactCard.ContactCardRole = 'Creator' -- association [0..1]
LEFT OUTER JOIN C_LglCntntMProfileValueHelp AS _LglCntntMProfileValueHelp ON LglCntntMProfile = _LglCntntMProfileValueHelp.LglCntntMProfile AND LglCntntMIntegrationType = _LglCntntMProfileValueHelp.LglCntntMIntegrationType -- association [0..1]
LEFT OUTER JOIN C_LglCntntMIntegTypeVH AS _LglCntntMIntegTypeVH ON LglCntntMProfile = _LglCntntMIntegTypeVH.LglCntntMProfile AND LglCntntMIntegrationType = _LglCntntMIntegTypeVH.LglCntntMIntegrationType -- association [0..1]
LEFT OUTER JOIN C_LglCntntMNotesLglTrans AS _LglCntntMNotesLglTrans ON _LglCntntMNotesLglTrans.LglCntntMParApplObjUUID = LglTransaction.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LglCntntMNotesLglTransObj AS _LglCntntMNotesLglTransObj ON _LglCntntMNotesLglTransObj.LglCntntMParApplObjUUID = LglTransaction.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LglCntntMRelshpUseCaseStatus AS _LglCntntMRelshpUseCaseStatus ON LegalTransactionUUID = _LglCntntMRelshpUseCaseStatus.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN C_LCMActiveCntxtIdValueHelp AS _LCMActiveCntxtIdValueHelp ON LglCntntMContextUUID = _LCMActiveCntxtIdValueHelp.LglCntntMContextUUID -- association [0..1]
LEFT OUTER JOIN C_LegalContentRequestCntxtIDVH AS _LegalContentRequestCntxtIDVH ON LglCntntMContextUUID = _LegalContentRequestCntxtIDVH.LglCntntMContextUUID -- association [0..1]
LEFT OUTER JOIN C_LglCntntMDocOblgnReminder AS _LglCntntMDocOblgnReminder ON LegalTransaction = _LglCntntMDocOblgnReminder.LegalTransaction -- association [0..*]
LEFT OUTER JOIN C_LglCntntMDocObligation AS _LglCntntMDocObligation ON LegalTransaction = _LglCntntMDocObligation.LegalTransaction -- association [0..*]
;
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