‎2007 Jan 17 3:58 AM
hi experts, i have a doubt regarding menu painter,
i have created a custom-menu for client 800,
if i use the same report program for client 810 some
of the menu items should be disabled.how to do this.
any sort of help is appreciated.
‎2007 Jan 17 4:04 AM
Hi ,
What i would suggest is in the program check the client and if the client is 810 then along with the command SET PF-STATUS also use the addition
EXCLUDING f or EXCLUDING itab .
Please refer to the help of SET PF-STATUS for more info.
Regards
Arun
‎2007 Jan 17 4:04 AM
Hi ,
What i would suggest is in the program check the client and if the client is 810 then along with the command SET PF-STATUS also use the addition
EXCLUDING f or EXCLUDING itab .
Please refer to the help of SET PF-STATUS for more info.
Regards
Arun
‎2007 Jan 17 4:06 AM
When setting the pf-status in the code, you can hide items based on their command.
You can put in a case statement and fill up a table of codes to exclude based on the client number.
Have a look at the F1 help on
SET PF-STATUS 'MAIN' EXCLUDING
Regards
Michael
‎2007 Jan 17 4:23 AM
TYPES: BEGIN OF itab,
FCODE LIKE RSMPE-FUNC,
END OF itab.
here you can append your fcodes for your menu painter.
suppose you dont want 'BACK' to be disabled in 801.
itab-fcode = 'BACK'.
append itab.
if sy-mandt = '801'.
set pf-status 'ZSPD' excluding itab.
else.
set pf-status 'ZSPD' .
endif.
regards
shiba dutta
‎2007 Jan 17 4:42 AM
Hi,
For 'SET PF-STATUS' there is an optional parameter which is EXCLUDING <extab>.
<extab> is an internal table in which u insert all the fcodes of application toolbar which u want to disable. so when u run the program initially check sy-mandt and accordingly put all the fcodes in the <extab> table and finally call set pf-status.
SET PF-STATUS 'XXXX' EXCLUDING <extab>.
regards,
Aravind