Application Development and Automation 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: 
Read only

Problem in table control with scroll bar

Former Member
0 Likes
348

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

1 REPLY 1
Read only

Former Member
0 Likes
325

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.