Skip to Content
0
Former Member
Jul 24, 2007 at 09:14 AM

how to count total num of rows in an internal table

24 Views

Hi,

I use a select statement to fill data in an internal table .Now I want to know the total num of rows in this internal table.

Tech i have used is :

data: w_tab like i_tab

select i_tab ...where...

append i_tab into w_tab

l_tabix = sy-tabix

endselect.

but the above logic counts unwanted rows also and gives me huge num as result.

ls suggest

Tx in adv

Kshitija