2008 May 14 8:29 AM
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.
2008 May 14 12:25 PM
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.
2008 May 14 10:42 AM
hi,
How many entries you are having in the internal table?
Resize the table in screen painter accordingly.
2008 May 14 10:45 AM
hi,
it is dependent on data. base on value i a filling my internal table.
so it can be dynamic value.
2008 May 14 12:25 PM
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.
2021 May 27 3:27 PM
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
2022 Jun 10 3:57 PM
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'.