P_Sitn2DemoFlightCalc1
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)
| Source | Alias | Join Type |
|---|---|---|
| R_Sitn2DemoFlight | _Flight | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_Sitn2DemoBooking | _Booking | $projection.SitnDemoCarrierID = _Booking.SitnDemoCarrierID and $projection.SitnDemoConnectionID = _Booking.SitnDemoConnectionID and $projection.SitnDemoFlightDate = _Booking.SitnDemoFlightDate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA