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

TableControl Scrollbar

Former Member
0 Likes
613

Hi people!

I have a short question. How do I make the horizontal scrollbar work when using a TableControl in a DynPro?

I have an internal table (itab) which contains 58 entries but only the first 25 are displayed (due ti screen limitations) in the table control. When I click on the scrollbar, nothing happens.

Any ideas?

Thanks for your help!

Regads,

Alex

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
547

Try using the option "control table (med. wizard) on the screen painter.

it's more easy

4 REPLIES 4
Read only

Former Member
0 Likes
548

Try using the option "control table (med. wizard) on the screen painter.

it's more easy

Read only

Former Member
0 Likes
547

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.

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.

From [http://sap.ittoolbox.com/documents/popular-q-and-a/scroll-bars-in-table-control-2442]

Reward points if usefull

Regards

Fareedas

Edited by: Fareeda Tabassum S on Apr 16, 2008 5:33 PM

Read only

Former Member
0 Likes
547

just u initalize the some records in internal table.

like sy-tfill = 30. (records)

Read only

Former Member
0 Likes
547

You have to set the table control lines at the PBO,then the scroll bar will come automatically.

ie in PBO.

Module describe.

Module Describe.

Describe table <ITAB> lines <tbctrl>-lines.

endmodule.

Here

<ITAB> -internal table used for populating table control.

<tbctrl>- name of table control