10-30-2007 9:41 AM
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.
10-30-2007 11:21 AM
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.