2011 Feb 22 2:40 PM
Hi Expert,
I am facing one proble where the table control is only showing 32 line item in the output display also with vertical scroll bar.
Though the internal table has data more then 32 line item and also in the attribute the checbok for vertical scroll bar is set.
In PBO Module. The system variable "SY-LOOPC" is passing 32 lines only.
Thanks for the help.
Parthow.
2011 Mar 03 9:52 AM
Hi Parthow,
The "sy-loopc" field always holds the value of the lines visible in the table control. Since you have designed your table control in the screen painter to show only 32 lines, obviously "sy-loopc" will have the value 32.
If you have a problem with your vertical scroll bar, try equating the lines of table control to the lines of the corresponding internal table.
For example, if your table control name is "tabctrl" and your internal table's name is "itab" , try this in the PBO of the screen that has the table control,
data :
lv_lines type i.
lv_lines = lines( itab ).
tabctrl-lines = lv_lines.
Hope this is helpful.
cheers,
Vivek.
Hi Expert,
I am facing one proble where the table control is only showing 32 line item in the output display also with vertical scroll bar.
Though the internal table has data more then 32 line item and also in the attribute the checbok for vertical scroll bar is set.
In PBO Module. The system variable "SY-LOOPC" is passing 32 lines only.
Thanks for the help.
Parthow.
2011 Mar 03 9:52 AM
Hi Parthow,
The "sy-loopc" field always holds the value of the lines visible in the table control. Since you have designed your table control in the screen painter to show only 32 lines, obviously "sy-loopc" will have the value 32.
If you have a problem with your vertical scroll bar, try equating the lines of table control to the lines of the corresponding internal table.
For example, if your table control name is "tabctrl" and your internal table's name is "itab" , try this in the PBO of the screen that has the table control,
data :
lv_lines type i.
lv_lines = lines( itab ).
tabctrl-lines = lv_lines.
Hope this is helpful.
cheers,
Vivek.
2011 Mar 03 11:20 AM
Hi,
Ttry this.
In PBO, write folling statement
describe table <ITAB Name> lines <Tablecontrol Name>-lines.Regards,
Mr.A