2008 Jan 18 6:32 AM
Hi experts,
I want to use the "concatenate" function but it doesn't work with data with type DEC.
How can I convert DEC data (to CHAR for example).
Thanks for support.
Regards,
David
Edited by: David Cerati on Jan 18, 2008 7:32 AM
2008 Jan 18 6:37 AM
Hi David
Move the decimal value to a temporary character variable and then use for concatenation.
I hope below example can help you understand.
data: l_float(15) type p decimals 2 value '123.34',
l_string type string.
move l_float to l_string.
write:/ l_string.
concatenate 'Value:' l_string into l_string separated by space.
write:/ l_string.
Kind Regards
Eswar
Hi experts,
I want to use the "concatenate" function but it doesn't work with data with type DEC.
How can I convert DEC data (to CHAR for example).
Thanks for support.
Regards,
David
Edited by: David Cerati on Jan 18, 2008 7:32 AM
2008 Jan 18 6:37 AM
Hi David
Move the decimal value to a temporary character variable and then use for concatenation.
I hope below example can help you understand.
data: l_float(15) type p decimals 2 value '123.34',
l_string type string.
move l_float to l_string.
write:/ l_string.
concatenate 'Value:' l_string into l_string separated by space.
write:/ l_string.
Kind Regards
Eswar
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |