# Getting number of rows in table in an itab in SAP

SAP

There is a function “LINES” that can be used to get the number of lines in a table. Here is the code that can be used −

DESCRIBE TABLE <itab-Name> LINES VR1

The variable VR1 will contain the number of rows.

Published on 27-Dec-2017 09:49:18