SAVE PDF IN LOCAL PC IN VF01

With VF01 create invoice ,when save it.   the system can print INVOICE smartforms.   NOW, I want it can save the PDF in local PC at the same time.
WHEN I add function  in smartforms print ENTRY FORM .
CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         FORMAT                      = 'PDF'
         MAX_LINEWIDTH               = 132
        ARCHIVE_INDEX               = ' '
        COPYNUMBER                  = 0
        ASCII_BIDI_VIS2LOG          = ' '
        IMPORTING
          BIN_FILESIZE                = numbytes
        BIN_FILE                    =
        TABLES
          OTF                         = SMART_PDF
          LINES                       = PDF
       EXCEPTIONS
         ERR_MAX_LINEWIDTH           = 1
         ERR_FORMAT                  = 2
         ERR_CONV_NOT_POSSIBLE       = 3
         ERR_BAD_OTF                 = 4
         OTHERS                      = 5
      IF  SY-SUBRC <> 0.
          CF_RETCODE = SY-SUBRC.
          PERFORM PROTOCOL_UPDATE.
          RETURN.
      ENDIF.
        CONCATENATE ZBILLPDF-PATH IT_HD_ORG-BIL_NUMBER '.PDF' INTO FIELENAME.
        CONDENSE FIELENAME.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE                    = numbytes
            FILENAME                        = FIELENAME
            FILETYPE                        = 'BIN'
        IMPORTING
          FILELENGTH                      =
          TABLES
            DATA_TAB                        = PDF
          FIELDNAMES                      =
         EXCEPTIONS
           FILE_WRITE_ERROR                = 1
           NO_BATCH                        = 2
           GUI_REFUSE_FILETRANSFER         = 3
           INVALID_TYPE                    = 4
           NO_AUTHORITY                    = 5
           UNKNOWN_ERROR                   = 6
      IF  SY-SUBRC <> 0.
          CF_RETCODE = SY-SUBRC.
          PERFORM PROTOCOL_UPDATE.
          RETURN.
      ENDIF.
There is a ERROR message about GUI_DOWNLOAD FUNCTION at run time.   HOW CAN I solution it?

You can not interact with the presentation server such as the desktop of your local system in background. There can be some solution to your problem as given below..........
1. Create spools for the form outputs . Whenever user wants to download the forms to desktop, they can run the program RSTXPDFT4 with the spool details.
2. Save the form output in a specific path application server in PDF format and create a custom program to download all the files from application server to desktop.
3. Check this link for download to presentation server in background. You need some RFC configurations and configurations in local desktop for this. You can give it a try...........
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2?quicklink=index&overridelayout=true

