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: 

Displaying the count in ABAP Query

Former Member
0 Kudos

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

4 REPLIES 4

kiran_k8
Active Contributor
0 Kudos

Aditya,

Use sy-tabix.

K.Kiran.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.