Code: Alles auswählen.
REPORT ZTEST.
START-OF-SELECTION.
SELECT * INTO TABLE @DATA(it_spfli)
FROM spfli
WHERE carrid = 'AA'.
DATA(o_alv) = NEW cl_gui_alv_grid( i_parent = cl_gui_container=>default_screen
i_appl_events = abap_true ).
DATA: osalv TYPE REF TO cl_salv_table.
cl_salv_table=>factory( IMPORTING
r_salv_table = osalv
CHANGING
t_table = it_spfli ).
DATA(it_fcat) = cl_salv_controller_metadata=>get_lvc_fieldcatalog( r_columns = osalv->get_columns( )
r_aggregations = osalv->get_aggregations( ) ).
DATA(lv_lay) = VALUE lvc_s_layo( zebra = abap_false
cwidth_opt = 'A'
grid_title = 'Flg' ).
o_alv->set_table_for_first_display( EXPORTING
i_bypassing_buffer = abap_false
i_save = 'A'
is_layout = lv_lay
CHANGING
it_fieldcatalog = it_fcat
it_outtab = it_spfli ).
cl_gui_alv_grid=>set_focus( control = o_alv ).
cl_abap_list_layout=>suppress_toolbar( ).
WRITE: space.