Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

disable a button in the dialog program

Hi,

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.

Former Member
Former Member 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.

Regards,

Gurpreet

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question