menu exits

20
1 Menu Exits

Upload: api-3738703

Post on 11-Apr-2015

1.359 views

Category:

Documents


12 download

TRANSCRIPT

Page 1: Menu Exits

1

Menu Exits

Page 2: Menu Exits

2

• Understanding Menu Exits • Create a Menu Exit.• Using a Menu exit along with a Program Exit.

Objectives

Page 3: Menu Exits

3

• 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.

Definition

Page 4: Menu Exits

4

Menu Enhancements

Page 5: Menu Exits

5

• 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.

Menu - Exit

Page 6: Menu Exits

6

The menu item which u will add will come below the Versions menu item

(snap shot taken before menu item is added)

Menu Exit

Page 7: Menu Exits

7

Transaction Code

‘CMOD’

Page 8: Menu Exits

8

Create a project

Page 9: Menu Exits

9

Enter the short text and select

Enhancement assignment

from the menu or Application Tool Bar

Page 10: Menu Exits

10

Enter the Enhancement Name and save the project.

Note : at any particular point any enhancement can belong to only one Project

Page 11: Menu Exits

11

Select the components from the menu or Application toolbar to view the Exits associated with it

Page 12: Menu Exits

12

Double Click on the function module name

(program exit or Function exit ) for enhancing the code

Page 13: Menu Exits

13

Double click on the include and write your code there

Page 14: Menu Exits

14

Write Your code here and go back to the Components screen

Page 15: Menu Exits

15

Double click on the function code of the Menu exit enhancement

Page 16: Menu Exits

16

Write your

Function text

here this is what appears to you in your Menu, and say copy. (create a transport request if required)

Page 17: Menu Exits

17

Go back to the initial screen of ‘CMOD’ transaction and activate the project

Page 18: Menu Exits

18

The menu item which u added which has come below the Versions menu item

(snap shot taken after menu item is added)

Page 19: Menu Exits

19

The message that is displayed at the bottom of the screen when you select the new menu option.

Page 20: Menu Exits

20

Thank You