SAP NUMERICAL VALUE
Get Example source ABAP code based on a different SAP table
ARTICLE
Representation of Numeric Values in Character-Like Fields
The values of data objects of character-like data types can be assigned to data objects of the numeric types
An uninterrupted sequence of digits with a maximum of one period (.) as a decimal separator and an optional sign '+' or '-' on the left. This sign can be separated from the digits by blanks. An arbitrary number of blanks may be in front of and behind the sequence of digits.
An uninterrupted sequence of digits with a maximum of one period (.) as a decimal separator and an optional sign '+' or '-' on the right. This sign can be separated from the digits by blanks. An arbitrary number of blanks may be in front of and behind the sequence of digits.
An uninterrupted sequence consisting of a mantissa and an exponent. The mantissa is an uninterrupted sequence of a sign '+' or '-' and a sequence of digits that can have a maximum of one period (.) as a decimal separator. The exponent is an uninterrupted sequence consisting of the character 'E' or 'e', a '+' or '-' sign and a sequence of digits. The number value is the value of the mantissa multiplied by ten to the power of the value that is after the character 'E' or 'e'. There can be any number of blanks in front of the number. Parts of the notation that are not required, such as the plus/minus sign or the exponent, can be omitted.
To summarize, these notations can be assigned to variables with numeric data types as follows:
Also, character strings containing no characters or only blanks can always be converted to the value 0, when being assigned to variables with numeric data types. When being assigned to the type
Notes