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

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 to disable Print button on WebDynpro ABAP ALV

    In WebDynpro ABAP, a standard menu appears around the ALV,  that has a PRINT button and an EXPORT button.
    Is there anyway to disable those buttons????
    Thanks
    John

    Hi John,
    Check the interface if_salv_wd_std_functions. It contains methods which are used to hide the standard ALV toolbar buttons.
    Also refer : Removing "print version" button in alv
    How to hide Print and Filter option from dynamic ALV

  • Print Button in webdynpro abap?

    Hi Gurus,
                 I have created a custom button on my webdynpro screen . When I click that button I want to take print out of the particular screen and at the same time I need to hide the buttons (buttons are displaying on print screen option). Can anybody please help me out .
    Thanks & Regards
    Suman Kumar

    Hi Suman,
    To print WDA application, please refer the below document
    Printing Web Dynpro ABAP Applications - Web Dynpro for ABAP - SAP Library
    I don't think there is a standard method to hide the button from being included in snap shot of print.
    Work around solution1:
    Create a button BTN_PRINT and on click of button write the below code before call print_page( )
              i.e. hide the button,
      DATA lo_view TYPE REF TO if_wd_view.
      DATA lo_btn TYPE REF TO cl_wd_button.
      lo_view ?= wd_this->wd_get_api( ).
      lo_btn ?= lo_view->get_element( 'BTN_PRINT' ).
      lo_btn->set_visible( value = cl_wd_button=>e_visible-none ).
              " Print page
    data:
    l_api_componentcontroller type ref to if_wd_component,
    l_appl type ref to if_wd_application.
      l_api_componentcontroller = wd_comp_controller->wd_get_api( ).
    l_appl = l_api_componentcontroller->get_application( ).
    l_appl->print_page( ).
    Note: this hide the button PRINT and on subsequent action, you can make it visible again
    Work around solution2 :
    you can just create a button with access key ( CTRL + P ), without button text... So that it will not be visible in printing. Users can print by using short cut keys CTRL+P
    Hope this helps you.
    Regards,
    Rama
    Message was edited by: Ramakrishnappa Gangappa

  • 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

  • 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

  • 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

  • Adobe print forms - Intergration with Webdynpro ABAP

    Hi
    We are working on SAP Adobe print forms with Webdynpro ABAP. We are getting the PDF form's Hexadecimal content as a part of the FPFORMOUTPUT parameter when we execute the FM of the Form.
    I tried to assign that to a context variable and assigned that to the PDFSource of the form and tried to generate the PDF. But is is showing a black page.
    Can you please suggest a way if any to get this done.
    Regards,
    Srikanth.

    You can use the print form directly. I mean the same way as you would use the WD/ online form. Provide the form name, the data source and stuff and the form should work. If that would be an interactive one, you would not be able to change any values if the form is based on DDIC dictionary, but since you want to use the printform, this is not your concern.
    Regards Otto

  • Directly print PDF form in WebDynpro ABAP

    Hello folks,
    one little question.
    Is it possible to directly print an PDF form in an WebDynpro Abap Application?
    Thanks,
    Alex

    I don´t understand your question. You don´t provide much information.
    You have 2 options:
    1) write a printing program (like non-WDA form etc.) and run it in background
    2) tell user to use the Reader embedded in WDA window to print his/her form
    Otto

  • Printing window contents in webdynpro ABAP

    Dear fellow SDNers,
    The first reply that may come to your mind for this post is that "This has been discussed numerous times in this forum".
    But the fact is that I am not able to make out how it is possible to print the contents of a webdynpro window. I want a print-screen like functionality wherein i click a button on the view and the contents of the same view, along with the ui elements, values entered everything should open for print-preview in another window. The new window should basically have the same view displayed, with none of the user actions enabled. From there i need to actually print through another button if the user so desires.
    Having done a search, I found that people have suggested ways to do it easily in webdynpro java. But i need to do it in webdynpro abap.
    Also, some posts mention the use of interactive forms. But I could not make out how to pass the entire view displayed to a form at runtime. Do I need to create a form separately and display it using the interactive form ui element? What I could find out was that the values of the context node attributes can be passed on and mapped to an adobe form but that is not what i require. I need the entire view layout as it is displayed.
    Please help me out on this. If this is the exact requirement that is discussed many times in the forum then I request you to please lead me to the right threads.
    Regards,
    Priyank

    >
    Satheesh Soundararaj wrote:
    > Hello,
    >
    > The interactive form can be a good option since the data is automatically populated in the PDF and the user can review it before printing it.
    >
    > There is no need to create a new form from scratch using SFP. Webdynpro will generate a form for you with the help of context. The context data will be passed to the interactive form automatically.
    >
    > 1. At first you need to create a Interactive form UI element
    > 2. Bind the context to the data source of the Interactive form UI element property
    > 3. Maintain the form name in the context attribute and bind it to pdfsource
    > 4. Enter the form name in template and double click it. Select the context as the interface. This will help you out in generating a form automatically.
    >
    > Refer to this sap link for additional information
    > http://help.sap.com/saphelp_nw2004s/helpdata/en/f6/501b42b5815133e10000000a155106/frameset.htm
    >
    > Regards,
    > Satheesh
    Hi,
    i have tried this proceeding.
    But i got an Error: "Could not start Layout Designer"
    So there is a need of a local installation of the Forms Design Tool to use the InteractiveForm-UIElement.

  • Webdynpro abap integration with interactive adobe forms

    Hi  Experts,
    Am Facing problem printpreview  adobe in portal and it developed by webdynpro abap interactive form there am getting warning message
                Warning  : This form is not supported with current verision of Acrobat or Adobe reader
                                  Upgrade to Latest Verision For full Support.
    And it is display half letters in print preview.
    Regards,
    Sakthi.

    Dear Thomas,
    Here there are two server  one is developpment and quality.In development it is working fine and quality it is creating problem.If open in any system we are facing same problem.My dout is any server specific
    adobe verision is in portal.
    Thanks for Replying Good luck.
    Regards,
    Sakthivel.S

  • 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

  • How to use webdynpro abap? need separate software? or please help me.. :-)

    How to use webdynpro abap? need any separate software? if no, please help me with Transaction Codes..
    Thanks in Advance
    -Parthi
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Oct 19, 2011 8:18 PM

    I don't think you quite understand how hibernation mode works.
    "The state of a computer is stored into its main memory, which is also called RAM. When a
    computer is powered off, the contents of this memory are irremediably wiped out. Hiberna-
    tion works in the following way: before being powered off, the computer saves all the con-
    tents of the memory to a file on the hard disk drive. On wake up, data stored in this file is
    read out and restored to the memory. Therefore, the RAM contents are the same before
    and after the hibernation process, and the state of the computer is also the same. The
    saved file is named sleepimage, and is located in the /private/var/vm directory. Hi-
    bernation is sometimes also called “software suspend” or “suspend to disk”.
    The default suspension feature of Mac OS X, called sleep works in a different way. When
    entering sleep, every subsystem of the computer is shut down, except the main memory
    which is still powered. This process preserves the contents of the memory, and allows the
    computer to wake up quickly. However, a sleeping computer still consumes a small
    amount of power. Sleep is sometimes also called “hardware suspend” or “suspend to
    RAM”.
    Apple introduced the safe sleep feature in Mac OS X 10.4.3 for the Powerbook HD line of
    laptops. This feature is a variation of the default suspension behavior. The main memory is
    still powered during the sleep, but the contents of the memory are also saved to the disk at
    the beginning of the operation. The saved file will only be used if the laptop runs out of bat-
    tery power while sleeping, in order to restore the original state of the computer.
    This safe sleep feature is what makes hibernation possible in Mac OS X 10.4.3 and above."
    Quoted from *Deep Sleep v. 0.7 documentation*
    Matthieu Beaumel, 10/03/2006

  • WebDynpro ABAP in WebAS 640

    Hi,
    I have installed both Netweaver Java and ABAP edition on the same machine successfully. I can started both instances on the same time. No problem so far....
    However, when trying WebDynpro ABAP, I got the system message "The runtime of WebDynpro ABAP is removed for WAS 640 (note 774655)".
    Q: When this feature will be available?
    Thanks and regards,
    Fendy

    I'm am seeing bits and pieces of WebDynpro ABAP in the 6.40 Sneak Preview as well,  but it seems to have been stripped out.  Like Peter has stated, it was not supposed to be in the 6.40 release.
    Regards,
    Rich Heilman

  • Webdynpro ABAP not working from internet

    Hello,
    I´m new at webdynpro and portal...
    We have a ess portal with webdynpro abap and java. Our employees may access it from intranet and all works fine, and from internet when they are in the outside.
    From internet the webdynpro abap gives the message that the server cannot be reached. The server is our production backend and is not open to the exterior.
    Is there a way to make this work, from inside and outside?
    Teresa

    Yes sure,
      so you have to set the parameter wdisp/add_clientprotocol_header = 1 in the web dispatcher profile.
      Good references are:
    [http://help.sap.com/saphelp_nw04s/helpdata/en/de/89023c59698908e10000000a11402f/frameset.htm|http://help.sap.com/saphelp_nw04s/helpdata/en/de/89023c59698908e10000000a11402f/frameset.htm]
    [http://wiki.sdn.sap.com/wiki/display/BSP/HandlingBinaryData|http://wiki.sdn.sap.com/wiki/display/BSP/HandlingBinaryData]
    and this
    [http://help.sap.com/saphelp_nw04s/helpdata/en/9a/53a2a4a45e244aa189c2b7065a0b78/frameset.htm|http://help.sap.com/saphelp_nw04s/helpdata/en/9a/53a2a4a45e244aa189c2b7065a0b78/frameset.htm]
    Sergio

Maybe you are looking for