You are on page 1of 9

Validation and substitution

SUBSTITUTION AND VALIDATION

By Ngakhamsing Ch, FICO Associate consultant

VALIDATION:

The validation function enables you to check values and ranges of values as they are being entered in
the SAP system. Validation rules are stored in the Rule Manager. As data is entered into the system,
the Integration Manager validates the data against the validation rules

A validation can consist of up to 999 steps

A validation step contains the following statements:

 Prerequisite statement
The prerequisite statement determines whether the entered value(s) should be checked. If the
prerequisite statement is false, then the value is valid and the transaction continues.
 Check statement
The check statement determines whether the entered value(s) are valid. If the check statement
is true, then the value is valid and the transaction continues. If the check statement is false, the
system displays a message.

MY VALIDATION RULE IS ON DOCUMENT AND POSTING DATE, IF THE BOTH THE


DATE SHOULD BE SAME.

THE RULES APPLIED THAT THE USER HAS TO ENTER THE SAME DATE.

We will use use T.code OB28

To create new validation rule need to click on ‘new entries


Validation and substitution

Call point

My company code is 1500 and the rule is applied on Document header level so I have selected.

Now double click on the Validation field to proceed further

Click on validation tab create new rule. Under one rule one can create 999 steps

Click on STEP to create the steps, fill the description


Validation and substitution

On the perquisite tab, we have to apply that logic.

Explanation: Here, the rule is applied to my company code only; the same rule can be applied for
whole company code as well. The rule work only on my company code 1500 when I pass any entry
using document type SA

Using this tool we apply the rule


Validation and substitution

When the data is being entered the system must check whether the input is as per the set data.

Here in this ‘check’ step i make have set that document date must be same with the posting date.

I have assigned the message type (E)) and number (023).

Now go back to initial screen and activate the rule. For activation we must set as 1

Assigned the validation rule key and activated

To see the impact let’s try to post an entry from F-02 by entering different date on document and
posting date field
Validation and substitution

As I have not entered same date of document and posting the system has given me an error. Unless I
give the correct data I wound be able to proceed to next screen.

SUBSTITUTION

 The values entered into the SAP system are validated against a prerequisite defined by the user.
When the prerequisite is met, the system replaces the values entered with substitute values, and the
substitute values are transferred into the FI-SL application component.

A substitution process can contain up to 999 steps

A substitution step contains the following statements:

 Prerequisite statement
The prerequisite statement establishes which conditions must be fulfilled before the
substitution can be performed. If the prerequisite statement is false, the transaction is
continued without substitution. If the prerequisite statement is true, the transaction is
continued with the substituted values.
 Substitution value(s)
Validation and substitution

The substitution value is a numerical value or a string of letters that replace the value entered.
A single substitution process can replace more than one value.

I WILL BE SUBSTITUTING THE VALUE IN DOCUMENT HEADER TEXT.

For validation we use T.code OBBH

Click on new entries

Then save and double click the Substitution

For creating substation rule click on substation rule


Validation and substitution

Enter Substitution key and description then click on step

After click on the step tab, we will get that screen; select the field name at which we will apply this
rule. So for me I have selected ‘doc header text’ in order to filled text automatically.

The click on enter


Validation and substitution

Click on constant value button and press enter to see the following screen

Explanation: In the perquisite tab, I have applied the logic to my company code only and at
document type SA. So whenever I use document type SA the system will automatically place a value
where I will be aligning.
Validation and substitution

The constant value is ‘Being JV document posted’

Now go back and activate.

Posting an entry from F-02, and will see the impact when we simulate the document.

We can see now the system has place the value automatically.

You might also like