Display Massages from context within message manager

Hello,
i have got a bapireturn in my context with a node named "return" an some attributes like "type" and "message", .
If I run the Bapi this node get some infos like:
Type: E message: Error1
Type: W message: warning1
Type: W message: warning2
how could I get this messages and warnings into the Message manager?
If i implement the Message Manager with the code-wizard, i only get one Message with my own text, but I want every massage with the original text of the warning...
Is this possible?
Could you can give me some advise and code?
That would be really nice!!
Thank you for your help!
Edited by: john Thompson on May 20, 2008 12:53 PM

Hi,
Just loop at your bapiret table and using the message manager just report the error. All the errors are displayed in the message manager.
  data: l_current_controller type ref to if_wd_controller,
               l_message_manager    type ref to if_wd_message_manager.
  l_current_controller ?= wd_this->wd_get_api( ).
  call method l_current_controller->get_message_manager
    receiving
      message_manager = l_message_manager.
loop at bapiret.
call method l_message_manager->report_t100_message
                exporting
                  msgid = bapiret-msgid
                  msgno = bapiret-msgno
                  msgty = bapiret-msgtyp  .
endloop.
Regards,
Shruthi

Similar Messages

  • Noobie question: How do I add something to the display list from a non-main class?

    I know how to use addChild() within the main class to add
    something to the stage display list and have it appear on the
    screen, but how do I add something to the stage display list from
    code within another class?
    So for example say I want to add some text (myTextField) to
    the stage's display list from within NotTheMainClass' code, could
    you give an example of the necessary code?

    you must pass a reference to a display list object or create
    one that's available to your class.
    there are so many ways to do this i'm not sure how you want
    to proceed. but you can create a globally available reference to
    the stage and root timeline:

  • HT1937 I tried to update software on my Iphone 3 from Itunes after i managed to sync phone to laptop but then i had a message (error 1015) after completing saying itunes has detected an iphone in recovery mode, i am now unable to do anything with my phone

    I tried to update software on my Iphone 3 from Itunes after i managed to sync phone to laptop but then i had a message (error 1015) after completing saying itunes has detected an iphone in recovery mode, i am now unable to do anything with my phone, please help!!

    You generally get that error code on a jailbroken phone ?
    If it is Jailbroken then I am afraid you will get no help here.

  • Make "Manage Substitution Rule" from context menu to as button on UWL

    Hi Experts,
         We have requirement that "Manage Substitution Rule" link from context menu on UWL to make it as a button on UWL as "Manage Substitution Rule".  Anyone has done this kind of requirement before.  If you do please let me know the steps.  Award full points will be given to answer.  Thank you.
    With Regards,
    Sudheer.

    Hi,
    you can download the standard XMl file ad modify it by writting hte below code.and rename the file and upload it with high priority. and clear the cashe after uploading the file.
    1.code to create the specific action.
    in the action name below instead of xyz can be any name
    <Action name="launchSubstitutionManager_xyz" groupAction="" handler="SAPWebDynproLauncher" referenceBundle="SubstitutionManager" returnToDetailViewAllowed="yes" launchInNewWindow="SHOW_HEADERLESS_PORTAL" launchNewWindowFeatures="width=800,height=600,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
    <Properties>
    <Property name="WebDynproApplication" value="UWLSubstitution"/>
    <Property name="WebDynproDeployableObject" value="sap.com/tckmcbc.uwl.ui~wd_ui"/>
    <Property name="isnewwindow" value="1"/>
    <Property name="type" value="button"/>
    <Property name="launchContext" value="UWL"/>
    <Property name="ignoreWorkIdParams" value="yes"/>
    <Property name="appContext" value="${context.appContext}"/>
    <Property name="System" value="SAP_LocalSystem"/>
    <Property name="display_order_priority" value="-1"/>
    </Properties>
    </Action>
    2. in the required view add the below code.
    <Action reference="launchSubstitutionManager_xyz"/>
    3. save your own the xml file and upload it with high priority.
    4. cleare the UWL cashe and browser cashe.
    5. relaunch the URL with the end user id.
    Raji.

  • When updating iPod from iTunes receive message that some of the photos cannot be displayed in iPod touch

    when syncing iPod Touch from iTunes receive message that some of the photos cannot be displayed in iPod touch

    What are the detail? file size?
    Since you can't create them in iPhoto, what is the source?  Camera? What processing did you do in iPhoto?
    Can you look at the Info for the photos that do sync and those that do not to try to find out why?

  • Configure EP to display contents from Solution Manager

    Hello,
    How to Configure EP to display contents from Solution Manager? I want to access Solution Monitoring through Portal, how to do this?
    I will appreciate if someone can help me,
    Waiting for reply,
    Regards
    Sharmishtha

    Hello Lee
    I want to display solution monitoring on portal. I will access the portal instead of solution manager to view CCMS alerts.
    I have configured ccms in solution manager which is my central system, so now i want to display these contents on portal.
    is there any way i can do this task. I have solman 4.0 with SP15. I use work center for this configuration.
    Will appreciate if you can direct me the right way.
    Thank you
    Regards
    Sharmishtha

  • Remove faces messages from context

    Hi,
    I am using below code to remove messages from context.
    But unable to remove messages.
    Please any one help me how to remove faces messages from context.
    Iterator iterator = FacesContext.getCurrentInstance().getMessages();
    while (iterator.hasNext()) {
            iterator.remove();
    }Thanks,
    sivareddy
    Edited by: sweetreddy2001 on Aug 26, 2009 6:56 PM

    Check the topic right below yours in the topic listing. The same question was asked and answered some hours ago.

  • Message (of message manager) gets lost by opening a popup window

    Hi all,
    On behalf of a better error/exception handling, I would like to show the stacktrace in a popup window, that means, if the application reports an error message (through the message manager in the view controller), the user (administrator, developer) can optionally click a link (LinkToAction => opening a modal window) to see the stacktrace in a separat popup window.
    Unfortunately if the popup window now gets displayed, the error message on the main view (background of the popup window) will be cleared, so this - for the common user more readable - information is not anymore displayed, also when the popup will be cleared.
    Of course, I could backup the error message in a context value and redisplay it after closing the popup window, but I suppose that's not a very cool solution...
    Other any good ideas?
    Thanks,
    Stefan

    Hi Stefan
    Usually showing a stack-trace to the end-user of your application is not so helpful as might appear. My experience shows that the information is too technical for the end-user and does not help him/her to resolve the issue/problem. It's better to display error messages pointing him to some solution or directions that he might do in order to fix the error.
    If you still want to show a stack-trace I'd advise the following. You have to prepare the UI control with the stack-trace in the same server response (round trip) which shows the message manager's messages. The messages will not disappear until a client sends a new request to the server. When you open the popup such request definitely takes place.
    Maybe try to display the stack-trace in the bottom of the screen so user have to scroll down a little bit to show the trace.
    Or maybe Tray control will help in the case. Try to put the trace in a text view and put the view in a tray. Then user has to expand the tray to see the trace. But do not assign any event handlers to the tray to avoid additional request to the server while it's expanding.
    BR, Sergei

  • I create trigger but not display massage after insert in oracle 10g

    I create trigger but not display massage after insert in oracle 10g
    **CREATE OR REPLACE TRIGGER TableName**
    **AFTER INSERT OR DELETE OR UPDATE ON test**
    **BEGIN**
    **if inserting then**
    **dbms_output.put('Message');**
    **end if;**
    **END;**

    What user interface are you using?
    If the tool doesn't support the SQL*Plus syntax (set serveroutput on), it probably has an option somewhere to enable DBMS Output. Not even knowing what tool you're using, it's impossible for us to guess where that option might be configured.
    As others have suggested, using DBMS Output to test code is less than ideal because you're dependent on the application you're using to display it to you and not every application can or will do that. If you want to use DBMS_Output, you may need to switch to a different GUI (SQL Developer or SQL*Plus are both free utilities from Oracle). Otherwise, you'd probably be better off having the trigger do something that you can subsequently query (i.e. write a row to a log table).
    Justin

  • CRM_DNO_MONITOR -  way to customise  display apart from 'change layout' ?

    Hi friends,
    In the transaction CRM_DNO_MONITOR, there is a standard screen offering a few selection parameters.
    Based on what you choose, the next screen is displayed with all those relevant messages.
    There is a "Change Layout Button" as with many SAP reports. One can choose to include a further fields to get displayed on the report screen.
    My questions are:
    (1) Is there a way to include more fields than suggested by the "Change Layout" dialog box? For instance, I was keen to know why the following fields were not offered for selection:
               a) Support Team
               b) Subject (field name - LISTCODE)
    (2) Is there a way to easily include Z fields as part of the Support Message (standard Transaction Type SLFN) and use such Z fields in display ?
    (3) Is there any other transaction, apart from CRM_DNO_MONITOR that offers even better control on filtering/ sorting messages ?
    Any suggestions and workarounds would be gratefuly acknowedged.
    Regards,
    Srini

    Dear Alagammai,
    Thanks for your time.
    Being a person who started from 3.1 days, yes DNOTIFWL was my first port of call
    However, what I realised was that if you set a notification to 'Completed', it does not automatically set the Message Status to 'Confirmed'. Therefore, the status values as seen by Testers from within STWB_WORK does not reflect the updated position.
    [This|https://websmp103.sap-ag.de/~sapdownload/011000358700001197002005E/Addtional_Information.pdf] document - once proposed by Raguraman C in reply to another member [thread |Notification Vs transaction type;also does not exactly answer the utility served by DNOTIFWL.
    At the moment, ii is not an option I have since there is no ABAP talent meant to serve SolMan stream. i is inadequate and iii doesn't help either, unfortunately.
    Thanks for your time though. If you ever find a better solution, please update in this thread.
    Regards,
    Srini
    Format changed; Edited by: Srinivasan Radhakrishnan on Apr 24, 2008 1:31 PM

  • How do I get a web part to display items from a dropdownlist?

    I have a DropDownList that am filling with items from a list. The part of my code that am using to read the list and populating the drop down works just fine. I am now trying to figure out how to display the contents of the drop down on a web part. I know
    it sounds like a straight forward and easy thing to figure out, but I have blanked out. Does anyone have a snippet I can take a look at? This is how I am currently reading from a list to create the drop down...
    protected override void CreateChildControls()
    string title = string.Empty;
    EditorChoices = new DropDownList();
    string siteUrl = "mySite";
    using (SPSite site = new SPSite(siteUrl))
    SPWeb web = site.RootWeb;
    SPList list = web.Lists["testList"];
    SPQuery testQuery = new SPQuery();
    testQuery.Query = "<Query><Where><Geq><FieldRef Name='Title'/>" +
    "<Value Type='Number'>10</Value></Geq></Where></Query>";
    foreach (SPListItem item in list.GetItems(testQuery))
    title = Convert.ToString(item["Title"]);
    EditorChoices.Items.Add(title);
    Controls.Add(EditorChoices);
    base.CreateChildControls();
    ChildControlsCreated = true;
    I basically want to display the items returned from the query, which are now in the dropdownlist, to be displayed on my custom webpart. I really appreciate the help.
    Thanks
    UPDATE: My dropdownlist is a web part property. So when editing the web part, the drop down control appears in the web part property. Now that part is working just fine. The part am having an issue with is, the second part of my requirement is that I want
    to display that same information within the drop down on the web part. Not as another drop down, but just to display them as a vertical text list on the web part.

    Hello,
    >I want to be able to display all the entteries in the dropdown,
    Could you please provide more information? as per your description fisrt part is done, which was filling data in dropdown list. So what is next?
    If you want to get selected value from dropdown or filter value then you may try this link:
    http://bilbrobloggins.com/sharepoint/dropdown-list-box-filter-web-part-in-sharepoint-ndash-part-three/
    http://tmullenssharepoint.wordpress.com/2013/04/12/sharepoint-custom-web-part-properties-from-sharepoint-list/
    Correct me if i misunderstood
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Displaying fields from a Z Table on CRM UI

    Hello Experts
    I am trying to display fields from a custom table onto a CRM UI form view.
    1. I created a custom GENIL root object & Search object ie. ZCUSTOMER. & ZCUSTSEARCH
    2. Tested this in the GENIL BROWSER to ensure that I could enter update values to the table and retrieve it via the search object.
    3. Created a custom component ZCUSTOMER
    4. Created a view with this component ZCUSTOMER using the wizard -
         Model Name - CUSTINFO
         BOL Entity - ZCUSTOMER
         No links to the custom controller or higher level objects.(as I do not want to tie this to any standard components)
    Type of view - Form view
    7. Created a Context node for the component controller with the same info as I did for the view.
    8. Performed the binding of the view context node with the component controller context node.
    9. Configured 1 field CUST_NAME to be displayed on the view.
    10. Configured the run time repository to display the view.
    Now the issue is..
    When the view gets displayed, the field is displayed with the error "CUST_NAME not bound"
    What am i missing?
    Thanks
    RLX

    Hi Swati,
    Thanks for the feedback. I re-viewed the WD_CREATE_CONTEXT method of the view controller implementation class and I see the following code in there already-
    method WD_CREATE_CONTEXT.
      create the context
        context = cl_bsp_wd_context=>get_instance(
              iv_controller = me
              iv_type = 'ZL_ZCUSTOMER_BSPWDCOMPONEN_CTXT' ).
        typed_context ?= context.
    endmethod.
    Does that look right or do I need to modify it?
    Thanks once again for the help.
    RLX

  • Display data from a virtual InfoCube

    Hi experts,
    When I tryed to display data from the virtual InfoCube 0FIGL_V40, I've got a dump.
    Please help me to solve this problem.

    Dear Akshay,
    Is it possible that the problem comes from R/3 since when I check the extractor 0FI_GL_40 with the RSA3 Tcode I've got the message:
    Errors occurred during the extraction --- Message no. RJ012
    I think that the pb has been solved by switching on the business function "Reporting Financials" . Inthe SAP source System -> TA: SFW5. Turn on Reporting Financials. Then I've no pb while testing the extractor.
    Pb solved.
    Many thanks
    Youness
    Edited by: Youness NAJI on Jan 13, 2010 4:39 PM

  • FPM Message Manager message's HyperLink does not work in Table

    Hi FPM experts,
    I use FPM in my application and I want to use FPM Message Manager with hyperlink pointing to cells with errors in a table with report_bapiret2_message. The hyperlink does work when pointing on stand alone input field, but it does not work when pointing on a input field in a table.
    Here is a piece of my code. What's wrong?
      data is_message type bapiret2.
      is_message-type = 'E'.
      is_message-id = 'TEST'.
      is_message-number = '1'.
    wd_comp_controller->mr_fpm_message_manager->
       report_bapiret2_message( is_bapiret2 = is_message
                                             io_component = wd_comp_controller
                                             io_element = lo_el_table_elements " point on the element in my context
                                             iv_attribute_name = 'VALUE' ).  " Name of my attribute in context
    Thanks
    Davy
    Edited by: Davy Veilleux on Jan 4, 2009 4:19 PM

    Any answers to this question?
    I am facing the same issue. Using FPM Message Manager  with the io_element and iv_attribute parameters pointing to an element in an context node having cardinality = "0...n" does not show the hyper link.
    Any Help is Appreciated.

  • Is it possible to display the sequence context browser using the TS API ?

    Hi,
    I would like to display a sequence context browser in a custom step developped in CVI to allow operator to choose the local or global who receive a data.
    I tried tu use the Browse Expression Dialog but i didn't find the way to limit this UI as a context browser.
    Thanks for your help

    Hi,
    Using the Engine.DisplayBrowserExprDialogEx(...) method you are also able to declare variable within the dialog.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for

  • Hard drive died - want to create bootable external

    The hard drive on my spare laptop - and old PowerBook G4 - just died, and I'll probably wind up getting a new HD installed. In the meantime, I was thinking of booting it from an external drive, of which I have several. But none are clones of the old

  • OIM 11g r1 custom field in simple user search result

    Good morning, i need to visualize a custom field in the OIM simple user search result table. At the moment, when a simple user search is performed, the returned attribute is only the "Display Name". For the advanced user search result table, is possi

  • JOB IDOC

    Hi everybody. How send IDOC to XI by JOB? Thanks Anvar.

  • Unhandled Exception of type Exception

    Im getting an error message that says Unhandled Exception of type Exception when trying to us a method or when im trying to call a vector. What does that mean? Am i missing something? I would really appreciate your help.

  • PLSQL enqueue -- Java client

    Hi Can anyone shed some light on how to enqueue a message using dbms_aq.enqueue() and have a (connected) java client pick it up? I have managed to get a java-to-java pub/sub to work - I would like to do this with both a standard and multi-consumer qu