Disable a Button on the Application Tool bar
Can any one let me know how to disable a Button on the application toolbar based on a flag. i.e. If the flag is set the button should be enabled and if the flag is empty then the button should be disabled.
Sailaja Nalam replied
when you say excluding button, this removes the button completely.
instead, if you want to disable button..
Set pf-status 'ABC' excluding itab.
double click on ABC, goto -> attributes -> push button assignment -> display all.
the buttons whose fcodes are passed to itab gets <b>grayed out (gets inactive)</b>.
depending on your condition, populate itab with the fcodes required.
Reward points, if answer is helpful