I know there is not standard command to find the total no of lines in an internal table with a where clause.But is there a best possible work around. One possible work around which I can think of is
Loop at itab1 where field1 = 'X'
appending lines into itab2.
describe itab2 into gv_line.
But here i am creating an extra internal table . Can this be avoided?