sadl_sb_aunit_sflight

DDL: SADL_SB_AUNIT_SFLIGHT SQL: VSADLSB_AU_SFLGH Type: view

sadl_sb_aunit_sflight is a CDS View in SAP S/4HANA. It reads from 1 data source (sflight) and exposes 8 fields with key fields carrier_id, flight_date. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
sflight sflight from

Associations (1)

CardinalityTargetAliasCondition
[1..1] SADL_SB_AUNIT_SPFLI schedule $projection.carrier_id = schedule.carrier_id and $projection.connection_id = schedule.connection_id

Annotations (1)

NameValueLevelField
AbapCatalog.sqlViewName VSADLSB_AU_SFLGH view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY carrier_id carrid Carrier
KEY flight_date
plane_type planetype Planetype
seats_total seatsmax Max. Seats
seats_free
price price RVP f.PricePro.
currency currency Valuation Crcy
schedule schedule Schedule

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_sb_aunit_sflight.
-- 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: VSADLSB_AU_SFLGH

CREATE VIEW sadl_sb_aunit_sflight AS
SELECT
  carrid AS carrier_id,
  concat(concat(concat(concat(substring(fldate, 1, 4), '-') , substring(fldate, 5, 2)), '-'), substring(fldate, 7, 2)) AS flight_date,
  planetype AS plane_type,
  seatsmax AS seats_total,
  (seatsmax - seatsocc) AS seats_free,
  price,
  currency,
  schedule
FROM sflight
LEFT OUTER JOIN SADL_SB_AUNIT_SPFLI AS schedule ON carrier_id = schedule.carrier_id AND connection_id = schedule.connection_id  -- association [1..1]
;