data lo_salv type ref to cl_salv_table.
try.
cl_salv_table=>factory(
importing r_salv_table = lo_salv
changing t_table = [...]
).
lo_salv->get_functions( )->set_all( ). " activate toolbar
lo_salv->get_columns( )->set_optimize( 'X' ).
lo_salv->get_columns( )->get_column( columnname = 'MANDT' )->set_technical( ).
lo_salv->display( ).
catch cx_salv_msg.
write / 'SALV kann nicht dargestellt werden'(002).
catch cx_salv_not_found.
write / 'SALV kann nicht dargestellt werden'(002).
endtry.
No comments:
Post a Comment