Skip to Content
author's profile photo Former Member
Former Member

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

Hi,

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

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 06:26 PM

    Hi,

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

    Go through this link as well

    whis-is-best-select-count-or-describe-

    Regards,

    Satish

    Message was edited by:

    Satish Panakala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 06:29 PM

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

    Regards

    Aneesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 19, 2007 at 06:32 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 06:34 PM

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

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 11:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.