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

Hide menu bar

Former Member
0 Likes
2,940

Hi All,

Is it possibe to hide the menu toolbar?? Menu tool bar options like program, Edit.. I want to know how to hide the options at runtime...

Please let me know...

Thanks & regards,

Santhosh

Hi All,

Is it possibe to hide the menu toolbar?? Menu tool bar options like program, Edit.. I want to know how to hide the options at runtime...

Please let me know...

Thanks & regards,

Santhosh

5 REPLIES 5
Read only

Former Member
0 Likes
1,545

Hi,

Looks like disabling standard menu bar functions not possible, and for info you can refer to below thread

[;

Regards,

Manne.

Read only

Former Member
0 Likes
1,545

hi,

in your custom program you can hide menu dynamically by coding.

In your PBO module write this code

DATA:
      IT_TOOL TYPE TABLE OF ST_TOOL,
      WA_TOOL LIKE LINE  OF IT_TOOL.

if sy-tcode eq 'ZDISPLAY'.
     APPEND 'SAVE' TO IT_TOOL.
  ENDIF.

SET PF-STATUS 'S9000' EXCLUDING IT_TOOL.

Regards

Sajid

Edited by: shaik sajid on Jul 17, 2009 10:27 AM

Read only

Former Member
0 Likes
1,545

Hi ,

I do not think that it is possible to hide menu bar entirely .

But from the list you can remove Program, Edit, Goto from the Menu bar. But You can not remove

the SYSTEM and HELP from the Menu bar .

Create a status with the specified name with out the adding in the menu barand write code in your program -

set pf-status 'STAT'  immediately.
WRITE : 'TEST'.

This will remove Program, Edit, Goto from the list.

If you want to remove some subobjects of menu bar you can go for Transaction

variant (Transaction SHD0) but it will not work dynamically means it will be prefixed.

Regards

Pinaki

Read only

Former Member
0 Likes
1,545

Hi,

You cannot disable the menu tool bar completely as the options SYSTEM and STATUS are mandatory and are default for all the screens.

Read only

venkat_o
Active Contributor
0 Likes
1,545

Hi, Try this way.

REPORT ztest_notepad.

DATA: it_fcodes TYPE TABLE OF sy-ucomm,
      wa_fcodes LIKE LINE OF it_fcodes.

wa_fcodes = 'SAVE'.
APPEND wa_fcodes TO it_fcodes.
CLEAR wa_fcodes.
wa_fcodes = 'EXIT'.
APPEND wa_fcodes TO it_fcodes.
CLEAR wa_fcodes.
wa_fcodes = 'BACK'.
APPEND wa_fcodes TO it_fcodes.
CLEAR wa_fcodes.

SET PF-STATUS 'STATUS1' EXCLUDING it_fcodes.
<li> You can not hide SYSTEM and HELP menus. Those will be there everywhere. Thanks Venkat.O