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
562

Dear Friends

In my program i have use custom menu with buttons and any other custom main menu call reports

by default system will give System menu and Help menu

are there any possibilities to Get Program menu also

in the normal menu there is a Program menu with "Execute" , "Execute and print" , "Execute in Background" and "Exit" sub menus.

Thanks in Advance

4 REPLIES 4
Read only

Former Member
0 Likes
532

Hi,

Use the statement

SET PF-STATUS 'ABC'.

in your program and define the custom buttons and menu items in the GUI status

check the link for more information on the GUI status.

[Status for list|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm]

Regards

Sarves

Read only

Former Member
0 Likes
532

Hi,

In the menu painter you not able to see the program menu but in the abap editor you can view this option..

Thanks

Read only

0 Likes
532

Dear Friends

I need to get Program menu

how can i do that?

Read only

Former Member
0 Likes
532

Hi,

You can do it by set pf-status.

use the statement set pf-status 'ABC'.

and create a GUI status

there you can see Menu bar just click on it and you can see the standard menu items

you can even create a new menu item there and the sub menu by clicking the menu name you defined

then give the Function codes what you need there and handle them in your program.

check the screen shot from menu bar

[Menu bar|https://wiki.sdn.sap.com/wiki/download/attachments/9055/Menubar.PNG]

if module pool

Do the set pf-status in PBO

and handle the function codes in PAI

CALL SCREEN 110.
MODULE status_0110 OUTPUT.
   SET PF-STATUS 'ABC'.
*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_0110  OUTPUT

MODULE user_command_0110 INPUT.
  CASE sy-ucomm.
    WHEN 'F8'.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0110  INPUT

Thanks&Regards

Sarves