2008 Apr 02 11:10 AM
Hi,
I have a ALV grid display report, I want to create a refresh button in the output and suppose if any data is changed in any table used in that report then when we click refresh it should be reflected.
Now for this I have created one push button using pf-status.
I have to do this using method.
then what should I write in the coding.
actually I have done like.
METHOD handle_user_command.
CASE e_ucomm.
WHEN 'REFRESH'. " refresh is Function CODE
here I am submiting my report so tghat it will be execute *again
ENDCASE.
ENDMETHOD. "handle_user_command
But when I am putting breakpoint inside the nmethod and click refresh button , control is not going there.
please suggest how to do.
I know without methods but in OO how to do.
please suggest.
Regards,
sudha
Hi,
I have a ALV grid display report, I want to create a refresh button in the output and suppose if any data is changed in any table used in that report then when we click refresh it should be reflected.
Now for this I have created one push button using pf-status.
I have to do this using method.
then what should I write in the coding.
actually I have done like.
METHOD handle_user_command.
CASE e_ucomm.
WHEN 'REFRESH'. " refresh is Function CODE
here I am submiting my report so tghat it will be execute *again
ENDCASE.
ENDMETHOD. "handle_user_command
But when I am putting breakpoint inside the nmethod and click refresh button , control is not going there.
please suggest how to do.
I know without methods but in OO how to do.
please suggest.
Regards,
sudha
2008 Apr 02 11:12 AM
HI,
Code it as follows:
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
2008 Apr 02 11:17 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |