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

ALV report

Former Member
0 Likes
630

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

4 REPLIES 4
Read only

Former Member
0 Likes
612

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

Read only

Former Member
0 Likes
612

Use below parameter in user_command

rs_selfield-refresh = 'X'

Regards,

Kumar

Read only

anversha_s
Active Contributor
0 Likes
612

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

Read only

0 Likes
612

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