How to remove a message area

Hello,
I am using the following code to display error message. That works perfectly fine.
The only problem I have is once there is no error message the message area remains
at the top of the window and the the focus is always automatically set to the message area.
Is there a way to remove/reset the message handler?
I tried    lr_message_manager->clear_messages( INCLUDING_PERMANENT_MSG  = abap_true )
but this didn't help.
Thanks and regards,
  Christoph
get message manager
  lr_current_controller ?= wd_this->wd_get_api( ).
  lr_message_manager = lr_current_controller->get_message_manager( ).
if lt_messages is initial.
   lr_message_manager->clear_messages( INCLUDING_PERMANENT_MSG  = abap_true ).
else.
  LOOP AT lt_messages INTO lr_message.
  report message
    CALL METHOD lr_message_manager->report_t100_message
      EXPORTING
        view  = 'FOUNDATION'
        msgid = lr_message->mv_msgid
        msgno = lr_message->mv_msgno
        msgty = lr_message->mv_msgty
        p1    = lr_message->mv_msgv1
        p2    = lr_message->mv_msgv2
        p3    = lr_message->mv_msgv3
        p4    = lr_message->mv_msgv4.
  ENDLOOP.
endif.

Hi Lekha,
I tried your approach and its not working.
I also tried to do this dynamically in WDDOMODIFYVIEW:
    data:   lr_message_area       TYPE REF TO CL_WD_MESSAGE_AREA.
    lr_message_area ?= view->get_element( id = 'MESSAGES' ).
    lr_message_area->set_visible( '01' ).   " 01 is invisible 02 is visible
but nothing works
The message area remains showing 'No Messages' and the only way to get rid of it is to click on the show list button and reset the log.
When I do create a test application the message areas works fine but in the whole application it remains. I have no idea what's causing this.
What I do in the application is basically the following.
The business object has its own message handler and in the WDDOMODIFYVIEW of the view containing the message area I read this message handler and if there are messages I do the following:
get message manager
  lr_current_controller ?= wd_this->wd_get_api( ).
  lr_message_manager = lr_current_controller->get_message_manager( ).
lt_messages gets filled from the business object
  LOOP AT lt_messages INTO lr_message.  
  report message
      CALL METHOD lr_message_manager->report_t100_message
        EXPORTING
          msgid = lr_message->mv_msgid
          msgno = lr_message->mv_msgno
          msgty = lr_message->mv_msgty
          p1    = lr_message->mv_msgv1
          p2    = lr_message->mv_msgv2
          p3    = lr_message->mv_msgv3
          p4    = lr_message->mv_msgv4.
    ENDLOOP.
If there are no messages in lt_messages I just want to get rid of the message area.

