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

general

Former Member
0 Likes
579

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

5 REPLIES 5
Read only

Former Member
0 Likes
558

Hi,

you can use set pf based on user.


if sy-uname = 'USER1'.
 SET PF-STATUS 'ABC'
else.
 SET PF-STATUS 'XYZ'.
endif.

Richa

Read only

Former Member
0 Likes
558

hi manjula,

go thro this code. This helps u to disable certain menu items.

DATA: itab TYPE TABLE OF sy-ucomm.

APPEND 'DELE' TO itab. "Function Code you do not want

APPEND 'PICK' TO itab. "Function Code you do not want

SET PF-STATUS 'ARUN' EXCLUDING itab.

Regards...

Arun.

Reward points if useful.

Read only

Former Member
0 Likes
558

hi,

using this code... it will disable menu for particular user.

if sy-ucomm = 'USER'.

SET PF-STATUS EXCLUDING fcode.

ENDIF.

REGARDS,

Shardul shah

Read only

Former Member
0 Likes
558

Hi

Set the pf-status only when sy-user is you

if sy-uname = 'USER'

set pf-status 'XYZ'.

endif.

Regards,

Suruchi

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
558

Hi,

put this code in your PBO.

module set_fcode.

SET PF-STATUS excluding fcode.

module set_fcode output.

if sy-uname <> 'yours'.

fcode = 'Fcode of your menu option'.

endif.

endmodule

Regards,

Sesh