Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to scroll down in table control screen .

Former Member
0 Likes
5,426

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,032

Hi Techies ,

please find snippet :

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 .

18 REPLIES 18
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
4,032

Hello Ajay Sharma.

Is it as custom program?

Read only

0 Likes
4,032

yes it is

Read only

Former Member
0 Likes
4,032

Hi,

Check below thread, may help you:

http://scn.sap.com/message/7374912#7374912

Regards,

Read only

0 Likes
4,032

Hi Chandra ,

i tried what they suggested , but no use .

can you try again ?

Read only

former_member201275
Active Contributor
0 Likes
4,032

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.

Read only

0 Likes
4,032

ok i will try to add

Read only

0 Likes
4,032

Hi Glen ,

Now can you please able to tell ?

Read only

former_member202818
Active Contributor
0 Likes
4,032

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.

Read only

0 Likes
4,032

Hi Sreekanth ,

can you tell now ?

Read only

Former Member
0 Likes
4,033

Hi Techies ,

please find snippet :

Read only

0 Likes
4,032

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

Read only

0 Likes
4,032

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.

Read only

0 Likes
4,032

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.

Read only

0 Likes
4,032

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 ?

Read only

0 Likes
4,032

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

Read only

0 Likes
4,032

Since problem solved..

Your rewards will be helpful for me..

Read only

0 Likes
4,032

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 ?

Read only

4,032

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..