I_LegalTransactionEntity

DDL: I_LEGALTRANSACTIONENTITY SQL: ILEGALTRENTITY Type: view BASIC

Basic View for LCM Legal Transaction Entity

I_LegalTransactionEntity is a Basic CDS View that provides data about "Basic View for LCM Legal Transaction Entity" in SAP S/4HANA. It reads from 1 data source (lcm_lt_entity) and exposes 19 fields with key field LegalTransactionEntityUUID. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
lcm_lt_entity lcm_lt_entity from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_LegalTransaction _LegalTransaction $projection.LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID
[0..1] I_LCMEntityTypeText _EntityTypeText $projection.LglCntntMEntityType = _EntityTypeText.LglCntntMEntityType and _EntityTypeText.Language = $session.system_language
[0..1] I_PurchasingOrganization _PurchasingOrganization _PurchasingOrganization.PurchasingOrganization = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '05'
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '01'
[0..1] I_SalesOrganizationText _SalesOrganizationText _SalesOrganizationText.SalesOrganization = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '04' and _SalesOrganizationText.Language = $session.system_language
[0..1] I_Customer _Customer _Customer.Customer = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '02'
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '03'
[0..1] I_BusinessPartner _BusinessPartner _BusinessPartner.BusinessPartner = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '06'

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName ILEGALTRENTITY view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.representativeKey LEGALTRANSACTIONENTITYUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.preserveKey true view
EndUserText.label Basic View for LCM Legal Transaction Entity view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionEntityUUID lcm_lt_entity legaltransactionentityuuid Universal Unique ID
LglCntntMRank lcm_lt_entity lglcntntmrank Seq No
LglCntntMEntity lcm_lt_entity lglcntntmentity Entity ID
LglCntntMEntityType lcm_lt_entity lglcntntmentitytype Entity Type
LglCntntMEntityTypeName _EntityTypeText LglCntntMEntityTypeName Long Text
LglCntntMTechEntityType lcm_lt_entity lglcntntmtechentitytype Entity Techn. Type
LegalTransactionUUID lcm_lt_entity legaltransactionuuid Universal Unique ID
LegalTransactionMandatoryFlag lcm_lt_entity legaltransactionmandatoryflag Mandatory
LglCntntMIsMainEntity lcm_lt_entity lglcntntmismainentity Main Entity
LglCntntMIsIntegRelevant lcm_lt_entity lglcntntmisintegrelevant Integrated
LglCntntMIsAddedByIntegVarbl lcm_lt_entity lglcntntmisaddedbyintegvarbl Added By Integration
_LegalTransaction _LegalTransaction
_EntityTypeText _EntityTypeText
_PurchasingOrganization _PurchasingOrganization
_Supplier _Supplier
_SalesOrganizationText _SalesOrganizationText
_Customer _Customer
_CompanyCode _CompanyCode
_BusinessPartner _BusinessPartner

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_LegalTransactionEntity.
-- 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: ILEGALTRENTITY

CREATE VIEW I_LegalTransactionEntity AS
SELECT
  lcm_lt_entity.legaltransactionentityuuid AS LegalTransactionEntityUUID,
  lcm_lt_entity.lglcntntmrank AS LglCntntMRank,
  lcm_lt_entity.lglcntntmentity AS LglCntntMEntity,
  lcm_lt_entity.lglcntntmentitytype AS LglCntntMEntityType,
  _EntityTypeText.LglCntntMEntityTypeName AS LglCntntMEntityTypeName,
  lcm_lt_entity.lglcntntmtechentitytype AS LglCntntMTechEntityType,
  lcm_lt_entity.legaltransactionuuid AS LegalTransactionUUID,
  lcm_lt_entity.legaltransactionmandatoryflag AS LegalTransactionMandatoryFlag,
  lcm_lt_entity.lglcntntmismainentity AS LglCntntMIsMainEntity,
  lcm_lt_entity.lglcntntmisintegrelevant AS LglCntntMIsIntegRelevant,
  lcm_lt_entity.lglcntntmisaddedbyintegvarbl AS LglCntntMIsAddedByIntegVarbl
FROM lcm_lt_entity
LEFT OUTER JOIN I_LegalTransaction AS _LegalTransaction ON LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID  -- association [1..1]
LEFT OUTER JOIN I_LCMEntityTypeText AS _EntityTypeText ON LglCntntMEntityType = _EntityTypeText.LglCntntMEntityType AND _EntityTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON _PurchasingOrganization.PurchasingOrganization = LglCntntMEntity AND LglCntntMTechEntityType = '05'  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = LglCntntMEntity AND LglCntntMTechEntityType = '01'  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON _SalesOrganizationText.SalesOrganization = LglCntntMEntity AND LglCntntMTechEntityType = '04' AND _SalesOrganizationText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = LglCntntMEntity AND LglCntntMTechEntityType = '02'  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = LglCntntMEntity AND LglCntntMTechEntityType = '03'  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON _BusinessPartner.BusinessPartner = LglCntntMEntity AND LglCntntMTechEntityType = '06'  -- association [0..1]
;