How to Find Internal Table Row Count in ABAP
ABAP programmers can find internal table row count in ABAP using LINES() function or DESCRIBE TABLE command as I shared codes in this ABAP tutorial.
Describe Table statement with used Lines enables ABAP developers to get the number of table rows in an ABAP internal table. ABAP Describe Table command returns an integer value with type i which gives the developer the number of rows in internal table.
An other method which is easier for programmers is to use ABAP Lines function. Lines() function takes internal table name as the only argument.
I shared the above sample ABAP codes below.
Programmers can realize that the first two sample requires a local variable defined before.
The last sample code is using inline data declaration to store the row counts of internal table.