Application Development 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: 

How to control manually the scrolling of Table Control?

Former Member
0 Kudos
97

Hi,

I have one selection screen which takes me to the next screen (Screen 2) having a table control.In this screen I have some buttons like display, change etc ,by clicking on which it goes to the third screen.Now my problem is even when I try to vertically scroll this table control it is taking me to the third screen which I do not want to happen. Could anyone please help me in this.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
64

hi,

Check this may help you out.

You may be using ok-code values to choose the dispaly or change buttons in the second screen.My suggestion is to clear the sy-ucomm or the ok-code value as soon as the event is triggered.while scrolling the table control there is a chance that the ok-code value will be there inn the sy-ucomm field when you have selected before.

Regards,

soumya.

2 REPLIES 2

Former Member
0 Kudos
65

hi,

Check this may help you out.

You may be using ok-code values to choose the dispaly or change buttons in the second screen.My suggestion is to clear the sy-ucomm or the ok-code value as soon as the event is triggered.while scrolling the table control there is a chance that the ok-code value will be there inn the sy-ucomm field when you have selected before.

Regards,

soumya.

Former Member
0 Kudos
64

In PBO write the following code for scrolling

&----


*& Module set_lines OUTPUT

&----


  • text

----


MODULE SET_LINES OUTPUT.

DATA VLINES TYPE I.

DESCRIBE TABLE ITABCTL LINES VLINES.

TABCTL-LINES = VLINES + 1.

ENDMODULE. " set_lines OUTPUT

This is code for vertical scrollin..

Howevr check ur ok-codes..

Hope dis helps...

reward if it does..