Skip to Content
avatar image
Former Member

add leading zero

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 02, 2008 at 03: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 02, 2008 at 02:50 PM

    showthe code part...itmust work....

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 03:01 PM

    CONVERSION_EXIT_ALPHA_INPUT will only add leading zeroes for character fields with numerics only.

    Rob

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 02, 2008 at 03:36 PM

    Hi ,

    Give the vendor number and target vendor number for import and export parameters...

    Regards,

    Bharani

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 05:13 PM

    Could it be that you are using it on an internal table field and forgot to modify it?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 06:25 PM

    Try to used the comand UNPACK.

    Regards,

    Carlos

    Add comment
    10|10000 characters needed characters exceeded