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: 2020-02-18T05:40:41+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements