demo_cds_join2

DDL: DEMO_CDS_JOIN2 SQL: DEMO_CDS_JN2 Type: view Package: SABAP_DEMOS_ABAP_CDS_CLOUD

CDS DDIC-based view, association

demo_cds_join2 is a CDS View that provides data about "CDS DDIC-based view, association" in SAP S/4HANA. It reads from 1 data source (spfli) and exposes 4 fields. Part of development package SABAP_DEMOS_ABAP_CDS_CLOUD.

Data Sources (1)

SourceAliasJoin Type
spfli spfli from

Annotations (2)

NameValueLevelField
AbapCatalog.sqlViewName DEMO_CDS_JN2 view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (4)

KeyFieldSource TableSource FieldDescription
carrier
flight spfli connid Flight Number
departure spfli cityfrom Departure City
arrival spfli cityto Destination City

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 demo_cds_join2.
-- 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: DEMO_CDS_JN2

CREATE VIEW demo_cds_join2 AS
SELECT
  _scarr[inner].carrname AS carrier,
  spfli.connid AS flight,
  spfli.cityfrom AS departure,
  spfli.cityto AS arrival
FROM spfli
;