Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Validations & Substitutions

Former Member
0 Kudos
413

Hi,

When we are using validation and substitution in the same document, which one will be executing first and what will be the result at the end.

Let me know the details clearly with example.

Regards,

Rajani.

2 REPLIES 2

Former Member
0 Kudos
181

Hi,

are you refering to GGB0 and GGB1 ? Financial validation/substitution?

Regards,

Former Member
0 Kudos
181

Hi,

The Substitution will be called first and then Validation. Substitution is used to "substitute" any data while validation is used to valid the data before they are being entered into database. If you validate the field first and then substitute with some value which contradict your validation rule, it does not make any sense.

So, you always substitute all the fields you want and at the end validate all the data before saving / posting them.

I hope i clarify your doubt.

Regards,

RS