2007 Apr 25 12:28 PM
Dear All,
I am facing a problem with table control in module pool program. currently it displays 6 lines, but it does not display the vertical scroll button, even though when I fill data in the six rows and hit enter.
I have set the vertical scroll option on the table control properties also.
Can someone help me by sending some sample code?
Thanks,
Amit Goyal
2007 Apr 25 12:38 PM
Hi,
In the PAI , where u r selecting the data in table,hereuse this code
Describe table itab lines n.
<b>set the property of table control
tc-lines = n.</b>
Regards,
Sonika
Dear All,
I am facing a problem with table control in module pool program. currently it displays 6 lines, but it does not display the vertical scroll button, even though when I fill data in the six rows and hit enter.
I have set the vertical scroll option on the table control properties also.
Can someone help me by sending some sample code?
Thanks,
Amit Goyal
2007 Apr 25 12:33 PM
i think that the scroll will appear automatically if you exceed the max number of lines that can be displayed in the table control.
2007 Apr 25 12:37 PM
HI Amit ,
If you have already selected the properties of vertical and horizontal scroll bar then no other operations needed .. if the number of rows increases then that of the table control , you will automatically see the Vertical scroll in your table control ..
if still you dont see it then write back ..
Reward if helpful !
Thanks
Ranjita
2007 Apr 25 12:38 PM
Hi,
In the PAI , where u r selecting the data in table,hereuse this code
Describe table itab lines n.
<b>set the property of table control
tc-lines = n.</b>
Regards,
Sonika
2007 Apr 25 12:38 PM
in PBO do this
describe table itab linesv_lines.
tc-lines = v_lines. "<----
tc is ur table control
2007 Apr 25 12:39 PM
hi,
Refer code below.
in pai.
DESCRIBE TABLE T_ZDEMO(here u use ur internal table). LINES N.
TC-LINES = N.
Regards
Santosh.
Message was edited by:
Santosh Kumar
2007 Apr 25 1:44 PM
Thanks for your help. I added the code in the PAI, but now what is happening is that the code does a scroll but displays same entries. Ideally it should display the new blank lines on scrolling down and filled lines on up.
Can you please help me in this.
Thanks,
Amit
2007 Apr 25 2:12 PM
In PAI ,set the property for tablecontrol
case sy-ucomm.
when 'FETCH'.
select * from mara into table itab.
tbcl-lines = sy-dbcnt.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |