| Syntax Color Legend |
|---|
| Command |
| Mandatory parameter |
| Optional parameter |
| Mandatory keyword |
| Optional keyword |
NUMERIC (<Variable>)
Checks if a variable contains a numeric value.
Boolean
| Parameter | Description |
|---|---|
| <Value> | The value to determine whether it is a numeric or not |
When the given value contains any combination of digits and spaces, it will return false.
When a numeric has been formatted or written to a record layout with Zero option set to one leading zero or no zeroes, leading zeroes in the numeric will be replaced by spaces. The numeric function will then return false for these formatted numeric values.
if not numeric (sa-contnr)
ga-errmsg := 'The container number must be a numeric'
exit
endif