Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Refresh Alv Grid

Former Member
0 Likes
1,047

Hello,

I am using module pool program using container to display the screen 1.

In the screen 1 only one field is editable where user inputs the value like 'A' or 'B' or 'C' it the save based on the few checks

again popup screen 2 is called with values 'A' or "B' is shown.

When User runs the first time the report using T-code and do some changes in Screen 1 like "A' those are reflecting to Screen 2 properly; when user does not got out of the loop in the list screen 1 again changed the value to 'B" those chnages are not reflected on the screen 2.

But the internal table values are modified correctly.

I used the flush and refresh_table_display also in screen 2 still its display the same value of intital changes of screen 1.

Please let me know your suggestions.

Thanks,

YERP

Hello,

I am using module pool program using container to display the screen 1.

In the screen 1 only one field is editable where user inputs the value like 'A' or 'B' or 'C' it the save based on the few checks

again popup screen 2 is called with values 'A' or "B' is shown.

When User runs the first time the report using T-code and do some changes in Screen 1 like "A' those are reflecting to Screen 2 properly; when user does not got out of the loop in the list screen 1 again changed the value to 'B" those chnages are not reflected on the screen 2.

But the internal table values are modified correctly.

I used the flush and refresh_table_display also in screen 2 still its display the same value of intital changes of screen 1.

Please let me know your suggestions.

Thanks,

YERP

1 REPLY 1
Read only

Former Member
0 Likes
590

I have solved myself.

eg: Container : cust_cont.

Solution: *--> Check for the existence of the grid

if cust_cont is not bound.

else.

*--->Clear the Contents of Grid and Container

CALL METHOD CL_GUI_ALV_GRID>refresh_table_display

CALL METHOD CL_GUI_ALV_GRID->free.

CALL METHOD cust_cont ->free.

CALL METHOD cl_gui_cfw=>flush.

endif.

free : CL_GUI_ALV_GRID, cust_cont .

do the normal process

create custom container

create object

build fieldcatlog

call set table for display

It wil resolve the problem