Menu Exits
1
Objectives • Understanding Menu Exits • Create a Menu Exit. • Using a Menu exit along with a Program Exit.
2
Definition •
Menu enhancements allow customers to link their own processes to menu options. For this purpose, SAP has reserved certain menu options so that customers can define their own text and react to user selections in function exits.
•
When the enhancement is included in a project and activated by the customer, menu enhancements are visible in the transaction. If the user chooses this menu option, either the function provided by the applications developer is executed, or the system branches to a function exit and the customer's own function is executed.
3
Menu Enhancements
4
Menu - Exit •
Menu Enhancement which are provided by SAP are to be included in a project Example For SE38 transaction in the initial screen we have in the UTILITIES menu ‘+CUS’ which is under the enhancement SEU00002 for which a menu-exit can be created by including it in a project
.
5
Menu Exit The menu item which u will add will come below the Versions menu item (snap shot taken before menu item is added)
6
Transaction Code ‘CMOD’
7
Create a project
8
Enter the short text and select Enhancement assignment from the menu or Application Tool Bar
9
Enter the Enhancement Name and save the project. Note : at any particular point any enhancement can belong to only one Project 10
Select the components from the menu or Application toolbar to view the Exits associated with it
11
Double Click on the function module name (program exit or Function exit ) for enhancing the code
12
Double click on the include and write your code there
13
Write Your code here and go back to the Components
screen
14
Double click on the function code of the Menu exit enhancement
15
Write your Function text here this is what appears to you in your Menu, and say copy. (create a transport request if required)
16
Go back to the initial screen of ‘CMOD’ transaction and activate the project
17
The menu item which u added which has come below the Versions menu item (snap shot taken after menu item is added)
18
The message that is displayed at the bottom of the screen when you select the new menu option.
19
Thank You
20