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

Vertical scrollbar

Former Member
0 Likes
801

How to give vertical scrollbar in table control.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

g_tc_ph_lines is the table control name.

g_tc_ph_lines = 20.

so that it willcreate a scrollbar automatically.

Reward points if usefull.

5 REPLIES 5
Read only

Former Member
0 Likes
710

g_tc_ph_lines is the table control name.

g_tc_ph_lines = 20.

so that it willcreate a scrollbar automatically.

Reward points if usefull.

Read only

Former Member
0 Likes
709

if u want a vertical screoll bar in table control always fill the the lines field with the no:of records in the internal table.

Ex: tc is ur table control.

then if the vale of tc-lines is greater than zero then alwys a vertical scrool bar will appear.

Read only

Former Member
0 Likes
709

VAsudevan,

If your row_size/record size exceeds your tablecontrol size, a vertical/horzontol scroll bars will occur automatically.

Rgds,

Jothi.P

Read only

gopi_narendra
Active Contributor
0 Likes
709

in order to get the vertical scroll bar you just need to write the code below in your PBO of the screen.

data : N type I.

<itab is the internal table being passed to the table control>

<tabctrl> is the name of the table control being created on your screen.

describe table itab lines N.

<tabctrl>-lines = N.

This will dynamically change the number of lines of the table control. If you hardcode it only that many number of lines will be displayed in the table control.

Regards

Gopi

Read only

Former Member
0 Likes
709

before that creat module in flow logic

use describe table itab.

and tc(tabcntrol name)-lines = sy-tfill