WD abap - destroy success message

Hello,
I have a screen where I do the following:
CALL METHOD l_message_manager->report_success
      EXPORTING
        message_text = 'Changes were successfully saved!'.
when I navigate to another screen messsage area is still there but without the message.
How can I destroy message area without calling reset_view method?
Thank you.

Hi Georgy,
>It seems to be very inconvenient since if the user
>navigates to a different screen the message area is
>still there.
Yeah, it's only due to the message history. There is the idea to make it possible to switch it off. In that case the message area would become invisible automatically again in case no message was raised.
>What you are saying is that one message area gets
>displayed there is no way to get rid of it unless
>refresh the screen?
Only for success and warnings. Error messages are not kept in the history as they rather reflect the current state of an application. There is a way to get rid of the message - switching to old style message display (can be specified at the application). Of crourse, this soluation has drawbacks. The old style message displays lacks several features, like displaying message documentation, scrolling of messages, etc.
Personally, I would still use the new message area and accept for the moment that it won't get hidden once an success or warning message is raised. We are working on providing an improved user feedback that tells a user that the history contains items (reducing confusion) and making it possible to switch off the history (reenabling auto-hiding). That means that the problem will auto-solve itself at some time.
Best regards,
Thomas

Similar Messages

  • PARSE_APPLICATION_DATA Error during XML = ABAP conversion: Response Message; CX_ST_DESERIALIZATION_ERROR in /1SAI/SAS0446CC11CC6EC1AD4789 Line 24 An error occurred when deserializing in the simple transformation program /1SAI/SAS0446CC11CC6EC1AD4789

    Hi Experts ,
    i have a scenario proxy to soap  where i am getting error while getting the response .
    we are sending the request successfully and getting response .some times we are getting in proxy level error below
    PARSE_APPLICATION_DATA Error during XML => ABAP conversion: Response Message; CX_ST_DESERIALIZATION_ERROR in /1SAI/SAS0446CC11CC6EC1AD4789 Line 24 An error occurred when deserializing in the simple transformation program /1SAI/SAS0446CC11CC6EC1AD4789 (Cha
    Please help us to fix this bug in proxy response.
    Regards
    Ravi

    Hello Ravinder,
    Can you please post the complete stack trace, it seems to be some fields are getting truncated i,e data sent from the program to the proxy object might be violating some length restrictions.
    Please check your message interface field lengths and what is being passed to the proxy.
    Regards,
    Ravi.

  • Destroying a message producer

    We have a Sun MQ JMS provider which provides us destinations. The process is something like this:
    1. There is a queue, where a message is posted.
    2. I have a java consumer, which listens on this queue. (via JNDI lookup).
    3. I do some processes and based on the status (success or failure) i put a response message in a different queue(Q2).
    4. This Q2 is obtained from the JMS message header (getJMSReplyTo()).
    5. sender = session.createSender(Q2);
    sender.send(msg, javax.jms.DeliveryMode.PERSISTENT, message.getJMSPriority(), getLifetime());6. message is the textMessage obtained from Q1.
    7. In a finally block, i am calling sender.close(); The session is still open and will be used for the next message received from Q1.
    All is well and good, except for the fact that number of producers on Q2 is getting accumulated for every send() call. The sender.close() is executed(i debugged in eclipse and no JMS exception for the close() call).
    The problem here is in the JMS provider, we have a limitation of 100 producers on Q2. Since every send() call leaves a producer on Q2, after 100 replies, i am getting an error on the SunMQ side "producer cannot be added to the queue. Limit of 100 producers will be exceeded".
    This results in a JMS Exception during the session.createSender(Q2) line.
    I don't know what i am missing here, and i am pretty new to JMS (as you might have imagined by now).
    Do we have to explicitly close the session also along with the sender.close() or do we have to do anything other than closing the sender ?
    I'd be happy to hear some suggestions and opinions.

    Hmm, so the culprit here is the sender#close() method
    The standard JMS API, doesn't say anything about the close() operation. It must be implementation specific, in your case SunMQ,
    You should be getting into the API and look for the details on what the close() method actually does, whether it really destroys the message producer or not
    As Far As developing a JMS Client, I do this way
    • Get a ConnectionFactory and Destination
    • Create a Connection and Session
    • Create a MessageConsumer
    • Create a MessageProducer
    • Create message/s
    • Send message/s
    • Receive message/s synchronously or asynchronously
    • Exit Session and Connection
    Wonder why you would like to have a new Producer each time, but that depends on you and your requirement :)
    Cheers,
    Edited by: anamupota on Jan 22, 2009 7:53 AM

  • ME51N BDC Success message

    Hi ,
    I am trying to create new purchase requisition using ME51N BDC. BDC is not returning any success message after successfully creating requisition. If I do it with out BDC, directly from ME51N I am getting success message 06-402.
    I need to capture the created document number. Any ides?
    Thanks for your time.

    are you using Call Transaction method ? if so use update mode as  'S'..
    ME51N is the enjoy transaction so bdc may not work properly
    so try to do recording for ME51 Transaction ,make sure that use BDCMSGCOLL  Structure to get log message.
    Better to use BAPI instead of BDC ,BAPI FM is 'BAPI_REQUISITION_CREATE'
    for example just go through...
    http://www.sap-img.com/bapi.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    Thanks
    Seshu

  • Skillbuilders modal page - success message not closing in Internet Explorer

    Hello,
    I'm using Skillbuilders modal page plugin on Apex 4.1.
    The plugin works great in all browsers except in IE, where I'm unable to close the success message by clicking on the "x" in the upper right corner.
    I'll explain further.
    I have a report on, say, page 10, and I'm editing each row in a modal page (page 11). Upon saving the changes, the modal page closes and a success message is shown on the page 10. I can see the message both in Firefox and IE, however, I am unable to close it in IE.
    When I inspect the success message using Firebug in Firefox, I see that I have:
    <div id="messages" style="display: block;">
    <div id="success-message" class="success">
    <img class="remove-message" onclick="$x_Remove('success-message');" alt="" style="float:right;" src="/i/delete.gif">
    Action processed.
    </div>
    </div>However, when I inspect the success message in IE, I see:
    <div id="messages">
    </div>The success message is shown on the page, but it doesn't show in the page source code, and clicking on the "x" doesn't close it.
    I've tried it with several themes, the problem persists.
    Does anyone have any idea what might be the problem here?
    Did someone have a similar problem?
    Thank you!

    I've been looking at it, kind of gutted that indeed the semi-colon means nothing. Was sure that was it, and then didn't bother to test it in the template anymore as it ate so much time already. That should teach me...
    Anyway, I was puzzled too. Apparently it has to do with IE8 and jQuery appending code to the document, whether it is .append or .before. The element is there and all, but the onclick just does nothing. Why did it work after editing it? Probably because IE was then able/willing to pick the attribute up.
    I've fiddled with it over and over, trying to find something ,googling it, but couldn't really find a certain cause nor fix. Putting   in the anchor? Nope. Onclick reacting only on second click? Nope. Just do an alert? Nope. Just nothing works at all. I really just gave up. IE8 is just such a headache that by trying to "fix" it in its ways you're off worse.
    In the end I fixed it in another way. My template is different than yours but the technique is the same.
    I removed the onclick attribute from the success message region, on both page templates. If it ain't gonna work I don't want it there (good riddance too). I changed the href attribute too by just putting "#" in, which is probably just me being pedantic. This is my result success message template:
    <section class="uRegion uWhiteRegion uMessageRegion clearfix" id="uSuccessMessage">
      <div class="uRegionContent clearfix">
        <a href="#" class="uCloseMessage"></a>
        <img src="#IMAGE_PREFIX#f_spacer.gif" class="uCheckmarkIcon" alt="" />
        <div class="uMessageText">
          #SUCCESS_MESSAGE#
        </div>
      </div>
    </section>To be able to close it, I added some javascript in the page header:
      <script type="text/javascript">
        $(document).delegate(".uCloseMessage", "click", function(){$(this).closest(".uMessageRegion").remove(); return false;});
      </script>This is much in the way of a dynamic action with scope "live". I didn't want to bother with having to put a dynamic action on each page, and is why I did it this way. It works fine in each browser too, so hurray.
    Your solution works too of course, it's much the same. I wouldn't call it a "workaround" too, since it didn't work initially anyway. I wouldn't look further and stick with what works best for you. :)

  • Report with BDC not displaying success message when run in Background

    I am running a  BDC report in Background mode.The below statement  is not capturing the Success message when a document is posted.But when I am running the same in ForeGround mode it is capturing and is displayed in the output.Can anyone please help me in understanding why this is happening and how can I resolve this.
    CALL TRANSACTION 'MB1C' USING bdcdata MODE mode UPDATE 'S'
         MESSAGES INTO messtab.

    Hi Madhu,
    I think your BDC didnt generated any document when you run it in 'N' screen mode.
    Debug your program when you run it in background
    Goto Tcode :SM37
    Select the job ( march checkbox )
    ==> in command prompt enter 'JDBG'
    ==> Then you can start reexecting the job .
    You can check the sucess messages accordingly in debug mode
    Also add a read statement on messtab for msgtype = 'S'.
    Thanks
    Bhanu

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    I suspected you used the eye icon on the timeline to hide the message, but that one has no impact whatsoever on the published version. It is only meant to be used for editing reasons on the stage, to hide objects temporarily on a crowded stage. It is confusing, certainly in CP8 where for both instances the same eye icon is used. In previous versions the Properties panel had a checkbox for 'Show in Output', which was IMO much clearer than this eye icon. But of course, that is only my personal opinion.

  • How to include HTML tags in a success message?

    I have seen a few posts on this topic in the past, but have not seen a definitive response...apologies if this has been answered.
    I would like to have a dynamic process success message that includes some HTML tags in it - in this case an anchor tag that can jump the user back to the object he/she just edited.
    So, I build up a dynamic success message in a page variable - say P10_SUCCESS_MSG - and set the Process Success Message field in the relevant Process to &P10_SUCCESS_MSG.
    The problem is that when the page template substitutes in my message for #SUCCESS_MESSAGE# it looks like it also escapes any HTML tags, so the markup gets displayed literally on the page.
    Is there any recommended way to override or get around this behavior?
    Many thanks,
    Bill

    I just noticed that it looks like the success message is passed around on the URL - when I look at my URL after a successful form process, I see &success_msg=BIG_UGLY_ESCAPED_SUCCESS_MSG_HERE embedded in the URL. If this is the case, I can see why - technically - it ends up getting escaped. Looks like I may have to figure out my own hack for success message processing - maybe some weird post-processing of a placeholder success token that I replace in a page 0 process or something...

  • How to display success message in function module

    Hi Experts,
                      I am developing new function module regarding URL finder. As per my requirement ,
                                                 If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.
    how to display success message.if possible can You write the code.
    Thanks
    raju

    Hello,
    We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.
    Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.
    Hope this might help you!
    Regards,
    MM Jaffer.

  • Process Success Message not working

    Hi
    I have created a process to send a mail on some button click...
    The process success message i have given that
    Mail Sent Successfully!
    Though the mail is coming I am not getting the Mail Sent Message!
    Can someone help to let me know what am I missing?
    Thanks
    Ankit

    Ok another fishy question
    Can a process sent a Successful Message without completing the task?
    I get the message Mail Sent though I never receive the mail...
    In test environment apex.oraclecorp.com it is working sending the mail.
    But in production database.us.oracle.com it is not working :(
    I have made the exact copy in production site!
    What can i be missing?

  • Process Success Message not displaying properly

    Hello.
    I know there are many threads about this problem. But i can't get it right.
    I have custom MRU process like:
    DECLARE
      p_updcount NUMBER := 0;
    BEGIN
      FOR i IN 1 .. apex_application.g_f08.COUNT                       
      LOOP
        IF apex_application.g_f08 (i) IS NOT NULL                  
          AND substr(APEX_APPLICATION.g_f20 (i),40) !=
          wwv_flow_item.md5 (apex_application.g_f07 (i),
                    apex_application.g_f08 (i),
                          apex_application.g_f09 (i),
                             apex_application.g_f10 (i),
                             apex_application.g_f11 (i),
                             apex_application.g_f12 (i),
                             apex_application.g_f13 (i),
                             apex_application.g_f14 (i),
                             apex_application.g_f15 (i),
                             apex_application.g_f16 (i),
                             apex_application.g_f17 (i),
                             apex_application.g_f18 (i),
                             apex_application.g_f19 (i)
                             )||'"  />' THEN
         UPDATE table
              SET ...
           WHERE id = ...;
          p_updcount := p_updcount + 1;
        END IF;
      END LOOP;
      :P232_UPDATE_NUMBER := p_updcount;
    END;
    {code}
    In the same process, success message looks like:
    Number of updated records: &P232_UPDATE_NUMBER. .
    Item :P232_UPDATE_NUMBER is text item.
    Even if i set default value in item, it doesn't work. Value is shown in item, but not in message.
    Message looks like: Number of updated records:  .
    Items "Source used" is set to Only when...
    If i set it to Always, ..., value doesn't appear in item.
    Any idea?
    Thanks.
    Regards,
    Dejan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    If i write code to check for updates after header, it is not necesary true that the user already updated some columns?Or am i wrong?>
    The Custom MRU has to be OnSubmit. I was talking about initialization of the Page Item
    To set the value of the item in Session State set the value using Before or After Header Computation or Process.E.g. write After Header Computation for P232_UPDATE_NUMBER > Static Assignment > 0
    . I am not referring to Custom MRU.As I said earlier, if your CustomMRU process runs you should see a number >= 0 in the message. You will need to initialize only, to say 0, only for situations when the Custom MRU does not run (condition evals to false).
    Cheers,

  • APEX does not show 'Process Success Message'

    Hi,
    I was hoping to get help on a weird APEX issue.
    I have two identical APEX pages with the same templates. One of the page does not show the process success message after it inserts to the database. It does insert, just the message does not show up.
    I looked at the page that works and it is identical to this page. Does anyone have any good advice? I would really appreciate it.
    Thanks!

    When I see this, it usually turns out that I forgot to tick the check box for "include process success message" on a "Branch" object.

  • Executing BAPI_PO_CREATE1 in a loop results in multiple success messages

    Hi all,
    I have a process where I need to create multiple POs with one item each. For creating the POs I use BAPI_PO_CREATE1. The creation itself works fine and created POs are also correct.
    But what is a bit confusing is the content of the RETURN table of the BAPI. From the second created PO on I also get ALL messages of the previously created POs although I have a COMMIT WORK AND WAIT after each creation and the return table is always empty when executing the BAPI.
    Example:
    I need to create two POs.
    First run of the BAPI_PO_CREATE: PO A is created and return table has success message "PO A successfully created"
    Second run of the BAPI_PO_CREATE: PO B is created and return table has two success messages: "PO A successfully created" and "PO B successfully created"
    But for the second run I also would expect to get only one success message.
    Why do I get too many messages? Or do I need to initilize the BAPI somehow?
    By the way, I have the same problem with BAPI_PO_CHANGE.
    regards
    René

    Hi,
    so again: the return table is cleared/refreshed all times when executing the loop and a commit is done!
    Unfortunately the whole coding is implemented to the SAP AIF so the AIF is doing the loops. But in debugging I clearly see that the return table is empty before executing the BAPI.
    Here is the coding. The AIF calls the here described function module in a loop and executes a commit work and wait after each call of the FM.
    FUNCTION POST_PURCHASE_ORDER.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(TESTRUN) TYPE  C
    *"     REFERENCE(HASH_TAB) TYPE  /AIF/HASHTAB_T OPTIONAL
    *"     REFERENCE(IDX_TAB) TYPE  /AIF/IDXTAB_T OPTIONAL
    *"  TABLES
    *"      RETURN_TAB STRUCTURE  BAPIRET2
    *"  CHANGING
    *"     REFERENCE(DATA)
    *"     REFERENCE(CURR_LINE)
    *"     REFERENCE(CURR_DATA)
    *"     REFERENCE(SUCCESS) TYPE  /AIF/SUCCESSFLAG
    *"     REFERENCE(OLD_MESSAGES) TYPE  BAL_T_MSG
      DATA: lt_po_items        TYPE TABLE OF bapimepoitem,
            lt_po_itemsx       TYPE TABLE OF bapimepoitemx,
            lt_bapiparex       TYPE TABLE OF bapiparex,
            lt_po_conditionx   TYPE TABLE OF bapimepocondx,
            lt_po_header_texts TYPE TABLE OF bapimepotextheader,
            lt_po_item_texts   TYPE TABLE OF bapimepotext,
            ls_po_headerx      TYPE bapimepoheaderx,
            ls_po_headerx_cust TYPE bapi_te_mepoheaderx,
            ls_po_itemx        TYPE bapimepoitemx,
            ls_po_condition    TYPE bapimepocond,
            ls_po_conditionx   TYPE bapimepocondx,
            l_testrun          TYPE bapiflag-bapiflag.
      CHECK curr_line IS NOT INITIAL.
      REFRESH: return_tab[].
      CLEAR: return_tab[].
      l_testrun = testrun.
    * Get X-structures for PO header
      PERFORM fill_x_structure USING curr_line-po_header 0 CHANGING ls_po_headerx.
    * Create PO Header Custom Fields.
      PERFORM fill_bapiparex USING curr_line-po_header_cust space
                          CHANGING lt_bapiparex[] return_tab[].
    * Get X-structures for PO ExtensionIn fields and post them to ExtensionIn as well
      PERFORM fill_x_structure USING curr_line-po_header_cust 0 CHANGING ls_po_headerx_cust.
      PERFORM fill_bapiparex USING ls_po_headerx_cust space
                          CHANGING lt_bapiparex[] return_tab[].
    * Get X-structure for PO item
      curr_line-po_item-info_upd = 'A'.
      curr_line-po_item-po_price = '1'.
      PERFORM fill_x_structure USING curr_line-po_item 1 CHANGING ls_po_itemx.
      ls_po_itemx-po_item        = curr_line-po_item-po_item.
      curr_line-po_item-po_price = space.
      curr_line-po_item-info_upd = space.
      APPEND curr_line-po_item  TO lt_po_items.
      APPEND ls_po_itemx TO lt_po_itemsx.
    * Get X-structures for PO conditions
      IF NOT curr_line-po_conditions IS INITIAL.
        LOOP AT curr_line-po_conditions INTO ls_po_condition.
          CLEAR ls_po_conditionx.
          ls_po_conditionx-itm_number = ls_po_condition-itm_number.
          PERFORM fill_x_structure_2 USING ls_po_condition 3 0
                                  CHANGING ls_po_conditionx.
          APPEND ls_po_conditionx TO lt_po_conditionx.
        ENDLOOP.
      ENDIF.
    * Get header and item texts
      APPEND curr_line-po_header_text TO lt_po_header_texts.
      APPEND curr_line-po_item_text   TO lt_po_item_texts.
    * Execute BAPI_PO_CREATE1
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = curr_line-po_header
          poheaderx        = ls_po_headerx
          testrun          = l_testrun
          no_price_from_po = c_checked
        IMPORTING
          exppurchaseorder = curr_line-po_number_return
        TABLES
          return           = return_tab
          poitem           = lt_po_items
          poitemx          = lt_po_itemsx
          pocond           = curr_line-po_conditions
          pocondx          = lt_po_conditionx
          extensionin      = lt_bapiparex
          potextheader     = lt_po_header_texts
          potextitem       = lt_po_item_texts
        EXCEPTIONS
          error_message    = 1.
      IF sy-subrc = 1.
        IF NOT sy-msgid IS INITIAL
          AND NOT sy-msgty IS INITIAL
          AND NOT sy-msgno IS INITIAL.
          PERFORM util_add_msg USING sy-msgty sy-msgid sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 CHANGING return_tab[].
        ENDIF.
      ENDIF.
    ENDFUNCTION.

  • ADF 11g:Success message on fire fox Staus bar

    Hi all,
    Im working on ADF 11g - Jdeveloper 11.1.1.2.
    The page contains a ADF table with Create, Edit and delete operations. The success messages of these operations have to be displayed on the staus bar of the Fire fox browser.
    Ex: "Record Successfully created" whenever there is a successful insertion of a record in the ADF table.
    How to display the user generated message on the staus bar of Fire fox? Please help....
    Thanks,
    Manasa.

    I'll bite. Presumably you're trying to mimic the same functionality from Forms. Firstly I'll flag that you need to convince users that browsers aren't Forms, and they do things in their own ways. A typical browser user doesn't look to the status bar for messages from an application, the status bar is reserved for browser raised messages.
    Yet I also understand it's hard to bend such requirements, so in addressing that requirement specifically, my understanding is the ADF framework doesn't provide this functionality out of the box. You will need to build your own. As a start independent of ADF there appears the ability in Javascript to write to the browser status bar through a function called statsword: http://www.htmlite.com/JS017.php
    At this stage I've no inspiration on how to build this in to an ADF solution (it's far too early in the morning), maybe another reader can help, but I suspect a solution might use the ADF af:serverListener and af:clientListener tags.
    CM.

Maybe you are looking for