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

REUSE_ALV_GRID_DISPLAY REFRESH

Former Member
0 Likes
11,573

Hello,

our program uses Function Module 'REUSE_ALV_GRID_DISPLAY' to build ALV output.

But each time when I call this function as user command handler, there is a new window

but I want just to refresh table in ALV without any new windows.

Do you have any idea which method can I use?

p.s. it is not implementation with alv grid object

Thanks and Regards

Vladislav

1 ACCEPTED SOLUTION
Read only

vladimir_erakovic
Contributor
0 Likes
5,205

Hi Vladislav,

In User command you shouldn't call function REUSE ALV GRID DISPLAY but select statement preceding it. Try like this:

FORM user_command  USING r_ucomm LIKE sy-ucomm

                          rs_selfield TYPE slis_selfield.

   CASE r_ucomm.

     WHEN 'REFR'. " Function REFRESH in GUI-status  (you can put what you use)

       PERFORM select_data.

       rs_selfield-refresh = abap_true" refresh ALV list !!!

     WHEN OTHERS.

       RETURN.

   ENDCASE.

ENDFORM.                    "user_command

If you still have problems paste your code.

Regards,

Vladimir

4 REPLIES 4
Read only

GeorgeShlyakhov
Participant
0 Likes
5,205

Hi, Vladislav!

Please check this thread: http: //scn.sap. com/message/8174708

Best regards,

George Shlyahov

Read only

vladimir_erakovic
Contributor
0 Likes
5,206

Hi Vladislav,

In User command you shouldn't call function REUSE ALV GRID DISPLAY but select statement preceding it. Try like this:

FORM user_command  USING r_ucomm LIKE sy-ucomm

                          rs_selfield TYPE slis_selfield.

   CASE r_ucomm.

     WHEN 'REFR'. " Function REFRESH in GUI-status  (you can put what you use)

       PERFORM select_data.

       rs_selfield-refresh = abap_true" refresh ALV list !!!

     WHEN OTHERS.

       RETURN.

   ENDCASE.

ENDFORM.                    "user_command

If you still have problems paste your code.

Regards,

Vladimir

Read only

asim_isik
Active Participant
0 Likes
5,205

Hi Vladislav ,

CALL METHOD GRID->REFRESH_TABLE_DISPLAY.

must be the method you looking for in the handler.

Read only

Bhushan_hs
Participant
0 Likes
5,205

Hi Vladislav,

You mean to say when a user command is handled you want a completely new report or only the changed value to be refreshed ?

Kindly confirm the above point .

If it is the case of only refreshing changed data you have to two things

1) Use Function Module 'GET_GLOBALS_FROM_SLVC_FULLSCR' to read the changed data.

2) Refresh your ALV screen using passing to w_selfield-refresh = gc_x .

Regards,

Bhushan