you can use FM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
input = value
OUTPUT = value.
This will add leading zeros
Rewards if useful................
Message was edited by:
use the FM CONVERSION_EXIT_ALPHA_INPUT
call function 'CONVERSION_EXIT_ALPHA_INPUT'
input = var1
output = var1.
Please reward points if helpful.
following FM will help you :
CONVERSION_EXIT_ALPHA_INPUT converts any number into a string fill with zeroes, with the number at the extreme right
input = 123
output = 0000000000000...000000000000123
CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a simple integer
input = 00000000000123
output = 123
plz reward if useful..
u can do it many ways.
1. use fm CONVERSION_EXIT_ALPHA_INPUT and pass the variable to it n reference variable.
2. declare dat variable as Numeric then by default it will add zeros for u.
ex: data: pmatnr(8) type n.
if u give value as 8 the o/p would be like this 00000008.
if helpful reward some points.