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

Avoiding scroll in program

Former Member
0 Likes
431

Hi there.

I've got the following issue.

I've developped a custom infotype with a huge dynpro (lots of fields).

The thing is that i have a Table Control within this dynpro (at the bottom), and a button field above it, which i use to load data in the Table Control.

When i press the button, everything works fine, the data is loadead an the control shows up with its data, but... the dynpro scrolls up, forcing me to manually scroll down to show it again...

Is there any way to avoid this?

Thanks a lot.

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
406

Dear Henry,

Use this URL https://www.sdn.sap.com/irj/scn/advancedsearch?query=avoidingscrollin+program&cat=sdn_all.

Regards,

Flavya

Read only

0 Likes
406

Hi

I've finally figured out how to solve this problem, it was really simple: when i press the button, by default, cursor's position is set within the top element of the dynpro, that's why the screen scrolls up, so a very easy way to avoid this is setting the current cursor within an element of the bottom of the dynpro.

I've tried this and looks like the problem is solved.

Regards Boborolos!!!!!!!

Read only

Former Member
0 Likes
406

Try this

tab_control-current_line = 1. this may work.

Make the hight of the table control as hight as possible

Hope this helps.

Regards

Bikas