Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module for numeric values

Former Member
0 Likes
579

I want to restrict a variable for only numeric values including decimals, etc.

Is there any function module for this ?

4 REPLIES 4
Read only

Former Member
0 Likes
524

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.

Read only

Former Member
0 Likes
524

Can FM: NUMERIC_CHECK be helpful?

Read only

Former Member
0 Likes
524

check if the variable contains only numerics ..

if v_var CO '1234567890'.

else.

  • give a message

endif.

Read only

Former Member
0 Likes
524

Hi,

Check this FM 'NUMERIC CHECK'

regards

Sandipan