Pages

Monday, February 20, 2012

Leading zeroes in ABAP

how to remove leading zero in abap?

You can use FM : CONVERSION_EXIT_ALPHA_OUTPUT or

you can use this syntax:

data gv_int(9) value '000012121'.
SHIFT gv_int LEFT DELETING LEADING '0'.
write:/ gv_int.

Output will be : 12121.

1 comment:

mybkexperience said...



I found this on internet and it is really very nice to read and helpful.
Excellent blog.
Great work!
Krogerfeedback
Travel-blog
mybkexperience