SAP NetWeaver AS ABAP Release 752, ©Copyright 2017 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Reference → Processing Internal Data → Internal Tables → Expressions and Functions for Internal Tables → Table Functions →lines - Row Function
Syntax
... lines( arg ) ...
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.
Notes
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.