Download the pdf document from sap server

Hi,
I uploaded the pdf document as MIME type in mime browser.  I have a requirement to open this document when I click on the button.  How could we achieve this ?  I appreciate your help.

1.You could use offline intractive form to display PDF.
2. use
  cl_wd_runtime_services=>attach_file_to_response(
    i_filename  = file_name
    i_content   = lv_content
    i_mime_type = mime_type
    i_in_new_window = abap_true
    i_inplace       = abap_false ).

Similar Messages

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

  • How to open the pdf document from KM  through Link to URL UI element

    Hi All,
    I have Link to URL UI element  in webdynpro java layout - on click of the link we need to open the pdf document from KM respository.
    KM Document location : irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf.
    Once this is transported to Test and Production portals , we need to retrieve the KM document from the respective portal location through the Link to URL UI element .
    Thanks,
    Portaluser100

    Hi,
    If you set the link to your document in a Context attribute by using a relative path this should work just fine.
    Example:
    wdContext.currentContextElement().setUrl("/irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf");
    Bind that attribute to the reference property of the LinkToURL element.
    Cheers,
    Leo

  • Fetching a image in the adobe form from sap server/appliaction layer

    hi all,
    i want to fetch a logo/image from the application layer/ sap server, so that everyone can use it in adobe form. i have already upload the image using SE78.
    I try to add the image into library, it works. But the problem is that, only from my login i can access that image, other can't. I want that image to be shared by everybudy like we use in smartform.
    But i want to fetch that image from SAP server/application layer.
    plzz help me out...
    and tell me the steps for fetching the image from sap server/application layer into the adobe form layout.

    Hi rahul,
    I too have the same requirement. Can you please tell me the steps.

  • Checkin PDF document from Appliction server onto DMS

    Hi All,
    We have pdf documents on a file server which we need to attach/checkin to a document info record using CV02N transaction.The file server will be mounted onto SAP's application server. i'm using the bapi BAPI_DOCUMENT_CHECKIN2 to achive this functionality programatically. I'm getting the following error when I try to pick a file from application server. 'Error while checking in and storing: /tmp/test.pdf'. However, when I pick the file from desktop(through the program itself), the document is getting successfully attached.
    I would greatly appreciate if someone could help me in correcting this issue.
    regards,
    Arun

    Hi,
    I resolved the issue my self. I included an additional parameter     PF_FTP_DEST             = 'SAPFTPA' in the function module BAPI_DOCUMENT_CHECKIN2 which seems to have resolved the issue.
    regards,
    Arun

  • How to add attachment to FI document from sap server

    Hi.SAP experts:
        I have files on SAP Server,and I want to attach these files to my FI Document,how could I achieve this goal without download the files into my local computer??
    Best Regards
    Martin Xie

    This could help you:
    http://www.whypad.com/posts/sap-attach-documents-to-a-journal-entry/45/

  • Error while downloading the PDF file on presentation server

    Hi all,
    i have converted OTF file into PDF one and then downloading it to the presentation server . But it gives the error as follows
    'Access to file denied'    . Can anyone tell me what may be the issue ? Below is my code
    DATA: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.
    DATA: ws_bin_size TYPE i.
    DATA: t_otf  TYPE TABLE OF itcoo,
                ws_filename TYPE string.
      t_otf[] = wa_job_info-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format        = 'PDF'
          max_linewidth = 132
        IMPORTING
          bin_filesize  = ws_bin_size
        TABLES
          otf           = t_otf
          lines         = i_lines.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize = ws_bin_size
          filename     = 'C:\ABC.PDF'
          filetype     = 'BIN'
        TABLES
          data_tab     = i_lines.

    Hi Sayeed,
          You may not having the permissions to create files in 'C' folder. Change the path and try again.

  • Hi, i am not able to download PDF document from email in the ibook in both iphone 4s and ipad 1 mini. The received PDF document appears as image. This matter is experienced only from week. Appreciate your help

    Greeting
    I am not being able since last week to download PDF document from email to ibooks. Once the PDF document in the email open it is shown as image document and cannot be downloaded to ibooks. This recent problem is also experienced in my ipad mini. Currently, i have to download the PDF document to my ibooks via the itunes only
    Appreciate your help  

    Greeting
    I am not being able since last week to download PDF document from email to ibooks. Once the PDF document in the email open it is shown as image document and cannot be downloaded to ibooks. This recent problem is also experienced in my ipad mini. Currently, i have to download the PDF document to my ibooks via the itunes only
    Appreciate your help  

  • I am unable to download a pdf document onto my MAC from a Canadian government website

    I'm having trouble downloading a pdf document from a canadian govenrment website (I'm on MAC) in spite of having installed the latest version of Adobe reader.  Any ideas?

    When I go to:
    Canadian Film or Video Production Tax Credit (CPTC) - Arts and Cultural Industries - Arts and Culture
    www.gc.ca/cptc/forms
    and attempt to download the 'Breakdown of Costs (Live Action)'
    I am not able to do so
    Rather I get a message saying that if I'm having trouble I should download the latest version of Adobe Reaer to my MAC, which I've done & confirmed that it's in fact installed
    I still can't download the required form
    They said I should contact Adobe.com if I'm having trouble.

  • Display only 1 record using uploaded PDF document from 3rdparty Website

    Hi,
    Any help will be very much appreciated....
    I'm trying to create my first BI publisher report using a PDF document from 3rd party website. I want to populate the name from EMP table to one of the fields in the PDF doc.
    Here's the steps I've done:
    1. Created and saved a data set using only the ENAME column of EMP table. 14 records are available from the table.
    2. Run xml output and then save as sample data.
    3. Downloaded the PDF doc from the 3rd party website (government form - US Custom Form 7512).
    4. Using Adobe Acrobat X Version 10.1.4, I mapped the element name (ENAME) from my input XML file to the Name field.
    <output type="data-structure" >
    <dataStructure tagName="DATA_DS">
    <group name="G_2" source="Employee" label="G_2" >
    <element name="ENAME" value="ENAME" dataType="xsd:string" label="ENAME" breakOrder="None" fieldOrder="1"/>
    </group>
    </dataStructure>
    </output>
    5. Uploaded the revised PDF document to BI publisher.
    6. Created and saved the report.
    7. When I viewed the report in PDF, only 1 page is displayed. I'm expecting to see 14 pages because I have 14 records from the table EMP.
    Any report properties that I need to change to allow me to view all the records from the EMP table?
    Version of BI and Adobe
    Oracle BI Publisher 11.1.1.5.0
    Adobe Acrobat X Version 10.1.4

    There could be an issue with the Loop. I guess your Template is looking at the first record only and not reading through all the records.
    Try to get the BI Publisher Desktop tool. Using this tool you can merge PDF document and XML to see the output from your local PC/Laptop. It will be easy for you to debug.
    Rgds
    Chundi

  • Saving PDF documents from websites

    Previously with Windows XP and Adobe Reader 7, every time when I download a PDF document from the web, the window opened to the last directory I saved into. Since I have acquired a new notebook which runs on Vista (with SP1), I have downloaded Adobe Reader 9. Each time when I download a document, it returns to the root directory. As I classify the documents, I have to click through a series of directories before arriving at the last subdirectory. Instead of an improvement, it was a waste of time. To make things wores, sometimes, the directory name may have slipped my mind and I am lost.
    Please help, thanks,

    [email protected] wrote:
    > I have the exact same problem. This is really stupid. A major flaw
    > in my view for Adobe Reader 9. I am trying to find a registry
    > location where this info is located. So far no luck
    Which OS? XP or Vista?
    Rainald

  • How to download a pdf file from the server from an strut application?

    Hi,
    I wan to download a pdf file from the server side to local system. Please help me how i use the down load option.

    Read up on the Struts download action [1].
    And next time, please post in the relevant forum, one of the web-tier ones [2].
    [1] http://wiki.apache.org/struts/StrutsFileDownload
    [2] http://forum.java.sun.com/category.jspa?categoryID=20
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to read the data from a PDF document into SAP

    Hi Everyone,
    I am trying to read a PDF document from my desktop and get the data into SAP but i am not getting successful.
    I am using the method cl_gui_frontend_services=>gui_upload and passing the filename and type and importing the file length and the data into an internal table.
    I tried the file type as ASC but i couldn't get any records in the internal table and the filelength is displayed as 0.
    When i tried the file type as BIN, it is giving the short dump. I guess that is because the file i am trying to read is not with the extension BIN.
    Please Advice me on this
    Poornima

    Hi Kiran,
    Below is my program..
    REPORT  zpdf_data_update.
    DATA : lt_file_table TYPE filetable.
    DATA : lv_rc TYPE i.
    DATA : lv_filename TYPE string.
    DATA : lv_filelength TYPE i.
    TYPES : BEGIN OF hex_record,
              data TYPE string,
            END OF hex_record.
    DATA: lt_rawtab TYPE TABLE OF hex_record.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
    CHANGING
    file_table = lt_file_table
    rc = lv_rc
    EXCEPTIONS
    file_open_dialog_failed = 1
    cntl_error = 2
    error_no_gui = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    ENDIF.
    READ TABLE lt_file_table
    INTO lv_filename
    INDEX 1.
    cl_gui_frontend_services=>gui_upload(
    EXPORTING
        filetype = 'BIN'
        filename = lv_filename
    IMPORTING
        filelength = lv_filelength
    CHANGING
        data_tab = lt_rawtab
    EXCEPTIONS
        file_open_error = 1
        file_read_error = 2
        no_batch = 3
        gui_refuse_filetransfer = 4
        invalid_type = 5
        no_authority = 6
        unknown_error = 7
        bad_data_format = 8
        header_not_allowed = 9
        separator_not_allowed = 10
        header_too_long = 11
        unknown_dp_error = 12
        access_denied = 13
        dp_out_of_memory = 14
        disk_full = 15
        dp_timeout = 16
        not_supported_by_gui = 17
        error_no_gui = 18
        OTHERS = 19 ).
    But it is giving me a short dump saying that the field symbol is not assigned ...
    If i give the file type as ASC , then i am getting an empty table... Please advise me on this
    Thanks
    Poornima

  • Download spool to PDF document on application server

    Hi,
    I am using function CONVERT_OTFSPOOLJOB_2_PDF to convert a sapscript spool and then downloading the internal table provided to a pdf file on the application server. The sapscript form contains company logos.
    After transferring the file from the application server to PC and then opening the pdf document I get the following message:
    "There was an error while trying to parse an image."
    The PDF doc contains everything except the company logo.
    I noticed that this works (i.e. company logo is present in the downloaded file) when I transfer the internal table that contains the PDF contents onto my PC using GUI_DOWNLOAD using mode 'BIN'. However, when I transfer the contents of the same internal
    table to a file on the application server using abap statement:
    'Open Dataset <filename> FOR OUTPUT IN BINARY MODE'
    I get the problem described above.
    I noticed that SAP has provided standard program RSTXPDFT4 to convert a spool and download it into a PC file. However is there a similar program that downloads a spool onto the application server? Perhaps there is a 'special' way in downloading PDF documents onto the application server?
    I don't this problem with sapscripts that do not have a company logo.
    Is there a certain restriction on 'Open Dataset'with transfering logos in PDF documents?
    Any help would be greatly appreciated in the form of reward points.
    Thanks
    Liam

    Hi,
    We convert some of our spools to pdf and store them on the app server using following high level process.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid = p_spool
                no_dialog   = 'X'
                dst_device  = 'LOCL'
           TABLES
                pdf         = lt_pdf
           EXCEPTIONS
                OTHERS      = 0.
    Write PDF file
      CALL FUNCTION 'GUID_CREATE'
           IMPORTING
                ev_guid_32 = l_guid.
      CONCATENATE '/your_path_goes_here/'
                  l_guid
                  INTO l_filename.
      CONCATENATE l_filename '.pdf' INTO l_filename.
    Store
      OPEN DATASET l_filename IN TEXT MODE.
      IF NOT sy-subrc IS INITIAL.   " only write pdf if new
        LOOP AT lt_pdf.
          TRANSFER lt_pdf TO l_filename.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET l_filename.
    If it doesn't work, I would 1st try and play with image type. I'm wondering if it's tripping on image conversion. Perhaps revert to 1st principles and try monochrome bitmap and a few variations thereof. I stand by my code above. Definitely works. HTH, Dave

  • Download PDF file from APP server!

    Hi!
    Has anyone tried uplaoding and downloding a PDF table from app server as I tried from a normal method by Open dataset, Transfer but it wont work.
    Please provide any inputs.
    Thanks.

    Hi park,
    1. Using open data set, transfer , close etc,
       also it will work.
       ( it will download / upload any kind of file from app server)
    2. Just make sure the
       FULL PATHNAME and the FILENAME
       are mentioned in EXACT CASE
      (small/CAPITAL).
    3. U can check thru transaction AL11, to see the file and path.
    regards,
    amit m.

Maybe you are looking for

  • How to create different users in the same iPad 4?

    I would like to share my new iPad with other person. How can I create two users.?

  • Improving still picture quality

    I am doing a ski video that includes many still pictures of snowy mountain tops and trees. I was wondering if one of FCE's regular filters could prevent the flickering effect caused by the snow on the trees. This is only visible on a tv screen. Thank

  • OEM  not starting in 10G ...

    HI, While i am starting the oem it is saying below error: D:\oracle\product\10.2.0\db_1\BIN>emctl start dbconsole Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. http

  • JCOM bridge and user context {principle}

    I am using VB as a client, JCOM/JIntegra bridge and WLS 6.1 server. JCOM bridge installed on the WLS maschine. I use late binding. I have EJB component which returns to the client something based on the caller principle. So, when I call InitialContex

  • The contents in a shared object file

    After compilation of my C++ programs, the makefile generated a shared object file, called libxx.so Any way I could list out a contents of object file (*.o) in libxx.so?