cancel
Showing results for 
Search instead for 
Did you mean: 

Even though gt_output2 is empty, the previous data is displayed.

yalcin_mete
Participant
0 Kudos

Hi Masters,

There are 2 lines of data in gt_output. If the user selects the 1st line and continues, gt_output2 is filled with 8 data points and the next screen is pressed (call screen 0200).

yalcin_mete_0-1708601179481.png

yalcin_mete_1-1708601262091.png


But if the user selects the 2nd line in gt_output and continues, the previous data appears on the screen even though gt_output2 is not full.
I use free, clear in most of my codes, but the previous data is still printed on the screen.

 

Even though I set gt_output2 to where gt_output2 is printed, it prints the previous data to the screen. (In this part of the code (in the debug) gt_output2 is empty)

yalcin_mete_2-1708601553759.png

 

yalcin_mete_0-1708605512047.pngyalcin_mete_1-1708605539413.png

 

 

Thanks.

 

 

 

Sandra_Rossi
Active Contributor
0 Kudos
Probably you are instantiating the ALV control more than once without emptying the container: several ALV controls in the same container => only the first one is shown.
yalcin_mete
Participant
0 Kudos

I use two different containers 😞

yalcin_mete_1-1708956575733.png

 

 

yalcin_mete_0-1708956554321.png

 

Sandra_Rossi
Active Contributor
0 Kudos
It can be one, two or more, it's not the problem. Probably you are instantiating ONE OF THEM more than once without emptying the container: several INSTANTIATIONS in the same container => only the first one is shown.
yalcin_mete
Participant
0 Kudos
...But the containers of each screen are different, the places where the screen is pressed are different and obvious. When I come to the second screen, even if two containers have been initialized, won't the container I gave to the display method be printed on that screen?
Sandra_Rossi
Active Contributor
0 Kudos
I'm not talking about different containers, I'm only talking about doing twice CREATE OBJECT of the container with an issue. PS: you have said that you are using "FREE", what does it mean, keyword FREE or method FREE?

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor

Try to add a 

call method cl_gui_cfw=>flush.

after the refresh_table_display methd call.