Simple ALV

Simple ALV

Simple ALV
Photo by Sarah Dorweiler / Unsplash

SELECT * 
FROM scarr 
INTO TABLE @DATA(lt_table).

TRY.
    cl_salv_table=>factory(
      IMPORTING r_salv_table = DATA(lo_table)
      CHANGING  t_table      = lt_table ).
    DATA(lo_function) = lo_table->get_functions( ).
    lo_function->set_all( ).
  CATCH cx_root INTO DATA(lx_err).
    "Handle Error
ENDTRY.