Similar Messages

  • How to remove large message stuck in the adapter engine?

    Hi experts,
    We have a large message abt 100 MB stuck in the adapter engine which is causing the J2EE server to restart continuously.
    I have tried increasing the heap sizes and the number of threads in config tool, but no luck. My question here is how to remove that message? Also I checked smq1 and smq2 both are empty.
    Regards.

    Hi Nagasatya,
    This issue is realted to Large amount of data.You have to write condition in the query.I have face same issue,but resolved it.Please do the following steps.
    Go to Configtool and selct the com.sap.aii.adapter.jdbc.svc and set this jdbc service to start manually instead of auto.
    Then restart server0, this time it should be started successfully. Then go to rwb and try to
    find if any jdbc hanging/failed messages are there, if so, cancel them;also deactivate the problematic jdbc communication channel, otherwise itwill poll the data again. After all above, you can manually try to start this jdbc.svc particually.
    Thanks
    Ravi

  • How many types of messages are there

    Hi,
    After using CALL TRANSACTION tcode USING gi_bdcdata
                     MODE   gv_ctumode
                     UPDATE gv_cupdate
                     MESSAGES INTO gi_messtab.
    I am looping gi_messtab for extracting messages.
    I know msgtyp = 'E'    -
    > means error message.
    I want to how many types of messages are there, tell me with the full forms.
    s -
    > means?
    LOOP AT gi_messtab.
    IF gi_messtab-msgtyp = 'E'.
    endif.
    endloop.

    HI Mohan
    A --> Termination Message
    The message appears in a dialog box, and the program terminates. When the user has confirmed the message, control returns to the next-highest area menu.
    E -->  Error Message
    Depending on the program context, an error dialog appears or the program terminates.
    I --> Information
    The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the MESSAGE statement.
    S -->  Status Message and Sucess message
    The program continues normally after the MESSAGE statement, and the message is displayed in the status bar of the next screen.
    W --> Warning
    Depending on the program context, an error dialog appears or the program terminates.
    X --> Exit
    No message is displayed, and the program terminates with a short dump. Program terminations with a short dump normally only occur when a runtime error occurs. Message type X allows you to force a program termination. The short dump contains the message ID.
    Regards
    Sudheer

  • How many types of messages are there what are they?

    How many types of messages are there? what are they?

    Hi,
    Refer the Demo program this iwll help
    <b>DEMO_MESSAGES</b>
    1. MESSAGE xnnn.
    2. MESSAGE ID id TYPE mtype NUMBER n.
    3. MESSAGE xnnn(mid).
    Effect
    Sends a message. Messages are stored in table T100, and can be maintained using Transaction SE91. They are fully integrated in the forward navigation of the ABAP Workbench.
    The ABAP runtime environment handles messages according to the message type specified in the MESSAGE statement and the context in which the message is sent. There are six kinds of message type:
    A (Abend)
    Termination
    E (Error)
    Error
    I (Info)
    Information
    S (Status)
    Status message
    W (Warning)
    Warning
    X (Exit)
    Termination with short dump
    Messages are used primarily to handle user input on screens. The following table shows how each message type behaves in different contexts. The numbers are explained at the end of the table.
    A E I S W X
    PAI module 1 2 3 4 5 6
    PAI module at POH 1 7 3 4 7 6
    PAI module at POV 1 7 3 4 7 6
    AT SELECTION-SCREEN ... 1 8 3 4 9 6
    AT SELECTION-SCREEN at POH 1 7 3 4 7 6
    AT SELECTION-SCREEN at POV 1 7 3 4 7 6
    AT SELECTION-SCREEN ON EXIT 1 7 3 4 7 6
    AT LINE-SELECTION 1 10 3 4 10 6
    AT PFn 1 10 3 4 10 6
    AT USER-COMMAND 1 10 3 4 10 6
    INITIALIZATION 1 11 3 4 11 6
    START-OF-SELECTION 1 11 3 4 11 6
    GET 1 11 3 4 11 6
    END-OF-SELECTION 1 11 3 4 11 6
    TOP-OF-PAGE 1 11 3 4 11 6
    END-OF-PAGE 1 11 3 4 11 6
    TOP-OF-PAGE DURING ... 1 10 3 4 10 6
    LOAD-OF-PROGRAM 1 1 4 4 4 6
    PBO module 1 1 4 4 4 6
    AT SELECTION-SCREEN OUTPUT 1 1 4 4 4 6
    reward if this helps.

  • How to remove a message?

    I have posted a completly false message. So as to avoid anyone to be misleaded by this erroneous answer I was looking how to remove my answer. After 5 minutes of searching I'm feeling completly lost.  I can't find this function.  
    Where is this basic function?

    I've been here a number of years and known all that time that I could not delete a post. I did not quit posting here. Many others have done the same so I think your "most" is greatly exaggerated.
    Deleting requires administrative privileges for the software used here and the moderators are not going to grant that right to everyone. It also could lead to a lot of gaming the system.
    If you think you have posted something in error you have 15 minutes to go back and delete it. After that you can either report it here or report another post in the same thread.

  • How to remove duplicate messages from Mail in Mavericks (POP)

    Hello
    I'm having some significant problems with Apple Mail, and despite having researched widely, I haven't been able to find a solution yet. Here is my tale of woe...
    My set up is that I use Mail with 5 separate accounts, downloading all messages using POP. I keep all my mail so that I have a permanent record of all conversations, going back more than 10 years - this is about 250,000 emails. I'm running the latest version of Mavericks on a 2010 MBP. I have no intention of moving to IMAP - I need to keep a local archive of all my mail.
    A few months ago I was having problems with Mail being very slow to load and search emails. I decided to rebuild the mailboxes, but afterwards discovered that thousands of messages in the inbox of one of my accounts (and some of the sub-folders) had disappeared. Once I realised I tried to go back to a recent Time Machine back up, but, for whatever reason, that part of the back up hadn't worked properly and I was unable to recover the previous status. Ileft it while I decided what to do, and had time to deal with it.
    The last 2 years worth of emails on that account were still archived on gmail, so last week I decided to try redownloading the whole lot (something like 72,000 messages), and then uplanned to use one of the scripts I was aware of to remove the duplicates to the trash, and then remove any duplicates in the trash forever. That ought to mean I at least had an archive of the last two years of missing messages, even if I had no record of which ones had been flagged or replied to, etc.
    The downloading took about 24 hours to complete, and I now have almost 70,000 messages in the inbox of that account. However, I hadn't figured on two things:
    1. Mail 'hides' duplicate messages, meaning that all of the messages I've downloaded are showing as unread, and I can't differentiate the ones I already had in my Inbox, and the new downloads. When I click on those apparently unread messages I can see if they have been replied to or forwarded, etc, but there's no obvious way for me to remove the ones I have already dealt with to the trash, without going through them all manually, which is clearly impossible.
    2. The scripts I'd found for removing duplicates don't work. Andreas Amann's Remove Duplicates script doesn't work under Mavericks, and he has abandoned the project. I've also tried the remove-duplicate-messages.scpt made by Jolly Roger (http://jollyroger.kicks-***.org/software/), and while it *sometimes* works on individual subfolders on my Mac (but as far as I can tell removes the duplicate in that folder, rather than the newly downloaded version), mostly it doesn't work at all - it creates a 'Remove Duplicate Messages' folder on my desktop, a log inside it and a folder for removed messages, but nothing appears in the duplicates folder.
    So, I'm left in a position where I have 70,000 apparently unread messages in my Inbox, a massively bloated Mail library (which has pretty much doubled in size), a slow and unresponsive Mail program. I figure I have a number of options. Either I could abandon the last week's efforts and revert to the version of

    Apologies, this was posted here in error. Please find updated post here: https://discussions.apple.com/message/27261965#27261965

  • How to use the message area ui element to handle the errors.

    Hi All,
    Can you put a light on how to  message area UI element to handle the message in web dynpro.
    Please provide any links which the information related to Message Area UI element.
    Thanks in Advance,
    Lalitkumar.

    Hi,
    Try using the below code when you want to display the message.
    DATA lo_api_controller     TYPE REF TO if_wd_controller.
      DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_api_controller->get_message_manager
        RECEIVING
          message_manager = lo_message_manager.
    * report message
      CALL METHOD lo_message_manager->report_success
        EXPORTING
          message_text = 'Display your text here'.
    Also check all the methods available in the interface if_wd_mesasge_manager and try using them.
    Edited by: Vidhya Sakunthala on Jul 30, 2010 1:35 PM

  • How to remove a message from a thread...

    I would much rather have it, that mail.app could figure out how to thread my messages correctly, but for some reason, when the subject is the same, it always thinks it is the same thread (I have a zillion mails with the subject "meeting"!)
    Is there any way to simply, (manually?) select some message, and tell mail.app that those messages should not be an that thread??

    You can always go to View and uncheck Organize By Thread, but that will apply to all messages. I don't know of any way to do it on a per-message basis.
    The only solution I can think of is to ask your colleagues to quit using stupid subjects like "meeting" and to put something more descriptive in there (like "meeting with John Smith" or "meeting on 11/20")!

  • How can remove this message

    Hi All,
    can anybody tell me how can i remove this massage.
    Amount is zero - line item will be ignored.
    Thanks In advance
    Murali

    Hi,
    The message can be deactivated from the below customzing settings
    - SPRO - Financial Accounting -Financial Accounting Global Settings-Document-Default Values for Document Processing--Change Message Control for Document Processing
    Application area - F5 Click new netries
    Messgage No 097
    And in the online and batch columns select ' -' switch off message  and save the same
    after this change, the system will not throw that error message.
    hope this clarifies
    regards,
    radhika
    Edited by: kolipara radhika on Sep 18, 2008 8:27 AM

  • How to remove error message power pc applications no longer supported

    How do you install photoshop 7.0 disk drive on a mac os x with the error message, "Power PC applications are no longer supported"?

    Which version of mac os x are you trying to install photoshop 7 on?
    If you really do mean photoshop 7 (cira 2002), then it won't work on any newer intel macs.
    Photoshop 7 needs an PowerPC processor and your mac probably uses an intel processor.

  • Want to clean up Contacts Actions, how? Remove Send Message options

    In Contacts > Actions the phone places "Send Message" (text) for every number in the Contact. Since you can't text a land line or fax number I would like to remove that "Action" from the phone. How can I do that? I have searched. This would make it easier/quicker for me to select texting I can actually do.
    TIA

    Under contacts and actions there is no known way to change the actions. However under your favorites you can change the default action. Favorites, tap 3 lines, tap contact,menu,more, set widget action.
    Thank you

  • How to fix error message: Are you sure you want to leave this page?  There is currently a request to the server pending. You may lose recent changes by navigating away.

    I have been gettting this error message in safari for 4 days.
    Any ideas? This is beyond frustrating. I haven't installed or downloaded anything in this time.
    Thanks!

    Unless you have an application open like Microsoft Word and have made changes to some work you have done go up to file and SAVE then you can leave the page wwithout any problems. this message comes mostely when you are in a browser. Just leave the page.

  • How to remove XML messages from Integration Engine

    Hi,
    i had created file - XI -file scenario activated it and check messages using tcode SXMB_MONI .Error messages coming after every minute as i set polling intervals to 60 seconds .Now i had deleted related objects from IR and ID but still XML messages coming in ....please anyone can help to stop this scenario anyhow.

    Dear Jai ,
    i had checked everything before this and even i have checked now and i had created that scenaio by my own userid and passwd. Checked sender interface, reciever interface in SXMB_MONI it's the same which i had given name to them . Even we people are surprised that after deleting all the things in IR and ID . i don't know exactly why it is coming but what i am guessing is that after activating the scenarios it might get executed from XI runtime cache and there is no dependency on IR and ID objects . so what i had done that i completely refreshed the XI Runtime Cache by using tcode SXI_CACHE but it's still not working that way also.
    Message was edited by:
            ashwin dhakne
    Message was edited by:
            ashwin dhakne

  • How 2 remove unwanted sales areas from BP?

    I got two sales areas already maintained for a business partner under "Sales Area Data". Will it be possible to remove one?
    Not able to find any remove option in "Choose Sales Area" screen as well.
    Tried other possibility: Next to BP Role, under Role Details, selected sold-to-party role deleted entire role assuming i can create once again, but System is very smart. When i try to create sold-to-party role again, it is showing all the already maintained sales areas.
    Regards,
    Venu.

    Hi
    There is no standard functionality for deleting Sales Area data
    for BP exists.
    But you can develop your own report using following BAPIs:
    BAPI_BUPA_FRG0010_* (use F4 for list of all available functions)
    BAPI_BUPA_FRG0020_*
    BAPI_BUPA_FRG0030_*
    BAPI_BUPA_FRG0100_*
    Another possibility is to delete Sales Area completely, from
    OrgManagement. In this case, Sales Area information will be deleted
    for all BPs.
    Hope this can help you.
    Best Regards,
    ZhaoJie

  • How to remove saved messages

    I have 6gb of messages(saved) on my phone, and I have deleted every text on my phone.

    I have figured it out how to delete the (saved) messages, you simply go on the conversations. Press and hold the text and it should come up with Copy, More. Press More and you should see on the top left that says Delete all. I did it and it went from 2GB down to 100MB.
    I hope this helps.

Maybe you are looking for

  • FCPX does not play 120fps GoPro video

    What should I do as my FCPX is not playing 120fps GoPro 3+ videos. Quicktime plays them well and shows that they are 120fps. Final cut does not play them at all. They just appear as still images. I tried to import original videos form camera and also

  • GROUP BY and HAVING can appear in either order.

    Hi, please give me one example for the following line i found it in "19-28 Oracle Database SQL Language Reference". If you specify both GROUP BY and HAVING, then they can appear in either order. yours sincerly

  • Large file upload

    Hi all, Is there a way to upload a large file. The problem: 1 file with fixed length records (59 bytes wide) Over 17million lines available (actually a download from an extreme old system), making a total of almost 1Gb. I have a database table that e

  • Terminal App choices

    There are two features Apple's Terminal lacks that drive me crazy, tabs and the ability to define a list of characters considered part of a word when double clicking. iTerm can do both of these things and I really like it, but there are some serious

  • Problem when create connection to SQl Server ( charecter set cp1255 not found ))

    Hello my name is Ron , i want to connect to SQL SERVER with the microsoft driver from Java ( with jDeveloper ) . then i did the following steps: 1) i download and install the jdbc driver for Sql server on my machine ( windows XP with , JDK 1.3 ) 2) i