‎2007 Sep 18 9:34 PM
Hi,
I have a value in an integer variable. I want to display the value in the output with 2 characters.
For example,
if the value is 2, i want to display it as 02,
if the value is 9, i want to display it as 09,
if the value is 12, i want to display it as 12,
How do i achieve this?.
Thanks,
‎2007 Sep 18 9:38 PM
Hi Sandeep,
try declaring the Data type 'N' or type 'C'.
Regards
Allan Cristian
‎2007 Sep 18 9:38 PM
Hi Sandeep,
try declaring the Data type 'N' or type 'C'.
Regards
Allan Cristian
‎2007 Sep 18 9:55 PM
‎2007 Sep 18 10:04 PM
Try:
DATA: f1 TYPE i,
f2(2) TYPE n.
f1 = 2.
f2 = f1.
WRITE: /001 f2.
f1 = 9.
f2 = f1.
WRITE: /001 f2.
f1 = 12.
f2 = f1.
WRITE: /001 f2.Rob