Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delete UI Messages

Hi Experts

I have a scenario where I've to suppess unwanted Warning messages which are displayed while I create a Related Contact on Account Identification Screen in IC_AGENT business role.

I'm using the following piece of code but its not doing any good.

lr_msg_srv = cl_bsp_wd_message_service=>get_instance( ).

*Retrieve the current messages
    lr_msg_srv->collect_messages( iv_message_type = if_genil_message_container=>mt_all
                                       iv_delete_read_messages = abap_true ).
    CALL METHOD lr_msg_srv->get_messages
        iv_delete_read_messages = abap_true.

If anybody has experienced and solved such issue, please share.

Thanks in advance



Helpful Answer

Not what you were looking for? View more on this topic or Ask a question