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

validate field as numeric or amount?

Former Member
0 Likes
345

hi experts,

how can i know if a field is numeric or an amount, the thing is that i am looping a tabla dinamicly (sry about my spanglish). ok well and im trying to do the next validation

if -field the value is 0.00 and doesn´t "do something".

thx in advance

gretts

1 REPLY 1
Read only

former_member156446
Active Contributor
0 Likes
309
DATA: string TYPE char30 VALUE 'ABWI100/200-12-45M-100'.

WHILE string CN '1234567890 '. " there is a space at the end... have all the characters what you want to see the string..
  string+sy-fdpos(1) = space.
ENDWHILE.

DATA: string TYPE char30 VALUE '0.00'.

WHILE string CN '1234567890. '.
  string+sy-fdpos(1) = space.
ENDWHILE.
CONDENSE string.
WRITE: string.