Skip to Content
Author's profile photo Former Member

Stop Module Pool Screen from Scrolling or Jumping to Initial Position

Today, I will share a short tip with you guys. It’s related to Module Pool programming and very handy when used. If you have ever worked on Screen Programming then you would definitely have noted one thing while working on the longer screens (screens with scroll).

It’s very common when you design and develop a screen and it contains scroll then it already jumps to the top when you fire any event at the bottom of the screen or in the middle of the screen. For example you have one module pool screen with multiple sub-screens, text edit control, text-boxes (with labels of course), some combo-boxes and few other controls. Now your screen will definitely have a scroll bar (vertical one).

By default screen jumps to the top when you hit ENTER or fire any other event on the screen. To avoid this we have a simplest solution by following the KISS (Keep it Simple Sir) phenomenon.

For example you are working on screen as shown below:

Problem Screen Jump.png

This above shown screen has a definite vertical scroll and it’s a very large screen and if you trigger any user command anywhere on the screen it will jump to initial state to avoid this follow the following solution.


Here you can see there is a group box named “Settings”. Just check “Hold Scroll Position” and your screen will not give you any awkward behavior like jumping or uneven scroll.

Today, we learnt how to stop Module Pool screen from jumping up when any user command is fired.

Assigned tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      and one more detail for table control  to avoid strange behavior of  scrolling,

      write logic like this

        LOOP AT itab WITH CONTROL cntrl   CURSOR cntrl-current_line.
          MODULE get_itab.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Nice addition Maxim Kazimirchenko


      Author's profile photo Former Member
      Former Member

      Very nice I have faced this issues lot of times next time I would be able to handle this.

      Author's profile photo Syed Ghulam Ali
      Syed Ghulam Ali

      Hi Mansoor,

      Thanks for the Information, i have also seen this happening, when i started reading i thought i will deal with lot of coding but so simple.

      There are many usefull attributes which we fail to see. so this teaches me a lesson.

      Author's profile photo Former Member
      Former Member


      Thanks For sharing

      Author's profile photo fikret somay
      fikret somay


      Thanks for simple solution.


      Author's profile photo Mantri Shekar
      Mantri Shekar


      I Created a Module Pool Program using Table control and Tabstrips but at run time in the respective tabs iam not finding any vertical scroll bars>Can you Please help Me.

      The above defined solutions are not worked for me

      Author's profile photo Former Member
      Former Member

      Sos un genio!! Capo! Ídolo de la vida. Te amo 😘