INCLUDE
Value Ranges and Length Adjustments
When the types string and c are compared with packed
numbers of the type p , the comparison type p has 31
decimal places together with the decimal portion of the operand of type
p . This can raise exceptions if overflows occur.
When the type n is compared with packed numbers of the type p
, the numeric text can contain up to 31 places, excluding leading
zeroes and regardless of how big the decimal portion of the type
p
operand is.
When the types string , c , and n are compared with
whole numbers of the types
int8 ,
i , s , and b , the number value in the character-like
operand does not need to fit the value range of the comparison type
i . If the number value is not in the value range, the comparison
produces the correct result and no exception is raised.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved