Hi All,
I have designed a table control on which i can copy and paste upto a 100 lines.
Currently I am required that once the values are pasted , the scroll comes to the last line pasted.
For this , I tried to use the code in PBO :
describe table it_tc200 lines tc200-lines. ( IT_TC200 is the internal table in which the 100 lines are stored and on which we loop for Table control display.)
SET CURSOR FIELD field LINE tc200-lines.
This code I have written before and after loop at internal table in PBO, but either ways , I have been unsuccessful. The cursor always sets on the first line .
The table control displays 8 lines at a time. So this code works if the number of lines I am pasting is less that 8.
But when I paste more than 8 , cursor shifts to top line.
let us suppose i am pasting 12 lines in one go.
I checked in the debugger for the loop in PBO, the value of tc200-lines remains 12 till the loop reaches sy-tabix 8,
after which the value of line sets to 8 and remains there.
Please help me how to set the cursor to last line in table control.
Thanks and regards,
Inesha