How to converts number into string with leading zeroes in ABAP/4

We can apply function module "CONVERSION_EXIT_ALPHA_INPUT’ to convert number into string with leading zeroes.

Example


  DATA: lv_number TYPE I VALUE 12,
lv_string(10) TYPE C.

CALL FUNCTION ’CONVERSION_EXIT_ALPHA_INPUT’
   EXPORTING
     INPUT        = lv_number
   IMPORTING
     OUTPUT       = lv_string
           .



*** Output -> lv_string = ’0000000012’

Post new comment