Validation in SAP with basic example.
Generally,
- To control the fields in Finance transactional data – we use Field status group.
When field control is not possible with field status variant/account group then Validation will come into picture. Not only just controlling the fields but can also apply many conditions. Ex: If Vendor number is 1000, then the GL Account should be at line-item level is 300000. If user giving other GL Account, transaction will not get posted.
Let us see with a Below basic example:
Requirement: If GL is 400000(expense GL account) 🡪Text field should not be empty at line-item level (as per field status group mentioned in GL). If we left it as blank, it should through an error. If we change in field status group (OBC4) it will applies to all GLs further. But this can be done with validation for single GL.
Validation Configuration in SAP T code: GGB0.
SPRO Path – Financial Accounting -> Financial Account Global Settings –> Document -> Line item ->Define Validations for posting – Click on Execute.


Expand Financial Accounting, click on Line-item and double click on Validation.

Give validation name, description and then Click on Step.

Now steps will be enabled. We can give name for steps under validation.

Step 1 – Prerequisite – Click on Prerequisite and then click on BSEG (Line item level)

Now give condition – As per requirement, If GL Account is 400000
- Click on find, give ‘G/L’ and click on G/L.
- Now click on ‘=’, click on constant and give 400000


Step 2: Check – Select BSEG (line-item level)

Now find TEXT double click on it & select <> & in constant give nothing
- Click on find, give ‘Text’ and click on Text.
- Now click on ‘<>’ and in constant leave empty (means: Text not equal to blank).

Step 3: Message
If ‘Text’ field left blank, system will through an error (can try with warning/error etc.)

Step 4 – Assign validation to company code: OB28 (one time assignment)
Click on New Entries – Company code – Call point (header/line item), validation name and activate

Configuration part has been completed.
SAP FICO Configuration topics:
- SAP Finance Enterprise structure: Click here
- SAP Finance GL Accounting: Click here
- SAP Finance Accounts Payable: Click here
- SAP Finance Accounts Receivable: Click here
- SAP Finance Bank Accounting: Click here
- SAP Finance New Asset Accounting: Click here
- How to Create a Controlling area in SAP: Click here
- SAP Controlling – Cost Element Accounting: Click here
- SAP Controlling – Cost Center Accounting: Click here
Discover more from sap96.com
Subscribe to get the latest posts sent to your email.

