If you want to insert ABAP logic into your validation, you need validation user exit. Below is way to create validation user exit.

Read : Substitution and Validation SAP

Step 1 . Copy program RGGBR000 to ZRGGBR000.

Step 2. Write ABAP Code to implement new user exit name within subroutine GET_EXIT_TITLES.

Note : You can named your user exit on EXITS-NAME = <Your user exit >.

Step 3. Create user exit sub routine. below the example ABAP Code, you can write your own ABAP code based on the requirement. then activate it.

Step 4. Assign ZRGGBR000 in GCX2 tcode.

validation-user-exit

Step 5. Create your validation using tcode GGB0.

ggb0-validation-user-exit

If you have assigned custom program in Step 2 before, your user exit subroutine will appear here on tab Exits. See that picture above.

Write your subroutine user exit name into Check input text field like thats picture.

Step 6. Maintain Message in Validation.

validation-message-user-exit

Step 7. Activate your validation in tcode OB28, entered your company code and your validation name.

activate-validation-sap

 

Incoming search terms: