Sai Kumar
Validation
Validation:
Validation is used to when requirement is to control fields for transaction posting (that we cannot do
with field status group)
Ex: Let us see with a basic example
Requirement: If GL is 400000(expense GL account)→Text field should not be blank at line item
level. If we left it as blank, it should through an error. If we change in field status group (OBC4) it
will applies to all GL’s further.
Validation Configuration: We can do validation for Header data and Line-item data. As per
requirement I’m going to do validation for Line-item level.
T code: GGB0 – Financial Accounting – Click Line item – validation field will be enabled & click on it
1
2
Give validation name and description – Click on Step
1 2
3
Sai Kumar
Now steps will be enabled. We can give name for steps under validation.
Step 1 – Prerequisite - Now click on Prerequisite and then click on BSEG (Line item level)
Now give condition – As per example → If GL= 400000
Find G/L - double click on it and select ‘=’ and then click on Constant give 400000
2
1
4
Sai Kumar
Step 2: Check - Select BSEG (line item level)
Now find TEXT double click on it & select <> & in constant give nothing (means:TEXT not equal blank)
2 1
Step 3: Message
If TEXT field left blank, we can create/use a text message, system will through an error (can be
alert/error)
Sai Kumar
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.
Now go to F-02.
All the best