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.

Similar Messages

  • 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

  • How to print window contents at the backside of a page(In scripts&smartform

    Hi,
    How to print the window contents at the back side of a page
    in scripts and smartforms?
    regards,
    prajwala

    Create a new page with the window and select "duplex" printing. Use Search button to get more information.

  • Show document content from webdynpro abap

    hi folks,
    i already posted such a question, now i try again - maybe someone has a hot tip for me.
    i hat der content of a document (e.g. JPG oder TIFF or WORD) in a table of type binary data.
    Now my first suggestion was create a url with dp_create_url and dne navigate with element "link_to_url" to that generated url, which is in format sapr3:// , but that won't work.
    has anyone an idea how to show this file-content in a webdynpro abap application.
    kind regards oliver

    Hi Oliver,
    You can show files of all kinds by using an iframe and placing the file at some place inside of the MIME repository. If the file is somewhat static, just add it to the component (right mouse click at the component in the tree at the left side in se80). Just enter name of the file (if the file is part of the component) or the path within the mine repository inside of the URL field. If you don't add http:// something like that in front of the URL we assume that it is a path in the mime repository. This should work for LinkToURL as well.
    Another nice option is to add the file to the response. Just call method cl_wd_runtime_services=>attach_file_to_response() and specify all the parameters.
    Kind regards,
    Thomas

  • Print Button in Web Dynpro ABAP

    Hi Everybody,
    i hope that someone know or have a code sample how i can set a print button to the Web Dynpro for ABAP. On click on this it should open the print window from the Internet Explorer.
    Please let me know if there is any information about this.
    Thanks
    Best regards
    Markus

    Hi,
    If you are using the Internet Explorer 7, you can use CTRL + P to invoke print directly on any WebDynpro ABAP view.  This is IE 7.0 browser featute & always has print preview & print options available from File Menu's. So you dont require any additional buttons on view :).
    For table data if you use ALV you get options to export data to excel or fire print directly
    Greetings
    Prashant

  • How to print the content of a DynPro Window?

    Hello,
    Is there any DynPro (Or SAP) package that can print the current window content? If yes, can anyone please show me a code example?
    Roy

    Roy,
    Printing content of the window is almost always not a solution. Personally, I hate sites where articles are not available in printer-friendly format (either via separate page or CSS with media type printer).
    With WebDynpro it is even worse -- does end user really expect all this buttons, complex tables, combo boxes etc.?
    My advise is to either:
    1. Create Adobe PDF for user to download and print
    2. Create printer-friendly HTML and open it in external window
    3. Create MS Excel file to download.
    First and third options are well documented in SDN docs / tutorials, the second option is very easy to implement: take my code for transforming context tree to XML converting context-tree to xml? and apply necessary XSLT template. This way you may get HTML output in printer friendly form.
    Valery Silaev
    EPAM Systesm
    http://www.NetWeaverTeam.com

  • How can we navigate between two windows of same component in webdynpro ABAP

    Hi
    how can we navigate between two windows( not views ) of same component in webdynpro ABAP. its an urgent requirement
    Thanks in advance.
    Regards
    Laeeq

    Hi Laeeq,
    You cannot navigate between windows of one component. You can only call a dialog box showing the contents of a second window, or you can embed the contents of a window of a different component.
    Just add all the views you need to the one and only main window of the component.
    Ciao, Regina

  • 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

  • WebDynpro ABAP iView not opening in new window

    Hi,
       I have created an iView for a WebDynpro ABAP application and I am having a link in a home page from where the iView should open in a new page. I have set the properties "Launch in new Window" and "Show open in new window option" of the iView but still it doesn't open up in a new window.
        Can someone suggest me what's going wrong?
        Will reward points for helpful answer.
    Regards
    Mukesh

    Hi Volker,
       Thanks for your reply.
       I think, I have set the properties of the iView right. I have tried with all the options for the property "Launch in new window" property of the iView but it didn't work.
       "By home page framework" I mean that the link of the iView in portal has been created using the "Home page framework" i.e. from "SPRO" transaction in the backend.
       Please let me know if you need any other input from me.
    Regards
    Mukesh

  • Reg:working with multiple windows in webdynpro-abap

    Hi ,
    How can we create multiple windows and how can we link them...
    suppose we have 3 fields on first screen .how to move the data from the first screen to second screen..
    Thanks & Regards
    Suman Puthadi

    Hi
    As per your Subject you are looking for "working with multiple windows in webdynpro-abap" and for abap there is a different forum. Web Dynpro ABAP
    Hope its clear to you...
    Even you can read this post when ever you get time Read before posting
    Regards
    Ayyapparaj

  • Close Popup window in webdynpro abap.

    Hi,
    Can anyone tell me ...how to close the popup window through the action in webdynpro abap . In my popup window there is a button(i.e 'UPDATE') apart from that  default 'OK' button , I want that when 'UPDATE' button is pressed, along with the action window should be closed. I dont want to close the window by pressing 'OK' button at the botton
    I have used following code to open the popup window.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'POP_UP  WINDOW'
                       title                  = ''
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).

    Hi Dear,
    please try this code,
    DATA lv_wc TYPE REF TO IF_WD_WINDOW_CONTROLLER.
    data lv_view TYPE REF TO IF_WD_VIEW_CONTROLLER.
    data lo_window  type ref to if_wd_window.
    lv_view = wd_this->wd_get_api( ).
      lv_wc = lv_view->GET_EMBEDDING_WINDOW_CTLR( ).
       lo_window =  lv_wc ->GET_WINDOW( ).
       lo_window->CLOSE( ).
    Message was edited by: kumar.k kulanthaivel
    Regards,
    K. Karthikeyan

  • Webdynpro ABAP content authorization object in SAP portal ?

    Hi
    We are on EHP 6.06 , we have an authorization problem in sap portal for the webdynpro abap content. our standart users got the error "page can not be found" for the services provided from webdynpro abap. when I assign the user to administrator group in sap portal the services working fine. I also checked the SAP ERP roles no problem is there.  I guess I should create a new portal role for them cause its the only difference between users who can reach or not but have no idea what to put in it in SAP portal. Any idea ?

    in portal content directory => double click on the Content provided by sap folder. Than you should have a dropdown somewhere where you can select "Authorizations". You should add the group endusers and check the checkbox.

  • Colors of the Icons in the Print Document Content Window

    When you right click a single source layout and click properties and then click next it takes you to the Print Document Content Window, where you can take topics and by clicking the arrow that points to the right hand frame, move the topics into your print document.
    I have seen posts on this forum where people talk about the colors of the icons on this screen. I have seen these icons colored blue, white and grey, but nowhere in the documentation or on these forums are the colors specifically documented, telling you what they really mean.
    I have a situation where for one of my single source layouts, the colors of the topics on the left pane are blue and the colors on the right pane are white. Meanwhile, in another one of my single source layouts the colors on the left are blue, but the colors on the right are grey and that single source layout doesn't generate the topics that I want.
    Can anyone explain to me what these colors mean, and if as I am thinking, grey means not there, why are they there in one single source layoput and not in the other?
    Below are some screen shots that illustrate my issue.
    This is the bad screen.
    and this is the good one.

    Hi there
    The gray icons signify that the topics have been excluded by virtue of using a Conditional Build Expression.
    The blue icons signify that the topics are included in the Printed Output.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Remove Maximize button from popup window using Webdynpro ABAP

    Hi,
    Is there a way to remove the maximize button from a popup window using Webdynpro ABAP?
    Thanks,
    Jay

    Hi Jayanth,
    I think by setting is_resizable parameter pass abap_false. try this
    lo_window = lo_window_manager->create_window(
    window_name = 'POPUP'
    title = 'Window'
    close_in_any_case      = abap_true
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    message_type = if_wd_window=>co_msg_type_none
    is_resizable    = ABAP_FALSE ).
    Cheers,
    Kris.

Maybe you are looking for