‎2007 Jan 25 8:57 AM
hi,
i am trying to bring the data into the table control,initially 8 records will be disply in the control,but when i scroll the scroll bar it is displying again 8 records .each time when i click on scroll it is getting the same records into table control.how to handle this situvation.
i am using the following code .
MODULE SET_DATA_TO_T_CTRL OUTPUT.
data:wf_lines type i.
clear wf_lines.
DESCRIBE TABLE LT_ZCUPCLASS LINES wf_lines.
TC_ZCUPCLASS-LINES = wf_lines ."+ 1 .
ENDMODULE. " SET_DATA_TO_T_CTRL OUTPUT
‎2007 Jan 25 9:04 AM
Module of vertical scroll bar shud be called after populating the table control as shown below -
For Vertical Scroll BAr on Table Control -
in your PBO event -
LOOP WITH CONTROL tabctrl.
MODULE POPULATE_TABCTRL.
ENDLOOP.
module vertical_scroll. "to get vertical scroll bar
&----
*& Module vertical_scroll OUTPUT
&----
text
----
module vertical_scroll output.
DATA N TYPE I.
describe table it_div lines N.
tabctrl-lines = N.
endmodule. " vertical_scroll OUTPUT
Comment - "it_div is internal table which contains data to be displayed in Table control.