Skip to Content

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

Determine Number of rows in Internal Table

Hi,

I have defined my internal table as follows:

TYPES : BEGIN OF ABC_KEY,

FIELD1(2) TYPE C,

FIELD2(1) TYPE C,

FIELD3(8) TYPE N,

END OF ABC_KEY.

DATA: itab1 TYPE TABLE OF ABC_KEY

WITH KEY FIELD1,

wa_lines_1 LIKE LINE OF itab1.

How can I retrieve the number of rows in Internal Table?

Thanks.

Regards,

bw_newbie

Tags:
replied

You can do this.


data: lnumber_of_lines type i.

describe table itab lines number_of_lines.

write:/ number_of_lines.


Regards,

Rich Heilman

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