‎2007 Mar 23 2:07 PM
Hi All,
we have two push buttons ADD and DELETE.Based on some condition we need to disable it.The foolowing code is not working.What could be the problem?
loop at screen.
IF screen-name = 'ADD' or screen-name = 'DELETE'.
screen-invisible = 1.
modify screen.
endif.
Thanks,
Rakesh More.
‎2007 Mar 23 2:09 PM
‎2007 Mar 23 2:12 PM
This works fine in my case.
loop at screen.
if screen-name = 'ACCEPTSHIPQTY'.
screen-invisible = 1.
modify screen.
endif.
endloop.If the buttons are on the application toolbar. You must exclude them using the SET PF-STATUS statement.
set pf-status 'Test' excluding 'ADD'.
If you want to do more than one, you must use a table here.
http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801e2d454211d189710000e8322d00/frameset.htm
Regards,
Rich Heilman
‎2007 Mar 23 2:09 PM
Hi,
try this.
loop at screen.
IF screen-name = 'ADD' or screen-name = 'DELETE'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
regards,
bharat.
‎2007 Mar 23 2:19 PM
hi,
do you want to make the buttons on application tool bar invisible or grayed out?
if you want to gray them out, then go to pf-status..
Go-> attributes-> push button assignment
select radiobutton display all and activate.
Now, you can get the buttons that are excluded in pf-status as grayed out .
regards,
Sailaja.