Menu EXIT in SAP ABAP with Tutorial

Menu EXIT in SAP ABAP with Tutorial

Read this article to know what is menu EXIT and how can you implement it?

Author : Raj

Author's Website | Articles from Raj

Roy (Raju Borda) is an Application Developer focusing on Custom Development - particularly in the areas of ABAP ,WD4A , JAVA , APO , Enterprise services , Mobile applications and PI Developer/consultant . He is also certified in ABAP , PI and insurance domain. Facebook

Menu Exit is use to add custom menu option to the standard menu.

As an example suppose you want to add the extra option to navigate to transaction SU01D from the SE38 Program Display screen. Suppose you want put that menu option just below the UtilitiesàVersions. Check the below screen shot.

menuexit_ovr

Step 1:

Find out the Menu exit which can be used to achieve this functionality.

Go to System status and find out the package name used for this SE38 Source code Display screen. The program name is SAPLS38E to display the source code in transaction SE38. Go to attribute of this Program, you can find the package as SEDI.

menuexit_step1

Take this package name SEDI and Go to transaction code CMOD .Use the menu path Utilities->SAP Enhancement.

Give the package name as SEDI and execute it. You can find the below list of enhancements

menuexit_step1_1

As per the description : Enhancement SEUED001 Can be used. So Now when you got your dream enhancement let’s start the movie.

Step 2:

Go to Transaction CMOD and create a Project ZMETEST (You can give any name).Click on the button Assign Enhancement and include the Enhancement SEUED001.Click on the components button you can see the below Exits.

menuexit_step2

Step 3:

Double click on the EXIT SAPLS38E                       +PGE. It will popup you the extra menu option which you want to add.

menuexit_step3

Step 4:

When you click on the “Go to Su01d” menu option the screen execution should go to the SU01D transaction. To write this navigation code we can use Function exit EXIT_SAPLLOCAL_EDT1_002 (Some time you need to try trial and error method to find out the related function module name).Double click on it and write the below code into the include ZXSEUU25.(which is inside the Function module EXIT_SAPLLOCAL_EDT1_002).

(Note: Set parameter statement is not required it is just for setting the user id as your id in SU01D)

set PARAMETER ID ‘XUS’ FIELD SY-uname.
Call transaction ‘SU01D’ .
menuexit_step4

Step 5:

Go back to CMOD screen and activate your project.

Step 6:

Open Se38 screen with any report program and go to the menu path UtilitiesàGo to Su01d.

It will take you to Su01d screen.

menuexit_step6

(Note: It is good practice to De activate the project if you are doing this tutorial for learning purpose. J )

Related Posts



Like this post? Share it!

  • Tweet
  • Facebook
  • Diggit
  • Delicious
  • Diggit
  • Diggit
  • Diggit
  • Diggit
  • Diggit

ADVERTISE HERE


User Comments


  1. harikrishna
    August 31, 2010

    NICE…….

    FOR  FRESHERS

    Reply


  2. Yogesh Patil
    October 18, 2010

    Hi Friends,
    Really Good Document for all not only for Freshers…!!!
    Many experience people don’t know how to implement this but this document will help to implement menu exit with proper way…

    Reply


  3. Tra
    December 30, 2011

    Thanks for your post.
     

    Reply


  4. Abhinesh Sinha
    January 31, 2012

    I was trying for menu exit. I found so many post related to Menu Exit. But this post is very simple to understand. In other words, it is helpful for all freshers as well as working SAP professionals.
    Thanks
     

    Reply


  5. Bhanu
    February 24, 2012

    Nice and soooooo helpful.




    Thanks

    Reply


  6. Anu Kasturi
    June 1, 2012

    Very nice and well descriptive :)

    Reply


  7. Kiran
    October 1, 2012

    Great and easy tutorial .
    Thanks

    Reply

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:
  Twitter Followers Email Updates