Skip to Content
author's profile photo Former Member
Former Member

cl_gui_alv_grid + mc_evt_modified + refresh_table_display = message not displayed


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.

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

FORM show_alv.
  IF gr_alvgrid IS NOT INITIAL.
    CALL METHOD gr_alvgrid->refresh_table_display.
  CALL METHOD gr_alvgrid_racct->set_table_for_first_display.
  CALL METHOD gr_alvgrid_dop->register_edit_event
      i_event_id = cl_gui_alv_grid=>mc_evt_modified.
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.