‎2009 Jan 20 11:10 AM
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!
‎2009 Jan 20 11:26 AM
Hi,
Write below code in the PBO
DESCRIBE TABLE itab LINES fill. "No of lines in internal table
realoc-lines = fill.
Hope this helps...
‎2009 Jan 20 11:13 AM
‎2009 Jan 20 11:21 AM
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.
‎2009 Jan 20 11:26 AM
Hi,
Write below code in the PBO
DESCRIBE TABLE itab LINES fill. "No of lines in internal table
realoc-lines = fill.
Hope this helps...
‎2009 Jan 20 11:32 AM
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