05-21-2008 12:47 PM
hi,
plz. tell me the step-by-step procedure of creating MENU EXIT in version 4.7
05-21-2008 1:59 PM
Hi Vishal,
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.
Menu Enhancement which are provided by SAP are to be included in a project
Procedure
Ex : For SE38 transaction in the initial screen we have in the UTILITIES menu u2018+CUSu2019 which is under the enhancement SEU00002 for which a menu-exit can be created by including it in a project.
The menu item which u will add will come below the Versions menu item
1.For example if you want to add a menu exit for SE38, check the package of SE38 by going to menu item SYSTEM >STATUS>TRANSACTION(doble click) you will get the package.
2.Goto SMOD, click F4 for Enhancement field. A pop up appears, click Information System(F5). Another pop up comes in that enter the package for SE38 i.e; SEDT. You will get the existing exits for the package.
3.Now goto CMOD, enter the project name and
Enter the short text and select Enhancement assignment from the menu or Application Tool Bar
4.Enter the Enhancement Name and save the project(SEU00002 in this example)
5.Select the Components from the menu or Application toolbar to view the Exits associated with it
6.Click on the menu exit Function Code '+CUS', a pop up appears enter the required details like Function text, Icon, Icon text and COPY.Here select SAPLWBABAP menu exit .
7.Then double Click on the the respective function module name (SAPLWBABAP) for enhancing the code
8.Double click on the include and write your code there(For ex SUBMIT ) and ACTIVATE
9.Go back to the initial screen of u2018CMODu2019 transaction and activate the project
10. The menu item which you added can be seen under the menu item UTILITIES affer Versions menu item
Hope this helps.
****Reward points if found useful
Regards,
Naresh
05-21-2008 2:12 PM
Hi,
Menu exits allow you to add your own functions to the pulldown menus in standard R/3 transactions. To take advantage of a menu exit, you first need to create a project as described in the section Creating an add-on project. Then, you must include the SAP enhancement package that contains the menu exit you want to use in your project. From the main screen of the Project management transaction, proceed as follows:
Select Enhancement components and choose Change.
The system lists all customer exits contained in the enhancements included in your project.
Place the cursor on the menu exit you want to add your own function to.
Choose Edit component.
The system displays technical information about the menu entry. It also displays two input fields where you can specify a language and the text you want your menu item to have.
Enter the name of your menu function (such as Special order method) in the field New text.
Choose Save text.
Your special menu function will not appear in the pulldown menu of the corresponding standard transaction until you activate your enhancement project.
Specifying a menu text and activating your project are not the only steps you need to take to make your own menu item work. After you carry out these steps, your menu item will appear, but it will not call a corresponding function. To attach your menu entry to its corresponding function, you need to create a function module for the function module exit associated with your menu text. This function module exit is part of the same SAP enhancement that contains the menu exit you used. Creating Customer-Specific Function Modules tells you more about how to use function module exits.
also refer
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/menu-exits-72696
Regards
Kiran Sure
05-21-2008 4:50 PM
Hi Vishal Thakur ,
Menu Exits
Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign).You specify the menu itemu2019s text when activating the item in an add-on project.
Before u try for an menu exit you have to search in SMOD whether function code is available for that customer exit.
Check the following step-by-step procedure for creating an menu exit for SE41..
First check the package of SE4 which is SEUC.
Goto SE84 0r SMOD and check the menu exits for that transaction.
u will get two enhancements.
Menu exit is applicable only for SEUMP002 since it has function code(see components of that customer exit).
Create a project in CMOD and add this enhancement component.
Then go to components tab and click on the function code and give the function attributes.
and write your logic in the EXIT provided.
Then you will get the enhancement in the menu bar.
Check also this for SE38.
Procedure for Menu Exits:
Suppose if we want to add menu item to ABAP Editor then
u2022 Go to SE38 uF0E0System uF0E0 Status
u2022 Repository data uF0E0 Transaction uF0E0 Double click on it
u2022 Copy package name (SEDT)
u2022 Go to SMOD
u2022 Press F4 then a popup will open
u2022 Click on information system
u2022 Enter package name and press Enter
u2022 Then we will get Exit (SEV00002)
u2022 Put cursor on that exit and press Enter
u2022 Go to change mode and save it.
u2022 Go to CMOD or alternatively we can use the path tools uF0E0 ABAP/4 Workbench uF0E0 Utilities uF0E0 Enhancements uF0E0Project Management
u2022 Specify Project name in the enhancement text box
u2022 Click on Create icon on the application toolbar.
u2022 Enter description for the project and save it
u2022 Click on Enhancement Assignment button on the application toolbar
u2022 Give Exit (SEV00002) and save it
u2022 Go to Components on the application toolbar
u2022 Double Click on SAPLWBABAP
u2022 Write function text which we want to add to menu item and save it with an request number
u2022 Double Click on Exit and write code there to display menu item in the screen
u2022 Activate the include program and finally activate the project.
Rewart back if any doubts.
Reward points if useful.
Thanks ,
Surya Pydikondala
Edited by: Surya Pydikondala on May 21, 2008 5:51 PM