How to fetch column values based on Rowid
If I want to get the value of let us say the 1st, 1000th, 2000th entry of a particular field, how should I go about. I tried with the below logic. It did not work for me.
select belnr, row_number () over (order by "BELNR") as ROWN from sapshh.bseg where mod( ROWN, 1000 ) = 0
SAP DBTech JDBC:  (at 94): invalid column name: ROWN: line 2
col 32 (at pos 94)
I am able to fetch the values of the row_numbers of the rows I select however. The below query returns what I need. But when I use row_number in the where condition, it does not work.
select carrid, row_number () over (order by "CARRID") as ROWN from sapshh.spfli
I also tried with $rowed$ and I get the below error:
select "$rowid$" FROM "SAPSHH"."DD02L" WHERE mod("$rowid$", 10000 ) = 0
Could not execute 'select tabname,
"$rowid$" FROM "SAPSHH"."DD02L" WHERE
mod("$rowid$", 10000 ) = 0' in 369 ms 23 µs .
SAP DBTech JDBC: : column store error: search table error:
 Attribute engine function not implemented