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

Refresh ALV

Former Member
0 Likes
793

Is it possible to put a button in the ALV report so it can be refreshed instead of going back to the selection screen and running the report again.

Is it possible to put a button in the ALV report so it can be refreshed instead of going back to the selection screen and running the report again.

4 REPLIES 4
Read only

dhorions
Contributor
0 Likes
776

You can find how to do that in <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907">this document.</a>

Read only

Former Member
0 Likes
776

you can put a button that calls a form .

This form must take the following code ...

WHEN 'REF1'.

CLEAR ITAB[].

CLEAR ITAB.

RS_SELFIELD-REFRESH = 'X'.

PERFORM GET_DATA.

It is so simple .....

The GET_DATA routine reads from database and fills the internal table that shows to alv ...

Reward points ..... if useful ....

Read only

Former Member
0 Likes
776

Hi,

The following method call is used to refresh the data displayed within an ALV object grid:

CALL method gd_tree->REFRESH_TABLE_DISPLAY.

CALL METHOD gd_tree->set_table_for_first_display

EXPORTING

is_layout = gd_layout

CHANGING

it_fieldcatalog = gd_fieldcat

it_sort = it_sortcat

it_outtab = it_report.

CALL method gd_tree->REFRESH_TABLE_DISPLAY.

CALL METHOD cl_gui_cfw=>flush.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
776

I am using REUSE_ALV