11-23-2007 10:33 AM
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.
11-23-2007 10:37 AM
try this...
data: pd(11) type p decimals 2 value '20.00',
ch(15) type c.
ch = pd.
write: pd, ch.
11-23-2007 10:35 AM
Write should work. What are the data definitions of dec_variable and char_variable. What results do you get when you try?
matt
11-23-2007 10:36 AM
11-23-2007 10:37 AM
try this...
data: pd(11) type p decimals 2 value '20.00',
ch(15) type c.
ch = pd.
write: pd, ch.
11-23-2007 10:41 AM
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.