cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh ALV Data in SALV on Click Event.

spartans007
Participant
0 Kudos
1,037

Hello,

I have a requirement when i click the Refresh button The data in ALV report should be refreshed. 

Which is not working can someone Help me with it.

Below is My Code:

CLASS lcl_handel_events IMPLEMENTATION.
METHOD user_command.
DATA: gt_final TYPE STANDARD TABLE OF zfit
SELECT *
FROM zfit
INTO TABLE gt_final.

gt_rows = lr_selections->get_selected_rows( ).

CASE e_salv_function.
* WHEN 'GT'.
* BREAK-POINT.
* ENDLOOP.
lo_gr_alv->refresh( refresh_mode = if_salv_c_refresh=>full ).
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'REFRESH'.
lo_gr_alv->get_selections( ).
lo_gr_alv->refresh( ).
ENDCASE.
ENDMETHOD.
ENDCLASS.

 

 

Accepted Solutions (0)

Answers (0)