‎2007 Jun 12 11:46 AM
i created a menu(bar) in a module pool how to disable that menu for other users...
‎2007 Jun 12 11:53 AM
Hi,
you can use set pf based on user.
if sy-uname = 'USER1'.
SET PF-STATUS 'ABC'
else.
SET PF-STATUS 'XYZ'.
endif.Richa
‎2007 Jun 12 11:57 AM
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.
‎2007 Jun 12 11:57 AM
hi,
using this code... it will disable menu for particular user.
if sy-ucomm = 'USER'.
SET PF-STATUS EXCLUDING fcode.
ENDIF.
REGARDS,
Shardul shah
‎2007 Jun 12 11:59 AM
Hi
Set the pf-status only when sy-user is you
if sy-uname = 'USER'
set pf-status 'XYZ'.
endif.
Regards,
Suruchi
‎2007 Jun 12 12:01 PM
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