If you want to quickly display a table in a report, you can use this code.

    
    select * from exmp_table
      into table @data(lt_data).
    
    cl_salv_table=>factory(
      importing
        r_salv_table = data(lo_alv)
      changing
        t_table      = lt_data ).
    
    lo_alv->display( ).