2014 Jul 15 8:48 AM
Hi techies ,
am attaching the table control screen .
am not able to scroll down in that .
and also may i know the reason why am not able to tick the checkbox ?
it seems in disable mode .
2014 Jul 15 1:52 PM
2014 Jul 15 9:02 AM
2014 Jul 15 9:30 AM
2014 Jul 15 9:08 AM
2014 Jul 15 1:53 PM
Hi Chandra ,
i tried what they suggested , but no use .
can you try again ?
2014 Jul 15 9:35 AM
It has been wrongly declared that is why. Would be good if you could attach more relevant screenshots. Do yo not have a snip tool to attach screenshots, rather than these pics you take? i.e. go to start -> all programs -> accessories -> snipping tool.
2014 Jul 15 9:42 AM
2014 Jul 15 1:53 PM
2014 Jul 15 10:02 AM
Hi,
Do you have a code code for setting top_line for table control?
Check its logic..
For check box issue make it input enable using screen painter.
2014 Jul 15 1:54 PM
2014 Jul 15 1:52 PM
2014 Jul 15 2:01 PM
Hi,
What is the use of g_functab_lines = sy-loopc?
Not all modules are visible.
Yo can check the settings for table control in debugging...
Put a break point at loop in PBO... double click on table control name. Observe the values coming.. in top_line.
Regards
Sreekanth
2014 Jul 15 3:46 PM
Hi srikanth ,
i have debuged , TOP_LINE is handled in my program .
and i have seen top_line value it is always '1' . and sy-loopc is the table control no.of fileds to display.
actually my itab has 14 emtries but dont know why this sy-loopc is taking only value '12' ,
i tried changing it in debug to '14' but same its displaying '12' rows in the output.
and may i know what is top_line ?
can you please look code snippet once again .
its urgent issue?
Thanks.
2014 Jul 16 5:09 AM
Hi Ajay..
top_line is the index of record in internal table which will get displayed as the first record in table control.
say... my internal table has 30 records and table control can display 10 records at a time,
if top_line is equal to 22..
then u can see the 22th record as the first record get displayed in table control and the vale of system variable sy-loopc = 9 (records 22-30). sy-loopc is the number of records showing in the table control.
Since you table control can display 12 records at a time.. and in your case it displayed 12 records each time that is why u r getting loopc value as 12.
What are you doing in module functab_init?
Are you clearing table control variable?
make sure that u r not handling top_line parameter of table control.
2014 Jul 17 10:54 AM
Hi Sreekanth ,
nicely explained .
yes in functab_init , am REFRESHING table control .
nowi commented that and scroll bar is working .
but may i know why it was the reason .
and to increase the table control lines in output we need to pass LINES ?
2014 Jul 17 11:23 AM
Hi Ajay,
It was the only reason, ever i have faced...
And other possibility is regarding tbc-lines, but i saw that you were doing this using describe table.
Sometimes the table control will not show all the records in internal table(case while changing number of records in internal table each time )..
At this case you have to set the lines in TBC.. using
describe table itab lines tbc-lines.
tbc-lines is very useful, if you want to enable a new blank line in table control, just do this
tbc-lines = tbc-lines + 1.
Explore all properties of table control it is very useful.
I think, i could solved your issue.. thanks for your appreciation.
Regards
Sreekanth
2014 Jul 17 11:34 AM
2014 Jul 17 12:53 PM
Hi Sreekanth .
Great dear , Thanks for your help .
i solved by commenting the REFRESH TABLE CONTROL Line .
But can you please let me know why that REFRESH LINE is making scrollbar issue ?
and one more issue is that there are 14 records as of now in ITAB , and user wants those 14 to be displayed . But only 12 are displaying in TBCL .
i tried setting TBCL-LINES = 99 before loop and in the loop , but not working .
Can you please help me out in this situation ?
2014 Jul 17 1:14 PM
REFRESH line will clear the table control property.
In you case, while you trying to scroll, program control come to PAI, here the correct value is will get assign to top_line,
but in PBO u clearing this and it set to default value 1, that is why even if you scrolled u r still in the same view(unable to scroll).
For that you have to increase the size of table control in screen painter..
The LINES is not for that, LINES should be equal to number of records in internal table..