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

menu painter

Former Member
0 Likes
509

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
475

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

4 REPLIES 4
Read only

Former Member
0 Likes
476

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

Read only

Former Member
0 Likes
475

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

Read only

Former Member
0 Likes
475

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

Read only

Former Member
0 Likes
475

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