Tuesday, July 15, 2008

Menu exits

Menu exits allow you to add your own functionallity to menus. Menu exits are implemented by SAP,
and are reserved menu entries in the GUI interface. The developer can add his/her own text and
logic for the menu.

Function codes for menu exits all start with "+"


Example

We want to create a new menu item in the Office menu. The text for the menu should be "Run
ZTEST", and the menu will
run report ZTEST.


Goto transaction SE43 Area Menu Maintenance
In Area Menu Paramenter type 'S000' (S triple Zero)
Select Change and ignore all the warning screens
Expand the office menu. In the buttom of the office tree you will find a menu named "Customer
function"

Double click on the text. In the pop-up screen change the text to "Run ZTEST". Note that the
trsnaction code is +C01
Goto transaction SE93 and create transaction +C01 that calls report ZTEST.

Now you will se the menu displayed in the office tree. If you delete transaction +C01 again, the new
menu will dissapear.

No comments: