I have an option to choose my required layout from initial screen to display the ALV on next screen. Till here, its executing fine.
But when I come back from screen 2 to screen 1 and change the layout variant to some other value and try to execute, I ALV is displayed with the first layout variant only.
When I come back, I am refreshing the container, ALV Grid and variant variable also.
Thus when I see my passing parameters values to method set_table_for_first_display, I can see that latest (changed) variant is being passed. But why is it still executing with the first variant.