Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

disabling/enabling a button in the toolbar

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member

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.

2 REPLIES 2

Former Member

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.

Former Member
0 Kudos

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.