AMT Help Files

NUMERIC

Syntax

Command
Mandatory parameter
Optional parameter
Mandatory keyword
Optional keyword

NUMERIC (<Variable>)

Description

Checks if a variable contains a numeric value.

Diagram

Returned value type

Boolean

Parameters

Parameter Description
<Value> The value to determine whether it is a numeric or not

Remarks

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.

Example


if not numeric (sa-contnr)
    ga-errmsg := 'The container number must be a numeric'
    exit
endif

 

Return to

Commands