2007 Sep 05 1:46 PM
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.
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
2007 Sep 05 1:51 PM
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>
2007 Sep 05 2:07 PM
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 ....
2007 Sep 05 2:32 PM
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
2007 Sep 12 2:48 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |