Application Development 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: 

Deactivating menu bars & Application toolbars

Former Member
0 Kudos

Hi,

How can i deactivate menu bar & application tool bar?

shyja

2 REPLIES 2

Former Member
0 Kudos

Hi,

Go to SE41 and enter name of program and status.

Click on change.

Now u can find one green button right side to the application tool bar, by clicking on that green button u can deactivate the application tool bar.

Thanks and Regards,

Chandra M

Former Member
0 Kudos

Hi,

To deactivate the application tool bar:-

Use the statement

SET PF-STATUS ‘<name which is created in SE41>’ excluding functioncodetab.

Here functioncodetab is of type internal table of type RSEXFCODE or OKCODE(SY-UCOMM).

EX:-

If I created application toolbar with pushbuttons DISPLAY(with functioncode - DISP),

CHANGE(CHNG).

Then if I need to deactivate CHANGE then

Wa_functioncodetab = ‘CHNG’.

Append Wa_functioncodetab to functioncodetab.

Then

SET PF-STATUS ‘<name which is created in SE41>’ excluding functioncodetab.

Also:-

2. call function ‘RS_SET_SELSCREEN_STATUS’

Exporting

P_STATUS = <pfstatusname>

P_PROGRAM = SY-CPROG

Tables

P_EXCLUDE = <itab of type SY-PFKEY>.

NOTE:-

Above function module can only use at INITIALIZATION or AT-SELECTIONSCREEN.

IThis function module allows you to set your own status on a selection

screen and exclude function codes from your own or from a standard

status.

For example, you can remove the Print function from the standard status by passing the SY-PFKEY field to the parameter P_STATUS, while the table P_EXCLUDE contains a line with the entry ‘PRIN’ (= function code for printing).

The function module should be called only when processing selection

screens, i.e. only under INITIALIZATION or AT SELECTION-SCREEN OUTPUT.

CLM_CUAD_DISPLAY_MENU_BAR – to display menubar

I don’t know much about menubar but I think this function module may helpful:-

function module to change menubar :- BMENU_BROWSER_MODIFY_DISPLAY

Call function ‘BMENU_BROWSER_MODIFY_DISPLAY’

Exporting

COMMAND = <usercommand>

EXIT_FROM_STREE_BUILD_DISPLAY =

Tables

NODE_ICON_LIST =

NODE_NO_DISPLAY =

ALL_TEXTS =

USER_PARAMETERS =