cancel
Showing results for 
Search instead for 
Did you mean: 

Count of entries in an Internal table

Former Member
0 Kudos

Hi all,

Can anyone give me a code as to how to get the count of entries in an internal table??

Regards

Sukanya

Accepted Solutions (0)

Answers (2)

Answers (2)

guillaume-hrc
Active Contributor
0 Kudos

Hi,

And even shorter in newest versions of WAS :

nbr_lines = LINES( itab ).

Best regargds,

Guillaume

Former Member
0 Kudos

Hi,

with

data: count type i.

DESCRIBE TABLE it_table LINES count.

will get the number of entries in a table,

regards,

Stefan Huemer

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Or you can use the short form of the command

DATA: count TYPE i.
count = lines( it_table ).