Code: Alles auswählen.
FORM deactivate_button USING iv_button_name.
LOOP AT SCREEN. "SCREEN is the table generated at runtime.
IF screen-name = iv_button_name."Field name on the screen.
screen-input = 0. "It disables the button on the screen
MODIFY SCREEN.
CLEAR screen.
ENDIF.
ENDLOOP.
ENDFORM.