‎2008 Apr 25 10:54 AM
Hi,
I have to loop into internal table and condition is that looping should be done from second row and sno of this table should be matched with sno of another table.
something like this ....
loop at it_tab1 where sno = it_tab2-sno and index = 2.
How to do that??
‎2008 Apr 25 10:57 AM
loop at it_tab1 where sno = it_tab2-sno .
if sy-tabix = 2.
*your code ...
endif.
endloop.
‎2008 Apr 25 10:57 AM
‎2008 Apr 25 11:05 AM
Hi,
You can use if condition in the loop endloop.
loop at it_tab1 .
if sy-tabix > 1.
write: / it_tab1-mandt,it_tab1-matnr .
endif.
endloop.
This skips the first record and you can continue the execution of the statements in the loop.
Reward points if helpful.
Thanks and regards.
‎2008 Apr 25 11:09 AM