‎2009 Jun 24 7:45 AM
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
‎2009 Jun 24 7:58 AM
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
‎2009 Jun 24 8:13 AM
Hi,
In the menu painter you not able to see the program menu but in the abap editor you can view this option..
Thanks
‎2009 Jun 24 10:29 AM
‎2009 Jun 24 11:23 AM
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 INPUTThanks&Regards
Sarves