Application Development 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: 

moving numberic varaible to char

Former Member
0 Kudos

Hi

if char var1 eq numeric var2

if both contains numeric it is not dumping , else if var 1 contains char value giving dump.

I want to move numberic variable to character variable.

how to do this?

3 REPLIES 3

former_member156446
Active Contributor
0 Kudos

decelare the variable like varchar..

or char10 like vblen or matnr.

former_member181962
Active Contributor
0 Kudos

MOving a numeric variable to a character shouldn't be a probelm.

The vice versa is not allowed.

can you show your code?

Regards,

Ravi kanth

Former Member
0 Kudos

Hi,

You can directly assign numeric value to a character variable.

Ex: l_f_num(4) type n,

l_f_char type char04.

l_f_num = '1004'.

l_f_char = l_f_num.

write : / l_f_char.

Before condition check if you want to find whether value exist in char variable is a character or numeric. then use FM : NUMERIC_CHECK.

Hope this helps u.