Skip to Content

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


How can I use this class to retrieve the number of

records an internal table contains?

Former Member

I think finding number of records in a itab using this class is not possible.

If you want find the number of fields in an itab then

g_tabledescr type ref to cl_abap_tabledescr,
g_tabledescr ?= cl_abap_tabledescr=>describe_by_data( itab ).

But you can try this way

v_lines = lines( ltab ).

0 View this answer in context

Helpful Answer

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