Related to pdf in WebDynpro

Hi All,
I have a header table in my application.On lead selection I am navigated to another view called Detail View.I want to see the details of the detail view in PDF format.How can I do the same,please reply
Regards
Pawan

hi,
the node which is bound to the first view, i.e. which is acting as a dataSource in first view, map the same node from component(or custom) controller to the Detail_view,
here use the Interactive form Ui element , in the data source of the form , you can refer to this node, so whichever data is to be displayed on the form will come from this node.
just take a look at this tutorial where you will come to know about how to use interactive forms :
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/a78dc1d1-0401-0010-cd87-92ec61b5509e [original link is broken]
let me know if you face any problem
regards

Similar Messages

  • Adding attachments to PDF in webDynPro-Urgent

    Hi,
    I need some information, how to add attachments to pdf in webDynPro. A sample code or examples or suggestions would be helpful.
    Thank You
    Regards
    Ravi.Golla

    Hi,
    Check the following links,
    Interactive PDF Form(Example):
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/online%20interactive%20pdf%20form.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/offline%20interactive%20pdf%20form%20using%20download.pdf
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/d1088b7e-0c01-0010-c78e-984c0537e3ec [original link is broken]

  • Generate PDF in WebDynpro 4 ABAP

    Hi,
    I have the problem, that I would generate a PDF from WebDynpro 4 ABAP and show it in the WebDynpro application.
    I found the possibility to solve it with the interactive Forms but therefore Adobe Document Service must be installed and the Usage Type BI Java as to be installed on a Web Application Server Java.
    My question is:
    Is there any  possibility to realize this with Smartforms and integrate it in Webdynpro?
    Or is there any other possibility?
    Interactive Forms is more than I need. I only want to create and show the document as PDF.
    Greetings
    Marcus

    You can then store the PDF output using the function module GUI_DOWNLOAD, for example, as a local file on your PC.

  • How to display employee photo in pdf through WebDynpro OR ABAP print Progr?

    hi,
    I have uploaded employee photos using TCODE OAOH. Now all the employee photos are stored in Archive link.
    Now my requirement is i have get the employee photo and display it in PDF using PDF forms and  webdynpro OR using ABAP print program.
    I am able to get the employee photo from SAP archive link using ABAP code. After this i have to upload this to MIME reository. From MIME repository i have to display it in PDF forms from WEbDynpro.
    I tried with ABAP print program, directly calling the PDF form in program and display the employee data with Employee Photo. With my program i am able to see only employee data. But it's not displaying employee Photo.
    Plz any helps to display employee photo in PDF forms using either webdynpro OR ABAP printprogram.
    If ur reply is related to WebDynpro, pla tel me how to upload photo to MIME repository From Archive Link.
    Since all the employee photos are uploaded into Archive link using Tcode OAOH. From this i have to get the employee photo and upload it to MIME repository and i have to display it in PDF forms.
    Any help are appreciated.......
    Regards,
    Shankar.

    Hi Sankar,
    1)You can use the program BSP_UPDATE_MIMEREPOS to upload the photos in the mime repository.
    2)Use the following code to get the content from your mime and set the content to your interactive UI element as Xstring format.
        data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/SAP/BC/BSP/SAP/myBSPapplication/rajkumar.jpg'  .
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url     = url
        importing
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Thanks,
    Rajkumar.S

  • Error opening PDF using webdynpro

    Hello All,
    I created a webdynpro application that opens a pdf document using the code described in the following link.
    Open PDF in New External Window
    I am getting the following error:
    "There was an error opening this document. The file is damaged and could not be repaired"
    But I am able to open the same file using another ASP application.
    Am I missing anything?
    Thanks in advance.

    Nikhil and Vinod,
    Thanks for your response. I used this code but it is not working. I am still getting the same error.
    In my application, I am not reading the pdf from a file. Instead, it is stored in the database as a blob. I am reading the data using the following code:
    Blob pdfBlob = resultSet.getBlob(COLUMNNAME)
    byte[] pdf = new byte[1024]
    pdf = pdfBlob.getBytes(1,(int)blob.length());
    I am storing this value in a context and then displaying it as a pdf. I am using the following code to get bytes
    byte[] pdfBytes = wdContext.currentElement().getBLOB(); (BLOB - name of the context attribute where bytes are stored)
    and using the following code to open the pdf document (as suggested)
    IWDResource pdfResource = WDResourceFactory.createResource(pdfBytes,"test.pdf",WDWebResourceType.PDF);
    *                    wdComponentAPI.getWindowManager().createNonModalExternalWindow(pdfResource.getUrl(0),"test.pdf").show();*
    Am I missing anything here?
    How can I force the pdf document to open in a browser window instead of Adobe?
    Thanks in advance.

  • Getting when importing Dynamic PDF into Webdynpro Interactive form

    Hi Gurus,
    I have created a PDF(It has  text box with multiline) in Adobe livecycle Designer and saved as Dynamic PDF, then I imported into Webdynpro interactive form.If I
    import only first page of the form and run WD application, i am getting
    the output, Still text with expand is not working.
    But If I try to import the form with 4 pages and run the WD
    application, it is throwing the following error
    "The following error text was processed in the system SM1 : WebDynpro
    Exception: SOAP Framework error: SOAP Runtime Exception:
    CSoapExceptionFault : SOAP fault found in SOAP document /Transaction
    system failure in method
    rpData./<ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException
    xmlns:ns1="http://sap-j2ee-engine/client-runtime-error">Transaction
    (100,102).
    Please help me on this.
    Thanks,
    John

    Hello,
    I closed this thread. As you opened two.
    Best regards,
    Dezso

  • How to create a word document or a pdf through webdynpro java

    Hi All,
    I have a requirement where in i need to create a word/pdf document with a certain template form.
    When the user clicks on a  button then the word document with a template should be created and saved in his/her desktop.
    I need to know what is the procedure to create a document.
    If anyone has worked on it then please help me out.
    Thanks and Regards,
    Pradeep

    Hi Pradeep,
    For creating PDF documents in Webdynpro Java you can use  "iText.jar" .
    to know more about creating PDF using iText refer these links.
    http://www.brothersoft.com/downloads/itext-jar.html
    http://www.lowagie.com/iText/download.html
    Regards
    Sridhar

  • Email interactive pdf from webdynpro without displaying form

    Hi all,
    We have a webdynpro application that needs to generate an interactive form and send it by email, without first displaying it to the user.  I have built the interactive form in a webdynpro component and it works fine, but I think it requires the window to be opened to generate the pdf xstring to be attached to the email.  But we do not need the window to be opened because the users don't want to review the form before sending it. (whether this is a good idea or not is not up for discussion. )
    I am wondering if there is a better way to accomplish this? More detail on scenario: the user selects some data in the screen and then clicks a button like "send form". They fill out a popup with recipient info and then click "send".  A form based on the data they originally selected should be sent to the recipient. The recipient (who does not have access to SAP) fills out some fields in the form (hence it needs to be interactive), then sends the completed form back to the originator via email.
    Thanks for any suggestions!
    Margaret

    Thanks to all for your responses. I could have stated the problem more succinctly as: how to send a form with ZCI layout (not standard layout) via email? 
    The pointers you gave are helpful and probably would have gotten us to the solution. We found we could use the normal functions, "CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' ...." and then
    CALL FUNCTION funcname
      EXPORTING
        /1bcdwb/docparams  = fp_docparams
          /1bcdwb/docxml     = docxml
    where docxml is the output of a custom transformation we built to convert a deep ABAP structure to the correct XML format. (Note that "CALL TRANSFORMATION id ..." does not work correctly for converting deep structures for ABAP forms because the id transformation inserts <item> where <DATA> is needed.)

  • Uploading PDF into webdynpro for ABAP

    Hello,
    I have a small Webdynpro for ABAP with an Interactive Form. I can fill my fields in this form. Now I downloaded the PDF to my local drive, changed the fields and tried to upload it again. Thats where my problem is:
    I cant upload my changes. I used a File_upload UI Element which is binded to a attribute FORM.FILE type xstring. This attribut I binded to the Interactive_Form element field pdfsources. I implemented a button with an action for my server roundtrip.
    I thought thats it but unfortunetly not. Can anybody tell me what I am missing.
    Thanks in advance.
    regards
    stefan

    Hi Stefan
    Web Dynpro ABAP development recommends that you create a <a href="http://service.sap.com/message">customer message</a> on component BC-WD-ABA.
    Best regards,
    Markus Meisl

  • Create a pdf from Webdynpro Java DC & save the file locally

    Hi
    I have a webdynpro application in which I want a functionality to create a PDF and save the PDF locally on the desktop.
    I want to create a button in the view which should trigger an action to generate a pdf automatically and should give an option to the user to open/save the pdf file locally on the desktop.
    Kindly share the sample code or a blog which talks about the same.
    Regards,
    Anurag Gwari

    Hi,
    Check these forum threads and Links.
    Forum Threads:
    [create Adobe PDF|Re: create Adobe PDF;
    [ Create PDF and Save in User's desktop |Create PDF and Save in User's desktop;
    Documents:
    [Adobe Online Interactive Forms Integration into Web Dynpro for Java Applications|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b6db1c4-0801-0010-faa5-ff4b4df55b45]
    [Dynamically Generated Forms in Web Dynpro|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613]
    Regards,
    Anand G

  • Saving and sending Adobe Form pdf from WebDynpro

    Hi,
    I'm developing an application which receives data from a RFC to a R/3. The datas are displayed on a pdf-Document in a Webdynpro. This works fine.
    Now I want to send this form as attachment in an email. Do I have to save it first as pdf or can I send it directly?
    On SapHelp I found a tutorial how to save a form as pdf:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    I tried out the describtion but without success. I defined an action on the view where the form should be displayed and added the coding in the implementation of the event. In the form I added a button Submit to SAP from the Web Dynpro Library. When I press the button, nothing happens. Do I have to make any changes under Object->Field->Control Type?
    Another question about the coding:
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
              IPrivateResultView.IContextElement contextElement =
                   wdContext.currentContextElement();
              byte[] bytes = contextElement.getPdfSource();
              try {
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
              } catch (IOException e) {
                    // do something
                   e.printStackTrace();
              wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
                   "You have pressed Submit!");
        //@@end
    The path where the pdf shall be saved is "C:
    temp
    example.pdf", I expected something like "C:\temp\example.pdf" on a windows machine.
    Where will the pdf be saved? On the machine i deployed the application (what about rights for saving) to or localy on the machine I start the app?
    Does anyone knows how to send the pdf by email when saving the form or knows a helpful tutorial?
    Many thanks for your help
    Mathias Lange

    Hi all,
    doing Tutorial 31 from SDN (Interactive Forms using E-Mail) I have a problem with the entries for the smtp-host in the coding.
    I always get the error message: 
    Sending failed;  nested exception is: com.sap.engine.services.javamail.exception.JavaMailMessagingException: Cannot send message to host xxx:25 using the SMTP protocol.
    //@@begin onActionSendForm(ServerEvent)
    Properties props = new Properties();
    String host = "xxx";
    props.put("mail.smtp.host", host);
    In host I entered the entrie for the smtp i use in Outlook, where it works fine. In the Tutorial i get the errormessage.
    I have an smtp-server from our company with which it works too, but it is not the smtp used by Outlook.
    And i can't use this smtp at my customers.
    Could it be a problem with the used ports or a needed authentication? In the Tutorial is no coding for this.
    Does anyone use a freemailer for this tutorial and have success with the smtp of this freemailer?
    Kind Regards
    Mathias
    Message was edited by: Mathias Lange

  • Creating a pdf from Webdynpro iview using "WebDynpro Java"

    Hi everybody,
           I have a requirement like creating a pdf file from the iview content in a web dynpro project.  
           Can any one explain me the procedure as well as code how to create a pdf from the table content using the "WebDynpro Java". 
    Thanks in advance,
    Naveen

    Hi Naveen,
    To be able to use PDF forms in Web Dynproapplications:
    &#56256;&#56442;SAPNetWeaver Developer Studio(minimum SPS 11) is installed
    &#56256;&#56442;Adobe LiveCycleDesigner7.0 is installed
    &#56256;&#56442;Adobe Reader7.0.x is installed
    &#56256;&#56442;SAP NetWeaverWeb AS Java compatible with the DevStudio s installed
    &#56256;&#56442;The Adobe Document Services are deployed and configured on the SAP J2EE Engine.
    &#56256;&#56442;The Active Component Framework(ACF) of the Interactive Forms integration is installed. (not mandatory)
    &#56256;&#56442; Internet Explorer(version 6)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b6db1c4-0801-0010-faa5-ff4b4df55b45
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
    Web Report to PDF
    /thread/104121 [original link is broken]
    Dynamik PDF
    Create Adobe PDF for user to download and print
    Online PDF
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8d7b9e7d-0c01-0010-2495-947691554cb7
    Regards,
    Mithu

  • Reg exporting ALV to PDF in Webdynpro ABAP

    Hi All,
    I've developed one Webdynpro ABAP portal. There, in one view, I have an ALV for Account Statement. I need to allow this output - as it is -  to be Downloaded and Printed as per given Button-choice in PDF Format.
    How can I do this? I searched SDN Forum for this. Many an articles are there but, they suggest that data from Internal Table can be exported to PDF. How can we get the data from ALV in one view to internal table?
    If there is other way of doing the same, would you please guide me.
    Thanks.
    Kumar Saurav.

    Hi Thomas,
    Thanks for your guidelines.
    In our system, ADS has already been installed. Second, ALV Toolbar is not reqd from Client's side. They need only Print and Download Functionality that too using Button.
    Hence, my case came into picture. Further, I have to add Customer Name with address as Header and Net Balance as Footer in my PDF. Therefore I need to fetch all the data that are already in ALV and present it with changed layout.
    Please guide me.
    Thanks.
    Kumar Saurav.

  • Need documents related to PDF forms

    Hi all,
    Please provide me documents related to :
    1) what is PDF forms.
    2) advantages of PDF forms
    3) Comparison between PDF & Smartforms or sap scripts.
    4) or any other info refarding PDF forms
    Thanks

    Hi,
    SAP Interactive Forms by Adobe in the Guided Procedures Environment
    https://www.sdn.sap.com/irj/sdn/java?rid=/webcontent/uuid/f057d803-3c53-2910-db92-a6a2f1cc7334
    Guided Procedures Functions and Features
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d261b611-0b01-0010-7781-acb929f30163
    Guided Procedures Overview
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a553bb11-0b01-0010-23ad-a3dc74e77e39
    Task-Oriented Support for Your Department's Informal Processes - Without Calling on IT
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b866ae10-0b01-0010-cc85-e6c886cbfa84
    Getting Up to Speed on Guided Procedures, Part I
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/49a605f0-0a01-0010-68aa-ebb5dfdce852
    Getting Up to Speed on Guided Procedures, Part II
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/1ffe06f0-0a01-0010-60a7-a2593e1862f3
    http://help.sap.com/SAPHELP_NW04S/helpdata/EN/33/198141f906040de10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a553bb11-0b01-0010-23ad-a3dc74e77e39
    https://www.sdn.sap.com/irj/sdn/java?rid=/webcontent/uuid/f057d803-3c53-2910-db92-a6a2f1cc7334
    Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bpx/guidedProceduresGetting+Started
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bpx/guidedProcedureGeneral+questions
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bpx/guidedProceduresProcess+Examples
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/emtech/adobeformsinGuidedprocedures
    https://wiki.sdn.sap.com/wiki/display/EmTech/AdobeinteractiveformsinwebDynpro+JAVA
    https://wiki.sdn.sap.com/wiki/display/BPX/TheuseofInteractiveFormsinGP
    Useful blogs
    A Tale of Two Brothers: Guided Procedures and the SAP NetWeaver BPM Product
    The specified item was not found.
    Usage guide for creating Guided Procedures
    Usage guide for creating Guided Procedures
    Galaxy, Universal Worklist, Guided Procedures Connector, and Dr. Bruce
    Galaxy, Universal Worklist, Guided Procedures Connector, and Dr. Bruce
    Regards,
    Arafat

  • SAPScript to PDF in Webdynpro for Java

    Hi All,
    I have to display Form16 for an employee in pdf format in portal. Form16 is available as SAPscript.
    ECC 6.0
    Report Program:HINCF160
    We can run transaction 'HRESSIN_F16' in se93 to see Form16, How can we get the same to Webdynpro,
    If we use an RFC which Function module to be called to get the data in pdf format
    Regards
    Sarath

    Hi,
    maybe this could help you:
    Regarding Copying of Data From Excel file to Web Dynpro Java Table
    Import data from excel/csv file in web dynpro
    Regards, Bernd

Maybe you are looking for

  • Having trouble with Netflix, could it be the processor?

    So, yet again, I am asking for info about this 2005 Mac Mini that we were given.  We have been trying to get it up to date so we can watch netflix, and I just upgraded the memory to 1GB, but it still won't play streaming Netflix.  The only thing I ca

  • Settlemt-AUCof Prior Year Acqn to G/L Account in current yr Possible or not

    Hi Gurus, My client is following calendar year and has already closed the fiscal year for Asset Accounting.Later on they found that there is some amount lying in one AUC in the prior year-2007 which has to be settled in current year to a G/L Account

  • Mod_oc4j for load-balancing

    Guys, Looking for some feedback on DMSMetricCollector when using "metric" as the selectmethod for load-balancing. What i want to know is that whether the DMSMetricCollector can be configured to use multiple metrics such jvm-heapsiize, servlet-process

  • Requests to change email password

    Why am I being advised of suspicious activity on my account & told to change my e-mail log in passord every few days (3or4)?

  • Song has been purchased but can't be downloaded.

    I recently bought a new album (TALKING IS HARD by WALK THE MOON) and all but one of the songs has downloaded to my computer. The song in question (Sidekick), shows up in the iTunes Store as "Purchased" but does not give me the option to download it.