Application Development and Automation 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: 
Read only

module-pool

Former Member
0 Likes
486

hi,

i created a menu(bar) in a module pool how to disable that menu for other users...

plz help me...

thanks.....

kiran.

3 REPLIES 3
Read only

Former Member
0 Likes
451

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.

Read only

Former Member
0 Likes
451

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

Read only

Former Member
0 Likes
451

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.