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

Vertical scroll bar not appearing inTable Control

Former Member
0 Likes
592

Hi Expert,

I am facing one proble where the table control is only showing 32 line item in the output display also with vertical scroll bar.

Though the internal table has data more then 32 line item and also in the attribute the checbok for vertical scroll bar is set.

In PBO Module. The system variable "SY-LOOPC" is passing 32 lines only.

Thanks for the help.

Parthow.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

Hi Parthow,

The "sy-loopc" field always holds the value of the lines visible in the table control. Since you have designed your table control in the screen painter to show only 32 lines, obviously "sy-loopc" will have the value 32.

If you have a problem with your vertical scroll bar, try equating the lines of table control to the lines of the corresponding internal table.

For example, if your table control name is "tabctrl" and your internal table's name is "itab" , try this in the PBO of the screen that has the table control,

data :

lv_lines type i.

lv_lines = lines( itab ).

tabctrl-lines = lv_lines.

Hope this is helpful.

cheers,

Vivek.

Hi Expert,

I am facing one proble where the table control is only showing 32 line item in the output display also with vertical scroll bar.

Though the internal table has data more then 32 line item and also in the attribute the checbok for vertical scroll bar is set.

In PBO Module. The system variable "SY-LOOPC" is passing 32 lines only.

Thanks for the help.

Parthow.

2 REPLIES 2
Read only

Former Member
0 Likes
534

Hi Parthow,

The "sy-loopc" field always holds the value of the lines visible in the table control. Since you have designed your table control in the screen painter to show only 32 lines, obviously "sy-loopc" will have the value 32.

If you have a problem with your vertical scroll bar, try equating the lines of table control to the lines of the corresponding internal table.

For example, if your table control name is "tabctrl" and your internal table's name is "itab" , try this in the PBO of the screen that has the table control,

data :

lv_lines type i.

lv_lines = lines( itab ).

tabctrl-lines = lv_lines.

Hope this is helpful.

cheers,

Vivek.

Read only

Former Member
0 Likes
533

Hi,

Ttry this.

In PBO, write folling statement

describe table <ITAB Name> lines <Tablecontrol Name>-lines.

Regards,

Mr.A