SADL_V_Ref_Constr_Left
Test view for referential constraints
SADL_V_Ref_Constr_Left is a CDS View that provides data about "Test view for referential constraints" in SAP S/4HANA. It reads from 2 data sources (snwd_bp, snwd_so) and exposes 14 fields with key field SalesOrder. It has 5 associations to related views.
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | SADL_V_Ref_Constr_Right | _AssociationViaID | _AssociationViaID./aunit/BusinessPartner = $projection./aunit/BusinessPartner |
| [0..1] | SADL_V_Ref_Constr_Right | _AssociationViaUUID | _AssociationViaUUID.BusinessPartnerUUID = $projection.BusinessPartnerUUID |
| [0..1] | SADL_V_Ref_Constr_Right | _AssociationWithFilter | _AssociationWithFilter./aunit/BusinessPartner = $projection.BusinessPartner1 and _AssociationWithFilter.FilterCriterium = $projection.FilterCriterium |
| [0..1] | SADL_V_Ref_Constr_Right | _AssociationWithConstant | _AssociationWithConstant./aunit/BusinessPartner = $projection.BusinessPartner2 and _AssociationWithConstant.FilterCriterium = 'X' |
| [0..1] | SADL_V_Ref_Constr_Right | _InvalidAssociation | _InvalidAssociation./aunit/BusinessPartner = $projection.BusinessPartner3 and _InvalidAssociation.FilterCriterium = _InvalidAssociation.FilterCriterium |
Annotations (2)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SADLVRCL | view | |
| EndUserText.label | Test view for referential constraints | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrder | snwd_so | so_id | Sales Order ID |
| SalesOrderUUID | snwd_so | node_key | Tree Model: Node Key | |
| /aunit/BusinessPartner | snwd_bp | bp_id | BusPartner | |
| BusinessPartner1 | snwd_bp | bp_id | BusPartner | |
| BusinessPartner2 | snwd_bp | bp_id | BusPartner | |
| BusinessPartner3 | snwd_bp | bp_id | BusPartner | |
| BusinessPartnerUUID | snwd_so | buyer_guid | Node Key | |
| BusinessPartner0 | snwd_bp | bp_id | BusPartner | |
| FilterCriterium | ||||
| _AssociationViaID | _AssociationViaID | |||
| _AssociationViaUUID | _AssociationViaUUID | |||
| _AssociationWithFilter | _AssociationWithFilter | |||
| _AssociationWithConstant | _AssociationWithConstant | |||
| _InvalidAssociation | _InvalidAssociation |
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 SADL_V_Ref_Constr_Left.
-- 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: SADLVRCL
CREATE VIEW SADL_V_Ref_Constr_Left AS
SELECT
snwd_so.so_id AS SalesOrder,
snwd_so.node_key AS SalesOrderUUID,
snwd_bp.bp_id AS /aunit/BusinessPartner,
snwd_bp.bp_id AS BusinessPartner1,
snwd_bp.bp_id AS BusinessPartner2,
snwd_bp.bp_id AS BusinessPartner3,
snwd_so.buyer_guid AS BusinessPartnerUUID,
snwd_bp.bp_id AS BusinessPartner0,
'X' AS FilterCriterium
FROM snwd_so
LEFT OUTER JOIN snwd_bp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN SADL_V_Ref_Constr_Right AS _AssociationViaID ON _AssociationViaID./aunit/BusinessPartner = /aunit/BusinessPartner -- association [0..1]
LEFT OUTER JOIN SADL_V_Ref_Constr_Right AS _AssociationViaUUID ON _AssociationViaUUID.BusinessPartnerUUID = BusinessPartnerUUID -- association [0..1]
LEFT OUTER JOIN SADL_V_Ref_Constr_Right AS _AssociationWithFilter ON _AssociationWithFilter./aunit/BusinessPartner = BusinessPartner1 AND _AssociationWithFilter.FilterCriterium = FilterCriterium -- association [0..1]
LEFT OUTER JOIN SADL_V_Ref_Constr_Right AS _AssociationWithConstant ON _AssociationWithConstant./aunit/BusinessPartner = BusinessPartner2 AND _AssociationWithConstant.FilterCriterium = 'X' -- association [0..1]
LEFT OUTER JOIN SADL_V_Ref_Constr_Right AS _InvalidAssociation ON _InvalidAssociation./aunit/BusinessPartner = BusinessPartner3 AND _InvalidAssociation.FilterCriterium = _InvalidAssociation.FilterCriterium -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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