整形转换为字符型只需要把整形定义成n(numc类型)就可以了。
DATA: I_BOOKID TYPE n, tt type I,
O_BOOKID(3) TYPE c.tt = 0.
I_BOOKID = 1.
while tt < 5.
I_BOOKID = I_BOOKID + 1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = I_BOOKID
IMPORTING
OUTPUT = O_BOOKID.
WRITE : O_BOOKID.
tt = tt + 1.
endwhile.