‎2006 May 06 6:17 AM
hi,
i created a menu(bar) in a module pool how to disable that menu for other users...
plz help me...
thanks.....
kiran.
‎2006 May 06 7:08 AM
Hi Kiran,
You would have created a menu (PF-status) using SE41 transaction. You will be attaching this menu with the command SET PF-STATUS 'Menu Name'.
Looks the extenstion of this command.
SET PF-STATUS 'Menu Name' EXCLUDING FUNCCODES.
FUNCCODES is a table with the list of functions codes from the menu that you want to filter for a user.
Regards,
Ravi
Note : Please mark the helpful answers and close the thread if the issue is resolved.
‎2006 May 06 7:25 AM
Hi,
In the PBO, where you are setting the status, check for the user. If the user is not the target one then use EXCLUDING fcode for others. This may solve your problem.
Thanks and Regards,
Bharat Kumar Reddy.V
‎2006 May 06 7:41 AM
Suppose you have a Menu called MENU -- under which you have MENU1, MENU2
In PBO of that screen..
write the following code..
if sy-uname = <username>
set pf-status 'ztest' excluding 'MENU1'.
else.
set pf-status 'ztest'.
endif.
If you want to disable multiple buttons.. you can create an internal table with one field .. like..
data: begin of it occurs 0,
char(10),
end of it.
it-char = 'MENU1'. append it.
it-char = 'MENU2'. append it.
if sy-uname = <username>
set pf-status 'ztest' excluding it.
else.
set pf-status 'ztest'.
endif.