cancel
Showing results for 
Search instead for 
Did you mean: 

Switching ALV on a dynpro container -> old ALV remains visible

jrgkraus
Active Contributor
0 Kudos
118

Hello, I have a dynpro with a custom container on it. I consecutively want to display two different ALV grids on this. The flow is like this:

  • call the screen
  • instantiate a container object on the screen container (PBO)
  • instantiate the first alv grid with the container object
  • display the first ALV
  • After the user leaves the display:
  • leave the screen
  • free the container object
  • call the screen again
  • instantiate a new container object on the screen
  • instantiate the second alv grid with the (new) container object
  • display the second ALV

As a result, the first ALV shows up again on my screen where I expected to see the second ALV. What am I missing?

View Entire Topic
0 Kudos

Hi,

Which ALV class are you using? Did you clear the old ALV entries and assigned the second ALV to the container? It looks like you didn't refresh the assignement. Maybe you could provide some coding?