Application Development 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: 

How to make a table scrollable using table control?

Former Member
0 Kudos

Hi,

I'm using Table Control wizard to display an output.I have clicked on he Scrollable checkbox.But my table is still not scrolling.Please help me on this.

4 REPLIES 4

Former Member
0 Kudos

for this u have to write code..

ITABCTL is the name of the table control

write it in PBO of that screen

MODULE SET_LINES OUTPUT.

DATA VLINES TYPE I.

DESCRIBE TABLE ITABCTL LINES VLINES.

TABCTL-LINES = VLINES + 1.

ENDMODULE. " set_lines OUTPUT

gopi_narendra
Active Contributor
0 Kudos

To make the vertical scroll bar active in table control, just write these statements in the PBO module of the screen logic

in the PBO include these lines

<tabctrlname> is the name of the table control placed on the screen.

it_tabctrl is the internal table data that is being passed to the table control.

describe table it_tabctrl lines N.
<tabctrlname>-lines = N.

Regards

Gopi

Former Member
0 Kudos

Hello Saket,

you have to loop on your control like:

  • Declaration of the control

CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.

In the PBO maka a loop like this (i_table is a table where all the data which you want to display is already selected to)

...

LOOP AT i_table WITH CONTROL table_control CURSOR

table_control-current_line.

ENDLOOP.

...

In the PAI you also have to make a loop because otherwise it won't work

...

loop at i_table.

endloop.

...

Former Member
0 Kudos

hi,

to enable scrolling do this

describe table itab lines N.

(name of ur tablecontrol)-lines = N.