‎2007 Jul 16 7:01 AM
‎2007 Jul 16 7:02 AM
g_tc_ph_lines is the table control name.
g_tc_ph_lines = 20.
so that it willcreate a scrollbar automatically.
Reward points if usefull.
‎2007 Jul 16 7:02 AM
g_tc_ph_lines is the table control name.
g_tc_ph_lines = 20.
so that it willcreate a scrollbar automatically.
Reward points if usefull.
‎2007 Jul 16 7:06 AM
if u want a vertical screoll bar in table control always fill the the lines field with the no:of records in the internal table.
Ex: tc is ur table control.
then if the vale of tc-lines is greater than zero then alwys a vertical scrool bar will appear.
‎2007 Jul 16 7:11 AM
VAsudevan,
If your row_size/record size exceeds your tablecontrol size, a vertical/horzontol scroll bars will occur automatically.
Rgds,
Jothi.P
‎2007 Jul 16 7:13 AM
in order to get the vertical scroll bar you just need to write the code below in your PBO of the screen.
data : N type I.
<itab is the internal table being passed to the table control>
<tabctrl> is the name of the table control being created on your screen.
describe table itab lines N.
<tabctrl>-lines = N.
This will dynamically change the number of lines of the table control. If you hardcode it only that many number of lines will be displayed in the table control.
Regards
Gopi
‎2007 Jul 16 7:16 AM
before that creat module in flow logic
use describe table itab.
and tc(tabcntrol name)-lines = sy-tfill