2008 Aug 27 12:17 PM
Hi Gurus,
I am trying to use a Refresh button on an ALV report output.
Whenever I click on the refresh button it again calls all the select queries.
In that select query I am using one function module 'STATUS_READ'.
This fm is giving the same result that it was giving when the report is run for the first time even though the value is changed now.
If I execute the program again then program gives the correct output.
Please try to resolve this issue.
Regards,
Amit Kumar Singh
Hi Gurus,
I am trying to use a Refresh button on an ALV report output.
Whenever I click on the refresh button it again calls all the select queries.
In that select query I am using one function module 'STATUS_READ'.
This fm is giving the same result that it was giving when the report is run for the first time even though the value is changed now.
If I execute the program again then program gives the correct output.
Please try to resolve this issue.
Regards,
Amit Kumar Singh
2008 Aug 27 12:21 PM
Hi,
pls try this
gcc_grid_dmhdr is ALV grid object
Refresh Display
CALL METHOD gcc_grid_dmhdr->refresh_table_display.
Edited by: Gowri Sankar Dinakaran on Aug 27, 2008 1:21 PM
2008 Aug 27 12:21 PM
Use below parameter in user_command
rs_selfield-refresh = 'X'
Regards,
Kumar
2008 Aug 27 12:23 PM
Hi,
1. Remove the standard 'REFRESH' button from the tool bar.
2. Give ur custom Button 'REFRESH' in tool bar.
2. Check the user commnad functionality.
3. ADd below code in ALV
*------------------------------------------------------------------*
* FORM USER_COMMAND *
*------------------------------------------------------------------*
* --> R_UCOMM *
* --> RS_SELFIELD *
*------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN 'REFRESH'.
rs_selfield = 'X'.
ENDCASE.
ENDFORM.Rgds
Anversha
2008 Aug 28 6:01 AM
Hi all,
Thanks for all your support.
Now my problem has been resolved.
I used FM 'STATUS_BUFFER_REFRESH' . This refresh the buffer memory.
Regards,
Amit Kumar Singh