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

Refreshing ALV grid

S0025444845
Active Participant
0 Likes
458

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

2 REPLIES 2
Read only

Former Member
0 Likes
439

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

Read only

0 Likes
439

Hi,

where to write this code?

regards,

Sudha