Parent_Cds

DDL: PARENT_CDS SQL: CdsAPI_DEMO_1 Type: view Package: SABP_UNIT_DOUBLE_CDS_API

CDS for Test Environment

Parent_Cds is a CDS View that provides data about "CDS for Test Environment" in SAP S/4HANA. It reads from 1 data source (Child_Cds) and exposes 4 fields. It has 1 association to related views. Part of development package SABP_UNIT_DOUBLE_CDS_API.

Data Sources (1)

SourceAliasJoin Type
Child_Cds Child_Cds from

Associations (1)

CardinalityTargetAliasCondition
[1] snwd_so _sales_order so_guid = _sales_order.node_key

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName CdsAPI_DEMO_1 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label CDS for Test Environment view

Fields (4)

KeyFieldSource TableSource FieldDescription
so_guid so_guid Node Key
so_id
tax_rate tax_rate WithholdingRate
_sales_order _sales_order

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 Parent_Cds.
-- 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: CdsAPI_DEMO_1

CREATE VIEW Parent_Cds AS
SELECT
  so_guid,
  coalesce ( _sales_order.so_id, '9999999999' ) AS so_id,
  tax_rate
FROM Child_Cds
LEFT OUTER JOIN snwd_so AS _sales_order ON so_guid = _sales_order.node_key  -- association [1]
;