Skip to Content

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.

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

  1. 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 cntrlcurrent_line.
        MODULE get_itab.

  2. Former Member

    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.

  3. 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


Leave a Reply