09-21-2007 7:40 AM
hai i have to use a flag in internal table and i have to loop on internal table based on flag velu how it is can u pls help any one pls
09-21-2007 7:42 AM
HI
take the value of flag in a variable and write
Do N times.
endo.
or
loop at itab.
{do your operations}
......
if flag <= sy-tabix.
exit.
endif.
endloop.
reward if helpful
vivekanand
09-21-2007 7:45 AM
Loop at itab where flag EQ 'X'
<< do what ever u want>>
endllop.
09-21-2007 9:49 AM
hi
if u want to get the data based on some flag value
loop at itab where flag = <'X'or space>
write ..................
endloop.
or
loop at itab.
if itab-flag = 'X'.
<actions>
else.
<actions>
endif.
endloop.