ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Internal Tables → Expressions and Functions for Internal Tables → Table Functions
lines - Row Function
Other versions: 7.31 | 7.40 | 7.54
Syntax
... lines( arg ) ...
Effect
The table function lines returns the number of rows (or lines) in an internal table. The argument arg is a
functional operand position that expects an internal table. The return value has the type i.
Note
The function described here is one of the functions that can be used in the obsolete extended functional operand positions, if its argument is a single data object.
Example
The number of rows in an internal table filled from a database table must match the number of rows on the database.
SELECT carrid
FROM scarr
INTO TABLE @DATA(itab).
SELECT COUNT(*)
FROM scarr
INTO @DATA(lines).
ASSERT lines( itab ) = lines.