Application Development 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: 

table control Scrolling to a particular line

Former Member
0 Kudos

Hi,

I have got one table control with some data.

I have a button on the screen for finding particular record in table control.

Once that record is found, i want the table control to be scrolled to that line where record exist.

How to achieve this?

regards,

G@urav.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Gaurav,

Track the record and make the record top line.

eg code:

read table (output table) with key record = user_record.

if sy-subrc = 0 .

table-top_line = sy-tabix.

endif.

4 REPLIES 4

andreas_mann3
Active Contributor
0 Kudos

Hi,

try sth this :

read table itab with key field1 = 'TEST'.

check sy-subrc = 0.

CTRL_TAB-TOP_LINE = sy-tabix.

A.

Former Member
0 Kudos

Hi Gaurav,

Track the record and make the record top line.

eg code:

read table (output table) with key record = user_record.

if sy-subrc = 0 .

table-top_line = sy-tabix.

endif.

Former Member
0 Kudos

Hi gaurav,

Close the thread if your query is answered.

0 Kudos

It works..

thanks

regards,

G@urav

Message was edited by:

Gaurav Gupta