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 table control roll bar

Former Member
0 Likes
583

Hi people, I need some help. I have on screen a table control, but didnt show the vertical roll bar. The internal table has 210 entries, but only appears 7. How I can put the vertical roll bar? The code of PBO is:

Loop at ti_realoc with control cursor realoc-currentline.

Endloop.

If I set realoc-lines to 210 can solve my problem?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
529

Hi,

Write below code in the PBO

DESCRIBE TABLE itab LINES fill. "No of lines in internal table

realoc-lines = fill.

Hope this helps...

4 REPLIES 4
Read only

Former Member
0 Likes
529

Hi...

go thru the links below.

hope this is same as ur requirement.

Regards,

KP.

Read only

Former Member
0 Likes
529

Hi,

On the screen layout, select the resizing option of vertical, in the table control.

So that should bring the scroll bar. Also now whenever the scroll bar is clicked the PAI gets triggered, so in PAI write the following loop statement.

PROCESS AFTER INPUT.

Loop at lt_table_cont.

MODULE UPDATE_DATA.

endloop.

MODULE UPDATE_DATA INPUT.

MODIFY lt_table_cont INDEX TBL_CONT-current_line.

ENDMODULE.

Read only

Former Member
0 Likes
530

Hi,

Write below code in the PBO

DESCRIBE TABLE itab LINES fill. "No of lines in internal table

realoc-lines = fill.

Hope this helps...

Read only

Former Member
0 Likes
529

try like dis in PAI...

loop at itab.

module modify_tab

endloop

module modify_tab

describe table itab lines tc-liens

if tc-current_line > tc-lines

append itab

else

modify itab index tc-current_line

endmodule