Académique Documents
Professionnel Documents
Culture Documents
User exits are user-defined FORM routines that are used to calculate and/or replace values within a validation,
substitution, or rule.
User exits have the following format:
The following table shows the types of user exits that can be used in validations, substitutions, and rules.
User exit type
Description
Application
Example
Substitution
Validations and rules use exit numbers 1 and 3 from the above table.
Substitutions use all of the exit numbers from the above table.
For substitutions, you can also create user exits that accept a field as one parameter and then return the changed value in
this parameter. This allows you to create a user exit that can be used independently of the field and table name. This type
of user exit cannot be used as an entry in the Exit only field in the list of values to be substituted; you can only use this exit
type in conjunction with a field name. An example of this user exit type is in form pool RGGBS000.
If you want to define a parameter for your user exit that is different from the result of a validation (B_RESULT), you must
make an entry for your user exit in the FORM routine GET_EXIT_TITLES in the form pool you defined. It is
recommended that you copy the SAP example form pool RGGBR000 for validation exits or RGGBS000 for
substitution exits. These example form pools already contain entries in the FORM routine
GET_EXIT_TITLES for the examples delivered by SAP.