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

Problem with conversion

Former Member
0 Likes
508

I am trying to convert from type p decimals 4 to character string value,it is giving error Value can't be interp. as floating-point number or longer than 22 charac.

I am using following code.

l_mean = w_mean_val-mean_val.

l_mean TYPE qsollwertc,

mean_val TYPE p DECIMALS 4,

If i have the values in w_mean_val-mean_val as positive then it is working.if the values are negative giving error

qsollwertc is of character string of length 16.

Regards,

Sai

1 ACCEPTED SOLUTION
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
465

Hi

Use split & Concatenate mechanism.

Regards,

Sreeram

3 REPLIES 3
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
466

Hi

Use split & Concatenate mechanism.

Regards,

Sreeram

Read only

0 Likes
465

Can u elaborate this.

Read only

Former Member
0 Likes
465

Hi,

Use :

WRITE A TO B where A is the Floating point data and B is the character type data.

Regards,

Himanshu