Formula Builder: Strict evaluation
[base formula] [Builder] [formula] [formula one] [physicians formula]
Symptom
The system usually uses “Lazy evaluation” to evaluate the formulas of the Formula Builder, which means that it calculates only the operands that are required for the evaluation. For example, in the case of AND, the system does not calculate the second operand if the first one already results in “false”.
In the SEM-BCS validation, this response leads to performance problems.
Other terms
Formula Builder
Reason and Prerequisites
The implementation has a negative effect on performance.
Solution
Implement the advance correction.
To evaluate the formulas using “Strict evaluation” (or “Eager evaluation”), you must then call CL_FOEV_FORMULA->EVALUATE with the new parameter “IV_STRICT_EVALUATION = ABAP_TRUE”.