2008 Dec 03 11:56 AM
Hi all,
small doubt in writing code for reading an internal table from 2nd row on wards. how to write code to ignore 1st row & read from 2nd row on wards.
Hi all,
small doubt in writing code for reading an internal table from 2nd row on wards. how to write code to ignore 1st row & read from 2nd row on wards.
2008 Dec 03 11:59 AM
loop at itab.
If count = 1.
delete itab index 1.
count = count + 1.
endif.
Read table index 1.
endloop.
Regards,
Ajay
2008 Dec 03 12:00 PM
2008 Dec 03 12:00 PM
Hi
Try this
Loop at <Intrnal table >
if sy-tabix ne 1
read statement...
endif
endloop
vijay
2008 Dec 03 12:01 PM
2008 Dec 03 12:01 PM
2008 Dec 04 6:56 AM
Hi Kiran,
I used the loop at itab from 2 . endloop thanks a lot problem solved
2008 Dec 03 12:02 PM
Hello,
Use LOOP AT ITAB FROM 2 stmt. It will start looping from 2 row.
BR,
Suhas
2008 Dec 03 12:03 PM
Hi,
DATA : itab TYPE TABLE OF char10,
wa TYPE char10.
wa = 'AA'.
APPEND wa TO itab.
wa = 'BB'.
APPEND wa TO itab.
wa = 'CC'.
APPEND wa TO itab.
CLEAR wa.
LOOP AT itab INTO wa FROM 2.
WRITE / wa.
ENDLOOP.Regards
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |