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

Type conversion

Former Member
0 Likes
594

Hi,

I need to convert a variable dec(11) in a char variable.

write dec_variable to char_variable

and

move dec_variable to char_variable

doesn´t work.

How can I do it??

Yhanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

try this...

data: pd(11) type p decimals 2 value '20.00',

ch(15) type c.

ch = pd.

write: pd, ch.

4 REPLIES 4
Read only

matt
Active Contributor
0 Likes
569

Write should work. What are the data definitions of dec_variable and char_variable. What results do you get when you try?

matt

Read only

Former Member
0 Likes
569

hi,

try to move it to string variable

regards,

pavan

Read only

Former Member
0 Likes
570

try this...

data: pd(11) type p decimals 2 value '20.00',

ch(15) type c.

ch = pd.

write: pd, ch.

Read only

Former Member
0 Likes
569

Hi

report zrich_0001 .

data:

wa_char_results-mean_value type labst value '123456123.789',

wa_zbdprt_alv-mean_value type char16.

write wa_char_results-mean_value to wa_zbdprt_alv-mean_value .

write:/ wa_zbdprt_alv-mean_value.