‎2009 Mar 17 11:52 AM
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
‎2009 Mar 17 12:10 PM
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
‎2009 Mar 17 11:59 AM
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
‎2009 Mar 17 12:10 PM
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
‎2009 Mar 17 12:10 PM
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
‎2009 Mar 17 12:11 PM
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
‎2009 Mar 17 12:16 PM
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
‎2009 Mar 17 12:48 PM
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 DEFINITIONMETHOD handle_user_command.
CASE e_ucomm.
WHEN 'REFR'.
* --> Modify the table here
CALL METHOD g_alv->refresh_table_display.
ENDCASE.
ENDMETHOD. "handle_user_commandEdited by: Rajvansh Ravi on Mar 17, 2009 1:49 PM