Skip to Content

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

CL_ABAP_TABLEDESCR

How can I use this class to retrieve the number of

records an internal table contains?

Tags:
Former Member
replied

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

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