‎2010 Aug 16 1:34 PM
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?
‎2010 Aug 16 1:58 PM
Is there any data in the table control for page 2, if its there then it will scroll.
‎2010 Aug 16 2:36 PM
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.
‎2010 Aug 16 2:46 PM
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.
‎2010 Aug 16 3:05 PM
‎2010 Aug 16 5:18 PM
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
‎2010 Aug 16 5:30 PM
in pbo after the itab is populated
Just do like tbc_ctrl-lines = lines( itab ).
‎2010 Aug 16 5:44 PM
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
‎2010 Aug 17 7:41 AM
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.
‎2010 Aug 17 10:32 AM
Hi donot use that code in flow logic, just after the internal table is populated, next line yu must assign the lines.