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 the window

Former Member
0 Likes
784

Hello Friends,

there is a window with two buttons. If you always

click at one of the buttons according to the button there might be displayed the

correctly ALV output table

In my case nothing changes when I click on the button. I have always the

same output although the program performs the coding. I can see that

in the debugger.

Did I forget to call function to refresh the window. Or what else can

the reason be

Thx in advance for your support

Regards

sas

1 ACCEPTED SOLUTION
Read only

RoySayak
Active Participant
0 Likes
752

Hi,

*--- ALV Grid instance reference
DATA : gr_alvgrid TYPE REF TO cl_gui_alv_grid .

CALL METHOD gr_alvgrid->refresh_table_display.

Best Regards,

Sayak

6 REPLIES 6
Read only

Former Member
0 Likes
752

Hi,

Could you please show your code? That may give you a great help...

I think you could have missed to capture the events or sy-ucomm value...

Please provide the help for better assistance...

Best Regards,

Suresh

Read only

RoySayak
Active Participant
0 Likes
753

Hi,

*--- ALV Grid instance reference
DATA : gr_alvgrid TYPE REF TO cl_gui_alv_grid .

CALL METHOD gr_alvgrid->refresh_table_display.

Best Regards,

Sayak

Read only

Former Member
0 Likes
752

Hi

have u captured button click event through pfstatus , then in screen ' PAI you have to write

if sy-ucomm= ' button1'.

write ur logic

endif.

Thanks,

Smita

Read only

Former Member
0 Likes
752

Hi Sas,

Which method are you using for displaying ALV ?

For example in the object model after changes to the internal table of ALV you have to call the method GR_SALV_TABLE->REFRESH( ).

Regards

Read only

Former Member
0 Likes
752

So I want the same ALV with the same call again, only now with another output table.

where exactly must this line be implemted in the coding

CALL METHOD gr_alvgrid->refresh_table_display.

I am using :

CALL METHOD ref_alv->set_table_for_first_display

Regards

sas

Read only

0 Likes
752

Hi Sas,

Just try this

You may have coded for some user command to be handled

CLASS lcl_event_receiver DEFINITION.

      PUBLIC SECTION.

        handle_user_command
            FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm.

ENDCLASS.                    "lcl_event_receiver DEFINITION

METHOD handle_user_command.

CASE e_ucomm.

WHEN 'REFR'.

* --> Modify the table here

CALL METHOD g_alv->refresh_table_display.

ENDCASE.

ENDMETHOD.                           "handle_user_command

Edited by: Rajvansh Ravi on Mar 17, 2009 1:49 PM