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

Similar Messages

  • How to use messages in WebDynpro-ABAP

    Hi,
        How to use messages in WebDynpro-ABAP.
    Does it has any class to manage messages like IWDMessageManager or we can just use standard SAP Message types.. like E,W,X,I,S..
    I hope it have a message container to display messages.
    Thank U for Ur time.
    Cheers,
    Sam

    Hi Sam,
    U can hard code the message or u can use the Assistance class's text elements to store the messages.
    1) Code to display hard coded message:
    report message
    CALL METHOD l_message_manager->report_attribute_error_message
    EXPORTING
    message_text = "Enter the correct Connection ID"
    element = elem_flightinfo
    attribute_name = 'CONNID'.
    2) Code to display message from text element of assistance class:
    lv_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).
    report message
    CALL METHOD l_message_manager->report_attribute_error_message
    EXPORTING
    message_text = lv_text
    element = elem_flightinfo
    attribute_name = 'CONNID'.
    Where Message "Enter the Correct Connection ID" is stored in Text Element with key '002'
    Hope this helps,

  • How can we display photo of particular person on webdynpro abap view

    hello gurus,
                     i am very new to webdynpro abap.i have one requirement.could any one can suggest me to overcome my requirement.
    in my requirement i have one view.in that view i need to display one photo image which ever saved on my desktoop.if i click on save button i should generate one doc number and update what ever the photo image i have displayed in the view against this doc number.after some time if give the doc number in to docnumber field and click on display button it should display what ever the photo we have saved previously against this doc number.this is my exact requirement.i think for this we need to maintain one Z table to stroe the photo and respective doc.number.for this how can we stroe photo against doc number in ztables.what is the type i supposed to give for photo image field.
    could you please any one suggest me on this and could any one send me the sample code if possible.
    regards,
    babu.

    Hello Babu,
    I doubt whether you can directly display the image from your desktop into the webdynpro application using Image UI Element. Only solution what I can think of is to load the image into the MIME folder and then bind the path of image in the Source property of the image UI element. But if you ask me this is not a good solution. Let me propose my solution. If no one get back to issue with better approach then you can follow the same
    1. whenever the image the is uploaded from the desktop, create this image in the MIME folder ( you search in SDN for creating objects in MIME folder )
    2. then bind the path of the image in Mime folder to the Source property of the Image UI Element
    3. Once the image is persisted in the DDIC table, delete the image from the MIME folder.
    4. to persist the image in DDIC table, create an attribute of type RAWSTRING.
    5. Whenever you want to display image from DDIC table into the UI, then again create the image in MIME folder and delete the image from MIME folder when you are existing from the application.
    Alternative would be to use the Mime repository for storing the image and in the DDIC table just maintain the Mime folder path for the document number.
    Hope this helps you.
    BR, Saravanan

  • Troubles generating an error message in WebDynpro ABAP

    Good evening guys.
    I set the following code in enhancement method (pre-method) of ONACTIONNAVIGATE method, which is triggered after push the "Review" button in WebDynpro Application FITE_REQUEST:
    method PRED78YJIDJ8M8KXTC2MXQI1XK5O . "Exit of ONACTIONNAVIGATE (in ZENH_FITV_FPM_02 )
      data: L_CURRENT_CONTROLLER type ref to IF_WD_CONTROLLER,
            L_MESSAGE_MANAGER    type ref to IF_WD_MESSAGE_MANAGER,
            TEKSTO TYPE STRING.
      IF NAVIGATION_TYPE = 'FORWARD'.
        L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
        call method L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
          receiving
            MESSAGE_MANAGER = L_MESSAGE_MANAGER.
    report message
    CALL METHOD l_message_manager->REPORT_T100_MESSAGE
      EXPORTING
        MSGID                     = '00'
        MSGNO                     = '398'
        MSGTY                     = 'E'
        P1                        = 'Test'
        P2                        = 'Test2'
       P3                        =
       P4                        =
       MSG_USER_DATA             =
       IS_PERMANENT              = ABAP_FALSE
       SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CONTROLLER
       VIEW                      =
       SHOW_AS_POPUP             =
       CONTROLLER_PERMANENT_MSG  =
       MSG_INDEX                 =
         CANCEL_NAVIGATION         = 'X'
       ENABLE_MESSAGE_NAVIGATION =
    RECEIVING
       MESSAGE_ID                =
    ENDIF.
    endmethod.
    Unfortunately, this code is not working, because the message is not appearing. I generated this piece of code with the WebDynpro Code Wizard, but even so is not working.
    The standard application generates standard messages an places them in WDR_MESSAGE_AREA WD component, in the View MESSAGE_AREA, regarding blanks in text fields that are located on another WebDynpro component (FITE_VC_GENERAL_DATA, view GENERAL_DATA_VIEW). I put my own code in WD component FITV_FPM, in the LAYOUT_VIEW. But I wanna the messages also appear at WDR_MESSAGE_AREA WD component, MESSAGE_AREA view.
    Do you know why I am having trouble generating an error message in this standard Webdynpro? It is not possible to generate an error message to appear in another Webdynpro component, but the same WD application?
    Regards guys!

    Hi
    you can store message ID, message no and message type in the context node in ur exit and make this context node interface enabled. Map this node to the component where you want todisplay the message. read the context node .
    Call the method for displaying the messages and pass message id, no and type from context node.
    invalidate this context node using method "invalidate" from interface if_wd_context_node.
    Regards
    Vishal kapoor

  • 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

  • Display pdf file using webdynpro abap

    Hi Friends,
    My requirement is to display pdf file in the second page with the input  text  entered in the fisrt page when clicked on action
    button( in the first page) using webdynpro abap.
    Can anybody explain the step by step procedure as I am new to this area.
    Thanks in advance.
    Reagrds,
    Nagaraju

    Hi,
    Check this.,
    Creating a PDF file in webdynpro abap.
    Web Dynpro ABAP display pdf
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Display RSS flows in WebDynpro ABAP

    Hi,
    I was surprised that my search in this topic on "RSS" did not return any result.
    I need for a customer to develop a couple of WebDynpro ABAP screens (without any portal) and to display information coming from a RSS flow inside these WD4A screens.
    Any idea how to achieve this, standard solution preferred or via custom coding?
    Thanks
    Yann

    Your question isn't really Web Dynpro ABAP centric.  The process to consume and parse the RSS is indepent of the use of classic dynpro, BSP, or Web Dynpro ABAP as the UI.  You are probably just going to use the CL_HTTP_CLIENT class to make the HTTP call from ABAP and then parse the RSS with XML or an XSLT.  Brian McKellar wrote a nice blog on this some time ago.
    /people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt
    He does his output in BSP, but that part can easily be adapted to Web Dynpro.

  • Messages in webdynpro abap

    hi all,
    can any one help me  by provinding me with a small example on how to implement messages in a webdynpro application.
    Thanks in advance,
    chandana.

    Hi,
    Use the IF_WD_MESSAGE_MANAGER interface .
    All messages will be displayed in a dedicated message area.
    By default the message area appears at the top of the page.
    The message are can be moved like a UI element in a view. You find a UI element (Message Area) in the UI library Pattern. Messages will be placed in this area, if it is available.
    Use the WD code wizard to create the required coding to report a message. (Generate Message radio button)
    Generated/sample code will look like this.....
       * get 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
      * report message
    CALL METHOD l_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
      EXPORTING
        MESSAGE_TEXT   = 'REPORT_ATTRIBUTE_ERROR_MESSAGE'
        ELEMENT        = Elem_Flights
        ATTRIBUTE_NAME = 'CITYFROM'.
    Achyut

  • Webdynpro abap view layout error: Object espected

    Hi guys,
    I'm facing a problem when trying to add a new element in the View Layout of a WebDynpro Component.
    I will try in the following to be more explicit about the problem.
    The technical configuration is following:
    Laptop::SAP GUI 710<---Home Network---> Server: SAP NetWeaver  7.0 ABAP Trial Version (Study System)
    On my laptop I'm successfully connecting with SAP-GUI to the Server.
    Then I open the SE80 transaction and create a new WebDynpro-Component. In this component I create a View.
    Now, in the View Layout, when I try to add a new element, off any kind, I receive the error: "Object expected", Code C and the URL form the message is referred to localhost:8000/sap/bc/the/path/to/the/page/preview/for/mandant000.( I think that is a Java Script error.)
    As result, in the layout, I kant see anything, allthogh in the ROOTUIELEMENTCONTAINER the added Element and his properties are showing up.
    When I copy/paste the URL from the Error Message Window to the Internet Exploder, but changing localhost with the ip of the server, the page shows the element from the view.
    I've tried to add on my laptop, in C:\WINDOWS\system32\drivers\etc\ hosts,lmhosts a name for the ip address of the server, but with no results. The port 8000 is fully opened, the server is running on a fresh installed OS without any other programs or firewalls. Telnet to servers ip port 8000 also works.
    Also I've tried with the Transaction SICF to look over some configuration directives but found nothing.
    Can any one help me solving this problem? I'm prety sure that I'm missing some config file or some configuration somewhere ....
    Many many thanks for any hint or help and I hope that I've describet well the problem.
    The_Thinker

    Hi,
    I've looked using the transaction you gave me and only 2 services are listed: the http and smtp, both using localhost as address.
    Using also the transaction st22, for error reporting, i have concluded that is about the icm service.
    Now, I have searched extensive on help.sap.com over the issue of setting up/configuring an icm service.
    My question/s:
    In order to be able to solve my problem, I have to configure a new icm service? or I need to configure  a new alias? or an external service?
    I'm a little confuse after all that reading on help.sap.com, witch, by the way, was very helpful for me in acquiring new informations.
    Many thanks for help.
    regards.

  • Calling adobe form from webdynpro abap view

    Hi,
    I need some help. The situation is: I have created a Adobe form interface as well as a form using the SFP transaction. Now, I have a webdynpro screen with a button, which upon pressed must give the output of the PDF form.
    I tried the following steps:
    1. Call function 'FP_FUNCTION_MODULE_NAME'
    2. Call 'FP_JOB_OPEN'
    3. Call the generated function module name
    4. Call FP_JOB_CLOSE.
    The procedure works fine when I use the same code in a report program. It opens a dialog box where there is a option for Print preview and it displays the PDF.
    But when I try to replicate the same, it does not work in Webdynpro for ABAP. Any suggestions as to how to go about this problem?
    regards,
    Praveen Kumar

    Hi Praveen
    there is documentation on the Web Dynpro for ABAP integration of Interactive Forms in the SAP Help Portal at http://help.sap.com/saphelp_nw2004s/helpdata/en/aa/940ee5331b4b8fa0a6cb6714dc5db4/frameset.htm which should answer most of your questions.
    You specify the form to be used during the design of your Web Dynpro application (you are prompted to determine it when you insert the UI element).
    You can save the form from the Reader toolbar, the question would be why would you want to do this and not use a proper download screen.
    A proper tutorial is planned to be available in June. Until then, check the ABAP page in SDN for some e-learning / webinar recording), or directly here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
    Cheers,
    Markus

  • Hierarchical sequential display in ALV for webdynpro ABAP

    Hello,
    I am doing an ALV report WebDynpro for abap. I have a situation where I have to display Open Items and all the partial payments in the ALV report. In short. In summary, I have to display a Hierarchical Table of data which two different structures of data, but linked and displayed together.
    The only information I have to go about this is [Table as Hierarchy|http://help.sap.com/saphelp_nw2004s/helpdata/EN/3e/904b2624534e0db707c7314a5e1e9d/frameset.htm] in SAP Help.
    If you have any pointers for programming a Hierarchical Sequential report in Webdynpro alv that would be great. Any classes, methods etc I can use or , how I can do bindings to the context etc...
    Thank you for all your help.
    Sumit.

    Hello,
    I am doing an ALV report WebDynpro for abap. I have a situation where I have to display Open Items and all the partial payments in the ALV report. In short. In summary, I have to display a Hierarchical Table of data which two different structures of data, but linked and displayed together.
    The only information I have to go about this is [Table as Hierarchy|http://help.sap.com/saphelp_nw2004s/helpdata/EN/3e/904b2624534e0db707c7314a5e1e9d/frameset.htm] in SAP Help.
    If you have any pointers for programming a Hierarchical Sequential report in Webdynpro alv that would be great. Any classes, methods etc I can use or , how I can do bindings to the context etc...
    Thank you for all your help.
    Sumit.

  • Displaying XML documents in WebDynpro ABAP

    Hi
    I want to display XML documents in Web Dynpro. My requirement is that, in a Web Dynpro application(ABAP), On the click of a button, I generate an XML file, which I need to display.
    I know that XML document can be created as a MIME object. But can this object be created on the fly? OR can the contents of this document be changed dynamically. If so, any pointers on how to create such a MIME object and proceed further?
    OR
    Can the browser be launched on the fly with the dynamically created XML content?
    Thanks and Regards
    Wenonah

    Hi Wenonah,
    see this little example which creates a xml file to download and open in the browser. Put it in an action handler method.
    DATA lr_conv   TYPE REF TO cl_abap_conv_out_ce.
      DATA lv_data   TYPE        string.
      DATA lv_xfile  TYPE        xstring.
      lv_data = '<?xml version=1.0" encoding="utf-8"?> put your xml here'.
      cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
      lr_conv->convert( EXPORTING data   = lv_data
            IMPORTING buffer = lv_xfile ).
      cl_wd_runtime_services=>attach_file_to_response(
                     EXPORTING
                         i_filename  = 'test.xml'
                         i_content   = lv_xfile
                         i_mime_type = 'application/xml' ).
    Hope it helps.
    regards, Ulli

  • Print Messages in webdynpro abap

    Hi Experts,
    I have this requirement to print all the message which are displayed in the message area (top of the page). The user requires to get all messages in a file so that he wants to do the action offline.
    Please let me know if there is any way of having a print button on message are just like button "show list" and "reset log".
    Thanks & Regards,
    Tashi

    Hi,
    There is no provision to add a Toolbar button in Message Area unless you enhance the WDDOMODIFYVIEW of WDR_MESSAGE_AREA component (or do a modification) of method CREATE_ALL_MSG_TAB( ) of class CL_WDR_MESSAGE_AREA and adding a new toolbar item using  add_toolbar_item( ) method.
    Please note that the modification/ enhancement will reflect in all the WDA application not just your particular component.
    hope this helps u,
    Regards,
    Kiran

  • How to display popup messages in webdynpro

    Hi all,
                I have an application which has continue button.if the userclicks on this button a pop has to come with the msg as "Do u want to continue" ..followed by Yes and No....
    how to show popup msgs in my webdynpro application
    Regards
    Padma N

    Hi! padma,
      please go through the following tutorial, you will get a good idea..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#23">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#23</a>
    you need to create an object of IWDConfirmationDialog and also the eventHandle.
    regards,
    Mithileshwar Sahu

  • How to display summation of a field in table displayed in Webdynpro ABAP

    Hi,
    I am displaying a table in Webdynpro ABAP. This consists of data for different PERNRs.
    I need to display the sum of a particular column for each PERNR, after the end of each PERNR data. (table sorted by PERNR).
    Is there any way to display this in the table? If so then please let me know.
    Regards
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Mar 7, 2011 9:20 AM

    Hello,
    I believe you have created the query in SQ00.
    Go to SQ00.
    Select your Query.
    Click on Change
    On the Top Left Hand Corner, you will find "BASIS MODE"
    Click on the Basis Mode Button
    Once you click on Basis Mode Button, you will get "Title"
    Change the title what you are intended to change.
    SAVE the entries.
    Execute the Query.
    You will be able to see new Heading on the Query.
    Hope this helps you.
    Regards,
    Ravi

Maybe you are looking for