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
      EXPORTING
        iv_delete_read_messages = abap_true.
If anybody has experienced and solved such issue, please share.
Thanks in advance
Vishal

Hi Nisha,
You can refer to the following code:
data:  lr_core         TYPE REF TO cl_crm_bol_core,
          lr_mcm         TYPE REF TO cl_crm_genil_mess_cont_manager.
lr_core = cl_crm_bol_core=>get_instance( ).
lr_mcm = lr_core->get_message_cont_manager( ).
lr_mcm->reset( ).
This code will delete all the messages in the global container. You also might like to check note # [1334939|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1334939]
I hope this helps.
Thanks
Vishal

Similar Messages

  • How to delete the messages in the purges folder?

    if the mailbox is enabled the single item recovery, then the messages would move from deletion folder to the purges folder After running the following script,
    Search-Mailbox dave -searchdumpsteronly
    -deletecontent
    so my question is how to delete the messages in the purges folder with some script or retention policy?
    Please click the Mark as Answer button if a post solves your problem!

    Thank you all,
    As the mailbox is enabled single item recovery.
    I just want to make the items neither in deletion folder, nor in purges folder.
    So I think there are two ways to achieve this.
    Method 1,disabled the single item recovery. then delete the items in deletion folder ,so it wouldn't enter to the purges folder, it just deleted permanently. then enable the single item recovery
    Method 2,delete the items in deletion folder,then the messages move to the purges folder, then delete the messages in purges folder.
    the Method 1 is not so good ,as it need to disable the single item recovery firstly, then enable  single item recovery .
    So I want to use the Method 2
    Please click the Mark as Answer button if a post solves your problem!

  • How can I delete saved messages from my iphone 5s to be able to update it?

    I have needed to update my Iphone 5s from the past 2 updates but it says that I have 4.2 GB of saved messages.  I don't know where to go to delete them.  I delete regular messages from my phone daily so I'm not sure what is being saved and where.
    Thanks!

    You would need to set up your mail account as a POP account instead of IMAP.
    I'm not sure if Hotmail/msn offers that -

  • How do you delete voicemail messages from iphone 5s

    I'm trying to delete voicemail messages from iphone 5s.  Based on visiting previous discussions on this subject, I've tried "resetting network settings" and "turning airport mode ON, deleting messages, then turning airport mode OFF" -- to no avail. I'm receiving an alert that I've reached capacity...please assist. I run my business on my iPhone and right now I'm missing opportunities.
    Thanks in advance for your expediency.

    From the iPhone User Manual:

  • HT4528 How do you delete 'SAVED MESSAGES' on iPhone 5s

    How do you delete 'SAVED MESSAGES' on iPhone 5s?  It's taking up about 10GB of 32 GB capacity.

    After much searching on the web and reading many (sometimes amusing) posts on this topic here is what I have found.
    In Settings>General>Usage my saved mesages were using 3.2Gb and no apparently immediate way of deleting them.
    However as the good book says "seek and ye shall find".
    SO this is where I went:
    Settings>iCloud>Account> then scroll down to ADVANCED and select Mail; again scroll down to the bottom and select Advanced and yet again scroll to the bottom (well at least to DELETED MESSAGES) and tap on the line called Remove.
    Here at last you will find a setting that enables you to select the period after which iOS will remove your deleted messages.
    The shortest period is one day so you will haev to wait 24 hours to finally have that memory back but it should work and is a nice feature in iOS although it is well burried!!

  • Iphone deletes sent messages on my mac

    Hi guys - I have searched on this subject but to no avail.
    When I sync my iPhone with my mac, it deletes all my messages from my Sent Folder on both my Mac and .mac and only keeps the ones on my iPhone (approx 34 messages)
    This means if I want to search for an old email that I have sent from my Mac - I cannot find it which could be disastrous!
    Is there anyway that I can set it so it doesn't delete messages from my mac or do I just have to turn off syncing mail?

    I am sure that your iPhone has absolutely nothing to do with this. Your iPhone and iTunes does not sync messages in Mail. All that is sync'd is simply the account information (name, type, password).
    What is more likely happening, is that you have set Mail to not retain sent messages locally, and the server side with sent messages to be auto deleted once sent, or upon quitting Mail. Or you have set up IMAP like settings, in that a deletion on one client (either Mail or iPhone) deletes the message from the server
    You only need to sync your Mail accounts one time, then you can turn it off. You would turn it back on, when you modify account settings in Mail, add a new account that you also want on your phone, and you simply don't want to double enter that information again on the iPhone.
    HTH
    zac
    Message was edited by: Zac.

  • SIM card full please delete SMS messages

    I keep getting the message "SIM card full please delete SMS messages". I've gone into options under TEXT messages and there is no option to check or uncheck "save on SIM card. I've had this issue since I bought the 9810. I did not have the same issue with the 9800 that I had before.

    Hi and welcome to the forums!
    Try the steps listed below.
    Let us know how it goes!
    Thanks,
    Bifocals
    KB13465 "SIM card is full please delete SMS messages" appears on the BlackBerry smartphone
    For a possible resolution of this issue, complete the following steps:
    On the Home screen of the BlackBerry smartphone, go to Options > SMS.
    Press the Menu key and click SMS options.
    Go to Leave Messages On SIM Card.
    Press the Menu key again and click Change Option.
    Select No.
    Press the Menu key and click Save.
    Open Messages on the Home screen of the BlackBerry smartphone and press the Menu key.
    Locate the View Folder menu option.
    Select SMS SIM Card Inbox.
    Delete any unnecessary SMS text messages in order to create space on the SIM card.
    For BlackBerry® Device Software 6.0, complete the following steps:
    On the Home screen of the BlackBerry smartphone, open the Messages application.
    Press the Menu key and click Options.
    Click Text Messaging.
    In the SMS Text area, clear the Leave Messages On SIM Card check box.
    Press the Menu key and click Save.
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • When I delete Hotmail messages from my iPhone, they still show up in my Hotmail inbox. What do I do?

    I love checking my emails on my iPhone because of the convenience, but every time I delete a message on my iPhone, the message stays in my Hotmail inbox, and the next time I use my laptop, I have to delete tons of old messages. Is there anyway to make it so that when you delete messages via iPhone, they are deleted in your Hotmail inbox? Any help would be appreciated!

    Did you solve your problem? I'm having the same issue!

  • How to batch delete iMessage messages on Desktop (Macbookpro)

    Hey guys,
    I was wondering if there is a better method to delete the messages than deleting one by one the message in the iMessage panel...
    thanks very much for your help
    Jeff Chaine

    daniel lfromorlando wrote:
    I understand that I can reset or restore the iPhone, but this shouldn't have to be an everyday procedure.  For example, under "Settings/General/Safari", you can "Clear History", "Clear Cookies" and/or "Clear Cache".  You should be able to do the same with text messages.
    Any other thoughts or suggestions is greatly appreciated.
    The problem should go away after resetting or restoring once, so it won't be a everyday procedure.
    If you just want a new feature added to reset or clear text message cache, leave a feature request here -> http://www.apple.com/feedback/iphone.html
    WTH.

  • How to delete individual messages in iOS 7 when it is auto detected as a phone number?

    Hi, in iOS 7, in messages, individual messages can be deleted by holding that particular message and then selecting more to show up the thrash bin icon.
    But my problem is i want to delete a message with only numbers in it.  The only options available after pressing and holding the message are:
    "Call 1234567"
    "Send Message"
    "add to contacts"
    "Copy"
    "cancel"
    I discovered that i can do a round about method by holding another message to select the "more" option i mentioned earlier and then "tick" the message with the numbers to be deleted.  But what happens when all the messages are in numbers only?! That means I need to either create 1 more message or get the person to send me another message before I do the round about method. 
    In the first place, doing the round about method is already quite stupid...
    Can anyone advise? Thanks.

    Oh yeah, now I remember that.
    But I also remember that you had to go all the way to the start of the message to gain access to the current contact information. Where as in iOS7 that button you mentioned is the contact information. Personally I perfer iOS7. I don't delete my messages, so this is better for me.
    However, it wouldn't be a bad idea to add an Edit button in that sub menu that shows up when you touch the upper right button. Currently there are opitions for "Phone", "FaceTime" and "Information" on the contact.
    KOT

  • Can't delete email messages from some folders in Mail

    I CAN delete email messages from header Folder "MAILBOXES" (drafts, sent, trash); however, there's another folder header below called "ON MY MAC", where I save various emails by dragging them to a subfolder, and when I try to delete these, I get this message:
    "The message '(subject of email)' could not be moved to the mailbox 'Deleted Messages --- On My Mac' The destination mailbox 'Deleted Messages --- On My Mac' does not allow messages to be moved to it."
    The only way to delete from this folder is to hold Control, select from the dropdown Move to, then Trash, and then one of three sub-trash folders (the one that has my email address) -- this is a pain to do.
    Mail is just not working properly any more (I just added 2 other posts - one about crashing, another about all my Fonts missing)
    thank you in advance!

    Colin,
    Have you checked Mail>Window>Previous Recipients for the old address? If not, attempt to "Remove From List" at that location and let us know what happens.
    ;~)

  • How can I delete a message without opening an adjacent one?

    Before Yosemite you could delete a message from Mail.app without opening an adjacent message by holding option and clicking the garbage can.
    However, in Yosemite, there doesn't seem to be a way to delete a message without opening (and setting the message's status to "read") an adjacent message.
    I often don't have time to read all the messages in my Inbox so I'll quickly read some important ones and I'll leave the others as "unread" to get back to later in the day. Yosemite Mail doesn't seem to support this workflow anymore…
    Anyone know a workaround; short of manually setting a messages status back to "unread"?

    Ok, I'm answering my own question.  I made up a fake user name to get into my Palm Desktop and deleted profiles.  Then I went in with real user name.  All of my calendar entries were gone, but fortunately within the last month I had HotSynced and was able to HotSync again to get it back from my handheld.  I think I need a blackberry.  This stuff happens way too often.
    Post relates to: Palm m505

  • HT4528 My friend switched from an iphone to a non apple phone. All my texts to him in groups and one on one still come up as imessages. How do I get rid of the imessage when i talk to him? I have tried deleting his number, deleting all messages he was apa

    My friend switched from an iphone to a non apple phone. All my texts to him in groups and one on one still come up as imessages. How do I get rid of the imessage when i talk to him? I have tried deleting his number, deleting all messages he was apart of

    Did you try to unregister the phone?
    Check this discussion

  • How can i link my E-mail with my iPad in a way that i can delete my messages from my email inbox server not from my iPad inbox only?

    How can i link my E-mail with my iPad in a way that i can delete my messages from my email inbox server also not from my iPad inbox only?
    Because when i delete emails from my iPad inbox, it will be deleted on my iPad only but when i check my email inbox server from the browser its not deleted!
    So how can i set up this link so when i delete any email from my iPad it will be deleted from my email inbox server also?

    Hi Pierrot10,
    Insert your backup disc (or plug your external hd), then open Mail.
    In the File menu, click *Import Mailboxes* and follow the steps for a *Mail for Mac OS X* transfer.
    Navigate to your CD/DVD's or external HD's backup and hit "OK".
    This should create a new "Imported" folder in Mail with all your old messages in it, that you can then rearrange as you wish, creating new mailboxes etc.
    Axel

  • How can I set up email so that if I delete a message on the iPhone it deletes it on my mac

    How can I set up my email so that if I delete a message on my Mac it will also be deleted on my iPhone 6 and iPad

    Why would you want that?
    Doing so would defeat the purpose of syncing the email account.
    Simply move the message to a folder or leave it in the inbox.

  • How to delete all Messages in B1-Event-Monitor

    Hello,
    is there a way to delete all Messages from the B1-Event-Monitor.
    Now we have:
    ... But when I try the "Delete All" Function nothing happend, and the Browser hang.
    I found this post.B1if db unexplained growth.. and followed all steps.
    1)Monitoring->B1 Event Monitor->Switch the log off. Now press delete all button. To clear all the logs.
    It is recommended that the B1 Event Monitor is turned on only when debugging& analyzing specific issues. During normal usage, you should switch the B1 Event Monitor off:
    2)Maintenance->Cfg Msglog->Click on Manual Delete and provide the appropriate input and press Delete.
    3)B1if is handling the message log deletion automatically on the daily bases (B1if -> Maintenance -> Cfg MsgLog -> Daily deletion button). By default it#s set to 23.00. It means the server needs to be up at this time. This value can be set according the customer#s requirement and here you can find more option regarding the message log settings as well. (Kindly check whether Backup buffer(days) is set to 0, if yes check by changing it to 1)
    4)Schedule an immediate Transaction-Log Garbage Collect (B1if #> Control Center #> Maintenance #> Schedule TLog GC #> Submit)
    5)Open Integration Framework->Control Center->Maintenance->tlog delete->Select the Execution status as "Completed"->submit. Wait for the process to complete.
    6)Now restart the Integration service.
    Messages are still in the B1-Event-Monitor.
    I think our mistake was the LOG-Level ON during all the time.. the daily deletion I switched to 03:00 with 1 day Buffer
    Thank you for an Idea.
    SAP B1 9.0 PL 12
    B1-Integration PL15 = .1.20.8
    Regards
    Markus

    Hi,
    You Can use DB Purge tools.
    May be it will help you for deleting those data.
    You can also view this thread.
    http://scn.sap.com/thread/3606618
    Thanks,
    Tushar

Maybe you are looking for