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

Scroll Bars in Table Control

Former Member
0 Likes
2,954

Hi,

How do I remove the vertical and horizontal scroll bars in the table control? I would like to use the Pg Up/Down buttons instead.

Thanks,

Mounika.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,897

You can remove the horizontal scrollbar by setting the "Fixed columns" property (in the screen painter) to the full number of columns contained in the table control.

4 REPLIES 4
Read only

Former Member
0 Likes
1,897

Mounika,

You can add or 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.

Regarding the Page up Page down...You need to add some extra code in your program to activvate that. Check the following program for example.

DEMO_DYNPRO_TABCONT_LOOP_AT

or try something like this

try something like:

CASE sy-ucomm.

WHEN 'P+' OR

'P++' OR

'P-' OR

'P--'

CALL FUNCTION 'SCROLLING_IN_TABLE'

EXPORTING

entry_act = tc-top_line

entry_to = tc-lines

last_page_full = 'X'

loops = loops

ok_code = sy-ucomm

overlapping = 'X'

IMPORTING

entry_new = tc-top_line

EXCEPTIONS

no_entry_or_page_act = 1

no_entry_to = 2

no_ok_code_or_page_go = 3

OTHERS = 4

ENDCASE .

Hope this helps

Vinodh Balakrishnan

Read only

Former Member
0 Likes
1,897

Hi,

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.

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.

Reward points if found helpfull..

Cheers,

Chandra Sekhar.

Read only

Former Member
0 Likes
1,898

You can remove the horizontal scrollbar by setting the "Fixed columns" property (in the screen painter) to the full number of columns contained in the table control.

Read only

Former Member
0 Likes
1,897

Hi Mounika,

Please open your table control using screen painter.

Check/ uncheck RESIZING VERTICAL/ HORIZONTAL attributes.