2012 Oct 03 1:30 PM
Hi guys,
I am using REUSE_ALV_GRID_DISPLAY to display some editable fields.
In the standard ALV tool bar, I am getting refresh button displayed.
I am using USER_Command routine to get the event for save and refresh.
I am able get the save event, however my program not triggering the REFRESH event.
Please suggest,
Regards,
Raj.
Hi guys,
I am using REUSE_ALV_GRID_DISPLAY to display some editable fields.
In the standard ALV tool bar, I am getting refresh button displayed.
I am using USER_Command routine to get the event for save and refresh.
I am able get the save event, however my program not triggering the REFRESH event.
Please suggest,
Regards,
Raj.
2012 Oct 03 2:48 PM
Hello,
Please use the code in the user command perform.
*&---------------------------------------------------------------------*
*& Form USER_COMMAND
*&---------------------------------------------------------------------*
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE SLIS_SELFIELD.
IF R_UCOMM = 'REFRESH'."Create one button on ALV toolbar with function code REFRESH
RS_SELFIELD-REFRESH = 'X'. "Set this one. It refreshes internal table data with new values
ENDIF.
ENDFORM. "USER_COMMAND
2012 Oct 03 4:05 PM
Hi Raj,
you can create a button as suggested by Srinivas. But it should also work with the standard button.
I had no time to test it in detail.
But you can try: pass the parameter IT_EVENT_EXIT to REUSE_ALV_GRID_DISPLAY. In IT_EVENT_EXIT set UCOMM = '&REFRESH' and AFTER = 'X'. Then the USER_COMMAND routine should be called after the standard ALV coding has processed the refresh event.
Best regards
Thorsten