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 scrollbar

Former Member
0 Likes
1,188

How to make scrollbar(Vertical) IN tablecontrol.

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
722

hi,

in the screen , when we create the table control

there is a option for 'resizing'.

there tick both vertical and horzontal.

just right this code in the PBO.

*when we write the blow code in PBO, the scroll bar will come dynamically.

'int_factor' is the internal table.

*number of lines of table control

DESCRIBE TABLE int_factor LINES wf_lines.

tab_control-lines = wf_lines + 1.

hope this will help u.

for any clarifiaction pls mail me.

pls reward points, if this helped u.

regards,

anversha.

anversha.shahul@wipro.com

6 REPLIES 6
Read only

Former Member
0 Likes
722

The vertical scroll bar appears as and when there are more items than the number of visible lines.

If all the lines are filled, then press page down button. then you can see the vertical scrollbar also

Read only

Former Member
0 Likes
722

Hi

It should be created automatically, if you can't see it, try to set the field lines of table control

PROCESS PBO

MODULE SET_ATTR_TC.

LOOP AT ITAB WITH .....

ENDLOOP.

MODULE SET_ATTR_TC.

DESCRIBE TABLE ITAB LINES SY-TABIX.

<TABLE CONTROL>-LINES = SY-TABIX.

ENDMODULE.

Regards,

Ram

Pls reward points if helpful

Read only

anversha_s
Active Contributor
0 Likes
723

hi,

in the screen , when we create the table control

there is a option for 'resizing'.

there tick both vertical and horzontal.

just right this code in the PBO.

*when we write the blow code in PBO, the scroll bar will come dynamically.

'int_factor' is the internal table.

*number of lines of table control

DESCRIBE TABLE int_factor LINES wf_lines.

tab_control-lines = wf_lines + 1.

hope this will help u.

for any clarifiaction pls mail me.

pls reward points, if this helped u.

regards,

anversha.

anversha.shahul@wipro.com

Read only

Former Member
0 Likes
722

Vertical scroll bar is automatic once the line items are filled.

Let me know what exactly u required.

Regards

Read only

Former Member
0 Likes
722

In my table control,Initially while disolaying the screen nothing will be there...it is like VA01 tcode...I have to give the values.

In this it is showing only 5 lines...thats y i need scrollbar.Dynamically it sd come.

Once i complete 1st line it sd be stored in a table like this.

As said by Ram and venersha I did like this..

once i complete 5 tgh line it sd show +5 lines.

Describe table T_Goods lines L_line.

TC_Goods-Lines = L_Line + 5.

Read only

0 Likes
722

hi,

chamge ur code like this

Describe table T_Goods lines L_line.

if l_line MOD 5 = 0.

TC_Goods-Lines = L_Line + 5.

endif.

this will defenetly solve ur problem

regards.

anver