2007 May 21 6:07 PM
Hello,
I was wondering if it was possible to limit the amount of lines selected from a table.
I tried select top n, as it works in SQL, but SAP doesn 't support this syntax..
Is this doesn't work, is there any other way to limit the amount of data selected ?
2007 May 21 6:10 PM
Hi,
Use select upto n rows
Select * from MARA into table ITAB UPTO 10 rows.
select top 10 rows in table.
Regards
SAB
Hello,
I was wondering if it was possible to limit the amount of lines selected from a table.
I tried select top n, as it works in SQL, but SAP doesn 't support this syntax..
Is this doesn't work, is there any other way to limit the amount of data selected ?
2007 May 21 6:08 PM
2007 May 21 6:10 PM
Hi,
Use select upto n rows
Select * from MARA into table ITAB UPTO 10 rows.
select top 10 rows in table.
Regards
SAB
2007 May 22 7:42 AM
Hi everyone,
thanks for the answers. It is noted in my documentation.
points awarded !
2008 Apr 28 10:41 PM
I have a similiar question: is there some keyword equivalent to the SQL LIMIT keyword?
I need to retrieve an arbitrary range of rows (rows from row no. a to row no. b, a <b ) to implement result set paging.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |