04-18-2008 5:45 PM
Hi,
Please, I would like to know how can make buttons in the application toolbar inactive (not to delete them) by code and by diffining them in the Menu painter (SE41).
Thanks.
04-18-2008 6:09 PM
DATA fcode TYPE TABLE OF sy-ucomm.
APPEND 'CHANGE' TO fcode.
APPEND 'SAVE' TO fcode.
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
include all buttons you want to exclude into fcode.
now go to your pf status thru menu painter - right click on application tool bar.
select radio button - attributes.> display of inactive functions> Select radio button display all.
activate.
this will display the inactive functions..but in a grayed out mode.
04-18-2008 6:09 PM
DATA fcode TYPE TABLE OF sy-ucomm.
APPEND 'CHANGE' TO fcode.
APPEND 'SAVE' TO fcode.
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
include all buttons you want to exclude into fcode.
now go to your pf status thru menu painter - right click on application tool bar.
select radio button - attributes.> display of inactive functions> Select radio button display all.
activate.
this will display the inactive functions..but in a grayed out mode.
04-18-2008 6:26 PM
Hi Moutaa,
if you want to disable for standard screens it is not possible.because you will not have access to do that.but if you want to do for your screen or if you have access they follow these steps.
1)go to se41
2)expand the Function Keys button if you want to work with standard tool bar
3)expand application toolbar if you want to work with application toolbar
4)expand menubar if you want to work with menubar
5)enter the name of the control that you want to disable or enable
go through the following link
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
save,check and activate.