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

data type

Former Member
0 Likes
520

Hi,

i have a field <b>Amount</b> of type <b>Dec</b> in that i will enter currency amount.

To this field i am fetching data from file. in that file instead of currency data text data is available to that field.

in coding logic by <b>if</b> condition how to check the content is string or numeric?

so that we can avoid filling the field if it is a string.

regards,

Ratna

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
494

use Fm

<b>Numeric_check</b> .

in the export parameters

HTYPE returns NUMC or CHAR for the entry .

make use of this logic.

hope this helps

regards,

vijay

3 REPLIES 3
Read only

Former Member
0 Likes
495

use Fm

<b>Numeric_check</b> .

in the export parameters

HTYPE returns NUMC or CHAR for the entry .

make use of this logic.

hope this helps

regards,

vijay

Read only

alex_m
Active Contributor
0 Likes
494

Try the FM NUMERIC_CHECK.

Reward if useful.

Read only

Former Member
0 Likes
494

u can also try this...

if v_text CO '0123456789'.
  *it is a number.
else.
  *it is string.
endif.