Problem in GRID display
I have a screen where i have to display data in a grid(Using set_table_for_first_display).
I have a button 'Display' on the application toolbar and two screen input fields.
Assume at the first instance
user fills the input fields as below and presses display
Selection screen option 1: ABC
Selection screen option 1: 123
then the GRID is displaying the data correctly for the table (Note my table is dynamic).
now if the user change the input selection as below
Selection screen option 1: XYZ
Selection screen option 1: 444
then i need to set the grid again with new values(Table will also change if the input option is changed)
This should happen on the same screen 100.
to achive this everytime when the sy-ucomm is display i am freeing the object and creating new istance.
The data getting passed to set_table_for_first_display is correct but the display is showing me the old data
How i can set the display again.