P_Sitn2DemoFlightCalc1

DDL: P_SITN2DEMOFLIGHTCALC1 SQL: PSITN2DFLIC1 Type: view COMPOSITE Package: CA_SIT2_DEMO

Calculated Fields for Situation Demo

P_Sitn2DemoFlightCalc1 is a Composite CDS View that provides data about "Calculated Fields for Situation Demo" in SAP S/4HANA. It reads from 1 data source (R_Sitn2DemoFlight) and exposes 14 fields with key fields SitnDemoCarrierID, SitnDemoConnectionID, SitnDemoFlightDate. It has 1 association to related views. Part of development package CA_SIT2_DEMO.

Data Sources (1)

SourceAliasJoin Type
R_Sitn2DemoFlight _Flight from

Associations (1)

CardinalityTargetAliasCondition
[0..*] R_Sitn2DemoBooking _Booking $projection.SitnDemoCarrierID = _Booking.SitnDemoCarrierID and $projection.SitnDemoConnectionID = _Booking.SitnDemoConnectionID and $projection.SitnDemoFlightDate = _Booking.SitnDemoFlightDate

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSITN2DFLIC1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.dataMaintenance #RESTRICTED view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SitnDemoCarrierID SitnDemoCarrierID Carrier
KEY SitnDemoConnectionID SitnDemoConnectionID Flight Number
KEY SitnDemoFlightDate SitnDemoFlightDate Flight Date
SitnDemoSeatsOccupiedQty SitnDemoSeatsOccupiedQty Occupied Econ.
SitnDemoSeatsOccupiedBusClQty SitnDemoSeatsOccupiedBusClQty Occupied Bus.
SitnDemoSeatsOccupied1stClQty SitnDemoSeatsOccupied1stClQty Occupied 1st
SitnDemoSeatsMaxQty SitnDemoSeatsMaxQty Max. Seats
SitnDemoSeatsMaxBusClQty SitnDemoSeatsMaxBusClQty Max. Capacity Bus.
SitnDemoSeatsMax1stClQty SitnDemoSeatsMax1stClQty Max. Capacity 1st
SitnDemoPrice SitnDemoPrice RVP f.PricePro.
SitnDemoBusClPrice
SitnDemo1stClPrice
SitnDemoCurrency R_Sitn2DemoFlight SitnDemoCurrency Valuation Crcy
_Currency _Currency

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 P_Sitn2DemoFlightCalc1.
-- 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: PSITN2DFLIC1

CREATE VIEW P_Sitn2DemoFlightCalc1 AS
SELECT
  SitnDemoCarrierID,
  SitnDemoConnectionID,
  SitnDemoFlightDate,
  SitnDemoSeatsOccupiedQty,
  SitnDemoSeatsOccupiedBusClQty,
  SitnDemoSeatsOccupied1stClQty,
  SitnDemoSeatsMaxQty,
  SitnDemoSeatsMaxBusClQty,
  SitnDemoSeatsMax1stClQty,
  SitnDemoPrice,
  cast( SitnDemoPrice * 2 as sit2_demo_price_bus_cl ) AS SitnDemoBusClPrice,
  cast( SitnDemoPrice * 10 as sit2_demo_price_1st_cl ) AS SitnDemo1stClPrice,
  _Flight.SitnDemoCurrency AS SitnDemoCurrency
FROM R_Sitn2DemoFlight AS _Flight
LEFT OUTER JOIN R_Sitn2DemoBooking AS _Booking ON SitnDemoCarrierID = _Booking.SitnDemoCarrierID AND SitnDemoConnectionID = _Booking.SitnDemoConnectionID AND SitnDemoFlightDate = _Booking.SitnDemoFlightDate  -- association [0..*]
;