[ABAP] Einfache Ausgabe eines ALV-Grids ohne zus. Dynpro

START-OF-SELECTION.

  DATA: it_mara TYPE STANDARD TABLE OF mara.

  SELECT * FROM mara INTO TABLE it_mara UP TO 100 ROWS.

  DATA(o_alv) = NEW cl_gui_alv_grid( i_parent = cl_gui_container=>screen0
                                     i_appl_events = abap_true ).

  o_alv->set_table_for_first_display( EXPORTING
                                        i_structure_name = 'MARA'
                                      CHANGING
                                        it_outtab        = it_mara ).

  WRITE: space.