avatar image
Former Member

cl_gui_alv_grid + mc_evt_modified + refresh_table_display = message not displayed

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. 
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers

Skip to Content