Validation checks values entered by the user and substitutes incorrect values, while substitution removes incorrect values entered by the user. Validations can be applied at the document header, line item, and master data level to check for values like company code and business area. Substitutions can also be applied at various levels to replace values like profit centers or business areas. Both validations and substitutions use user exits and can be transported between systems after configuration.
2. GGB4
Prepared By Guntupalli Hari Krishna Page 2
Validation(GGB0): Validation, which validates the values entered by the user.
Substitution(GGB1) : Substitution, which substitutes the correct values by removing the wrong
values entered by the user.
Activation of Validation -> OB28
Activation of Substitution -> OBBH
=================================================================
Validation : Validation we can apply at Document header , line item, Complete
document , Master data level.
3. GGB4
Prepared By Guntupalli Hari Krishna Page 3
Validation Example : company code : 1111 &TAMO for Business area 1111 or
111A only .
==================================================================
Apply in IDES server in Prerequisite place change only company code '1111' and
'TAMO ,
Apply in IDES server Check step Business area : 1111, 111A.
Perquisite step:
BKPF-BUKRS = '1111' OR BKPF-BUKRS = 'TAMO'
Check step:
BSEG-GSBER = '1111' OR BSEG-GSBER = '111A'
Message step:
In this assign Message type , Message number ,Message text and Message
variables .
8. GGB4
Prepared By Guntupalli Hari Krishna Page 8
Double click on Accounting Document Header
Click on find button search technical field name
Back Button or Previous level
12. GGB4
Prepared By Guntupalli Hari Krishna Page 12
For validations Breakpoint :
================================================================
13. GGB4
Prepared By Guntupalli Hari Krishna Page 13
Substitution : Substitution we can apply at Document header , line item, Complete
document , Master data, Order level.
Apply in IDES server in Prerequisite place change only company code 'ABCD'
BKPF-BLART = 'SA' AND BSEG-KOART = 'S' AND
BSEG-BUKRS = '1111'
We can apply at each sub module level like asset accounting , cost accounting , financial accounting and
profit center accounting .
19. GGB4
Prepared By Guntupalli Hari Krishna Page 19
1) Constant value = Like any Profit center , Business area ,Functional Area .
2) Exit = Exit to apply
3) Field- Field Assignment
30. GGB4
Prepared By Guntupalli Hari Krishna Page 30
Validation & Substitution Logics :
The user exits are available for Substitutions:-
1. GCX2 is the tcode for Assignment.
2. FIFB is the code for BTE assignment.
3. GB01 is the table for boolean data information
Validation requirements are quite complex and cannot be done using the standard validation config.
RGGBR000 Validation exits
RGGBS000 Substitution exits
32. GGB4
Prepared By Guntupalli Hari Krishna Page 32
http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-
+FB60+for+Partner+Bank+Type
( The above link example of substitution user exit )
More Example of validation and Substitution :
=================================================================================
Prerequisite: BKPF-BLART='KR' OR BKPF-BLART='RE'
Validation : Not (BSEG-MWSKZ='V1' OR BSEG-MWSKZ='V2'
Message : " Please do not use old tax codes"
=================================================================================
Validation and substitution Tables :
validation & substitution - transaction variant
Restricting/Unrestricting Fields for Substitutions and Validations
Thank You
for Your Time !