Code: Alles auswählen.
METHOD klick.
CASE fcode.
WHEN '01'.
* Button auf inaktiv stellen
tb_statustree->set_button_visible( EXPORTING visible = X' ' fcode = 02' ).
WHEN 02'.
call method tb_statustree->set_button_visible
EXPORTING visible = 'X'
fcode = 01'
exceptions CNTL_ERROR = 1.
ENDCASE.
CALL METHOD cl_gui_cfw=>flush.
ENDMETHOD.