Application Development and Automation 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: 
Read only

Internal table

Former Member
0 Likes
471

Hai,

How to calculate total number of rows avilable in internal table

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
454


DESCRIBE TABLE <itab> LINES <line>.

Above statement results with the number of records in internal table.

Regards

Eswar

5 REPLIES 5
Read only

Former Member
0 Likes
454

Hi,

Do like this

Data: lv_lines type i.

Describe table itab lines lv_lines.

Write: lv_lines. " Total Number of records.

you can also find by using system field SY-TFILL.

Regards,

Satish

Read only

Former Member
0 Likes
454

n = lines ( itab ).

This gives u no.of record in internal table itab.

awrd points if useful

Bhupal

Read only

Former Member
0 Likes
455


DESCRIBE TABLE <itab> LINES <line>.

Above statement results with the number of records in internal table.

Regards

Eswar

Read only

Former Member
0 Likes
454

Hi,

Use below statement,

DESCRIBE TABLE itab [KIND knd] [LINES lin] [OCCURS n].

Thanks and Regards

Read only

Vijay
Active Contributor
0 Likes
454

hi,

use this

data: v_rec type i.

DESCRIBE TABLE itab lines v_rec.

regards

vijay

reward points if helpfull