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: 

Menu Painter

Former Member
0 Kudos

I m having 4 menu File, screen, system, Help.

i know to disable particular submenu in the menu.

Now i want to disable the menu (File) itself how to do that.

Thanks in advance

7 REPLIES 7

Former Member
0 Kudos

do you want to do this in runtime or design time

0 Kudos

i want to do it in runtime

Former Member
0 Kudos

i thnk it is not possible

Former Member
0 Kudos

Hi...

Could you be Clear....

or else Send your code and tell us where the problem is..

Regards,

Vivekananda Varma Dandu

0 Kudos

For example in Internet explorer screen itself u will be having menu File in that u can see New,Open,Save,Save as etc..

I know how to disable that New,Open etc at run time using

set pf-status excluding itab

but my requirement is i want to disable the Whole menu File itself.. at runtime.

Hope now it will be clear.

Thanks

Former Member
0 Kudos

if you want to disable full menu bar then

check the condition.

like

if sy-uname = 'ABAP'.

set pf-status 'ZSPD'.

endif.

you can resrict by uname here give condn as per your need.

regards

shiba dutta

Clemenss
Active Contributor
0 Kudos

Hi Kalpanashri,

You can deactivate menu functions dynamically at runtime. To do this, use the EXCLUDING addition when you set the GUI status. You can deactivate either individual functions, or a whole group of functions.

Deactivating a Single Function

Suppose you have a GUI status called CREATE . This GUI status could have a List reservations menu option with the function code LIST . If List reservations is active by default, you can deactivate it at runtime with the following statement.

SET PF-STATUS 'CREATE' EXCLUDING 'LIST'.

If List reservations is included in a menu, the system grays out the function text. If the function is assigned to a pushbutton, the pushbutton is not displayed unless you have set the fixed positions option for the application toolbar.

Deactivating a Group of Functions

You can deactivate several functions at once by filling an internal table with all the function codes you want to deactivate. Following our example above, and using an internal table called itab , you would do this as follows:

SET PF-STATUS 'CREATE' EXCLUDING itab.

Note

For further information about how to deactivate functions dynamically, see the online documentation for the SET PF-STATUS statement.

(C) SAP online Help

Regards,

Clemens