07-31-2006 12:27 PM
I have one internal table containing 5 records, I wish to display these 5 records but my code repeats the first record only 5 times, then second record 5 times and so on.. how to correct it, please advice.
Regards,
Alok.
07-31-2006 12:29 PM
07-31-2006 12:29 PM
hi,
do you have a nested loop in which you read/write your data?
grtz
Koen
07-31-2006 12:29 PM
hi Alok,
do this way.. probably u might not have used the clear statement at proper place ...
loop at itab.
write : itab-matnr.
clear itab.
endloop.
Regards,
Santosh
07-31-2006 12:30 PM
It should be simple
LOOP AT ITAB.
WRITE 😕 ITAB-FIELD1.
ENDLOOP.
Give your code here to identify the issue.
Regards,
Ravi
Note : Please mark all the helpful answers
07-31-2006 12:31 PM
hi do like this::
loop at itab.
write : itab-field1,
itab-field2,
itab-field3,
itab-field4
itab-field5.
endloop.
07-31-2006 12:31 PM
Hi Alok,
Can you please give your code you are using.
I think you are using an extra loop statement with write
statement.
Only a select statement loop is enough and give write statement inside the select statement only.
Regards,
Amit.
Please reward if helpful.
07-31-2006 12:32 PM
Hi Alok,
Loop at itab.
write: itab-f1, itab-f2,itab-f3.
clear itab.
endloop.
Regards,
Laxmi.
07-31-2006 12:48 PM
hi alok,
before selecting the data.
clear and refresh that internal table once.
then,
loop at itab.
write:/itab-field1,itab-field2.
clear itab.
endloop
07-31-2006 12:54 PM
hi,
TABLES SFLIGHT.
DATA BEGIN OF ITAB OCCURS 0.
INCLUDE STRUCTURE SFLIGHT.
DATA END OF ITAB.
SELECT * FROM SFLIGHT INTO TABLE ITAB.
LOOP AT ITAB.
WRITE:/ ITAB-CARRID,
ITAB-CONNID,
ITAB-FLDATE.
ENDLOOP.
try for it,
best of luck,
regards,
kcc