‎2005 Sep 27 2:27 PM
Hi all,
I want add one zero to number.
Ex: If number is 8
I want to add 1 zero to 8. That is 08
How can I do that?
Thanks,
shashikanth
‎2005 Sep 27 2:32 PM
hi,
try this also
data i type i.
data i1(2) type n.
i = 8.
i1 = i.
write i1.
cheers,
sasi
‎2005 Sep 27 2:28 PM
hi,
data x(2) type n.
n = 8.
concatenate '0' n into n.
cheers,
sasi
‎2005 Sep 27 2:30 PM
Use FM CONVERSION_EXIT_ALPHA_INPUT
Your output field should be of length 2, or just use concadinate command.
Rgds.
‎2005 Sep 27 2:30 PM
option 1.
concatenate '0' '8' into variable name.
option2.
declare a vairable like below.
data: myvar(2) type n.
move: '8' to myvar.
now my var will be 08
Regards
Raja
‎2005 Sep 27 2:32 PM
hi,
try this also
data i type i.
data i1(2) type n.
i = 8.
i1 = i.
write i1.
cheers,
sasi