Skip to Content
0
Former Member
Feb 28, 2007 at 02:19 PM

Concatenate

18 Views

Hi,

This is my code.

DO VA_J_2CFAKT TIMES.

IF VI_IDX = 1.

CONCATENATE SCR_DRUM SCR_DRNO SCR_WGT INTO VA_DRUMNO SEPARATED BY

SPACE.

TB_DRUM_NO-J_2CTRNR = VA_DRUMNO.

TB_DRUM_NO-CHARG = SCR_DRNO.

APPEND TB_DRUM_NO.

CLEAR TB_DRUM_NO.

ELSE.

SCR_DRNO = SCR_DRNO + 1.

CONCATENATE SCR_DRUM SCR_DRNO SCR_WGT INTO VA_DRUMNO SEPARATED BY

SPACE.

IF SY-SUBRC EQ 0.

TB_DRUM_NO-J_2CTRNR = VA_DRUMNO.

TB_DRUM_NO-CHARG = SCR_DRNO.

APPEND TB_DRUM_NO.

CLEAR TB_DRUM_NO.

ENDIF.

ENDIF.

VI_IDX = VI_IDX + 1.

CLEAR VA_DRUMNO.

ENDDO.

the concatenate statement is working for the first iteration,but not working for rest of the iterations.

Could someone help me with this please.

Thanks,

Supriya Manik.