2

How to refresh ALV Data in SALV on Click Event.

 1 year ago
source link: https://community.sap.com/t5/technology-q-a/how-to-refresh-alv-data-in-salv-on-click-event/qaq-p/13633293
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to refresh ALV Data in SALV on Click Event.

spartans007

Participant

6 hours ago

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.


Recommend

  • 6

    具备自动刷新功能的 SAP ABAP ALV 报表该报表主要结构如下,完整代码见文末。f_call_rfc_wait: 发起异步调用,等待 1 秒钟,来模拟每隔 1 秒刷新屏幕的效果。

  • 1

    Paul Hardy February 8, 2022 3 minute read

  • 13
    • answers.sap.com 2 years ago
    • Cache

    How to print footer in ALV report

    How to print footer in ALV report Hello Everyone, I have seen so many questions were raised on how to print footer in ALV. I checked all answers and did code but still it is not working. Hence I raised t...

  • 8
    • blogs.sap.com 2 years ago
    • Cache

    Display logo in ALV Report.

    Display logo in ALV Report. I am happy to share my very first blog post on SAP ABAP Programming using ALV. In this blog post you will learn how to display logo in your ALV Report. How to Create a Logo

  • 5

    Interactable split-screen ALV (using CL_SALV_TABLE) One ALV with headers and a second with details of selected row – quite a common use-case. And won’t it be practical to have all this in one screen, so users can check det...

  • 4
    • blogs.sap.com 2 years ago
    • Cache

    Uncle Editable ALV Grid

    Uncle Editable ALV Grid 0 2 117 Did you know that CL_SALV_TABLE is not officially editable? An...

  • 101

    select multiple rows in alv of cl_salv_table Skip to Content ...

  • 5
    • blogs.sap.com 1 year ago
    • Cache

    ABAP SALV Share source code

    Introduction Hello everyone, i am an ABAPER who loves sharing. In my previous blogABAP MULTI ALV Share source code . I shared a code r...

  • 8

    Adnan Khan August 22, 2023 2 minute read

  • 4
    • answers.sap.com 1 year ago
    • Cache

    MULTI SELECTION IN REPORT SALV

    How about, I'm new to SAP ABAP, so I turn to you experts. How can I make my selection column of my report multiple as in the selection of Excel, which I have to do to achieve it, so far I have used: DATA: alv_selections TYPE REF TO cl_salv_...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK