ja, hatte jemand...ewx hat geschrieben:Hat da jemand eine Idee?
Code: Alles auswählen.
*----------------------------------------------------------------------*
* CLASS cl_my_grid DEFINITION
*----------------------------------------------------------------------*
CLASS: cl_my_grid DEFINITION INHERITING FROM cl_gui_alv_grid.
PUBLIC SECTION.
METHODS my_resize importing i_resize TYPE integer.
ENDCLASS. "cl_my_grid DEFINITION
*----------------------------------------------------------------------*
* CLASS cl_my_grid IMPLEMENTATION
*----------------------------------------------------------------------*
CLASS: cl_my_grid IMPLEMENTATION.
* normalen Constructor aufrufen
METHOD my_resize.
* Spaltenbreitenänderung verbieten
CALL METHOD me->set_resize_cols
EXPORTING
enable = i_resize
EXCEPTIONS
error = 1
OTHERS = 2.
ENDMETHOD. "constructor
ENDCLASS. "cl_my_grid IMPLEMENTATION
~~~~~~~~
DATA gref_grid TYPE REF TO cl_my_grid.
~~~~~~~~
call method gref_grid->my_resize
exporting i_resize = '0'.