10-08-2007 7:14 AM
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.
10-08-2007 7:15 AM
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
10-08-2007 7:16 AM
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
10-08-2007 11:49 AM
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.
...
10-09-2007 7:35 AM
hi,
to enable scrolling do this
describe table itab lines N.
(name of ur tablecontrol)-lines = N.