Application Development 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: 

cl_gui_alv_grid + mc_evt_modified + refresh_table_display = message not displayed

Former Member
0 Kudos

Hi!

I created an editable cl_gui_alv_grid, with event mc_evt_modified.

If I enter a value in the grid and press "Save" - the message blinks and disappears, as if one pressed Enter.

If I press "Save" one more time - message displays correctly.

If I remove from the code below either refresh_table_display or mc_evt_modified - message displays correctly.

Suggest me something...


DATA gr_alvgrid TYPE REF TO cl_gui_alv_grid.

MODULE status_0100 OUTPUT.  
  PERFORM show_alv.
ENDMODULE. 

MODULE user_command_0200 INPUT.
    WHEN 'SAVE'.
      MESSAGE 'Successfully saved' TYPE 'S'.
ENDMODULE.

FORM show_alv.
  IF gr_alvgrid IS NOT INITIAL.
    CALL METHOD gr_alvgrid->refresh_table_display.
    RETURN.
  ENDIF.
  CALL METHOD gr_alvgrid_racct->set_table_for_first_display.
  CALL METHOD gr_alvgrid_dop->register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=>mc_evt_modified.
ENDFORM. 
0 REPLIES 0