Code: Alles auswählen.
CLASS my_grid DEFINITION INHERITING FROM cl_gui_alv_grid.
PUBLIC SECTION.
METHODS set_fixed_rows_public
IMPORTING rows TYPE i.
ENDCLASS.
CLASS my_grid IMPLEMENTATION.
METHOD set_fixed_rows_public.
CALL METHOD me->set_fixed_rows
EXPORTING
rows = rows
EXCEPTIONS
error = 1
OTHERS = 2.
ENDMETHOD.
ENDCLASS.
Code: Alles auswählen.
* cl_grid TYPE REF TO cl_gui_alv_grid.
cl_grid TYPE REF TO my_grid.
Code: Alles auswählen.
CALL METHOD cl_grid->set_fixed_rows_public
EXPORTING rows = 5.
Code: Alles auswählen.
call method me->set_fixed_rows
exporting
rows = rows.