09-10-2008 8:27 PM
Hi All
I need to store a number in a character variable
Num = 686 (integer type)
here c1 is the char variable of length 4.
If I give C1 = Num
the value is not stored.
How to store a number in a character variable.
Regards
Renuka.
09-10-2008 8:52 PM
09-10-2008 8:53 PM
Works fine. run the code below.
REPORT ztest.
DATA: n TYPE i VALUE '6666',
c TYPE char4.
c = n.
BREAK-POINT.
write: c , n.
09-10-2008 9:03 PM
Renuka,
I am getting c1 value as 686...very simple code only..
data: num type I value '686',
c1(4) type c.
c1 = num.
write:/ c1.
O/P 686