03-09-2007 9:50 AM
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
03-09-2007 9:59 AM
03-09-2007 10:02 AM
03-09-2007 10:01 AM
03-09-2007 10:03 AM
Hi...
Could you be Clear....
or else Send your code and tell us where the problem is..
Regards,
Vivekananda Varma Dandu
03-09-2007 10:07 AM
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
03-09-2007 10:13 AM
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
03-09-2007 12:26 PM
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