disable a button in the dialog program
I have a button in the application toolbar of the GUI status.I want to disable it and it should be enabled when a certain field in the database table is updated.Please suggest how can I do it.
Gurpreet Singh replied
If you want to disable more than one buttons.
Data: T_Ucomm type standard table of sy-ucomm with header line. T_ucomm = 'X1'. Append T_ucomm. T_ucomm = 'X2'. Append T_ucomm. If Condition1. SET PF-STATUS 'TEST' Excluding T_UCOMM. ELSE. SET PF-STATUS 'TEST'. ENDIF.
ELSE for one button:
If Condition1. SET PF-STATUS 'TEST' Excluding '<Button>'. ELSE. SET PF-STATUS 'TEST'. ENDIF.