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

Table Control Scrolling

Former Member
0 Likes
803

Greetings,

I have used the table wizard within Screen Painter to build a table control on my screen and SAP generated all the code nicely however I can't remember if I choose to the option to allow scrolling. My table control on the screen has sliders on the sides and bottom and has the page down/up buttons at the bottom as delivered by the wizard however my table does not scroll when the initial 20 entries are displayed. Can somebody advise to check whether scrolling is enabled in my control and if it's not how to add it in?

Many thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
3 REPLIES 3
Read only

Former Member
Read only

former_member787646
Contributor
0 Likes
566

Hi

In your program add the following lines and check.

DATA: N_LINES TYPE I.

DESCRIBE TABLE ITAB LINES N_LINES.

TABLE_CONTROL-LINES = N_LINES.

( Now it will show the Vertical Scrollbar for the table control. )

Hope this would help you.

Murthy

Read only

Former Member
0 Likes
566

you can do using the scroll option in the table control

assume that TC is your table control name, you defined using

CONTROLS : TC TYPE TABLEVIEW USING SCREEN 100,

using that we can set , V_SCROLL is the parameter inside the TC, here you can set the option

TC-V_SCROLL = 'X'.