Displaying multiple messages in a single view

Hi,
I am trying to display two diffrent messages in same view. for this i am using two different message area UI elements. When I use the code wizard to generate the message,same message is being displayed in two message areas. But i do not want that functionality.
If error1 happens, I want the message1 to be displayed in Message area1.
if error2 happens, I want the message2 to be displayed in Message area2.
anyhelp would be appreciated.
thanks,

Hi,
In the method you need to write the code for both the errors,
get message manager from code wizard and call the method report_error_message.
For both errors write the code below:
*get message manager
      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_error_message
        EXPORTING
          message_text = 'Message1 '. ("Write the first message")
Hope this solves the issue, Let me know if any queries.
Regards,
Rajani

Similar Messages

  • Displaying multiple messages in a single window

    Hi,
    i have several messages in an internal table and i need to display all those with in the same dialog box/window. is there any function module to do that.
    Regards,
    ravi.

    Hi,
    You can use FM 'SLS_MISC_SHOW_MESSAGE_TAB'.
    DATA: it_messages LIKE sls_msgs OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      CLEAR it_messages.
      MOVE '001' TO it_messages-num.
      MOVE 'message001' TO it_messages-msg.
      APPEND it_messages.
      CLEAR it_messages.
      MOVE '002' TO it_messages-num.
      MOVE 'message002' TO it_messages-msg.
      APPEND it_messages.
      CLEAR it_messages.
      MOVE '003' TO it_messages-num.
      MOVE 'message003' TO it_messages-msg.
      APPEND it_messages.
      CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB'
        TABLES
          p_messages                 = it_messages
      EXCEPTIONS
        NO_MESSAGES_PROVIDED       = 1
        OTHERS                     = 2

  • Display Multiple reports in a single query view

    Hi Team,
    I have 3 similar reports for MTD, QTD & YTD.
    While displaying the report in the portal..  I want to display the reports in a single view wherein the MTD report will be a default report for the input selections. whereas the QTD & YTD will be available as dropdown options in the same query view and the wll be executed for the same input selections.
    Please advice how to design the view.
    Regards
    Sneha

    Hi All,
    I have created a Web Template for my requirement.
    Now while adding the template to my Transport request, I am getting the following error message:
    Object 'BTMP::0ANALYSIS_PATTERN_EXPORT' refers to the invalid object 'QU::'
    Object 'BTMP::0ANALYSIS_PATTERN_INFO' refers to the invalid object 'QU::'
    PLEASE ADVICE...
    Regards
    Sneha
    Edited by: Sneha Santhanakrishnan on Aug 8, 2011 12:18 PM

  • How to show multiple messages for a single exception

    hi
    Please consider this example application created using JDeveloper 11.1.1.3.0
    at http://www.consideringred.com/files/oracle/2010/MultipleMessagesExceptionApp-v0.01.zip
    It has a class extending DCErrorHandlerImpl configured as ErrorHandlerClass in DataBindings.cpx .
    Running the page and entering a value starting with "err" will result in an exception being thrown and multiple messages shown.
    See the screencast at http://screencast.com/t/zOmEOzP4jmQ
    To get multiple messages for a single exception the MyDCErrorHandler class is implemented like
    public class MyDCErrorHandler
      extends DCErrorHandlerImpl
      public MyDCErrorHandler()
        super(true);
      @Override
      public void reportException(DCBindingContainer pDCBindingContainer,
        Exception pException)
        if (pException instanceof JboException)
          Throwable vCause = pException.getCause();
          if (vCause instanceof MyMultiMessageException)
            reportMyMultiMessageException(pDCBindingContainer,
              (MyMultiMessageException)vCause);
            return;
        super.reportException(pDCBindingContainer, pException);
      public void reportMyMultiMessageException(DCBindingContainer pDCBindingContainer,
        MyMultiMessageException pException)
        String vMessage = pException.getMessage();
        reportException(pDCBindingContainer, new Exception(vMessage));
        List<String> vMessages = pException.getMessages();
        for (String vOneMessage : vMessages)
          reportException(pDCBindingContainer, new Exception(vOneMessage));
    }I wonder if calling reportException() multiple times is really the way to go here?
    question:
    - (q1) What would be the preferred use of the DCErrorHandlerImpl API to show multiple messages for a single exception?
    many thanks
    Jan Vervecken

    fyi
    Looks like using MultipleMessagesExceptionApp-v0.01.zip in JDeveloper 11.1.1.2.0 (11.1.1.2.36.55.36) results in a different behaviour compared to when used in JDeveloper 11.1.1.3.0 (11.1.1.3.37.56.60)
    see http://www.consideringred.com/files/oracle/img/2010/MultipleMessages-111130versus111120.png
    When using JDeveloper 11.1.1.2.0 each exception seems to result in two messages where there is only one message (as intended/expected) per exception when using JDeveloper 11.1.1.3.0 .
    (Could be somehow related to the question in forum thread "multiple callbacks to DCErrorHandlerImpl".)
    But, question (q1) remains and is still about JDeveloper 11.1.1.3.0 .
    regards
    Jan

  • Firefox 4 displays multiple message boxes with "uninstall set'. How do I stop this?

    Firefox 4 displays multiple message boxes with "uninstall set'. They cannot be closed and they freeze Firefox. The only way to stop is to END TASK through the Task Manager.
    OS: Vista) with all service packs and updates as of 21 Apr 2011. All other browsers and applications are closed.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    See:
    * [[Troubleshooting extensions and themes]]

  • Display of messages in webdynpro ABAP views

    Hi,
    In a ABAP WD component I have 2 views, connected through a navigation link.
    If in the first view, a message is displayed using the message manager, a message area is shown on the top of the view with the message in it.
    If now I navigate to the other view, The message area is still being displayed without any message in it.
    Perhaps the message log is not empty.I do not wish to display the message area when there are no new message is reported.
    How do I go about it?
    Regards,
    Rahul
    Message was edited by: Rahul Kumar

    Hi Rahul,
    The message area is still displayed, because the message is stored inside of the history. Without displaying the message area, the user won't be able to access the message history. There are plans to allow a developer to switch off the history though (being just plans, so no eta).
    Best regards,
    Thomas

  • Crystal Reports XI - Display multiple reports in the same viewer window

    Post Author: crystal_dev
    CA Forum: General
    Hello,
    We recently upgraded from CR 8 to CR XI. In CR 8, we were able to display multiple RPT files in the same run time viewe window and the reports would display in different tabs. However, we are not able to accomplish the same in the CR XI version of the crviewer.dll. Each report comes up in a different viewer windows which can be quite annoying to the user.
    Any way to do this in CR XI?
    Thanks.

    Hi Smitha,
    Wow - complicated reporting structure!   What the business wants can be done by creating direct reporting relationships between the positions - using the "005" relationship.  However, this is complicated and is difficult to maintain as there are probably frequent changes to this structure.  Also difficult to control if there are three chiefs in one org - who would approve vacations, pay raises or expense reports in Org Unit 1?  Per this structure any of the three could without consulting the others (all chiefs are equal). 
    Recommended:  Five separate Org Units - One for each Chief.  Org 1 has Position S1; Org unit 2 has position S2 as Chief and and position S5.  Org unit 3 has S3 as chief and S7 and S8 reporting to him; Org Unit 4 has S4 as chief; Org Unit 5 reports to Org Unit 4 and has S5 as Chief with S6 and S7 reporting to him.  You have S7 and S5 reporting to two different chiefs.  You may have a "dotted line" relationship for functional reports, but again recommend that there be only one individual who can grant pay increases, approve vacations, etc.  The dotted line or functional relationship can be handled via a "Matrix" relationship. 
    You and the business will have to sit down and decide the real "reporting" structure of this organization.  "Who reports to whom" and then build the structure around that.  You should not reproduce the structure as it has been just because many years ago with another system someone created a bunch of boxes.  SAP is flexible enough to handle any reporting structure, but for ease of maintenance, understandabilty, adaptability to Workflow and flexibility, please try to use the standard structure of Org Units with one chief and separate Org Units reporting to that one each with its own chief. 
    Paul

  • Customizing Sharepoint Calendar Week Group View to display multiple weeks in a single row

    Hi,
    SharePoint Calendar's Week Group View is useful for comparing multiple co-worker's schedule, and we have a business needs to be able to view the schedule for with the date range of more than one week at a time between co-workers for planning purposes, is
    there a way (code or no-code) to manipulate the date/week range so that the calendar display more than 7 days in a single row?

    Hi,
    As there is no such OOTB feature, I would suggest that you can change the calendar scope to “Month” or create a Gantt view to display more weeks in a view.
    Or you can try to create a custom calendar web part to meet your requirement.
    Here are some samples of custom calendar web part for your reference:
    http://www.codeproject.com/Articles/108676/SharePoint-Custom-Calendar
    http://gunnarpeipman.com/2009/01/creating-sharepoint-global-calendar/
    https://blog.metrostarsystems.com/2013/10/21/creating-a-custom-sharepoint-calendar-rollup/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Displaying multiple columns of a single column query

    Would anyone happen to know how to display a result set in multiple horizontal columns as opposed to a single vertical column in ApEx?
    Example:
    select server_name from owner.servers;
    A normal sql report would return:
    server1
    server2
    server3
    server4
    server5
    server6
    What I'm looking for is a return that will display:
    server1 server2 server3
    server4 server5 server6

    I'm sure there's a much better way, but one thing that popped into my head was to make your report be a Dynamic PL/SQL Region.
    If you loop thru the records in a cursor, you can build a string and once you have "three" records, use the htp.p to print it out.
    So something like this maybe:
    v_count NUMBER(1);
    v_data SERVERS.SERVER_NAME%TYPE;
    v_string VARCHAR2(100);
    CURSOR getdata IS
    SELECT server_name
    FROM servers
    ORDER BY server_name;
    BEGIN
    v_count := 0;
    OPEN getdata;
    LOOP
    FETCH getdata INTO v_data;
    EXIT WHEN getdata%NOTFOUND;
    v_count := v_count + 1;
    IF v_count = 1 THEN
    v_string := rpad(v_data,25,' ');
    ELSIF v_count = 4 THEN
    htp.p(v_string);
    v_count := 1;
    v_string := rpad(v_data,25,' ');
    ELSE
    v_string := v_string||rpad(v_data,25,' ');
    END IF;
    END LOOP;
    CLOSE getdata;
    END;
    Variable lengths would need to be adjusted to fit your data, but you get the idea (hopefully).
    Again, perhaps it's not the most efficient, but it would work.
    Chad

  • Multiple message threads for single contact

    A friend of mine happens to send iMessages from two accounts and it creates two message threads in Messages for me. Is there a way to somehow show one thread covering single account, even though it has multiple "physical" sources? Thanks.

    No.

  • Problem in displaying multiple column values using Narrative View

    Hi All,
    I have a requirement where in I need to display column 1 of an Answers report as a header and all values of column 2 below tht.
    There are multiple values from column 2 for every value in column 1
    Example:
    Group:
    Grp (This is column 1)
    Activity:
    Act1
    Act2
    Act3 (These are values from column 2)
    I have used narrative view for this which looks like:
    Group: @1
    Activity:@2[br/]
    But this displays the value of column1 along with every value of column 2. I want column 1 value to be displayed only once.
    Thanks in advance
    Radhika

    Hi see this link it may helpful
    Re: Narrative view not showing up in the report
    Re: how to transpose columns to rows in OBIEE
    Regards
    Naresh

  • How to display multiple components in a single tabstrip with different tabs

    Hi Experts,
    I am working on PM UI development. We have created 5 webdynpro components and all have seperate application and link to run. Now we have requirement in which we should have a single window and all components should exist in different tabs.
    Till now I have used Tabstrip in a single copmponent and have no idea how to fix this issue. Could you please help me out to get this done ASAP.
    Thanks in advance.
    Madhu Omer

    Hi Madhu,
    One option that you can try now is to create a new webdnpro component with a tabstrip.
    1. To each of the tab area you attach view container.
    2. In the used components of webdynpro component tab you can add each of the components that you created
    3. Create inboud plugs for each of these application that you created.
    4. When the tab is pressed trigger a call to the inbound plug of the applications
    5. You can refer the following also https://cw.sdn.sap.com/cw/docs/DOC-24752
    All the Best !

  • Need to display multiple messages

    Hi All,
    I have a requirement, wherein, I have to display a list of messages on screen. How to go about it? Is there any function module or something that displays a popup with the messages given?
    Thanks,
    Raj.

    hi,
    you can use Inernal table to store the messages
    You can use FM 'SLS_MISC_SHOW_MESSAGE_TAB'.
    DATA: it_messages LIKE sls_msgs OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    CLEAR it_messages.
    MOVE '001' TO it_messages-num.
    MOVE 'message001' TO it_messages-msg.
    APPEND it_messages.
    CLEAR it_messages.
    MOVE '002' TO it_messages-num.
    MOVE 'message002' TO it_messages-msg.
    APPEND it_messages.
    CLEAR it_messages.
    MOVE '003' TO it_messages-num.
    MOVE 'message003' TO it_messages-msg.
    APPEND it_messages.
    CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB'
    TABLES
    p_messages = it_messages
    EXCEPTIONS
    NO_MESSAGES_PROVIDED = 1
    OTHERS = 2
    thanks
    jaideep
    *reward points if useful..

  • Single source sending data through multiple messages to a single reciever

    Hi all,
    I am trying to implement the below scenario:
    - I am reading from table1 in a database using a sender channel1. Based on data retrieved, I perform a JDBC lookup on table2 (in same d/b) using a reciever channel2 in an UDF of a message mapping1.
    - The data retreived from table2 is mapped to an intermediate format1. A mapping between the intermediate format and target message type1 is performed and message is sent to the recieving system using a reciever channel3.
    - Now, I need to map data retrieved from table2 to different target message types1,2,3.. based on some criteria and send it to the same reciever. I intend to use a different target message type and intermediate format for every kind of data obtained from table2 and a corresponding mapping.
    I plan to do this without using a BPM. Is it possible? If yes, then are the 3 communication channels sufficient to achieve this or do I need to have more communicatin channels?
    Any help would be appreciated.
    Thanks,
    Amit

    This is pretty straight forward...
    change your design as folllowing :
    1. as you have both table 1 and 2 in the same database , you can directly write a join query to pick data from both the tables . this can be specified in the sender jdbc adapter
    so your source data type would be like
    row..0..un
    +f1(field from table 1)
    +f2( field from table 2)
    +f3(field from table 2)
    2. now just create 3 seperate mappings
    mapping 1 = between source structure given above and target MT1
    mapping 2= b/w source struc given above and target MT2
    mapping 3 = b/w source struc given above and target MT3
    3. use 1 receiver determincation ...1 interface detemination where you keep on adding the message interfaces and interface mapings created above..
    4. use 3 receiver agreemetns

  • How to Display Multiple rows in a single row but in different columns (Oracle 11.2)

    Hello All,
    I have a table in which data is stored in the below displayed fashion.
    TRANS_ID
    Ty_1
        NU_1
    38960
        BP
        5215153159
    38960
       EM
        [email protected]           
    38960
       FX
        5115538033
    38960
       HP
        4419965055
    38960
    For some weird purpose, I would have to display the same data in the below listed fashion
    TRANS_ID
    Ty_1
      NU_1
    Ty_2
      NU_2
    Ty_3
      NU_3
    Ty_4
      NU_4
    Ty_5
      NU_5
    38960
        BP
    5215153159
       EM
    [email protected]           
       FX
    5115538033
       HP
      4419965055
    If possible, Please guide me in the right direction.
    Thanks

    Multiple inserts do only work with parametrized statements, usually used in interfaces like JDBC, ODBC etc.
    With static SQL statements it is not possible.
    Regards Thomas

Maybe you are looking for

  • How to print the same lay out in multiple pages

    hi friends, i have designed a layout. if i give my layout for print out i need 10 print out of same layout. how to do this. can any one help. thanks, sripathi ranjith.

  • Using EFI password "full" security isn't working

    Hi, I'm trying to use the EFI Password Utility to prohibit any attempt to boot my MacBook Pro without the correct password.  I used the utility available on the MacBook Pro's supplied install DVD, and so far have successfully prevented the use of any

  • Error when I try to access to "Payables Business Intelligent" Tab

    Hi everyone, sorry but I´m new in Fusion Aplications, When i try to access  to "Payables Business Intelligent" Tab I get this error: Details when Click in "Analyze" Thanks for any comments.

  • Flash, ActiveX and FlashVars

    Hello everybody. I looked in the forums and searched, but so far I got no solution. Is there a simple js that takes flashvars? Or I have to do it all over again? (since is all working with flashvars)

  • Why does firefox reject google toolbar?

    I upgraded to 5.0 and got a pop-up that comes up on every web site called "error console".I went back to 3.6.18 and now I find that firefox won't allow google toolbar.