S_Flights
Flights
S_Flights is a CDS View that provides data about "Flights" in SAP S/4HANA. It reads from 1 data source (sflight) and exposes 18 fields with key fields CarrierId, ConnectionId, FlightDate. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| sflight | sflight | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | tcurc | _Currency | $projection.currencyCode = _Currency.waers |
| [1] | S_Carrier | _Carrier | $projection.CarrierId = _Carrier.CarrierId |
| [1] | S_Connections | _Connection | $projection.CarrierId = _Connection.CarrierId and $projection.ConnectionId = _Connection.ConnectionId |
| [1] | S_Planes | _Plane | $projection.planetype = _Plane.planetype |
| [*] | S_Bookings | _Bookings | $projection.CarrierId = _Bookings.CarrierId and $projection.ConnectionId = _Bookings.ConnectionId and $projection.FlightDate = _Bookings.FlightDate |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | S_FLIGHTSV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Flights | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CarrierId | carrid | ||
| KEY | ConnectionId | connid | ||
| KEY | FlightDate | fldate | ||
| price | price | |||
| currencyCode | currency | |||
| planetype | planetype | |||
| seatsmax | seatsmax | |||
| seatsocc | seatsocc | |||
| paymentsum | paymentsum | |||
| seatsmax_b | seatsmax_b | |||
| seatsocc_b | seatsocc_b | |||
| seatsmax_f | seatsmax_f | |||
| seatsocc_f | seatsocc_f | |||
| _Currency | _Currency | |||
| _Carrier | _Carrier | |||
| _Connection | _Connection | |||
| _Plane | _Plane | |||
| _Bookings | _Bookings |
@AbapCatalog.sqlViewName: 'S_FLIGHTSV'
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Flights'
define view S_Flights as select from sflight
association [1..1] to tcurc as _Currency on $projection.currencyCode = _Currency.waers
association [1] to S_Carrier as _Carrier on $projection.CarrierId = _Carrier.CarrierId
association [1] to S_Connections as _Connection on $projection.CarrierId = _Connection.CarrierId
and $projection.ConnectionId = _Connection.ConnectionId
association [1] to S_Planes as _Plane on $projection.planetype = _Plane.planetype
association [*] to S_Bookings as _Bookings on $projection.CarrierId = _Bookings.CarrierId
and $projection.ConnectionId = _Bookings.ConnectionId
and $projection.FlightDate = _Bookings.FlightDate
{
key carrid as CarrierId,
key connid as ConnectionId,
key fldate as FlightDate,
price,
currency as currencyCode,
planetype,
seatsmax,
seatsocc,
paymentsum,
seatsmax_b,
seatsocc_b,
seatsmax_f,
seatsocc_f,
_Currency,
_Carrier,
_Connection,
_Plane,
_Bookings
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"SFLIGHT"
],
"ASSOCIATED":
[
"S_BOOKINGS",
"S_CARRIER",
"S_CONNECTIONS",
"S_PLANES",
"TCURC"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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