Tuesday, 6 September 2016

Menu Exits


  • Menu exits add items to the pull-down 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 item’s text when activating the item in an add-on project.



Ex : -

  • Implement the menu enhancement in SE38 ( ABAP Editor )such way that using menu option go to Transaction Code SE11.

Steps:-

To find out the function codes that begin with "+" (a plus sign).

  • Go to Transaction Code SE38.
  • Click on System  -> Status.
  • Pop-up will appear.
  • Double Click on GUI Status.

  • Expand Menu Bar.
  • Click on Utilities , we can find Function Code .




To find out Menu Exit.

1.To find out the Package name.

  • Enter the program name and click on Create button.

  • Pop-up will appear.
  • Enter the Title.
  • Select the Attribute Type as Executable Program and click on Save.
  • Click on System -> Status.
  • Pop-up will appear.
  • Double Click on Program (GUI ).
  • Click on Goto -> Attributes.
  • Pop-up will appear.
  • Copy the package name.



2.To find out the Menu Exit.

  • Go to Transaction Code SMOD.
  • Click on Enhancement F4 help.
  • Click on Information System.
  • Click on "All Selection ".
  • Enter the Package name.
  • Check only Menu Exit and click on Execute.

  • Double click on Exit name.
  • Select Component Radio button and click on Display Button.
  • We can find new version of Function Module Exit for corresponding Function Codes.
  • Click on Back button and copy the Menu Exit name.



To Implement the Menu Exit.

  • Go to transaction Code CMOD.
  • Enter the project name and click on Create button.
  • Enter the short text and Click on " Enhancement Assignments " .
  • Pop-up will appear.
  • Click on Yes.

  • Save it either in Package or Local Package.
  • Paste the Menu Enhancement name and press ENTER.

  • Click on Components.
  • Pop-up will appear.
  • Click on Yes.
  • Double click on New version of Menu Exit name.
  • Enter the required information and click on Copy.
  • Pop-up will appear.
  • Enter TR number and Click on continue or Click on continue.
  • Double click on new version of Function Module.

  • Keep the cursor on Include name and press Enter Twice.
  • Enter the logic.
  • Save -> Check -> Activate.
  • Click on Back.
  • Click on Back.
  • Click on Activate.
  • Click on Back and click on Activate.



Test

  • Go to Transaction Code SE38.
  • Click on Utilities.

Output

                                                more information...........



No comments:

Post a Comment