To append zeros

Advertisement
Hi all,
    I have a requirement in that i have to append zeors to the left of a character variable which is having length 10. While using shift statement the default character is space,  then i tried with the 'IN BYTE MODE' option but there the representation is different,Each byte is represented as two characters.Is there any easy way to append zeros to a character variable using any of the ABAP keywords.
Thanks in Advance,
Shaju
Advertisement

Replay

Hi Shaju
CONVERSION_EXIT_ALPHA_INPUT This function module is used to append leading zeroes...
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = wf_version
            IMPORTING
              output = wf_version.
Example:
input = 123
output = 0000000000000...000000000000123
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards