Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table control get selected line


I am showing data of an internal table using table control.

Table control will show 20 rows at a time.

My internal table has 100 records.

So table control will show records in 20 rows block, when we will hit page down next 20 will come in picture.

Suppose I am showing first 20 rows and doing some changes on 10th row, by using GET CURSOR I will get 10th line as changed one, accordingly I will read my internal table of 100 records for 10th row do the necessary modification and show it in table control on that particular 10th row.

My problem is when I am doing page down next 20 rows will come into picture and in that when I am selecting 10th row which will be actually 30th row of that internal table. So while reading from that 100 records internal table I am getting incorrect data i.e I will get 10th row but actually I need 30th row.

How to solve this problem ?

Any help will be appreciable.

Former Member

top_line + selected_line - 1 will be your selected index

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question