Is there an equivalent for the ROW_NUMBER()
function for ABAP programs?
This function is used as follows in SQL:
SELECT ROW_NUMBER() OVER (ORDER BY SomeField) AS Row, *
FROM SomeTable
Where it should return the line number as the first column in the resulting rows (I'm unsure if it will be the line number in the result set or the line number in the source table). I've found that this statement can be used in SAP Business One but can't seem to find an Open SQL equivalent.
Is there one or will I be forced to manually loop over the resulting itab to assign indices?