‎2008 Mar 26 6:44 AM
I want to restrict a variable for only numeric values including decimals, etc.
Is there any function module for this ?
‎2008 Mar 26 6:47 AM
Hi,
You can use the CO statement for that.
For example ur input field is "temp" means.
if temp CO (0123456789).
write ur coding.
else.
error msg 'enter numeric value only'.
endif.
Thanks.
‎2008 Mar 26 6:48 AM
‎2008 Mar 26 6:49 AM
check if the variable contains only numerics ..
if v_var CO '1234567890'.
else.
give a message
endif.
‎2008 Mar 26 6:53 AM