ALV with CDS view
The link show How to create ABAP CDS on HANA . Once the DDL source is created the DDL SQL View is created which can be used as a data source to display the alv.
So here we have the DDL SQL View ‘ZSFLIGHTVIEW’.
Program Code:
DATA: lr_salv TYPE REF TO if_salv_gui_table_ida.
cl_salv_gui_table_ida=>create(
EXPORTING
iv_table_name = ‘ZSFLIGHTVIEW’
RECEIVING
ro_alv_gui_table_ida = lr_salv ).
lr_salv->fullscreen( )->display( ).
Program Output: