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: 

how can i know the numbers of records in a DB table

Former Member
0 Kudos

Hi,

I need something like describe for itab but for the db tables. Is there some easy way?

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use SELECT COUNT(*)..... Syntax.

Go through this link as well

Regards,

Satish

Message was edited by:

Satish Panakala

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use SELECT COUNT(*)..... Syntax.

Go through this link as well

Regards,

Satish

Message was edited by:

Satish Panakala

Former Member
0 Kudos

<b>sy-tabix</b> will give you the number of records in the table.

Regards

Aneesh.

amit_khare
Active Contributor
0 Kudos

Loop in IntTab and you get the count in sy-tabix.

or

check the keyword DESCRIBE TABLE IntTab LINES lin.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

in SE16, or SE16N, there is a "Number of entries" button. Just press that.

Rob

Former Member
0 Kudos

Hi Mario ,

We can use one system variable<b> SY-DBCNT</b> ,

this system variable used for determine the total no of records in the table.but it's should write into <b>after select ... and endselect</b>. because if u write this variable within select ... and endselect ,it will return current record number.

Regards,

Vijay