DATA: text1(20) .
DATA: text2(20) .
DATA: i TYPE c.
FIELD-SYMBOLS <fs> .
FIELD-SYMBOLS <fs1> .
READ TABLE jtabb WITH KEY beknz = 'L'."guanli
CONCATENATE 'jtabb-wog0' perid INTO text1.
ASSIGN (text1) TO <fs>.
IF sy-subrc = 0 .
zx = <fs>.
DO perid TIMES.
i = i + 1.
IF i < 10 .
CONCATENATE 'jtabb-wog0' '0' i INTO text2.
ELSE.
CONCATENATE 'jtabb-wog0' i INTO text2.
ENDIF.
ASSIGN (text2) TO <fs1>.
yx = yx + <fs1> .
ENDDO.
ENDIF.
DATA: text2(20) .
DATA: i TYPE c.
FIELD-SYMBOLS <fs> .
FIELD-SYMBOLS <fs1> .
READ TABLE jtabb WITH KEY beknz = 'L'."guanli
CONCATENATE 'jtabb-wog0' perid INTO text1.
ASSIGN (text1) TO <fs>.
IF sy-subrc = 0 .
zx = <fs>.
DO perid TIMES.
i = i + 1.
IF i < 10 .
CONCATENATE 'jtabb-wog0' '0' i INTO text2.
ELSE.
CONCATENATE 'jtabb-wog0' i INTO text2.
ENDIF.
ASSIGN (text2) TO <fs1>.
yx = yx + <fs1> .
ENDDO.
ENDIF.