P_Sitn2DemoFlightCalc2
Calculated Fields for Situation Demo
P_Sitn2DemoFlightCalc2 is a Composite CDS View that provides data about "Calculated Fields for Situation Demo" in SAP S/4HANA. It reads from 1 data source (P_Sitn2DemoFlightCalc1) and exposes 22 fields with key fields SitnDemoCarrierID, SitnDemoConnectionID, SitnDemoFlightDate. Part of development package CA_SIT2_DEMO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_Sitn2DemoFlightCalc1 | P_Sitn2DemoFlightCalc1 | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSITN2DFLIC2 | 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 (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SitnDemoCarrierID | SitnDemoCarrierID | ||
| KEY | SitnDemoConnectionID | SitnDemoConnectionID | ||
| KEY | SitnDemoFlightDate | SitnDemoFlightDate | ||
| SitnDemoLuggageWgtRatio | SitnDemoLuggageWgtRatio | |||
| SitnDemoOccupiedSeatsRatio | SitnDemoOccupiedSeatsRatio | |||
| SitnDemoSeatOccpcyEconomyRatio | SitnDemoSeatOccpcyEconomyRatio | |||
| SitnDemoSeatsOccpcyBusClRatio | SitnDemoSeatsOccpcyBusClRatio | |||
| SitnDemoSeatsOccpcy1stClRatio | SitnDemoSeatsOccpcy1stClRatio | |||
| SitnDemoEconomyClSoldAmount | ||||
| SitnDemoBusClSoldAmount | ||||
| SitnDemo1stClSoldAmount | ||||
| SitnDemoCurSoldEconomyClAmount | ||||
| SitnDemoCurSoldBusClAmount | ||||
| SitnDemoCurSold1stClAmount | ||||
| SitnDemoMaxSoldEconomyClAmount | ||||
| SitnDemoMaxSoldBusClAmount | ||||
| SitnDemoMaxSold1stClAmount | ||||
| SitnDemoBusClPrice | SitnDemoBusClPrice | |||
| SitnDemo1stClPrice | SitnDemo1stClPrice | |||
| SitnDemoCurrency | SitnDemoCurrency | |||
| Today | ||||
| _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_Sitn2DemoFlightCalc2.
-- 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: PSITN2DFLIC2
CREATE VIEW P_Sitn2DemoFlightCalc2 AS
SELECT
SitnDemoCarrierID,
SitnDemoConnectionID,
SitnDemoFlightDate,
SitnDemoLuggageWgtRatio,
SitnDemoOccupiedSeatsRatio,
SitnDemoSeatOccpcyEconomyRatio,
SitnDemoSeatsOccpcyBusClRatio,
SitnDemoSeatsOccpcy1stClRatio,
cast (SitnDemoPrice * SitnDemoSeatsOccupiedQty as sit2_demo_sales_total_eco_cl ) AS SitnDemoEconomyClSoldAmount,
cast ( SitnDemoBusClPrice * SitnDemoSeatsOccupiedBusClQty as sit2_demo_sales_total_bus_cl ) AS SitnDemoBusClSoldAmount,
cast ( SitnDemo1stClPrice * SitnDemoSeatsOccupied1stClQty as sit2_demo_sales_total_1st_cl ) AS SitnDemo1stClSoldAmount,
cast( SitnDemoPrice * SitnDemoSeatsOccupiedQty as s_price) AS SitnDemoCurSoldEconomyClAmount,
cast( SitnDemoBusClPrice * SitnDemoSeatsOccupiedBusClQty as s_price) AS SitnDemoCurSoldBusClAmount,
cast( SitnDemo1stClPrice * SitnDemoSeatsOccupied1stClQty as s_price) AS SitnDemoCurSold1stClAmount,
cast( SitnDemoPrice * SitnDemoSeatsMaxQty as s_price) AS SitnDemoMaxSoldEconomyClAmount,
cast( SitnDemoBusClPrice * SitnDemoSeatsMaxBusClQty as s_price) AS SitnDemoMaxSoldBusClAmount,
cast( SitnDemo1stClPrice * SitnDemoSeatsMax1stClQty as s_price) AS SitnDemoMaxSold1stClAmount,
SitnDemoBusClPrice,
SitnDemo1stClPrice,
SitnDemoCurrency,
$session.system_date AS Today
FROM P_Sitn2DemoFlightCalc1
;
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