Ansicht
Dokumentation

ABENLOGEXP_RULES_EXPR_ARITH - LOGEXP RULES EXPR ARITH

ABENLOGEXP_RULES_EXPR_ARITH - LOGEXP RULES EXPR ARITH

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- Comparison Type of Arithmetic Expressions

Arithmetic expressions are possible as operands of comparison expressions using comparison operators for all data types. It is possible to compare an arithmetic expression with a single operand of a numeric data type or with another arithmetic expression.

The calculation type of all arithmetic expressions of a comparison expression is determined from all single operands of the entire comparison expression as well as by any operators ** in accordance with the usual rules. The result of the involved arithmetic expressions involved exists in the calculation type. This calculation type is also the comparison type whose comparison rules are used to perform the comparison. If necessary, single operands are converted to the comparison type before comparison.

If multiple relational expressions are combined into a logical expression using Boolean operators, the calculation type or comparison type are determined separately for each relational expression.

Notes

  • If a conversion error occurs in an arithmetic expression in a relational expression, the associated exception can be handled differently than in direct comparisons of data objects.
  • To compare an arithmetic expression with a single non-numeric operand, the operand can be prefixed with the "+" sign to turn it into an arithmetic expression.

Example

The following comparisons are both true. In the first one, the calculation type is i and the result of the calculation is rounded to 1. In the second, the calculation type is decfloat34 and there is no rounding.






rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2835 Date: 20240416 Time: 130828     sap01-206 ( 46 ms )