‎2007 Apr 18 3:27 PM
Hi Friends,
I have used table control wizard.
I am using table control to display the data of the internal table. I am getting the data in the table control. But I am unable to scroll table control vertically down, but I can do scroll horizontally it.
Any suggestion how to solve the problem.
Regards,
Line
‎2007 Apr 18 3:54 PM
try this but not sure
in PBO
MODULE LINES.
MODULE LINES.
DESCRIBE TABLE ITAB LINES TC-LINES. <" TC is name of table control
ENDMODULE.
‎2007 Apr 18 3:30 PM
You have to select both Horizontal and vertical scroll while creating table control usinf Wizard.
‎2007 Apr 18 3:33 PM
Thanx for ur reply, but now I have already used my table control can u tell me how to get the vertical scroll bar.
Regards,
Line.
‎2007 Apr 18 3:35 PM
You have to check the code, i believe instead of checking code u can create the table control again using Wizard.
‎2007 Apr 18 5:34 PM
Hi
PROCESS BEFORE OUTPUT.
LOOP ......
---
---
ENDLOOP.
---
MODULE scroll_tctrl.
-
MODULE scroll_tctrl OUTPUT.
DATA : l_lines TYPE sy-tabix.
DESCRIBE TABLE itab LINES l_lines.
IF l_lines < sy-loopc.
tctrl-lines = sy-loopc.
ELSE.
tctrl-lines = l_lines.
ENDIF.
ENDMODULE.
where tctrl is your table control.
Or else, simply add few lines to your table control
ex:
MODULE scroll_tctrl OUTPUT.
tctrl-lines = 100.
ENDMODULE.
reward if helpful...
‎2007 Apr 18 3:54 PM
try this but not sure
in PBO
MODULE LINES.
MODULE LINES.
DESCRIBE TABLE ITAB LINES TC-LINES. <" TC is name of table control
ENDMODULE.