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

restricting record in the select query

Former Member
0 Likes
592

Is there any way to restrict the number of search (e.g 10) records in the SELECT query ?

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
573

SELECT ... UP TO n ROWS

Is there any way to restrict the number of search (e.g 10) records in the SELECT query ?

3 REPLIES 3
Read only

former_member182670
Contributor
0 Likes
574

SELECT ... UP TO n ROWS
Read only

Former Member
0 Likes
573

Hi,

You can use as below:


select <fieldname> up to 10 rows from <tablename> into itab.

Thanks,

Sriram Ponna.

Read only

0 Likes
573

Hi,

Apart from the above options, you can also use 'Package size 1000' in the select statement to select only 1000 records.

This needs to be used in select endselect statement.

Regards,

Shahu