Getting number of rows in table in an itab in 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.

Updated on: 18-Feb-2020

676 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements