‎2007 Jun 28 5:27 AM
Hi Friends,
I need to pick the second record from the internal which is declared as like without any loop. is there any statement how to pick the second record from the loop.
Thanx in advance,
Line
‎2007 Jun 28 5:29 AM
‎2007 Jun 28 5:28 AM
HI,
Hi you can use as follows
READ TABLE ITAB INTO WA INDEX 2.
Regards,
Sesh
‎2007 Jun 28 5:29 AM
‎2007 Jun 28 5:49 AM
‎2007 Jun 28 5:54 AM
Read table itab index 2.
if sy-subrc = 0.
write : / itab-f1, itab-f2.
endif.
regards
shiba dutta
‎2007 Jun 28 5:54 AM
if it is without work area use
READ ITAB WHERE SY-TABIX = 2.
Here header line of itab will work as the Work area and will have the values at index 2.
Reward points if helpful
‎2007 Jun 28 5:55 AM
‎2007 Jun 28 5:29 AM
Hi,
u can use read statement with index to pick the second record from internal table.
Read table itab index 2.
thanks & regards,
jogu_vinesh@yahoo.com
‎2007 Jun 28 5:30 AM
Hi,
Use read statment like
READ ITAB WHERE SY-TABIX = 2.
OR
LOOP AT ITAB TO WA WHERE SY-TABIX = 2
Hope this helps you. Reply for queries, shall post the updates.
Regards.
Kumar.
‎2007 Jun 28 5:33 AM
hi..
u can use this statement..
<b>READ TABLE ITAB INTO WA INDEX 2.</b>
Reward if useful
Regards
Ashu
‎2007 Jun 28 6:07 AM
Hi,
You can use the syntax to pick the second record from internal table
READ ITAB WHERE SY-TABIX = 2.
OR
LOOP AT ITAB TO WA WHERE SY-TABIX = 2