Skip to Content
author's profile photo Former Member
Former Member

Refresh in ALV.

Hi all,

there is someone that can help me.

How can i insert the refresh to update an alv output of a custom ABAP report?

Is there any FM that can do it?

Thanks a lots,

Alex.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 01:00 PM

    Hi Alex,

    use this in your alv report.

    DATA:

    lv_ref_grid TYPE REF TO cl_gui_alv_grid.

    CLEAR : gv_tcode.

    *-- to ensure that only new processed data is displayed

    IF lv_ref_grid IS INITIAL.

    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

    IMPORTING

    e_grid = lv_ref_grid.

    ENDIF.

    IF NOT lv_ref_grid IS INITIAL.

    CALL METHOD lv_ref_grid->check_changed_data.

    ENDIF.

    Hope this will help you.

    Regards,

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Alex again,

      Yes you can use that.

      You need to use it in at user command.

      e.g.

      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

      EXPORTING

      i_callback_program = sy-repid

      i_callback_pf_status_set = 'GI'

      i_callback_user_command = 'USER_COMMAND'

      FORM user_command USING lv_ucomm TYPE sy-ucomm ls_selfield TYPE slis_selfield.

      DATA:

      lv_ref_grid TYPE REF TO cl_gui_alv_grid.

      CLEAR : gv_tcode.

      *-- to ensure that only new processed data is displayed

      IF lv_ref_grid IS INITIAL.

      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

      IMPORTING

      e_grid = lv_ref_grid.

      ENDIF.

      IF NOT lv_ref_grid IS INITIAL.

      CALL METHOD lv_ref_grid->check_changed_data.

      ENDIF.

      .

      Hope this will clear your doubt.

      Regards,

      Vijay

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 01:00 PM

    Hi alex,

    this is quite possible.

    see, your refresh button responds to ALV event 'DATA_CHANGED'

    you can define a subroutine for this event and do update the ALV

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.