REPORT ZKEVINTEST001.
DATA: ispfli type table of spfli.
DATA: gr_table type REF to cl_salv_table.
data: gr_funct type ref to cl_salv_functions.
data: gr_columns type ref to cl_salv_columns_table.
data: gr_column type ref to CL_SALV_COLUMN_TABLE.
START-OF-SELECTION.
SELECT * INTO TABLE ispfli from spfli.
try.
call method cl_salv_table=>factory
importing
r_salv_table = gr_table
changing
t_table = ispfli.
catch cx_salv_msg.
endtry.
gr_funct = gr_table->get_functions( ).
gr_funct->set_all( ABAP_TRUE ).
gr_columns = gr_table->get_columns( ).
gr_column ?= gr_columns->Get_Column( 'DISTANCE' ).
gr_column->SET_VISIBLE( abap_false ).
gr_table->display( ).