Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

ABAP CDS on HANA-1

Basic CDS View Creation

Provide SQL VIEW NAME, provide a meaningful end user text label, provide view type as BASIC.
On the define view statement, provide the select form as “SFLIGHT”, mention the field names
marking key fields. Activate and execute the view.

@AbapCatalog.sqlViewName: ‘ZSFLIGHTVIEW’
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: ‘Flight Information’
@VDM.viewType: #BASIC
define view Zflight_View as select from sflight{
key sflight.carrid as AirlineCode,
key sflight.connid as ConnectionNumber,
key sflight.fldate as FlightDate,
sflight.price as Airfare,
sflight.currency as FareCurrency,
sflight.planetype as PlaneCategory,
sflight.seatsmax as MaxAvailableSeats,
sflight.seatsocc as OccupiedSeats
}
Here is the CDS view output.

You might also like