expertsask994@gmail.com
My Account
  • Home
  • Blog
  • eBooks
  • SAP FICO Course
  • About
  • Contact Us
  • My account

No products in the cart.

  • Home
  • Blog
  • eBooks
  • SAP FICO Course
  • About
  • Contact Us
  • My account

No products in the cart.

  • Home
  • Blog
  • eBooks
  • SAP FICO Course
  • About
  • Contact Us
  • My account

No products in the cart.

  • Home
  • Blog
  • eBooks
  • SAP FICO Course
  • About
  • Contact Us
  • My account
Blog
Home FICO How to use user exit in substitution and validation rules?
FICO

How to use user exit in substitution and validation rules?

ERP College January 13, 2022 0 Comments

Introduction

We know that substitution and validation rules are used to validate and substitute data from master data & transactional data in SAP Finance Module. It is widely used in across sub-modules as it gives more flexibility to functional consultant further to end users via set maintenance.

I am presuming that you already know about substitution & validation rules, if not you can learn through these slides to understand basics of validation & substitution rules.

Steps in validation & substitution rule:

Validation–

  1. Prerequisite
  2. Check
  3. Message

Substitution –

  1. Prerequisite
  2. Substitute

We can easily understand the function of both rules with below diagram:

We have option to put user exit in check step of validation and substitute step of substitution

So prerequisite remains open for use in both cases, so once the prerequisite rules are being match then only user exit will trigger to make changes (substitution) or to decide whether error msg should be displayed or not (validation)

Validation & Substitution rule transaction codes

You can remember transaction codes in below sequence

GGB0 – Validation rule creation

GGB1 – Substitution rule creation

GGB4 – Assignment of Validation & Substitution rules

These three transactions you all need for validation & substitution rules.

How to check user exit in validation/substitution

Let’s go to GGB0

GGB0 – Transaction code

This is one validation rule, where in check step, user exit ZEVAL is used.

By clicking on check, you can go inside check condition:

GGB0 – Transaction code

Select the user exit and click on ABAP Routine (as mentioned above)

And you will be redirected to the section code for this user exit.

ABAP Editor

Also Read: Everything about OB52 authorization group

Here you can setup breakpoint, to debug the errors or to find out how user exit is working.

But this should be somewhere assigned, for system to know which program to check for user exit. And that we will see now.

How to create user exit for substitution and validation in SAP FICO?

In GGB0/GGB1 transactions, we have predefined list of user exit to select from. But that should be created somewhere, right?

Go to transaction GCX2

GCX2 – Trasaction Code

In this transaction code GCX2, you have to assign GBLR (Validation) & GBLS (substitution) Application area to z programs in which ABAPer will be writing code for all user exits.

To create z program, you can copy standard program RGGBR000 

ABAP team will write user exit name in subroutine ‘GET_EXIT_TITLES’,

Under user exit code will be written as per the specification / requirements.

So in our example we used user exit ZEVAL. This name will be written in program assigned above in (GCX2). In this program there will be blocks of code for multiple user exits. In our case system will only run the program block of code written for ZEVAL user exit.

This is how user exit is link to program and it is used in substitution and validation rules.

This brings us to an end. Hope you enjoy and learn something. We publish such blogs once in every week, if you want to get notified of new blogposts, then you can register to below newsletter:

You can also stay connected with us on below platforms:

YouTube

LinkedIn FICO Page

LinkedIn ABAP Page

LinkedIn Logistics Page

Instagram

88
3936 Views
AboutERP College
ERP College is a knowledge portal for all of those who want to learn SAP. This is a one-stop reference for your entire SAP needs. Here you will find blogs that will help you to point out daily support issues. The blog covers technical, educational, and psychological aspects of working with SAP, mostly from the point of view of consultants or people responsible for implementing SAP software.
In Socials:
PrevEverything about OB52 authorization groupJanuary 9, 2022
Top 10 books to learn SAP ABAPJanuary 27, 2022Next

Related Posts

FICO

Everything about OB52 authorization group

I am sure many of you know that in OB52 SAP has provided option to keep two sets of...

ERP College January 9, 2022
FICO

SAP New Asset Accounting in S4HANA – Transaction type

First let’s discuss transaction type in ECC. What is the use of transaction types...

ERP College December 22, 2021

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Home
  • About
  • Contact
Categories
  • ABAP 8
  • FICO 23
  • General SAP 29
  • MM 1
  • SD 2
Products
  • SAP Sales and Purchase Tax Training
    Rated 4.50 out of 5
    ₹899.00 ₹699.00
  • What has been changed in New Asset Accounting
    Rated 4.00 out of 5
    ₹151.06 ₹119.00
  • SAP Asset Accounting (AA) Training ₹1,399.00 ₹1,199.00
  • SAP Accounts Payable (AP) Training
    Rated 4.00 out of 5
    ₹1,999.00 ₹1,699.00
Sign Up to get update of latest Blogs

Find Us

Address
123 Main Street
New York, NY 10001

Hours
Monday–Friday: 9:00AM–5:00PM
Saturday & Sunday: 11:00AM–3:00PM

About This Site

This may be a good place to introduce yourself and your site or include some credits.

Contacts
Website: https://erpcollege.co/
Email: expertsask994@gmail.com
Terms & Condition

Copyright © 2020 ERP College by Smarksys Technologies. All Rights Reserved.