Printing in Web Dynpro

Hi all,
I need to print a content of a TextEdit UI Element in Web Dynpro. What will be a simple way to send this text content (context attribute of type STRING) to a printer which is set in the profile for  the current user?
Kind regards,
Oleksandr

Thanks a lot for your answers and proposals!
But my idea was to implement it in an easier way without connecting to Adobe Forms or SmartForms. So, I have a popup with TextEdit field and Button "Print". If I user this button, the content of the TextEdit field is sent to printer without opening a new window as an intermediate step.
The implementation like
NEW-PAGE PRINT ON...
WRITE...
NEW-PAGE PRINT OFF.
will work in a normal report but doesn not work in Web Dynpro.
I read about a possibility to implement printing using the printing functionality of ALV grid, but I do not have a table in my case.
Probably, somebody has ideas how it can be done in a simple way?
Kind regards,
Oleksandr

Similar Messages

  • Taking Print in WEb dynpro Application

    hello,
    I have a situation the front end is web dynpro JAVA and at the backend  of it R/3 is bein gcalled for print. but it is getting stucked up saying that 'FRONTEND UNAVAILABLE. But i got a solution that is not automated. i need a other alternative for it.
    Solution what i have is :
    1. convert the data to be printed in PDF format.
    2. open a pop-up in PDf browser.
    3 There we can give the print options by pressing the print button.
    But what i need is there any other way of making the whole process automated.
    thanks & Regards.
    Edited by: muna muna on Sep 17, 2008 5:55 AM

    Hi
    Are you having any inputfields in your next view?If yes then check if you have bound the context attribute to it.
    I think you haven't done that.
    Regards,
    Ajay

  • Implementing Note 616762 - Front End Printer in Web Dynpro For Java Applica

    Hi All,
    We need to implement Note 616762 in out web dynpro for java application for front end printing...
    I am confused as to what is mapped where and what about the other inputs to the function modules mentioned in the note.
    Please help me to achieve implementing this note.
    Thansk and Regards,
    Aditya Deshpande

    I had a discussion with basis about printer configuration.
    My problem starts from step 3... do not how the maping of values from webdynpro to function
    also here the function mentioned are not remote enabled... do we need to make it remote enabled..????
    Regards,
    Aditya Deshpande
    Edited by: Aditya Deshpande on Jan 9, 2009 3:36 PM

  • Printing a web dynpro view

    Hi,
    I wanted to print contents of a web Dynpro table of a view on click of a button. How can we achieve this?
    I am using NW7/NWDS7
    regards,
    Sujesh

    Hi,
    Refer to the blog,
    /people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
    Also refer to Valery's post in the link,
    Re: How to print the content of a DynPro Window?
    Regards
    Srinivasan T

  • Zebra printing in web dynpro/Adobe

    Hello,
    We have zebra label print designs in place (we dont want to design using adobe designer). Now we would like to enable subcontractors to print them online using web dynpro/Portal.
    1. one way I identified is send the zebra spool as a file and save it in the local disks and print it using zebra printer.
    Whats the better and efficient way to approach? How everybody is doing this?. Doesnt SAP have any solutions?.
    Thanks ,
    Raj.

    SAP Interactive Forms by Adobe comes with ABAP backend print support for Zebra label printers.
    However, as with all backend printing the required output formats are placed in the spool. To my knowledge, there is no standard SAP way to make these spool-based formats available for print in a Web Dynpro application. In addition, note that in the ABAP backend SAP doesn't print from the PDF, which for these processes has only got a preview function. Depending on the scenario, printing is done from PS, PCL or ZPL through the corresponding SAP device types.
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Regd PDF Printing from Web Dynpro

    Hi,
    We are using NW04s SP10 . I need to show the data coming from RFC as PDF in Web Dynpro. The RFC is returning String as output after SAP Script is converted to PDF . Below is the code i have written in WD for opening as PDF. When i try to open it as PDF, I am getting message in acrobat reader  "<i>The file is damaged and could not be repaired</i>" . Did anyone faced the similar problem before?
    //Converting the string to binary
    b = wdContext.nodeOutput().nodeBinary_File().getBinary_FileElementAt(i).getBin_File().getBytes();
      pdfResource=WDWebResource.getPublicCachedWebResource(b,WDWebResourceType.PDF,WDScopeType.CLIENTSESSION_SCOPE,wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"Test"+i);
    pdfResource.setResourceName("test.pdf");
       wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),"Test"+i,false).open();     
    Thanks,
    Vasu

    Hi all,
    I am able to solve myself. The problem is with the generated data. Now i am able to see the PDF but i am facing issue in showing the data in pdf which i have posted in another thread.
    Thanks,
    Vasu

  • Barcode not getting printed from web dynpro

    Hi,
    We have a smnart form with bar code. When we test it from GUI, it is diplaying the bar code and also printing the bar code successfully.
    However when we show the same smart form in webd ynpro as PDF,  Bar code is getting displayed but when we print the form, bar code is not getting printed.
    Are there some settings for this?
    Regards,
    Madhu

    https://discussions.apple.com/message/23759716?ac_cid=tw123456#23759716

  • Problem with Table display in Adobe Form of Web Dynpro ABAP

    Hi Team,
    I'm trying to display a table in Adobe Print Form (not interactive). The table is bound to the context node in the Web Dynpro ABAP where the cardinality is 0:N. I get a short dump. Don't know what to do here. I'm able to display individual fields from my context successfully. Looks like something is missing when I try to display a table. Any pointers to display a data table in Adobe? Any step by step example you know of where I can find out what I did wrong? Many thanks for your time
    We are on support pack SP06 on 2004S release.
    DUMP INFORMATION:
    Short text                                                               
        Access via 'NULL' object reference not possible.                 
    What happened?                                                           
        Error in the ABAP Application Program  The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    An exception occurred that is explained in detail below.                    
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "CREATE_PDF" "(METHOD)", nor was it propagated by a RAISING clause.

    Hi Thomas,
    We upgraded our system(2004S) to SP10 so that we can use the ADOBE form printing in Web Dynpro ABAP but could not apply note 1034425 because of the validity constraints in SNOTE. All the pre-requisite notes are already in the system apart from one note 1029721 which talks about supporting input helps. We don't want to use input helps in our system and cannot upgrade to SP11 because of problems with Business functionality.
    Questions:
    1) Is note 1034425 absolutely dependent on 1029721?
    2) If NOT, can someone please correct the validity so that we can implement using SNOTE.
    3) Would it be OK if we manually apply the changes specified in 1034425 without implementing 1029721?
    4) If all of the above is not applicable, is there any other note which fixes the above mentioned short dump.
    Your help in this matter will greatly help us in using the ADOBE services provided by SAP WDA.
    Thanks much

  • Web Dynpro - transform into PDF format

    Hi all,
    I would need your help. Now I am participating at a Web Dynpro project and one task is to realize PDF transformation and printing of Web Dynpro forms.
    That means we would place a button on the form called "Transform to PDF". If a user push this button in the browser, the page he is seeing has to be transformed into the PDF format and later printed as a normal PDF file.
    What is the best way to implement this?
    Thanks,
    Oleksandr

    There is no real alternative for the 'print screen' in WD4A, or the 'print' button (CTRL-P). But what you could do (if there are not too many screens to be printed) is this:
    Create a smartform (or adobe form for that matter), and call this after the print button is pressed. Display the smartform as preview, for where it can be printed via adobe reader.

  • Print a PDF from Web Dynpro

    Hi all gurus.
    I developed a Web Dynpro application to let the users create their own sales orders.
    Now I need to let them print the orders when they need to. Searching on the documentation I have, I've never found anything about crating a pdf print from the WD Application.
    There must be a way, because I managed to do that even with the very old ITS (the one in which you had to write HTML code...) but i cannot find how.
    Can anyone help me please? Even a tutorial would be very appreciated.
    Thank you in advance...

    >
    horatiusx wrote:
    > Hi all gurus.
    >
    > I developed a Web Dynpro application to let the users create their own sales orders.
    >
    > Now I need to let them print the orders when they need to. Searching on the documentation I have, I've never found anything about crating a pdf print from the WD Application.
    >
    > There must be a way, because I managed to do that even with the very old ITS (the one in which you had to write HTML code...) but i cannot find how.
    >
    > Can anyone help me please? Even a tutorial would be very appreciated.
    >
    > Thank you in advance...
    You need a Smartform, SAPScript, or AdobeForm to be defined for your output.  Define an action/method for print, then pass the data to your Form.  SmartForms are not bad, as SmartForms generate a Function Module, and are easy to call.
    Call the SmartForm Function with PDF output = 'X' (parameter within Output Control I think).  Then pass the PDF_DATA[] table (type = TAB_SOLIX) to a new window output .
    Don't have the code in front of me, but have done it several times.  
    Adobe Forms is another good option, but you need Adobe Server, and generally I have found ADOBE to be SLOOOOOWWWWW.  I think Steve Jobs might have been on to something with ADOBE -- just my opinion.
    And of course, it can be done with SAPSCript, but I would need a whole blog on how to do that.....

  • Prob. exec. print job from RFC which im calling Web Dynpro java in Portal

    Hi,
    Ive got a problem executing a print job from an RFC which im calling in Java web Dynpro Application in Portal. Im using an Acess Method G: for Front End Printing but Order gets stuck with the Status "Waiting" "Front end unavailable".
    Any help would be greatly appreciated.
    Thanks in advance!!!

    HI,
    I dont think you would be able to do this. Instead, you need to get the content from RFC into WD java and print from the browser.
    Regards
    Srini
    Edited by: Sinivasan Rajamani on Jun 14, 2010 4:25 AM

  • Issue While printing / Previewing a Adobe form in Web Dynpro ABAP application

    Dear All,
    We have designed 4 different adobe forms using SFP transaction for 4 different countries in SAP system.
    Every country have different terms and conditions and therefore we have placed static texts (Hardcoded text) with text in different styles. Some text is in bold, some in different font (Bold, Italic). Font and Paragraph settings of the text was done as per expected. All the forms have same font and paragraph settings.
    When we Launch Web Dynpro ABAP application to open the form in Print preview or to take print, form is not getting displayed / printed as it is designed in SFP. But if you open the form in SFP, everything looks fine.
    It is working fine for 3 different forms but problem with only 1 form.
    Kindly guide what is the reason for this strange issue when previewed or taken print. It is very urgent.
    Thanks,
    Bharath.K

    Dear All,
    Thanks for your responses.
    We had identified the reason.
    Customer has provided terms and conditions for all 4 countries in PDF document. Along with PDF, for 3 out of 4 countries customer has shared pre-prepared word document with pre aligned and justified terms and conditions as per expected outcome. We copied this text from word to Adobe form layout. It worked fine. For 1 country, customer have not shared terms and conditions in word document. Therefore we had copied text directly from adobe PDF document in to Form layout. Then this issue happened.
    Solution for this issue is to, prepared a word document with expected alignment and justification of terms and conditions text . Then copied from word to adobe livecycle designer form layout. It worked fine.
    Thanks,
    Bharath.

  • Getting and Printing A PDF Document From R/3 Using Web Dynpro

    I would like specific information on getting and printing a document residing R/3 using web dynpro.  My environment is Netweaver 04s SR2, an it will not include ITS or the ABAP stack. It connects to remote R/3.  I will not be using Adobe Interactive Forms.       I only need get/render/print the doc.  My question is in 3 parts.
    1) Getting the PDF from R/3
         a) In terms of the RFC ABAP module, how should it return the pdf (a table?)
         b) How should the document be stored within the Component Controller context
             for display.
    2) Converting the R/3 returned binary into a form that is renderable within
        Web Dynpro.  (Does the Form UI Element Require it to be converting and if so
                              what is the best way to do this)
    3) Printing the PDF from the corresponding iView in the portal. (If I am using the
        form ui element to display it, how can printing be initiated in the portal)
    Thanks

    Hi,
    In webdynpro there s a fecility to convert the general data to PDF by uisng th InterativeForm UI Element.
    This for u need to do the following things.
    1. Need to configure the ADS(Adobe document services) in your VA(Visual Admin).
    2. Once ADS is configured we  can utilize the UI element Interactiveform It has contain the Adobedesigner by using this we can design the PDF and binding with the model nodes.
    3. Develop the Function module in the r/3 side and import into WD side and those are created as Model nodes and we canutilize in the 2 step.
    4.When u run the application u can display the pdf with how u design ur PDF form.
    This is generally doing the PDF by using PDF.
    Or do u think any other way post ur issues.
    Thanks,
    Lohi.

  • 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 do Printing in Java Web Dynpro?

    Hi,
    I have displayed a window in Java Web Dynro of some user data.
    And I want to add a Print button so that the user can print the information.
    I do not want to use Adobe PDF for such printing.
    Can I achieve what I want through coding in Java in Web Dynpro?
    Thanks.

    Hi myke,
          firstly you want to create some method in view,
          create one value attribute like HtmlFile --dat type should be binary
           HtmlFile=bynary..
    public java.lang.String displayPrint( )
        //@@begin displayPrint()
        StringBuffer htmlcontent=new StringBuffer();
         htmlcontent.append("<html><body>");
         htmlcontent.append("<input type=\"text\" name=\"su\" >");
         htmlcontent.append("<input type=\"text\" name=\"se\" >");
         htmlcontent.append("<input type=\"submit\" name=\"sre\" >");
         htmlcontent.append("</html></body>");
              return htmlcontent.toString();
        //@@end
    create one button like..Print.
    action name is-
    public void onActionprint(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
         byte[] content = new byte[4028];
              try {
              content = this.displayPrint().getBytes("UTF-8");
              //HtmlFile==binary
              wdContext.currentContextElement().setHtmlFile(content);
         //  Where content is loaded with data from displayPrint() method, which is holding   the HTML *page to be displayed to the user *
              IWDWindow win =
              wdThis
              .wdGetAPI()
              .getComponent()
              .getWindowManager()
              .createNonModalExternalWindow(WDWebResource
              .getWebResource(content, WDWebResourceType.HTML)
              .getURL(),"ShowVideo");
              win.setWindowSize(445,460);
              win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
              win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
              win.removeWindowFeature(WDWindowFeature.MENU_BAR);
              win.open();
              } catch (Exception e) {
              wdComponentAPI.getMessageManager().reportException ("Unable to open        window"+e,false);
    thanks
    jati

Maybe you are looking for