Code: Alles auswählen.
REPORT.
CLASS lcl_forms DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:main.
CLASS-DATA: mt_data TYPE STANDARD TABLE OF t005 WITH NON-UNIQUE DEFAULT KEY.
ENDCLASS.
END-OF-SELECTION.
lcl_forms=>main( ).
CLASS lcl_forms IMPLEMENTATION.
METHOD main.
SELECT *
INTO TABLE mt_data
FROM t005.
DATA(lo_alv) = NEW cl_gui_alv_grid( cl_gui_container=>screen0 ).
lo_alv->set_table_for_first_display( EXPORTING
i_bypassing_buffer = 'X'
i_structure_name = 'T005'
CHANGING
it_outtab = mt_data
EXCEPTIONS
OTHERS = 4 ).
sy-ucomm = cl_gui_alv_grid=>mc_fc_view_excel.
* sy-ucomm = cl_gui_alv_grid=>MC_FC_VIEW_CRYSTAL.
lo_alv->fcode_bouncer( ).
WRITE:/ '.'.
ENDMETHOD.
ENDCLASS.
Folgende Benutzer bedankten sich beim Autor black_adept für den Beitrag:
verzweifelt