What is User Exits and Field Exits

Explain what is user exits and field exits and how many types of exits are there in SAP?

TYPES OF EXITS

1) MENU EXITS
2) FUNCTION EXITS
3) TABLE EXITS
4) SCREEN EXITS
5) KEYWORD EXITS
6) FIELD EXITS

USEREXIT:

Userxits allow us to add our own functionality to SAP standard program without  modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.

All Userexits start with the word USEREXIT_...

FORM USEREXIT_..
z..
ENDFORM.

The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary customer code is inserted in the customer include starting with the z..
in the form routine.

e.g. USEREXIT_SAVE_DOCUMENT_PREPARE

Field exit was created with CMOD, but is not processed when calling the screen. 

-  Since the field exit is not processed until PAI, an action must be triggered on the screen (Return, Save, ...). 

-  Set profile parameter abap/fieldexit to YES and restart the system. 

-  After activating the function module FIELD_EXIT...
and the field exit, leave the transaction on whose screen the field exit is to be executed. The screen is not generated until the transaction is started. 

- Do not work on different application servers since there may be some delay before the field exit is activated. 

- The profile parameter must be set on all or none of the application servers. 

- If the field exit is to only be active on specific screens, check whether you chose the correct program and the correct screen number (take care with subscreens). 

- Using SE51 -> Field list, check that the screen field does have a reference to a data element. In the name of the field exit use the name of the data element and not the field name. 

- After transport, field exits are marked as active but will not be processed. 

More Abapers Questions:

ABAP Books List
ABAP/4 Certification, Programming and Object Oriented Programming Books

Smart Forms
SAP Smartforms

ABAP Menu:
ABAP Example Hints and Tips

Return to Index:-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.gotothings.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.