I_LegalTransaction
Basic View for LCM Legal Transaction
I_LegalTransaction is a Basic CDS View that provides data about "Basic View for LCM Legal Transaction" in SAP S/4HANA. It reads from 1 data source (lcm_legaltr) and exposes 46 fields with key field LegalTransactionUUID. It has 21 associations to related views. Part of development package VDM_LCM_LT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| lcm_legaltr | lcm_legaltr | from |
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | Sgbt_Nte_Cds_Cont | _Note | _Note.noteid = $projection.LglCntntMLongTextUUID and _Note.objectnodetype = 'LegalTransaction' and _Note.notetype = 'LCM_LONGTEXT' |
| [1..1] | E_LegalTransaction | _Extenstion | $projection.LegalTransactionUUID = _Extenstion.LegalTransactionUUID |
| [1..1] | I_LglCntntMContextBasic | _Context | $projection.LglCntntMContextUUID = _Context.LglCntntMContextUUID |
| [1..1] | I_LegalTransactionEntity | _MainLegalTransactionEntity | $projection.LegalTransactionUUID = _MainLegalTransactionEntity.LegalTransactionUUID and _MainLegalTransactionEntity.LglCntntMIsMainEntity = 'X' |
| [1..*] | I_LegalTransactionEntity | _LegalTransactionEntity | $projection.LegalTransactionUUID = _LegalTransactionEntity.LegalTransactionUUID |
| [1..*] | I_LegalTrParentCategory | _LegalTrParentCategory | $projection.LegalTransactionUUID = _LegalTrParentCategory.LegalTransactionUUID |
| [1..*] | I_LegalTransactionCategory | _LegalTransactionCategory | $projection.LegalTransactionUUID = _LegalTransactionCategory.LegalTransactionUUID |
| [0..*] | I_LegalTrLinkedObjects | _LegalTrLinkedObjects | $projection.LegalTransactionUUID = _LegalTrLinkedObjects.LegalTransactionUUID |
| [0..*] | I_LegalTrRelationship | _LegalTrRelationship | $projection.LegalTransactionUUID = _LegalTrRelationship.LegalTransactionUUID |
| [0..*] | I_LegalTransactionIntContact | _LegalTransactionIntContact | $projection.LegalTransactionUUID = _LegalTransactionIntContact.LegalTransactionUUID |
| [0..1] | I_LglCntntMMainOrgTypeText | _LglCntntMMainOrgTypeText | $projection.LglCntntMMainOrgType = _LglCntntMMainOrgTypeText.LglCntntMMainOrgType and _LglCntntMMainOrgTypeText.Language = $session.system_language |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.LglCntntMMainOrgPurOrg = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | I_SalesOrganizationText | _SalesOrganizationText | $projection.LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization and _SalesOrganizationText.Language = $session.system_language |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.LglCntntMMainOrgCoCode = _CompanyCode.CompanyCode |
| [0..1] | I_LegalTransactionHealthText | _LegalTransactionHealthText | $projection.LegalTransactionHealth = _LegalTransactionHealthText.LegalTransactionHealth and _LegalTransactionHealthText.Language = $session.system_language |
| [0..1] | I_LanguageText | _LanguageText | $projection.LglCntntMLanguage = _LanguageText.LanguageCode and _LanguageText.Language = $session.system_language |
| [0..1] | I_LglCntntMAccessLvlText | _LglCntntMAccessLvlText | $projection.LglTransAccessLvl = _LglCntntMAccessLvlText.LglCntntMAccessLvl and _LglCntntMAccessLvlText.Language = $session.system_language |
| [0..1] | I_LCMUserAddressAssignment | _CreatedBy | $projection.LglCntntMCreatedByUser = _CreatedBy.ContactCardID |
| [0..1] | I_LCMUserAddressAssignment | _ChangedBy | $projection.LglCntntMChangedByUser = _ChangedBy.ContactCardID |
| [0..1] | I_LglCntntMGovLawText | _LglCntntMGovLawText | $projection.LglCntntMGovLaw = _LglCntntMGovLawText.LglCntntMGovLaw and _LglCntntMGovLawText.Language = $session.system_language |
| [0..1] | I_LglCntntMIntegTypeText | _LglCntntMIntegTypeText | $projection.LglCntntMIntegrationType = _LglCntntMIntegTypeText.LglCntntMIntegrationType and Language = $session.system_language |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILEGALTR | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | LegalTransactionUUID | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| EndUserText.label | Basic View for LCM Legal Transaction | view |
Fields (46)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LegalTransactionUUID | legaltransactionuuid | Universal Unique ID | |
| LegalTransaction | legaltransaction | Legal Transaction ID | ||
| LegalTransactionTitle | legaltransactiontitle | Title | ||
| LegalTransactionHealth | legaltransactionhealth | LT Status | ||
| LglCntntMLanguage | lglcntntmlanguage | Language | ||
| LglCntntMCreatedByUser | lglcntntmcreatedbyuser | Created By | ||
| LglCntntMContextUUID | lglcntntmcontextuuid | Universal Unique ID | ||
| LglTransWrkFlwModInstce | lgltranswrkflwmodinstce | Instance ID | ||
| LglCntntMCreatedUTCDateTime | lglcntntmcreatedutcdatetime | Created On | ||
| LglCntntMChangedByUser | lglcntntmchangedbyuser | Changed By | ||
| LglCntntMChangedUTCDateTime | lglcntntmchangedutcdatetime | Changed On | ||
| LglCntntMProfile | lglcntntmprofile | Profile | ||
| LegalTransactionSource | legaltransactionsource | LegalTr Source | ||
| IsEndOfPurposeBlocked | isendofpurposeblocked | Busin. Purp. Cmpltd. | ||
| LglCntntMAgingTemperature | _dataaging | Data Aging | ||
| LglCntntMRtntnPerdStartDate | lglcntntmrtntnperdstartdate | Start of Retention | ||
| LglCntntMGovLaw | lglcntntmgovlaw | Governing Law | ||
| LglTransAccessLvl | lgltransaccesslvl | Acs. Level | ||
| LglCntntMMainOrgType | lglcntntmmainorgtype | Main Organisation Ty | ||
| LglCntntMMainOrgCoCode | lglcntntmmainorgcocode | Entity ID | ||
| LglCntntMMainOrgSalesOrg | lglcntntmmainorgsalesorg | Entity ID | ||
| LglCntntMMainOrgPurOrg | lglcntntmmainorgpurorg | Entity ID | ||
| LglCntntMLongTextUUID | lglcntntmlongtextuuid | Description UUID | ||
| LglCntntMIntegrationType | lglcntntmintegrationtype | Integration Variant | ||
| LglCntntMCrtedFrmLglTransUUID | lglcntntmcrtedfrmlgltransuuid | Universal Unique ID | ||
| LglCntntMLongText | _Note | content | Trusted Site Content | |
| LglCntntMLongTextMimeType | _Note | mimetype | MIMETYPE | |
| _Context | _Context | |||
| _MainLegalTransactionEntity | _MainLegalTransactionEntity | |||
| _LegalTransactionEntity | _LegalTransactionEntity | |||
| _LegalTrParentCategory | _LegalTrParentCategory | |||
| _LegalTransactionCategory | _LegalTransactionCategory | |||
| _LegalTrLinkedObjects | _LegalTrLinkedObjects | |||
| _LegalTrRelationship | _LegalTrRelationship | |||
| _LegalTransactionIntContact | _LegalTransactionIntContact | |||
| _LglCntntMMainOrgTypeText | _LglCntntMMainOrgTypeText | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _SalesOrganizationText | _SalesOrganizationText | |||
| _CompanyCode | _CompanyCode | |||
| _LegalTransactionHealthText | _LegalTransactionHealthText | |||
| _LanguageText | _LanguageText | |||
| _LglCntntMAccessLvlText | _LglCntntMAccessLvlText | |||
| _CreatedBy | _CreatedBy | |||
| _ChangedBy | _ChangedBy | |||
| _LglCntntMGovLawText | _LglCntntMGovLawText | |||
| _LglCntntMIntegTypeText | _LglCntntMIntegTypeText |
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_LegalTransaction.
-- 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: ILEGALTR
CREATE VIEW I_LegalTransaction AS
SELECT
LegalTransactionUUID,
LegalTransaction,
LegalTransactionTitle,
LegalTransactionHealth,
LglCntntMLanguage,
LglCntntMCreatedByUser,
LglCntntMContextUUID,
LglTransWrkFlwModInstce,
LglCntntMCreatedUTCDateTime,
LglCntntMChangedByUser,
LglCntntMChangedUTCDateTime,
LglCntntMProfile,
LegalTransactionSource,
IsEndOfPurposeBlocked,
LglCntntMRtntnPerdStartDate,
LglCntntMGovLaw,
LglTransAccessLvl,
LglCntntMMainOrgType,
LglCntntMMainOrgCoCode,
LglCntntMMainOrgSalesOrg,
LglCntntMMainOrgPurOrg,
LglCntntMLongTextUUID,
LglCntntMIntegrationType,
LglCntntMCrtedFrmLglTransUUID,
_Note.content AS LglCntntMLongText,
_Note.mimetype AS LglCntntMLongTextMimeType
FROM lcm_legaltr
LEFT OUTER JOIN Sgbt_Nte_Cds_Cont AS _Note ON _Note.noteid = LglCntntMLongTextUUID AND _Note.objectnodetype = 'LegalTransaction' AND _Note.notetype = 'LCM_LONGTEXT' -- association [0..1]
LEFT OUTER JOIN E_LegalTransaction AS _Extenstion ON LegalTransactionUUID = _Extenstion.LegalTransactionUUID -- association [1..1]
LEFT OUTER JOIN I_LglCntntMContextBasic AS _Context ON LglCntntMContextUUID = _Context.LglCntntMContextUUID -- association [1..1]
LEFT OUTER JOIN I_LegalTransactionEntity AS _MainLegalTransactionEntity ON LegalTransactionUUID = _MainLegalTransactionEntity.LegalTransactionUUID AND _MainLegalTransactionEntity.LglCntntMIsMainEntity = 'X' -- association [1..1]
LEFT OUTER JOIN I_LegalTransactionEntity AS _LegalTransactionEntity ON LegalTransactionUUID = _LegalTransactionEntity.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN I_LegalTrParentCategory AS _LegalTrParentCategory ON LegalTransactionUUID = _LegalTrParentCategory.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN I_LegalTransactionCategory AS _LegalTransactionCategory ON LegalTransactionUUID = _LegalTransactionCategory.LegalTransactionUUID -- association [1..*]
LEFT OUTER JOIN I_LegalTrLinkedObjects AS _LegalTrLinkedObjects ON LegalTransactionUUID = _LegalTrLinkedObjects.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN I_LegalTrRelationship AS _LegalTrRelationship ON LegalTransactionUUID = _LegalTrRelationship.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN I_LegalTransactionIntContact AS _LegalTransactionIntContact ON LegalTransactionUUID = _LegalTransactionIntContact.LegalTransactionUUID -- association [0..*]
LEFT OUTER JOIN I_LglCntntMMainOrgTypeText AS _LglCntntMMainOrgTypeText ON LglCntntMMainOrgType = _LglCntntMMainOrgTypeText.LglCntntMMainOrgType AND _LglCntntMMainOrgTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON LglCntntMMainOrgPurOrg = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization AND _SalesOrganizationText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON LglCntntMMainOrgCoCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_LegalTransactionHealthText AS _LegalTransactionHealthText ON LegalTransactionHealth = _LegalTransactionHealthText.LegalTransactionHealth AND _LegalTransactionHealthText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LanguageText AS _LanguageText ON LglCntntMLanguage = _LanguageText.LanguageCode AND _LanguageText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LglCntntMAccessLvlText AS _LglCntntMAccessLvlText ON LglTransAccessLvl = _LglCntntMAccessLvlText.LglCntntMAccessLvl AND _LglCntntMAccessLvlText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LCMUserAddressAssignment AS _CreatedBy ON LglCntntMCreatedByUser = _CreatedBy.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_LCMUserAddressAssignment AS _ChangedBy ON LglCntntMChangedByUser = _ChangedBy.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_LglCntntMGovLawText AS _LglCntntMGovLawText ON LglCntntMGovLaw = _LglCntntMGovLawText.LglCntntMGovLaw AND _LglCntntMGovLawText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LglCntntMIntegTypeText AS _LglCntntMIntegTypeText ON LglCntntMIntegrationType = _LglCntntMIntegTypeText.LglCntntMIntegrationType AND Language = $session.system_language -- association [0..1]
;
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