R_Sitn2DemoBooking

DDL: R_SITN2DEMOBOOKING SQL: RSITN2DBOOK Type: view BASIC

Bookings for Situation Demo

R_Sitn2DemoBooking is a Basic CDS View that provides data about "Bookings for Situation Demo" in SAP S/4HANA. It reads from 1 data source (sit2_demo_book) and exposes 22 fields with key fields SitnDemoCarrierID, SitnDemoConnectionID, SitnDemoFlightDate, SitnDemoBookingID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
sit2_demo_book sit2_demo_book from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Currency _Currency $projection.SitnDemoCurrency = _Currency.Currency
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.SitnDemoWeightUnit = _UnitOfMeasure.UnitOfMeasure
[1..1] R_Sitn2DemoCarrier _Carrier $projection.SitnDemoCarrierID = _Carrier.SitnDemoCarrierID
[1..1] R_Sitn2DemoAgency _Agency $projection.SitnDemoAgencyID = _Agency.SitnDemoAgencyID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName RSITN2DBOOK 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 #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Bookings for Situation Demo view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY SitnDemoCarrierID carrid Carrier
KEY SitnDemoConnectionID connid Flight Number
KEY SitnDemoFlightDate fldate Flight Date
KEY SitnDemoBookingID bookid Booking number
SitnDemoBookingUniqueKey unique_key Unique Flight Key
SitnDemoTitle title View Title
SitnDemoWeightUnit wunit Weight Unit
SitnDemoLuggageWeight luggweight Luggage Weight
SitnDemoIsConfirmed confirmed Confirmed
SitnDemoIsInvoiced invoice Orig.Inv.Number
SitnDemoIsReserved reserved Reserved
SitnDemoBookingClass class User Group
SitnDemoPrice loccuram Amount
SitnDemoCurrency loccurkey Airline Currency
SitnDemoOrderDate order_date Posting Date
SitnDemoAgencyID agencynum Travel Agency
SitnDemoPssngrName pass_name Passenger Name
SitnDemoPssngrPhoneNumber pass_phono Passenger Phone Number
SitnDemoCarrierRegion _Carrier SitnDemoCarrierRegion
SitnDemoAgencyRegion _Agency SitnDemoAgencyRegion
_Currency _Currency
_UnitOfMeasure _UnitOfMeasure

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 R_Sitn2DemoBooking.
-- 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: RSITN2DBOOK

CREATE VIEW R_Sitn2DemoBooking AS
SELECT
  carrid AS SitnDemoCarrierID,
  connid AS SitnDemoConnectionID,
  fldate AS SitnDemoFlightDate,
  bookid AS SitnDemoBookingID,
  unique_key AS SitnDemoBookingUniqueKey,
  title AS SitnDemoTitle,
  wunit AS SitnDemoWeightUnit,
  luggweight AS SitnDemoLuggageWeight,
  confirmed AS SitnDemoIsConfirmed,
  invoice AS SitnDemoIsInvoiced,
  reserved AS SitnDemoIsReserved,
  class AS SitnDemoBookingClass,
  loccuram AS SitnDemoPrice,
  loccurkey AS SitnDemoCurrency,
  order_date AS SitnDemoOrderDate,
  agencynum AS SitnDemoAgencyID,
  pass_name AS SitnDemoPssngrName,
  pass_phono AS SitnDemoPssngrPhoneNumber,
  _Carrier.SitnDemoCarrierRegion AS SitnDemoCarrierRegion,
  _Agency.SitnDemoAgencyRegion AS SitnDemoAgencyRegion
FROM sit2_demo_book
LEFT OUTER JOIN I_Currency AS _Currency ON SitnDemoCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON SitnDemoWeightUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN R_Sitn2DemoCarrier AS _Carrier ON SitnDemoCarrierID = _Carrier.SitnDemoCarrierID  -- association [1..1]
LEFT OUTER JOIN R_Sitn2DemoAgency AS _Agency ON SitnDemoAgencyID = _Agency.SitnDemoAgencyID  -- association [1..1]
;