10-02-2008 3:50 PM
hi im trying to add leading zeros in vendor number
im using the fm 'CONVERSION_EXIT_ALPHA_INPUT', its not working
anybody knows how else i can do that
10-02-2008 4:18 PM
Well, I made this example, adapt it to suit your needs.
DATA: vendor(10) TYPE c VALUE '452'.
START-OF-SELECTION.
SHIFT vendor CIRCULAR RIGHT.
WHILE vendor(1) = space.
SHIFT vendor CIRCULAR RIGHT.
ENDWHILE.
SHIFT vendor CIRCULAR LEFT.
OVERLAY vendor WITH '0000000000'.
WRITE vendor.
10-02-2008 3:50 PM
10-02-2008 4:01 PM
CONVERSION_EXIT_ALPHA_INPUT will only add leading zeroes for character fields with numerics only.
Rob
10-02-2008 4:18 PM
Well, I made this example, adapt it to suit your needs.
DATA: vendor(10) TYPE c VALUE '452'.
START-OF-SELECTION.
SHIFT vendor CIRCULAR RIGHT.
WHILE vendor(1) = space.
SHIFT vendor CIRCULAR RIGHT.
ENDWHILE.
SHIFT vendor CIRCULAR LEFT.
OVERLAY vendor WITH '0000000000'.
WRITE vendor.
10-02-2008 6:04 PM
Hi Gustavo
imusing yor technique,in debugmode ,its ok but when displayed on screen,it is without the 0
plzhelp
10-02-2008 6:14 PM
Gustavo's code works perfectly. You have probably changed the declaration of vendor from CHAR910) to something like lfa1-lifnr.
Rob
10-03-2008 10:08 AM
10-02-2008 4:36 PM
Hi ,
Give the vendor number and target vendor number for import and export parameters...
Regards,
Bharani
10-02-2008 6:13 PM
Could it be that you are using it on an internal table field and forgot to modify it?
10-02-2008 7:25 PM