2008 Oct 02 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
2008 Oct 02 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.
Hi Gustavo
imusing yor technique,in debugmode ,its ok but when displayed on screen,it is without the 0
plzhelp
2008 Oct 02 3:50 PM
2008 Oct 02 4:01 PM
CONVERSION_EXIT_ALPHA_INPUT will only add leading zeroes for character fields with numerics only.
Rob
2008 Oct 02 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.
2008 Oct 02 6:04 PM
Hi Gustavo
imusing yor technique,in debugmode ,its ok but when displayed on screen,it is without the 0
plzhelp
2008 Oct 02 6:14 PM
Gustavo's code works perfectly. You have probably changed the declaration of vendor from CHAR910) to something like lfa1-lifnr.
Rob
2008 Oct 03 10:08 AM
2008 Oct 02 4:36 PM
Hi ,
Give the vendor number and target vendor number for import and export parameters...
Regards,
Bharani
2008 Oct 02 6:13 PM
Could it be that you are using it on an internal table field and forgot to modify it?
2008 Oct 02 7:25 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |