02-08-2007 11:20 AM
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.
02-08-2007 12:18 PM
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.
02-08-2007 12:11 PM
Hi,
try sth this :
read table itab with key field1 = 'TEST'.
check sy-subrc = 0.
CTRL_TAB-TOP_LINE = sy-tabix.
A.
02-08-2007 12:18 PM
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.
02-08-2007 12:33 PM
02-09-2007 3:23 AM
It works..
thanks
regards,
G@urav
Message was edited by:
Gaurav Gupta