cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Menu bar option

Former Member
0 Kudos

Hi,

I have made a module pool program which has 2 screens 0001 and 0002.

I have made a menu 'MENU1' which has a menu bar and has option 'Operations' without any function code, which has futher submenus that have funcction codes.

I want this menu bar only on screen 0001 and not on screen 0002.

Is there any other option to make 'Operations' invisible in screen 0002 other than creating a new menu for screen 0002 or excluding the internal table which has the submenus function codes .

Regards,

Darpana.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

SCREEN 0002

PBO:

DATA IT_UCOMM TYPE TABLE OF SY-UCOMM.

APPEND 'Operations' TO IT_UCOMM.

SET PF-STATUS 'MENU1' EXCLUDING IT_UCOMM.

Former Member
0 Kudos

I have tried what you suggested.

The problem is that 'Operations' doesnt have a function code thats why i can still see it in screen 0002.

Former Member
0 Kudos

I am not making a button on toolbar, i am making a main menubar on the screen.

Former Member
0 Kudos

se 41 select 'FUNCTION LIST' ->DISPLAY

DO YOU SEE 'Operations' IN IT?

Former Member
0 Kudos

I have made 'OPERATIONS' in d menubar. it doesnt exist i have made my own menu bar.

Former Member
0 Kudos

SE41->STATUS->CHANGE->MENU BAR

THEN CLICK '+' ICON WHAT YOU SEE?

Former Member
0 Kudos

it was initially blank and i have added 'Operations' --> double clicked operations, then added CRE Create

DIS Display

UPD Update

now these 3 become the submenu of 'Operations'.

Former Member
0 Kudos

HI

'Operations' --> (1) CRE

(2) DIS

(3) UPD

main menu is named Operations .then I~3 is submenu?

i understand is right?

Former Member
0 Kudos

IF am right like these setting:

set41->status->change->goto(MENU)->ATTRIBUTER->PUSHBUTTON ASSIGNMENT....

then you can see a DIALOG, clike 'display all'.

code:

append: 'CRE' TO IT_UCOMM,

'DIS' TO IT_UCOMM,

'UPD' TO IT_UCOMM.

SET PF-STATUS 'MENU1' EXCLUDING IT_UCOMM.

THESE THREE SUBMENU ARE DISABLE.

Former Member
0 Kudos

Ya you are right now.

Now the question is if there is any other way to not get this Menu bar in screen 0002.

Obviously there are 2 ways to do this

- Make a new menu for 0002 which does not have the menubar &

-To make an internal table which includes CRE, DIS and UPD

and then exclude this internal table while setting pf-status.

In this condition the 'Operations' still exists on the menubar, it only disables the submenus.

I totally want to remove this menubar 'Operations' in screen0002.

Former Member
0 Kudos

i think you are right

1.Make a new menu for 0002 which does not have the menubar

2. disalbe these submenu

i have no third.

Former Member
0 Kudos

Hi jeffpan,

Thank you so much

Regards,

Darpana.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi Darpana

if you have good idea plz share, thank you

Former Member
0 Kudos

go to

GUI STATUS->'MENU1'->APPLICATION TOOLBAR

DO YOU SEE ANY BUTTON IN THERE?option Operations IN THERE?

Former Member
0 Kudos

i am not understand that you said "option 'Operations' without any function code"? MENU1 is empty? it has no button? what is option 'Operations?'

Edited by: jeffpan jeffpan on Sep 11, 2008 10:50 AM

Former Member
0 Kudos

In menu painter SE41 there is

Menu bar

Application Toolbar

Function keys

in Menubar option i have 'Operations' which has submenus.

Operations has no code because it has submenus

i.e CRE for Change

DIS for Display

UPD for Update.

if it had to have a code say OPR then the submenus will not be displayed.

I want to entierly disable 'Operations' without creating new menu for screen 0002 or excluding CRE, DIS, UDP together.