cancel
Showing results for 
Search instead for 
Did you mean: 

Scrolling table control

taher123
Explorer
0 Kudos
73

Hi,

I have a screen that contains a table, which should be populated by default when the screen is opened. So, I put my selection logic in the PBO event, and it retrieves and displays the data when the screen opens.

But the problem is that when I scroll up or down in the table, it navigates back to the previous screen.

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor
0 Kudos

Debug your code and you'll see what happens.

Probably that pressing the Enter key has the same effect (leaving the screen). Check that the dynpro attribute "next screen" is not blank/zero (i.e. leaves the screen). The attribute "next screen" of one screen NNNN is usually to be the same screen number NNNN. A change of the next screen may also happen at runtime via SET SCREEN or LEAVE TO SCREEN.

For your information, scrolling in a table control does automatically 2 things:

  1. Change the TOP_LINE number in your CONTROLS-based variable, to the new top line
  2. Simulate pressing the Enter key