Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Last row Intertablle

Former Member
0 Kudos

Hallo

How can I check in following code the last row of internal Table.

if last row of itab

then do something

endif.

regards

rana

3 REPLIES 3

Former Member
0 Kudos

loop at itab.

at last.

do something.

endat.

endloop.

Former Member
0 Kudos

You can use DESCRIBE TABLE LINES ... to find the number of rows in the table and then rtead the table with that index.

Press F1 on DESCRIBE and READ.

Rob

0 Kudos

Why moderators go grey