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
76

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
57

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
57

Loop at itab where flag EQ 'X'

<< do what ever u want>>

endllop.

Former Member
0 Kudos
57

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.