I am looping one internal table. In my itab iam having 10 records, I want to print all 10 records in form .
for example :
CALL FUNCTION 'FI_PRINT_ZTERM'
EXPORTING
I_ZTERM = WA_EKKO-ZTERM
I_LANGU = SY-LANGU
I_XT052U = 'X'
* I_T052 =
TABLES
T_ZTEXT = IT_ZBTXT
.
LOOP AT IT_ZBTXT INTO WA_ZBTXT.
CASE SY-TABIX.
WHEN 1.
CONCATENATE 'TERM' '1' INTO TERM.
WHEN 2.
CONCATENATE 'TERM' '2' INTO TERM.
WHEN 3.
CONCATENATE 'TERM' '3' INTO TERM.
WHEN 4.
CONCATENATE 'TERM' '4' INTO TERM.
WHEN 5.
CONCATENATE 'TERM' '5' INTO TERM.
WHEN 6.
CONCATENATE 'TERM' '6' INTO TERM.
WHEN 7.
CONCATENATE 'TERM' '7' INTO TERM.
WHEN 8.
CONCATENATE 'TERM' '8' INTO TERM.
WHEN 9.
CONCATENATE 'TERM' '9' INTO TERM.
WHEN 10.
CONCATENATE 'TERM' '10' INTO TERM.
ENDCASE.
READ TABLE IT_ZBTXT INTO WA_ZBTXT WITH KEY TERM.
IF SY-SUBRC EQ 0.
* V_TEXT1 = WA_ZBTXT-TEXT.
MODIFY IT_ZBTXT FROM WA_ZBTXT index sy-tabix.
ENDIF.
TERM = ' '.
ENDLOOP.
in debugging i am getting 10 records but in Form's Text node i am getting only last record.
Add comment