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: 

Error log in grid

Former Member
0 Kudos

Hi,

I have using method ADD_PROTOCOL_ENTRY to add the error message, but how come it will display the error log even though i didn't use the method DISPLAY_PROTOCOL to show the error log????

Appreciate your kind response.

Thanks.

1 REPLY 1

former_member480923
Active Contributor
0 Kudos

This code might help you...


  LOOP AT t_messages ASSIGNING <fs_message>.
*--  Output messages for the selected rows to pop up display ----------*
    CALL METHOD w_message_popup->add_protocol_entry
      EXPORTING
        i_msgid  = <fs_message>-msgid  i_msgty     = <fs_message>-msgty
        i_msgno  = <fs_message>-msgno  i_msgv1     = <fs_message>-msgv1
        i_msgv2  = <fs_message>-msgv2  i_msgv3     = <fs_message>-msgv3
        i_msgv4  = <fs_message>-msgv4  i_fieldname =
                                                  <fs_message>-fieldname
        i_row_id = <fs_message>-row_id.
  ENDLOOP.

  IF sy-subrc = 0.
    CALL METHOD w_dialogbox->set_visible
        EXPORTING visible = cl_gui_control=>visible_true.
    CALL METHOD w_message_popup->display_protocol.
  ELSE.
    CALL METHOD w_dialogbox->set_visible
        EXPORTING visible = cl_gui_control=>visible_false.
  ENDIF.

Hope that Helps

Anirban M.