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

Problem with Vertical scroll in table control

Former Member
0 Likes
747

Dear All,

I am facing a problem with table control in module pool program. currently it displays 6 lines, but it does not display the vertical scroll button, even though when I fill data in the six rows and hit enter.

I have set the vertical scroll option on the table control properties also.

Can someone help me by sending some sample code?

Thanks,

Amit Goyal

1 ACCEPTED SOLUTION
Read only

former_member632991
Active Contributor
0 Likes
715

Hi,

In the PAI , where u r selecting the data in table,hereuse this code

Describe table itab lines n.

<b>set the property of table control

tc-lines = n.</b>

Regards,

Sonika

7 REPLIES 7
Read only

dev_parbutteea
Active Contributor
0 Likes
715

i think that the scroll will appear automatically if you exceed the max number of lines that can be displayed in the table control.

Read only

former_member196299
Active Contributor
0 Likes
715

HI Amit ,

If you have already selected the properties of vertical and horizontal scroll bar then no other operations needed .. if the number of rows increases then that of the table control , you will automatically see the Vertical scroll in your table control ..

if still you dont see it then write back ..

Reward if helpful !

Thanks

Ranjita

Read only

former_member632991
Active Contributor
0 Likes
716

Hi,

In the PAI , where u r selecting the data in table,hereuse this code

Describe table itab lines n.

<b>set the property of table control

tc-lines = n.</b>

Regards,

Sonika

Read only

Former Member
0 Likes
715

in PBO do this

describe table itab linesv_lines.

tc-lines = v_lines. "<----


tc is ur table control

Read only

Former Member
0 Likes
715

hi,

Refer code below.

in pai.

DESCRIBE TABLE T_ZDEMO(here u use ur internal table). LINES N.

TC-LINES = N.

Regards

Santosh.

Message was edited by:

Santosh Kumar

Read only

0 Likes
715

Thanks for your help. I added the code in the PAI, but now what is happening is that the code does a scroll but displays same entries. Ideally it should display the new blank lines on scrolling down and filled lines on up.

Can you please help me in this.

Thanks,

Amit

Read only

Former Member
0 Likes
715

In PAI ,set the property for tablecontrol

case sy-ucomm.

when 'FETCH'.

select * from mara into table itab.

tbcl-lines = sy-dbcnt.