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

Table control

Former Member
0 Likes
468

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
452

try this but not sure

in PBO

MODULE LINES.

MODULE LINES.
  DESCRIBE TABLE ITAB LINES TC-LINES. <" TC is name of table control
ENDMODULE.

5 REPLIES 5
Read only

alex_m
Active Contributor
0 Likes
452

You have to select both Horizontal and vertical scroll while creating table control usinf Wizard.

Read only

Former Member
0 Likes
452

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.

Read only

alex_m
Active Contributor
0 Likes
452

You have to check the code, i believe instead of checking code u can create the table control again using Wizard.

Read only

0 Likes
452

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...

Read only

Former Member
0 Likes
453

try this but not sure

in PBO

MODULE LINES.

MODULE LINES.
  DESCRIBE TABLE ITAB LINES TC-LINES. <" TC is name of table control
ENDMODULE.