C_LegalTrRelationShip

DDL: C_LEGALTRRELATIONSHIP SQL: CLEGALTRRELSHP Type: view CONSUMPTION

Legal Transaction Relationships (Draft Disabled)

C_LegalTrRelationShip is a Consumption CDS View that provides data about "Legal Transaction Relationships (Draft Disabled)" in SAP S/4HANA. It reads from 1 data source (I_LegalTrRelationship) and exposes 15 fields with key field LegalTransactionRelshpUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_LegalTrRelationship I_LegalTrRelationship from

Associations (2)

CardinalityTargetAliasCondition
[0..1] C_LegalTransactionIdValueHelp _LegalTransactionIdValueHelp $projection.RelshpLegalTransaction = _LegalTransactionIdValueHelp.LegalTransaction
[0..1] C_LCMRelationshipTypeValueHelp _LCMRelationshipTypeValueHelp $projection.LglCntntMRelshpType = _LCMRelationshipTypeValueHelp.LglCntntMRelshpType

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CLEGALTRRELSHP view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.semanticKey RelshpLegalTransaction view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Legal Transaction Relationships (Draft Disabled) view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionRelshpUUID LegalTransactionRelshpUUID Universal Unique ID
RelshpLegalTransactionUUID RelshpLegalTransactionUUID Universal Unique ID
LglCntntMRelshpType LglCntntMRelshpType Relationship Type
LglCntntMRelTypeName _LCMRelationshipTypeValueHelp LglCntntMRelTypeName Rel. Type Name
RelshpLegalTransaction RelshpLegalTransaction Legal Transaction
RelshpLegalTransactionTitle _LegalTransactionIdValueHelp LegalTransactionTitle Title
LglCntntMIsMandatory Required
LegalTransactionMandatoryFlag LegalTransactionMandatoryFlag Mandatory
LegalTransactionUUID LegalTransactionUUID Universal Unique ID
_LCMRelationshipTypeValueHelp _LCMRelationshipTypeValueHelp
_LegalTransaction _LegalTransaction
_LegalTransactionIdValueHelp _LegalTransactionIdValueHelp
LglCntntMContext _LegalTransactionIdValueHelp LglCntntMContext Context
LglCntntMContextTitle _LegalTransactionIdValueHelp LglCntntMContextTitle Title
_RelshpLegalTransaction _RelshpLegalTransaction

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_LegalTrRelationShip.
-- 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: CLEGALTRRELSHP

CREATE VIEW C_LegalTrRelationShip AS
SELECT
  LegalTransactionRelshpUUID,
  RelshpLegalTransactionUUID,
  LglCntntMRelshpType,
  _LCMRelationshipTypeValueHelp.LglCntntMRelTypeName AS LglCntntMRelTypeName,
  RelshpLegalTransaction,
  _LegalTransactionIdValueHelp.LegalTransactionTitle AS RelshpLegalTransactionTitle,
  cast ( '' as lcm_is_mandatory preserving type ) AS LglCntntMIsMandatory,
  LegalTransactionMandatoryFlag,
  LegalTransactionUUID,
  _LegalTransactionIdValueHelp.LglCntntMContext AS LglCntntMContext,
  _LegalTransactionIdValueHelp.LglCntntMContextTitle AS LglCntntMContextTitle
FROM I_LegalTrRelationship
LEFT OUTER JOIN C_LegalTransactionIdValueHelp AS _LegalTransactionIdValueHelp ON RelshpLegalTransaction = _LegalTransactionIdValueHelp.LegalTransaction  -- association [0..1]
LEFT OUTER JOIN C_LCMRelationshipTypeValueHelp AS _LCMRelationshipTypeValueHelp ON LglCntntMRelshpType = _LCMRelationshipTypeValueHelp.LglCntntMRelshpType  -- association [0..1]
;