Get Example source ABAP code based on a different SAP table
ABAP_RELEXP > - Comparison Type of Numeric Data Objects The following tables show the comparison types> for comparisons between numeric data types and other data types. If the type of an operand is not the same as the comparison type, it is converted> to this type. The comparison rules for the comparison types> determine how the comparison is executed. ITOC
Latest notes: If a decimal floating point number> is involved in a comparison, the comparison always takes place with the type decfloat34>. NON_V5_HINTS ABAP_HINT_END
Comparisons with Numeric Data Types - <(>decfloat16<)>>, <(>decfloat34<)>>f>p> <(>int8<)>>i>s>b> <(>decfloat16<)>>, <(>decfloat34<)>>decfloat34> decfloat34>decfloat34>decfloat34> decfloat34>decfloat34>decfloat34> f>decfloat34>f>f>f> f> f>f> p>decfloat34>f>p> p> p> p>p> <(>int8<)>>decfloat34>f>p>int8> int8>int8>int8> i>decfloat34>f>p>int8> i> i>i> s>decfloat34>f>p>int8> i> s>s> b>decfloat34>f>p>int8> i> s>b> Value Ranges and Length Adjustments>
When two operands with data type p> are compared, numbers with more than 31 places are used internally to ensure that there is no overflow.
When two operands with data type p> but with different lengths are compared, the shorter operand is converted> to the greater length.
When two operands with data type p> but with different numbers of decimal places are compared, the operand with fewer decimal places is converted> to a number with the same number of decimal places as the other operand.
When an operand with type p> is compared with an operand with type int8>, i>, s>, or b>, the comparison type p > has 31 places and the number of decimal places of the operand of type p>.
If the value of an operand of type int8> does not match the value range of a comparison type p>, the exception is caught internally, and the comparison delivers the correct result.
ABAP_EXAMPLE_VX5 The result of this example is a surprise at first, but is caused by the fact that the value 0.15> cannot be represented exactly as a binary floating point number. ABEXA 01102 ABAP_EXAMPLE_END
Comparisons with Character-Like Data Types - <(>decfloat16<)>>, <(>decfloat34<)>>f>p> <(>int8<)>>i>, s>, b> string>, c>, n>decfloat34>f>p> int8> i>