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: 

Remove vertical scroll bar from table control

Former Member
0 Kudos
3,943

hi,

i had used table control in my application. i want remove vertical scroll bar from table control.

At initial time in table control there is no vertical scroll bar. In my table control lines are dependent on internal table which i was used to fill it.

i was used these code for to set table control lines.

DESCRIBE TABLE IT_RISK_ZINRISEXC LINES EXC_LINE.

TC_RISK_EX-LINES = EXC_LINE .

Initially there is no data in internal table so there is no vertical scroll bar. After getting value i am filling internal table. and there is scroll bar in my table control. but i does not want that.

i was not selected RESIZING-VERTICAL OR -HORIZONTAL.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
854

Hi,

From Scroll Bars in Table Control

You can remove the scroll bar in the table control by switching off horizontal and vertical scrolling in the properties of the table control. The properties can be accessed from the screen painter by double clicking on the table control. Regarding the page up and page down functions, I believe you add those buttons in the screen layout and code for them. You can use the standard function code for the page up and page down functions.

or

You can get rid of the vertical scroll bars by not setting table control lines. This way the user can only see the visible lines of the table control. As for the horizontal scrollbar, just make sure that your table control doesn't contain too many fields.

Regards,

Raj.

5 REPLIES 5

Former Member
0 Kudos
854

hi,

How many entries you are having in the internal table?

Resize the table in screen painter accordingly.

0 Kudos
854

hi,

it is dependent on data. base on value i a filling my internal table.

so it can be dynamic value.

Former Member
0 Kudos
855

Hi,

From Scroll Bars in Table Control

You can remove the scroll bar in the table control by switching off horizontal and vertical scrolling in the properties of the table control. The properties can be accessed from the screen painter by double clicking on the table control. Regarding the page up and page down functions, I believe you add those buttons in the screen layout and code for them. You can use the standard function code for the page up and page down functions.

or

You can get rid of the vertical scroll bars by not setting table control lines. This way the user can only see the visible lines of the table control. As for the horizontal scrollbar, just make sure that your table control doesn't contain too many fields.

Regards,

Raj.

panos1991
Explorer
0 Kudos
854

Hello,

as mentioned in another blog post I recently found, you should set the TC_RISK_EX-LINES to 0. This worked for me.

Regards,
Panos

0 Kudos
854

Hi,

To hide the vertical scroll bar in table control use below code:

TableControl-LINES = 0.

TableControl-v_scroll = ' '.

or

To display the vertical scroll bar in table control use below code:

describe table IT_table lines tableControl-lines.

tableControl-v_scroll = 'X'.