Application Development and Automation 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: 
Read only

Select Query - Optimized Way

Former Member
0 Likes
624

Hello ABAP Gurus..

I dont have much idea about ABAP side but we have a requirement in our project where we need to fetch huge amount of data from backend and display it on the WebDynpro Java screen. I was going through the paging solution provided by SAP so that we can minimize the Java AS server memory and performance issues.

I was wondering if we can get the selective no of records from tables based on pagesize. What I mean here:

Suppose total no of record that I want to display on the WebDynpor screen is say 10000.

PageSize of my webdynpro table = 100 records

Now Can I write a select query (or is there any other way) to get data from backened table pagewise like at first hit I get records from 1 - 100, second hit I should get records from 101 - 200 , third hit from 201 - 300.. and so on till the lat record?

Is it possible? If yes, how can I acheive this?

-Abhinav

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

Yes - check the PACKAGE SIZE addition to the SELECT statement.

You should also search the forum using this criterion and you will get a lot of information.

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
606

Yes - check the PACKAGE SIZE addition to the SELECT statement.

You should also search the forum using this criterion and you will get a lot of information.

Rob

Read only

0 Likes
605

Hey Rob ,

Thanks for quick response.

However, I have a doubt here.

Suppose my PACKAGE SIZE is 100 and I fetch first 100 records in first RFC call, then how do i fetch records from 101 - 200 in the subsequent RFC call?

Also, I guess SELECT .. ENDSELECT has its own performance problems

- Abhinav

Read only

0 Likes
605

The next SELECT will get the next group of records. As I said, see the help. It should answer most of your questions.

Rob