Validation and Substitution in SAP
Validation and Substitution in SAP
STEP 4 : Click on Step > To create Step 001 for New Validation Condition. There
can be several Step in a single validation
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 1/12
8/20/24, 3:28 PM Validation and Substitution in SAP
Every Step follow this 3 step process : Prerequisite > Check > Message
1. Prerequisite : defines the conditions that must be met for the validation to
be executed
2. Check : If the check evaluates to true, the condition is met, the validation is
successful.
3. Message : notification generated based on the outcome of the checks.
STEP 5 : Click on Prerequisite > under Table Fields tab click on "ABAP system
fields" to select Transaction code or "Accounting Document Header" to select BKPF
table Field.
STEP 6 : Click on Check > To verify Document Date must be less than Posting
Date.
STEP 7 : Click on Message > To give a notification to user if the check is not met.
Select Message Type like Warning (W), Error (E), Cancel (A) or Information (I) and
then select the message number with pre-defined message, or click on pencil icon
to create a message as shown below
Now, select the number like '088' and click on selected entries to edit and enter
message "Document Date must be same as Posting Date"
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 2/12
8/20/24, 3:28 PM Validation and Substitution in SAP
STEP 2 : Enter Company code, Callup point, Validation, select Action Level as
Active and SAVE.
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 3/12
8/20/24, 3:28 PM Validation and Substitution in SAP
STEP 2 : Click on Step to create new substitution, Enter code for substitution with
description and Save.
Under a Substitution there can be multiple step, and the step first checks condition
(prerequisite) and replace (substitutes) with value.
STEP 3 : Create Condition with provided fields of Document header, line item and
ABAP fields, formula builder, constants etc.
In our case, if T Code is "FB50" and Company code is "BAJA" then system must
replace the BSEG table 'Text' field.
STEP 4 : Select substitution then click on (+) to insert substitution entry > select
Field 'SGTXT'.
Enter text 'Test Journal Voucher', that is to be transferred to the assigned recipient
field. This value is also allowed to be blank.
STEP 2 : Enter Company code, Callup point, Substitution, Action Level and SAVE
Validation and Substitution in SAP are functionalities used to enforce business rules
and automatically modify data entered in SAP system, throughout this blog, we've
delved into the significance of these functionalities.
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 4/12
8/20/24, 3:28 PM Validation and Substitution in SAP
Thank you for taking the time to read my blog. I appreciate your support and hope
you found this content valuable. Stay tuned and follow me for more insightful
articles in future.
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 5/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 6/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 7/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 8/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 9/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 10/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 11/12
8/20/24, 3:28 PM Validation and Substitution in SAP
https://www.gauravconsulting.com/post/validation-and-substitution-in-sap-s-4-hana 12/12