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

Similar Messages

  • 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

  • Inactivate the print button is the ABAP list

    How can I inactivate the print button in the report program (ABAP list)?
    I can inactive the print button on selection screen by using 'RS_SET_SELSCREEN_STATUS'. But can't achieve the same effect after the program jumped to the list output screen.
    Thanks!

    hi,
    To achieve this you need to create your own custom pf-status. The tcode for creating new pf-status is se41. Goto SE41, enter the program name and click create.
    Enter the menu bar buttons, application tool bar button and Function key as per your requirement. Active the pf-status. Once the pf-status is created, use this in your program using the statement.
    set pf-status 'ZPF'.
    Regards,
    Richa.

  • BSP Application on click of a button in WebDynpro ABAP

    Hello All,
    We have a requirement to display a BSP application in a POP-UP on click of a button in WD ABAP application. Then, passing some paramters from WD to BSP (in POP-UP) and vice versa. Please let me know of how this can be acheived. Thanks.
    Regards,
    Gopal.

    To call a wd abap application from BSP use the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL then just create a link in bsp with the url returned like this:
    <a href="url">Link</a>
    To pass data from wd abap to bsp or vice versa that a look at this blog: /people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp
    regards,
    Fabio Louzada Saito

  • Print button in Webdynpro

    Hi all,
    This is a very old functionality am stuck with..
    I need to print the Table in Webdynpro Screen.
    Donts :
    I dont have a PrintButton UI element present in my NWDS7.0 Version.Sp13.
    I dont have the "com.sap.tc.webdynpro.clientserver.print.api" API to get the Print Service.
    I dont want to export the Table into EXCEL and then give a print, due to some performance issues.
    Could anyone pls suggest if there is any solution for this.
    Thanks & Regards,
    Sirisha.RS

    hi,
    Overwrite the following javascript to the click event of the print button...
    xfa.host.print(0, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    By
    Parthi

  • 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

  • Opening a Support document when clicked on a button in Webdynpro-ABAP.

    Hi All,
    We have a requirement that when clicking on a button it should open a file which has file name stored in a table. How to make this possible.
    The path of the file should not be hardcoded, since the user can change the file and its name anytime, he will just update the name in that table. Our report has to fetch that exact file.
    Please help me in this.
    Thanks,
    Selvakumar M.

    Hi Radhika,
    We will be having the file stored in the common shared path, file may be of either .Pdf or .doc.
    I have not used the file upload option before, so i am not sure about it.
    But my requirement is not upload, it has to open a file from a path. Sorry if i mistook the meaning of the file upload option.
    Thanks for quick turnaround.
    Selva M.

  • 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

  • How to call webservices in webdynpro abap

    Hi Experts,
    My requirement is I have to call an URL by exporting an XML file to that URL I have to import an XML file again i .e nothing but I have to send  request file in the form of XML and need to get response in the form of XML file from the URL .This total execution should be finished by clicking a button in webdynpro ABAP.
    Regards,
    Satya.

    Hello Satya,
    You may try to find the sample code as follows:
    1. Goto Transaction se80
    2. Select "package" --> enter "SWDP"
    3. goto "embedded packages" -->  "SWDP_DEMO" --> Web Dynpro
    Here, you will get demo applications. Find the most appropriate demo application and try to customize the code according to your requirement.
    Best Regards,
    Raju MJRK

  • Documentation in WebDynpro ABAP

    Hello Experts,
    I have a requiment to diplay the documentation for specific object when i press on a button in WebDynpro ABAP how can i do this please help me,

    Hi,
    for information on help texts, see the [documentation|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/336208da18060be10000000a155369/frameset.htm]
    Regards, Heidi

  • Print button in ABAP WebDynpro

    Hello all,
      The client has requested a 'Print' button in our webdynpro application - ie a simple button that triggers the browser command Ctrl P.
    I have searched the forum, and it seems that this is not possible, because WebDynpro cannot execute browser commands (or indeed, javascript).
    Can someone please suggest a solution - OR - confirm that this functionality is not possible?
    thanks
    Paul
    Note: Note: We do NOT want to use ALV, Adobe or Smartforms. We just want to print what's on the webdynpro screen.

    Micky,
    I thank you for that clear response: It is not possible to print from ABAP WebDynpro.
    > What should that printbutton do?
    We want it to do the same as Ctrl P, which is to print the entire web page. (We don't have frames etc)
    >WD4A is normally intended to be used with Adobe Interactive forms
    This is news to me! Is this an accepted view in the SAP communit... that WebDynpro requires Adobe to achieve full functionality? That is disappointing, to say the least. And a step back from BSP.
    We are building multiple online calculators, and it would be a huge overhead to have to develop (and maintain) an Adobe form for each calculator, simply to enable the user to print the contents of the screen....
    I have read in SDN that you can invoke a browser Print command from Java Webdynpro. A class WDPrintService has been provided.
    Printing in Web Dynpro, finally
    How can it be that this functionality is "not possible" for one flavour of WebDynpro, but plainly available in the other....?
    cheers
    Paul

  • 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

  • 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.

  • Print button on my webdynpro JAVA page

    Hi Experts,
    Is there any way that I can include a print button on my webdynpro JAVA page. ON click of the Print button I have to print the entire Page. User is able to print the page by using the print option of Browser, but in that case if the page is having a vertical or horizontal scroll, print output will contain only the visible part.
    Thanks and Regards,
    Sarath Satheesan

    Hi Sarath,
    Printing Web Dynpro Java (WDJ) applications is one of the missing functionalities that everyone wants to have in their application. you can use third party open source reporting tool, JasperReports, to solve this issue
    Printing in Web Dynpro using JasperReports
    PART 1 - /people/jawed.ali/blog/2009/02/09/part-i-print-web-dynpro-java-applications-using-jasperreports
    PART 2 - /people/jawed.ali/blog/2009/02/09/part-i-print-web-dynpro-java-applications-using-jasperreports
    PART 3 - /people/jawed.ali/blog/2009/10/30/part-iii-print-web-dynpro-java-applications-using-jasperreports
    Hope this will fulfil you requiremnt.
    Thanks
    Arun

  • My Trips and Expenses - Webdynpro ABAP - Change Copy Delete button links

    Hello All,
    We are using ESS and MSS applications in our scenario. We are using EHP4 version of ECC6.0.
    I have configured my homepage framework with custom entries in SAP (resources, services, ... ) and custom Portal content (iviews, pages, ...  copied from SAP delivered stuff ). I have a very good understanding of this and I have no issues with the portal navigation and tying my custom homepage framework entries to the custom PCD locations.
    The only problem I have is with the Webdynpro ABAP application for "My Trips and Expenses". I can get to this application without any problem.
    Within the My Tirps and Expenses application, there are buttons for Displaying, Changing, Copying and Deleting existing Travel Trip Requests and Expense Reports. When I click on any of these buttons, the corresponding page/iview from the standard SAP ESS role is being launched. I would like to point these buttons to my custom page/iview from my custom role.
    I did not find any place where I can make this setting. I am not sure how the Service IDs for the standard SAP services are being linked to the application.
    I hope some one might have looked into this and any input would be really appreciated.
    Thanks,
    Raj

    I figured this out.
    This application makes use of Object Based Navigation and if you adjust the roles assigned to the user accordingly, this will automatically pick up the custom pages form the custom role.
    Thanks,
    Raj

Maybe you are looking for

  • Facebook and Twitter app on iphone 5s

    I downloaded the facebook and twitter app on my iphone 5s and selected their respective notification sounds in the Settings but, even after that, I did not receive any notification sound whatsoever either for FB or twitter. After sifting through, I c

  • Error starting listener on one node in RAC:Error listening on....TNS-12545:

    LSNRCTL> start LISTENER_CORPNG04 Starting /ora00/app/oracle/product/11/db1/bin/tnslsnr: please wait... TNSLSNR for HPUX: Version 11.1.0.7.0 - Production System parameter file is /ora00/app/oracle/product/11/db1/network/admin/listener.ora Error listen

  • Cannot allocate license to user

    Dear all, Desperately need some help / insight here. I have a server which I already successfully installed with SAP server and server tools. I also already import license file (permanent license file) into my server. The problem is, when I tried to

  • Transformation - select package in PSA

    Hi, is it possible to select the PSA package durring the DTP run. The problem is, when we have more then one package already in PSA and DTP by default takes all of them and load them in the InfoProvider. You should always check the PSA first and dele

  • How to make a presence list

    I have 100 students and 6 classes. In each class the presence is via a list registred (yes/no). How can i put al the data of the 6 classes in a main list? Example: Mail list met all the students: Student 1 Student 2 Student 20 In Class A were the stu