‎2013 Nov 22 1:02 PM
Hello,
our program uses Function Module 'REUSE_ALV_GRID_DISPLAY' to build ALV output.
But each time when I call this function as user command handler, there is a new window
but I want just to refresh table in ALV without any new windows.
Do you have any idea which method can I use?
p.s. it is not implementation with alv grid object
Thanks and Regards
Vladislav
‎2013 Nov 22 1:50 PM
Hi Vladislav,
In User command you shouldn't call function REUSE ALV GRID DISPLAY but select statement preceding it. Try like this:
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN 'REFR'. " Function REFRESH in GUI-status (you can put what you use)
PERFORM select_data.
rs_selfield-refresh = abap_true. " refresh ALV list !!!
WHEN OTHERS.
RETURN.
ENDCASE.
ENDFORM. "user_command
If you still have problems paste your code.
Regards,
Vladimir
‎2013 Nov 22 1:48 PM
Hi, Vladislav!
Please check this thread: http: //scn.sap. com/message/8174708
Best regards,
George Shlyahov
‎2013 Nov 22 1:50 PM
Hi Vladislav,
In User command you shouldn't call function REUSE ALV GRID DISPLAY but select statement preceding it. Try like this:
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN 'REFR'. " Function REFRESH in GUI-status (you can put what you use)
PERFORM select_data.
rs_selfield-refresh = abap_true. " refresh ALV list !!!
WHEN OTHERS.
RETURN.
ENDCASE.
ENDFORM. "user_command
If you still have problems paste your code.
Regards,
Vladimir
‎2013 Nov 22 3:40 PM
Hi Vladislav ,
CALL METHOD GRID->REFRESH_TABLE_DISPLAY.
must be the method you looking for in the handler.
‎2013 Nov 22 4:11 PM
Hi Vladislav,
You mean to say when a user command is handled you want a completely new report or only the changed value to be refreshed ?
Kindly confirm the above point .
If it is the case of only refreshing changed data you have to two things
1) Use Function Module 'GET_GLOBALS_FROM_SLVC_FULLSCR' to read the changed data.
2) Refresh your ALV screen using passing to w_selfield-refresh = gc_x .
Regards,
Bhushan