Skip to Content
avatar image
Former Member

Displaying the count in ABAP Query

Hi,

I have a requirement wherein i need to display the count of entries at the end of the SAP List Viewer in an ABAP Query.

Could you please suggest me the solution for this.

Thanks,

Aaditya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 17, 2007 at 06:19 AM

    Aditya,

    Use sy-tabix.

    K.Kiran.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kiran,

      As far as i know a standard report is generated at the back-end of the ABAP query. So using SY-tabix will not work.

      If we use ABAP list for display purpose we can set the counter check for any field and we will get the count at the bottom. But this is not working for SAP List Viewer. I need some solution for this.

      Thanks,

      Aaditya

  • avatar image
    Former Member
    Aug 17, 2007 at 06:28 AM

    If I am not wrong you must be using an internal table to get the records and print them.

    Just do one thing use <b>Describe</b> command after filling the internal table.

    syntax:

    DESCRIBE LIST NUMBER OF LINES lin.

    where lin should b an integer.

    lin will then contain the no of lines(records) in the list.

    Please reward if useful.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I am not sure exactly how an ABAP query works. I had created a query through trx SQ01. I have specified joins on four tables. Now i can see only a standard SAP program associated with it.

      As we use internal table in our se38 report they have not used it. The logic is something different and i am not able to get it.