C_LegalTrRelationShip
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)
| Source | Alias | Join Type |
|---|---|---|
| I_LegalTrRelationship | I_LegalTrRelationship | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_LegalTransactionIdValueHelp | _LegalTransactionIdValueHelp | $projection.RelshpLegalTransaction = _LegalTransactionIdValueHelp.LegalTransaction |
| [0..1] | C_LCMRelationshipTypeValueHelp | _LCMRelationshipTypeValueHelp | $projection.LglCntntMRelshpType = _LCMRelationshipTypeValueHelp.LglCntntMRelshpType |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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