I_LegalTrEntityAggr

DDL: I_LEGALTRENTITYAGGR SQL: ILEGALTRENTAGGR Type: view COMPOSITE

Aggregation for Legal Transaction Entity

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

Data Sources (1)

SourceAliasJoin Type
I_LegalTransactionEntity LegalTransactionEntity from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_LegalTransaction _LegalTransaction $projection.LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID
[0..1] I_LglCntntMProfile _LglCntntMProfile $projection.lglcntntmprofile = _LglCntntMProfile.LglCntntMProfile
[0..1] I_LglCntntMAccessLvl _LglCntntMAccessLvl $projection.LglCntntMAccessLvl = _LglCntntMAccessLvl.LglCntntMAccessLvl

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ILEGALTRENTAGGR view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.representativeKey LegalTransactionEntityUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Aggregation for Legal Transaction Entity view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionEntityUUID LegalTransactionEntityUUID Universal Unique ID
LglCntntMEntity LglCntntMEntity Entity ID
LglCntntMEntityType LglCntntMEntityType Entity Type
LglCntntMEntityTypeName LglCntntMEntityTypeName Long Text
LglCntntMTechEntityType LglCntntMTechEntityType Entity Techn. Type
LglCntntMProfile
LglCntntMAccessLvl
LegalTransactionUUID LegalTransactionUUID Universal Unique ID
LglCntntMSupplierFirstName
LglCntntMSupplierLastName
LglCntntMSupplierOrgFirstName
LglCntntMSupplierOrgSecondName
LglCntntMSupplierGrpFirstName
LglCntntMSupplierGrpSecondName
LglCntntMCustomerFirstName
LglCntntMCustomerSecondName
LglCntntMCustomerOrgFirstName
LglCntntMCustomerOrgSecondName
LglCntntMCustomerGrpFirstName
LglCntntMCustomerGrpSecondName
FirstName _BusinessPartner FirstName First Name
LastName _BusinessPartner LastName Last Name
OrganizationBPName1 _BusinessPartner OrganizationBPName1 Name 1
OrganizationBPName2 _BusinessPartner OrganizationBPName2 Name 2
GroupBusinessPartnerName1 _BusinessPartner GroupBusinessPartnerName1 Name 1
GroupBusinessPartnerName2 _BusinessPartner GroupBusinessPartnerName2 Name 2
CompanyCodeName _CompanyCode CompanyCodeName Company Name
SalesOrganizationName _SalesOrganizationText SalesOrganizationName Sales Organization Description
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
_PurchasingOrganization _PurchasingOrganization
_Supplier _Supplier
_SalesOrganizationText _SalesOrganizationText
_Customer _Customer
_CompanyCode _CompanyCode
_BusinessPartner _BusinessPartner
_LegalTransaction _LegalTransaction
_LglCntntMProfile _LglCntntMProfile
_LglCntntMAccessLvl _LglCntntMAccessLvl

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_LegalTrEntityAggr.
-- 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: ILEGALTRENTAGGR

CREATE VIEW I_LegalTrEntityAggr AS
SELECT
  LegalTransactionEntityUUID,
  LglCntntMEntity,
  LglCntntMEntityType,
  LglCntntMEntityTypeName,
  LglCntntMTechEntityType,
  LegalTransactionEntity._LegalTransaction.LglCntntMProfile AS LglCntntMProfile,
  LegalTransactionEntity._LegalTransaction.LglTransAccessLvl AS LglCntntMAccessLvl,
  LegalTransactionUUID,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.FirstName AS LglCntntMSupplierFirstName,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.LastName AS LglCntntMSupplierLastName,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.OrganizationBPName1 AS LglCntntMSupplierOrgFirstName,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.OrganizationBPName2 AS LglCntntMSupplierOrgSecondName,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.GroupBusinessPartnerName1 AS LglCntntMSupplierGrpFirstName,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.GroupBusinessPartnerName2 AS LglCntntMSupplierGrpSecondName,
  _Customer._CustomerToBusinessPartner._BusinessPartner.FirstName AS LglCntntMCustomerFirstName,
  _Customer._CustomerToBusinessPartner._BusinessPartner.LastName AS LglCntntMCustomerSecondName,
  _Customer._CustomerToBusinessPartner._BusinessPartner.OrganizationBPName1 AS LglCntntMCustomerOrgFirstName,
  _Customer._CustomerToBusinessPartner._BusinessPartner.OrganizationBPName2 AS LglCntntMCustomerOrgSecondName,
  _Customer._CustomerToBusinessPartner._BusinessPartner.GroupBusinessPartnerName1 AS LglCntntMCustomerGrpFirstName,
  _Customer._CustomerToBusinessPartner._BusinessPartner.GroupBusinessPartnerName2 AS LglCntntMCustomerGrpSecondName,
  _BusinessPartner.FirstName AS FirstName,
  _BusinessPartner.LastName AS LastName,
  _BusinessPartner.OrganizationBPName1 AS OrganizationBPName1,
  _BusinessPartner.OrganizationBPName2 AS OrganizationBPName2,
  _BusinessPartner.GroupBusinessPartnerName1 AS GroupBusinessPartnerName1,
  _BusinessPartner.GroupBusinessPartnerName2 AS GroupBusinessPartnerName2,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _SalesOrganizationText.SalesOrganizationName AS SalesOrganizationName,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName
FROM I_LegalTransactionEntity AS LegalTransactionEntity
LEFT OUTER JOIN I_LegalTransaction AS _LegalTransaction ON LegalTransactionUUID = _LegalTransaction.LegalTransactionUUID  -- association [1..1]
LEFT OUTER JOIN I_LglCntntMProfile AS _LglCntntMProfile ON lglcntntmprofile = _LglCntntMProfile.LglCntntMProfile  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMAccessLvl AS _LglCntntMAccessLvl ON LglCntntMAccessLvl = _LglCntntMAccessLvl.LglCntntMAccessLvl  -- association [0..1]
;