‎2009 Oct 12 2:52 PM
Hello All,
I have been facing this issue in a module pool program. I have a main screen with 3 subscreen areas in it. These subscreens areas would point to different subscreens at runtime depending on the some condition. On the third subscreen we have a table control in it.
Now whenever we want to scroll through the records in that table control, first we have to scroll the main screen to the bottom (to display the table control which is at the end) and then scroll the table control. When we scroll the table control data, the main screen cursor again goes to TOP and we again need to scroll it down to the end.
Could anyone throw some light on the issues? Any help would be appreciated.
Thanks,
Shounak
‎2009 Oct 15 7:38 AM
Hello,
This is the common problem and its a standard one.The only alternative i can think of is just position your table control in such a way its always visible on the sub screen.Place it close to the top end of the subscreen.
It will be good if you show them in any transaction ME21N or ME51n etc that this is happening because of the standard functionality provide by SAP.
Regards,
Nabheet Madan
‎2009 Oct 15 10:37 AM
Hello Shounak ,
The possible way to avoide this problem is:
Use Get cusor field <field(f1)> line <line(l1)> in the PAI where you have written code for the table control and
Use Set cursor field <field(f1)> line <line(l1)> in the PBO .
One thing you should remember that these codes must be written inside the loop and endloop of the table control, Both in PBO
and PAI.
Hence you need to scroll the screen only one and when the crusor will reach to the table control it will stay in its position
despite of scroll of the table control .
Thanks & Regards.
Subhash.