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

Scrolling Problems with table control

Former Member
0 Likes
1,146

Hello Friends,

I habe created one Dynpro with four subscreens. All the screens work perfect but not the third one. In the third screen i show a table. this table will be filled when a button is pressed. This occurs normally and The table is filled . But here begin the not nice things. I see the scroll button but i can not scroll . the scroll button stays in the upper part.

How do i fix this scrolling problem?

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,029

Is there any data in the table control for page 2, if its there then it will scroll.

Read only

0 Likes
1,029

Yes there is a control table. the internal table ist also filled. The table contains more data than is showed. But i can not scroll at all.

Read only

0 Likes
1,029

Some questions,

Are you refereshing the control in PBO ?

Did you create the TBC via wizard, if so did you mark the check box for scrool option while creating ?

Did you set the property lines of table control to the total number of records in the internal table ?

Did you check whether the property v_scroll of the TBC is set as X.

Read only

0 Likes
1,029

Ok good . I am working on it . Lets see

Read only

0 Likes
1,029

Hello,

i checked the table control is refreshed,

i do not remember if when creating via wizard i checked the check box option. How do i proof it ?

Where do i check the LINES of my table control ? how do i match it to the internal table?( i founded in element list)

and finally where do i check the property v_scroll of the tbc setted as X?.

Sorry but i am new int Dynpros.

I would appreciate if you can extend your suggestions

Thank you very much

Alfito

Read only

0 Likes
1,029

in pbo after the itab is populated

Just do like tbc_ctrl-lines = lines( itab ).

Read only

0 Likes
1,029

I did like this . so you can have a better sight of my programm . It looks like this:

*************************************************************************************

process before output.

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'RT_AKTUELL'

module rt_aktuell_init.

*&SPWIZARD: MODULE RT_AKTUELL_CHANGE_TC_ATTR.

*&SPWIZARD: MODULE RT_AKTUELL_CHANGE_COL_ATTR.

loop at g_rt_aktuell_itab

into g_rt_aktuell_wa

with control rt_aktuell

cursor rt_aktuell-current_line.

  • module tabcontr_rt_aktuell_display.

*&SPWIZARD: MODULE RT_AKTUELL_CHANGE_FIELD_ATTR

module rt_aktuell_move.

module rt_aktuell_get_lines.

endloop.

rt_aktuell_ctrl-lines = lines(g_rt_aktuell_itab) .

****************************************************************************************

the table control is rt_aktuell

the table g_rt_aktuell_itab.

i wrote the last line as you suggested but the debugger does not recognize it.

Thanks.

Alfito

Read only

0 Likes
1,029

I have tried already almost all. Ich think that i will create a newe table added to the screen so i will see how to resolve my problem.

Maybe i deleted something that i forgot.

Thanks a lot friends.

Read only

0 Likes
1,029

Hi donot use that code in flow logic, just after the internal table is populated, next line yu must assign the lines.