Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How do you get the last record out of a table?

Hello,

It's 'Probie' again

How do you get the last record out of a table without knowing anything about the entry?

Thanks.

replied

is it an interview question?

if it is an internal table, then determine the number of lines of the table (DESCRIBE ... ) and read the last line of the table : READ TABLE ... INDEX n (the number you just got). Of course it works only with STANDARD and SORTED tables, not for HASHED ones

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question