Problem with a Table Control Scroll Down.
I´m working with a table control in which I select one of the many lines the table contains and I move it into a structure, I delete the data of the table control internal table and I move the selected line back into the internal table to show only that record. My problem is the following:
Whenever I have to scroll down to select a line, the selected line doesn´t appear afterwards. I believe that it´s because the scroll bar disappears and keeps on showing the line where the record I selected used to be and because the selected record is added in the fist line of the TC.
Is there any way of avoiding the disappearrance of the vertical scroll bar? Or how can I show the record added in the first line if the TC only displays the position where the selected record used to be?
This is the logic I use to show the single record.
READ TABLE TI_ASIGLOT WITH KEY PUSH = 'X'.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING TI_ASIGLOT TO ST_ASIG.
MOVE-CORRESPONDING ST_ASIG TO TI_ASIGLOT.
ST_ASIG-CPEND = ST_ASIG-GAMNG.
MOVE ST_ASIG-CPEND TO TI_ASIGLOT-CPEND.
Thank´s and regards.