‎2008 Jan 26 2:04 PM
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.
‎2012 Feb 21 2:40 PM
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.
‎2008 Jan 26 3:43 PM
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
‎2008 Jan 27 9:11 AM
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.
‎2012 Feb 21 2:40 PM
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.
‎2012 Feb 22 12:35 PM
Hi Mounika,
Please open your table control using screen painter.
Check/ uncheck RESIZING VERTICAL/ HORIZONTAL attributes.