Similar Messages

  • Acrobat X plugin running in Browser cannot save pdf files locally

    Hi,
    I have a Digital Signature plugin written for Acrobat X and it handles both signature creation and verification. When a PDF with digital signatures is opened in a browser (specifically IE8, IE9) acrobat X runs in browser mode and it calls our digital signature plugin. Our plugin then saves the online PDF to local disk using the following Acrobat X SDK method:
    PDDocSave()
    This normally works fine without any problems under windows 7. However, there are some cases where the PDF does not get saved at all. In that case, if we try running Internet Explorer using "Run as admin", saving starts to work again. From this we have concluded that the saving functionality of our plugin requires Internet Explorer to be run as admin.
    Problem is that, for users without admin rights this behavior is not ideal.
    We have also noted that, if we try to save the PDF opened in a browser using the default save feature of acrobat X, then the save goes through successfully.
    Question is, how can we make our plugin to save the pdf the same way acrobat X does when run under browsers?  What options do we have?
    My system specs: Windows 7 64bit,   Acrobat X v.10.1.4 (occurs in 10.1.1 through 10.1.4),    IE9. 
    Thanks in advance.

    My question is then how is acrobat itslef able to save the same pdf locally at the same destination without any problems. I am assuming it is using the same save api itself.
    If acrobat itself can do it, why cant a plugin running inside acrobat X.
    And if the plugin cannot achieve the same behavior as acrobat then can we conclude that for a digital signature plugin running inside acrobat X which is running in browser mode to open a PDF:
    - Acrobat X itself and the plugins which run inside it behave differently when saving an online pdf locally. And there is no way for the plugin to achieve the same behavior as acrobat itself in this regard.
    - There is no way (either programmatically or otherwise) for the digital signature plugins, to save online PDFs locally, without either running the browser 'as admin' or adding the website, hosting the online PDF, to Trusted websites list of acrobat X.
    - User of acrobat X plugin has to either run the browser 'as admin' or add the pdf hosting website to Trusted websites list to save the opened PDF locally.
    Please confirm if my conclusions are right. And in cases they aren't please explain why. Thanks for you prompt replys.

  • 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

  • Save PDF form to SharePoint

    Hello Experts,
    This is my 1st question in this forum (& regarding Acrobat as well).
    Here's the scenario;
    We have SharePoint 2013 environment which is used for lot of things around documents, workflows, projects etc. In one of the projects, we have a requirement to use PDF Forms. These forms will be provisioned as part of the Document Set (inside document set), we are able to convert word/excel forms in to pdf & setup the columns, validations etc and all is well so far.
    Here's the Problem:
    When the user opens the pdf form > fills in information > click on save > Points to local machine documents folder VS. we prefer to set it up in such a way where the form holds on to the link from where it was opened and saves it back to the same location. Of course, user may get a prompt that the file already exists and thats completely fine.
    I have been trying to get around this since last week and haven't made any progress and finally thought of asking the experts for help.
    Please help, your time and efforts are highly appreciated. Kindly let me know if there are any questions.
    Regards,
    Chandra

    SharePoint Integration was introduced in Acrobat X. So the signers will have to be on Acrobat X (latest patch 10.1.4) and above, to be able to check out the form from SharePoint and sign it. Just saving the form to SharePoint server and checking out from there should solve your purpose with Acrobat/Reader 10.1.4.You dont need to even distribute it.
    HTH

  • Email Billing document as PDF Attachment while saving from VF01/02

    Hi,
    Can anybody suggest if there is any BADI/User Exit/Configuration exists in order to email Billing document as a PDF attachment while saving from VF01 or VF02?
    We need to trigger this while saving the Output type say, VF02 GOTO -> HEADER -> OUTPUT (select the output type) -> SAVE - should send an email with PDF attachment.
    I have written the code for sending email with PDF attachment. Presently this code is included in the Print program for the sapscript and an email is sent when an output is issued from VF01/02/03 where as the requirement is to send email whenever the document is saved.
    Thanks in Advance,
    Srinivas

    Hi,
    While saving subroutine FORM_OPEN will get triggerred, and this will be included in the Z Program. If it is not contained in the Z program, include this subroutine. This subroutine will have include RVADOPFO.
    The above include will have the function module ADDR_GET_NEXT_COMM_TYPE, and the import parameter LVS_COMM_VALUES will contain the address number and email address to whom the pdf needs to be sent.
    So here, i.e. In place of standard include RVADOPFO, put custom include ZRVADOPFO, and modify the code as below.
    After the function module ADDR_GET_NEXT_COMM_TYPE, read the email address from any custom table based on the various conditions or hard coded value, then move it to the below variable.
    LVS_COMM_VALUES-ADSMTP-SMTP_ADDR.
    And remaining functionality will be taken care by the standard code. i.e. converting the spool to PDF and attaching it while sending the email etc....
    If I am not wrong, the same functionality will work  even while saving the sales order etc..
    Regards,
    Santu.

  • HT5925 Can I save pdf files on iCloud?

    Can I save pdf files on iCloud?

    I installed a PDF reader.
    It allows attaching pdf files to my iPod and synching with iTunes.
    But I don't use iCloud, still. I do all backups local to iTunes library.
    However, it should work no matter where or what IF you have files attached to an app that allows files.
    When I make changes to files attached to apps, they change and show under iTunes - tried renaming a file on the computer and changed on iPod.

  • Save pdf

    hi,
    I have a pfd template in the local desktop.When I fill the template and save the pdf, only the template is saved and the contents(user entered datas) is not saved.I have installed Adobe Reader 7.0.After filling and saving I want to upload the pdf with data into a webdynpro application.
    Please can any one tell me how to save the contents of the pdf in local desktop.The adobe reader is not allowing me to save.What setting or change should I do with the adobe reader.or is any other installation required????
    Thankyou,
    shamila.

    Hi Shamila,
    As i think urs basic aim is to upload a save pdf form to the webdynpro application...so just go through the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#pdf
    and also check urs SAP WebAS configuration that ADS is installed on the server side.
    Do the same thing by different procedure means first create the pdf from with the help of following tutorials
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/2dd3dbcd-0401-0010-55b8-b10808ff688e
    and then save it to urs disk/desktop with sample data and then upload that form ....
    if u have any different concern then let me know.

  • 7.0.4 won't save PDF

    This is clearly a local problem as I can't reproduce it on a nearby iMac operating off the same network/OS version. In short, every attempt to Save As or Export a PDF when displayed in a Safari window produces a zero K file without any warnings. If at the same site and same file I choose Develop>Open Page With>Firefox 29.0.1, I can download the PDF just fine. Note this is only a problem with downloading PDF files thru an embeded link. Chosing File> Export as PDF works fine on any non-PDF page. I also can't find anyway to get a PDF link to do anything but open in Safari. Again a change in behavior. I've examined Safari's preferences where the only mention of downloading is where to put it. I also haven't changed any settings. I don't have the current Adobe Reader set to render web pages though I do have Acrobat X 10.1.10. Again it's not called by Safari
    I installed Mavericks late but did not have this problem before the 10.9.3 update. I suspect some sort of preference/setup screw up but am uncertain where to go. Perhaps a Safari>Reset Safari is in order?
    Thanks for any insight,
    Robert
    2010 Mac Pro, dual quad 2.4GHz, max RAM

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • Can't open pdfs; can't save pdfs on my MAC Computer

    Hi   I have problems with my Adobe Reader on my MAC computer…Mac OSX version 10.7.5.  It began when I did update my current Adobe Reader.  Eversince, I always get a window saying "Adobe Reader could not open "_______" because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded."
    I couldn't open any pdf file on my desktop.  I also couldn't save a paper as a pdf form but it looks like a notebook file on my desktop…not the normal red pdf file.
    I am not sure how I can correct the problem.

    Hi jcs174,
    If you just want to save a pdf opened in Safari to your machine use the save as option from within the Reader window. Just click on any of the buttons highlighted in below screenshots to Save a pdf at any location on your machine.
    or
    To summarize the issue, if you had opened an Internet PDF in a browser plug-in, you must use the save feature in the plug-in, not the Safari File > PDF Export, or File > Save As...
    Please let us know if this solution works for you and you are able to save and view PDFs files locally.
    Regards,
    Shashi

  • Where can i save pdf files in icloud? Wo kann ich in der icloud PDF Dateien speichern?

    Where can i save PDF files in icloud?
    Wo kann ich in der  icloud PDF Dateien speichern?

    I installed a PDF reader.
    It allows attaching pdf files to my iPod and synching with iTunes.
    But I don't use iCloud, still. I do all backups local to iTunes library.
    However, it should work no matter where or what IF you have files attached to an app that allows files.
    When I make changes to files attached to apps, they change and show under iTunes - tried renaming a file on the computer and changed on iPod.

  • QuickView (run in backgroud) - How to auto save data to local file

    I am using Quickview to extract data. I want to run the Quickview query in background and auto save the data extracted into local file (ASCII file). Currently when I specify File Store (as my Output Format) and enter a file name (e.g C:\Temp\test.asc). Upon completion of extraction there is a little window popup that need me to select data format (e.g DAT, ASC) and click <Transfer> button to proceed to save data into local file.
    Is there a way that I can save data into local file without have to manually select ASC data format and click <Transfer> button. I will not be  able to schedule my QuickView query to run in background if I can't resolve this problem.
    Note that I don't have access to ABAP programming, therefore this option is out.
    Thanks in advance to anybody who can share your expertise experience.

    Tyr Fm's
    1. WS_UPLOAD
    2. GUI_UPLOAD
    But using gui_upload and ws_upload can only upload data from txt.
    actualy we have software to convert pdf to text file it freely availabe in internet...
    after conversion you can use thesr fms.
    plzz reward points usefull
    Cheers,
    Chandru

  • How do I save PDF files by default to the folder of the source file?

    How do I save PDF files by default to the folder of the source file with Acrobat 9.0.0 Standard?

    I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename.
    Maybe one of the settings in about:config controls that?
    pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere?

  • I CAN'T SAVE PDF DOCUMENTS

    Hi, After installing Adobe Reader 10.1.10 can't to do several actions. I saw that since version 9. I can't save PDF  documents provided by internet companies. The options that appears below, like  to save, print, + or -, are flashing all the time and can't do anything. If I click right button in the name of the document, the option save destiny like...is deshabilited too. What can I do? pls urgent. My operative system is Windows 7.

    Best to keep the replies in the other post, but I wanted to comment on something you said "I was told that Adobe X is a 32 bit program and that could be why it's running slow." Yes, it's a 32 bit program. No, it's complete nonsense to say that 32 bit programs run slow. There seems to be a general belief that 64 bit is better because, well, because, um, because it's a bigger number so it must be, right? Sorry, I'm not mocking you, but there is such nonsense about this, that I think software makers are having to put a lot of effort into making 64 bit software for no good reason at all.

  • "Save Pdf File" window

    Hi,
    I have an Access 2000 aplication which works fine with Acrobat 8.1.2 Pro
    -you select a product name
    -a PDF file is generated from this product's "Report"
    -and it's sent by mail
    It is a VBA code which stores: folder name, file name, printer name into Windows Registry
    I have migrated the file to Access 2007 and now there is a problem.
    It opens a "Save Pdf file" window and asks me to select a folder and to enter a file name.
    Seems that name and folder retrieve from the registry is not working.
    What is it? What can I do to resolve the problem? Any idea?
    Thanks,

    I searched without success ...How to find it?
    I have this:
    ' Put the output filename where Acrobat could find it
    bSetRegValue HKEY_CURRENT_USER, _
                     "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
                     Find_Exe_Name("application", "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"), _
                     sOutputFolder & "\\" & sPDFName

  • How to remove a hidden text in pdf file with Acrobat Pro 9. How to save pdf file and remove hidden text?

    I
    I made this file in indesign, the highlited empty spaces indicates that their is a hidden text and it pop up when searching for some words in pdf file. so how can I save pdf file to keep only the seen text ???

    Dear lrosenth,
    I went through some codes/suggestions in internet and I found that I need to have cmap file and cid font file for the respective font since pdf doesn't support unicode fonts directly.
    Can you help me to know where can I get cmap file and cid font file for tamil language font Latha(TrueType) microsoft font.
    Regards,
    Safiq

Maybe you are looking for