Application Development 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: 

number of records in a standard table

Former Member
0 Kudos

Hi,

How to find number of records, without fetching them into a internal table?

is there any command for that?

I want to know the number of records of a standard table in a report.

Thanks

7 REPLIES 7

Former Member
0 Kudos

In the data browser (SE16) just press the 'number of entries' button.

Rob

0 Kudos

I want to know in my Report, the number of entries.

0 Kudos

SELECT COUNT ...

Rob

0 Kudos

hmm

null

Former Member
0 Kudos

DATA: l_count TYPE i.

SELECT COUNT(*) AS l_count
  INTO l_count
  FROM dd02l.

WRITE l_count.

Former Member
0 Kudos

Hi,

If you want to know the number of records in your internal table after select statement.

You can use the below statement.

data : wa_lines like sy-tfill.

DESCRIBE TABLE itab LINES WS_LINES.

In wa_lines you will have the number of records.

If you want to know the number of records from standard itself.

You can use below :

select count(*) from table into variable
endselect.

Thanks,

Sriram Ponna.

Former Member
0 Kudos

Hi,

If you want to know the number of records in your internal table after select statement.

You can use the below statement.

data : wa_lines like sy-tfill.

DESCRIBE TABLE itab LINES WS_LINES.

In wa_lines you will have the number of records.

If you want to know the number of records from standard itself.

You can use below :

select count(*) from table into variable
endselect.

Thanks,

Sriram Ponna.