Steps for creating user exits for substitutions. The exits used for substitutions are stored in a Include program.RGGBS000 is a standard include given by SAP for user exits for substitutions. So for creating custom user exits, one has to copy this include to a 'Z' (Custom namespace) program. Step1 : Create a copy of include RGGBS000 ,let say ZTEST000.The length of the name you choose should not exceed 8 characters. Step2 : Define your user exit in the FORM routine GET_EXIT_TITLES with the correct exit type (EXITS-PARAM). exits-name = 'U111'. exits-param = c_exit_param_none. exits-title = text-100. "Give any suitable text for your exit APPEND exits. Include the EXIT NAME , PARAM and TITLE in the form GET_EXIT_TITLES .This form GET_EXIT_TITLES contains name and titles of all available standard exits. Every new exit need to be added to this from. One has to specify a parameter type to enable the code generation program to determine correctly how to generate the user exit call ,i.e. How many and what kind of paramter(s) are used in the user exit. The following parameter types exist: TYPE Description ------------------------------------------------------------------------------------------------------- C_EXIT_PARAM_NONE Use no parameter except B_RESULT . If you do not want to substitute a field, use this parameter in the substitution . C_EXIT_PARAM_FIELD Use one field as param. Exactly one field is substituted. C_EXIT_PARAM_CLASS Use a type as parameter. Step3: Create a FORM for your exit which will define its functionality. In form GET_EXIT_TITLES we have define our EXIT-NAME as 'U111'. So wee need to create a FORM with name U111 which will define the functionality of our user exit. Step 4:Run transaction GCX2 to update IMG to use your new program instead of Standard SAP program for substitution exits. Alternatively you can use SPRO for updating IMG. Run SPRO- Financial Accounting (New) - Special Purpose Ledger -Basic Settings - User Exits - Maintain Client Specific User Exits. Update the program name RGGBR000 with your new program ZTEST000 for application area GBLS. Now you can use this user exit for substitutions.
We can save in Z package by performing following steps: Copy the standard validation i.e RGUGBR00 and create new ZRGUGBR00 and give create new validation i.e form and write the logic. same thing add in GGB0 as exit. assign program ZRGUGBR00 in t-code GCX2.
Como genero las USER Exit en las Validaciones y Sustituciones? Gracias
Steps for creating user exits for substitutions.
The exits used for substitutions are stored in a Include program.RGGBS000 is a standard include given by SAP for user exits for substitutions. So for creating custom user exits, one has to copy this include to a 'Z' (Custom namespace) program.
Step1 : Create a copy of include RGGBS000 ,let say ZTEST000.The length of the name you choose should not exceed 8 characters.
Step2 : Define your user exit in the FORM routine GET_EXIT_TITLES with the correct exit type (EXITS-PARAM).
exits-name = 'U111'.
exits-param = c_exit_param_none.
exits-title = text-100. "Give any suitable text for your exit
APPEND exits.
Include the EXIT NAME , PARAM and TITLE in the form GET_EXIT_TITLES .This form GET_EXIT_TITLES contains name and titles of all available standard exits. Every new exit need to be added to this from. One has to specify a parameter type to enable the code generation program to determine correctly how to generate the user exit call ,i.e. How many and what kind of paramter(s) are used in the user exit. The following parameter types exist:
TYPE Description
-------------------------------------------------------------------------------------------------------
C_EXIT_PARAM_NONE Use no parameter except B_RESULT . If you do not want to substitute a field, use this parameter in the substitution .
C_EXIT_PARAM_FIELD Use one field as param. Exactly one field is substituted.
C_EXIT_PARAM_CLASS Use a type as parameter.
Step3: Create a FORM for your exit which will define its functionality.
In form GET_EXIT_TITLES we have define our EXIT-NAME as 'U111'. So wee need to create a FORM with name U111 which will define the functionality of our user exit.
Step 4:Run transaction GCX2 to update IMG to use your new program instead of Standard SAP program for substitution exits.
Alternatively you can use SPRO for updating IMG. Run SPRO- Financial Accounting (New) - Special Purpose Ledger -Basic Settings - User Exits - Maintain Client Specific User Exits.
Update the program name RGGBR000 with your new program ZTEST000 for application area GBLS. Now you can use this user exit for substitutions.
In wich package you save these include? Z package or GVAL like the original program? Thank you..
We can save in Z package by performing following steps:
Copy the standard validation i.e RGUGBR00 and create new ZRGUGBR00 and give create new validation i.e form and write the logic.
same thing add in GGB0 as exit.
assign program ZRGUGBR00 in t-code GCX2.