Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Menu Exit

Former Member
0 Kudos

Hi All

i need some good material in menu exit and Function module exit.can any one send me a document which guides step by step how to create a menu exit and function module exit.

5 REPLIES 5

Former Member
0 Kudos

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

<b>Reward points</b>

Regards

Former Member
0 Kudos

hi,

Refer these realated threads

Kishi.

Former Member
0 Kudos

Hi,

1) User-exit: Is a place where u define modification to SAP Standards with out

effecting SAP Standards.

2)Screen-exit:This comes in user-exit. Or the screen exit/field exit/menu exit is a componend of user-exit. Okay Now screen exit is a place where i add subscreens to SAP standard Transaction codes. Note: Only Subscreen can be added to SAP Standard transaction by using screen-exits.

3) Function Exit.: Is a place where u write the code for an screen exit/field exit/menu exit.

4)Menu exit: Is a place where u add custom menu options to SAP Standard transaction.

5)BADI: Like SAP always provides developers with new and easier way of developments.BADI is also provided as an advancement for user-exits. There r many benifits apon user-exits.

6) Advantages of BADI:

i)To modify a standard tcode some times many User-exits are involved but if u use BADI then one BADI can solve the problem.

ii) There is one good feature in BADI which is not in user-exit and that is filter types. Filters will filter the number of times that BADI will triger.

7) Table controls can be handeled but the line number given benith every table control in a transaction.(not sure but this could help).

Kind Regards,

Kishi.

Former Member
0 Kudos

hi,

User exit - A user exit is a three character code that instructs the system to access a program during system processing.

SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number.

UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number

Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks. *-- Mani

The following document is about exits in SAP :-

The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications.

SAP creates user exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.

Types of Exits

There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.

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 item’s text when activating the item in an add-on project.

Screen Exits

Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.

Function Module Exits

Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits.

When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated.

Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs.

These calls have the following syntax:

CALL CUSTOMER-FUNCTION ‘001’.

Field Exits

Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field. Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100.

The field exit concept lets you create a special function module that contains this logic.

You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number.

regards.

Kishi.

Former Member
0 Kudos

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 item’s text when activating the item in an add-on project.

Function Module Exits

Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits.

When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated.

Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs.

Regards,

Pavan P.