Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

flag

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

Loop at itab where flag EQ 'X'

<< do what ever u want>>

endllop.

Former Member
0 Kudos

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.