Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Tags:
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question