Menu button to download Pdf file on the application

Hi,
I have a AM method that takes in some parameters and generates xml data and then calls the BI Publisher report service and generates a PDF providing the xml data as input. The method needs to have a file download action listener so that the Pdf file returned would be saved. The triggering point for the AM method can be in several UI pages and the triggering methods can also be different. It can be a action command button, a link or even a menu. Where and how can I provide this method so that it is kind of generic and there is not much of a configuration things that need to be done to invoke this method from the UI pages.
Thanks,
Rakesh

Hello there,
This assumes you are using Flash CS3 with the default
Actionscript 3.0 settings.
1) Create a button and in the Properties panel give it an
instance name. This example is called 'pdfButton'.
2) Create a new layer in your timeline and name it "Actions".
3) Click on Frame 1 of this layer and press F9 to open the
Actions panel.
4) Copy and paste the following code.
NOTE: If you have Script Assist on, click on it to turn it
off.

Similar Messages

  • Save PDF-file on the application server

    Hello experts,
    I convert my Smartform to a PDF-File. I copied the code from  Suresh Kumar Parvathaneni (REPORT zsuresh_test). At first, thank you Suresh Kumar for that!
    Now, I would like to save the PDF-File on the application server and not local.
    Could you tell me how to do this. Especially, where do I have to put the abap-code in the given code from Suresh Kumar.
    I thank you very much for your help in advance.
    With kind regards.
    gokselin

    Hi,
    You can use the OPEN DATASET statment.
    Probably you must be having an output table which you are downloading to the local machine.You can use the same and loop at it. and if the OPEN dataset returned sy-subrc 0, use the TRANSFER statment.
    Remember the data will be binary for pdf. So you have to open the dataset in binary mode.
    regards,
    Advait

  • Bug:Downloading pdf file from the web,file name in dialog box populates with incorrect file name

    Hi Gurus
    When downloading any pdf file from the web using adobe Reader X the file name dialog box populates with incorrect file name
    compared to the saved file name of the document downloaded.
    Clarity
    1. Download any pdf file from the web
    2. Click File, Save as note the populated File Name
    3. Compare the populated file name with the saved file name of the documant yuo are downloading.
    4. The file Name is incorrect...
    Is there any work around on this issue?Can someone please help?..
    OS:Windows7
    Reader: Adobe Reader X
    I've tried a couple of other versions and still get the same results...

    Are you downloading the file (right-click, save link as), or just opening it by clicking it?
    If the latter, then what happens is the file is loaded to the temporary internet files folder by IE and assigned a temporary name, which is then used when you're trying to save it.
    You can test this out by going to File - Document Properties before trying to save and looking at the file's location.

  • Can't download pdf files from the internet?

    I can't seem to download my utility bill pdf files from the internet? I use to but in the last few months i haven't been able to. Can anyone help, please?

    What is your operating system & version?
    What web browser do you use?
    What is your Reader version?
    What exactly means "can't"?

  • HT1750 unable to download pdf files with the new lion instillation

    I am unable to download pdf files after installing lion.

    I have an imac purchased 4/2010 and same thing happened to me but can't find anyone to address it. The real tragedy here is that I paid for the full adobe creative suite, web premium back in 2010 and Adobe Pro can't open them, although it worked just fine before. Then I installed the latest version of Adobe reader and tried changing that to my default and that doesn't work either.
    It's pretty lame that I have to go on my boyfriends windows pc to open and print a .pdf as the only alternative. I did not read about this when researching whether or not to upgrade to lion from snow leopard otherwise I would not have kept the old operating system.
    Why isn't apple addressing this???

  • Regarding the uploading the pdf file to the application server

    hi,
    iam getting this error while uploading the pdf file to the applicatioin server.
    "There was an error while trying to parse an image"
    to convert smartform into PDF file we ll use convert_otf FM.
    If see that FM data ll be stored in it_tline structure ok.
    For sending to application server we ll use
    OPEN DATASET p_arch for OUTPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS.
      LOOP AT it_tline.
      TRANSFER it_tline to p_arch.
      ENDLOOP.
      CLOSE DATASET p_arch.
    Ok
    For getting data from internal table we ll use
    OPEN DATASET p_arch FOR INPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS
    do.
      READ DATASET p_arch INTO it_tline.
      if sy-subrc = 0.
        APPEND it_tline.
        ELSE .
          exit.
          endif.
      enddo.
    CLOSE DATASET p_arch.
          LOOP AT it_tline.
        TRANSLATE it_tline USING '~'.
        CONCATENATE wa_buffer it_tline INTO wa_buffer.
      ENDLOOP.
      TRANSLATE wa_buffer USING '~'.
      DO.
        i_record = wa_buffer.
        APPEND i_record.
        SHIFT wa_buffer LEFT BY 255 PLACES.
        IF wa_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Attachment
      REFRESH:
        i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
      CLEAR wa_objhead.
      i_objbin[] = i_record[].
    Create Message Body
    Title and Description
      i_objtxt = 'COMMERCIAL INVOICE'.
      APPEND i_objtxt.
      DESCRIBE TABLE i_objtxt LINES v_lines_txt.
      READ TABLE i_objtxt INDEX v_lines_txt.
      wa_doc_chng-obj_name   = 'COMMERCIAL INVOICE'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr  = 'COMMERCIAL INVOICE'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size   = v_lines_txt * 255.
      CLEAR i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num   = v_lines_txt.
      i_objpack-doc_type   = 'RAW'.
      APPEND i_objpack.
    Attachment
    (pdf-Attachment)
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      DESCRIBE TABLE i_objbin LINES v_lines_bin.
      READ TABLE i_objbin INDEX v_lines_bin.
      i_objpack-doc_size =  v_lines_bin * 255 .
      i_objpack-body_num  = v_lines_bin.
      i_objpack-doc_type  = 'PDF'.
      i_objpack-obj_name  = 'COMMERCIAL INVOICE'.
      i_objpack-obj_descr = 'COMMERCIAL INVOICE'.
      APPEND i_objpack.
    BREAK-POINT.
      IF it_adr6[] IS NOT INITIAL.
        LOOP AT it_adr6 INTO wa_adr6.
          CLEAR i_reclist.
          i_reclist-receiver = wa_adr6-smtp_addr.
          i_reclist-rec_type = 'U'.
          i_reclist-com_type = 'INT'.
          APPEND i_reclist.
        ENDLOOP.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data = wa_doc_chng
            put_in_outbox = 'X'
          TABLES
            packing_list  = i_objpack
            object_header = wa_objhead
            contents_bin  = i_objbin
            contents_txt  = i_objtxt
            receivers     = i_reclist.
      ENDIF.
    The above error I am getting.
    Please give your suggestions
    Thanks in advance

    U can use this code
    Reward if useful
    REPORT  ZMN_PDF_UPLOAD.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    *Or
    *Use the TCode
    *CG3Z or CG3Y
    *for downloading to Application Server.

  • Download PDF File to SAP Application Server

    Hi,
    I need to download the PDF file to SAP Application Server. Can any one please help me to Solve this Issue?
    Thanks in Advance,
    Kannan

    You can read and upload the file to the PC:
    report ztest.
    data: begin of itab occurs 0,
            field(256),
          end   of itab.
    data: dsn(100) value '/usr/sap/xfr/FIS/testpdf',
          length  like sy-tabix,
          lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
         exporting
              filename   = 'c:temptest.pdf'
              filetype   = 'BIN'
         importing
              filelength = length
         tables
              data_tab   = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
      transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear   itab.
    refresh itab.
    open dataset dsn for input in binary mode.
    do.
      read dataset dsn into itab-field.
      if sy-subrc = 0.
        append itab.
      else.
        exit.
      endif.
    enddo.
    call function 'GUI_DOWNLOAD'
         exporting
              filename     = 'c:temptestn.pdf'
              filetype     = 'BIN'
              bin_filesize = length
         importing
              filelength   = lengthn
         tables
              data_tab     = itab.
    Rob

  • I can I block download PDF file on the web.

    On the webpage, Showing PDF file using <object> element.
    I want to block download file.
    but reader support download control.
    How Could I do block control?

    To view any content from the web, it is first downloaded. So what you wish for is already impossible if they can see it.

  • Why I cannot see downloaded PDF files from the web?

    I'm getting a message: "The file could not be opened. It may be demaged or use a file format that Preview (or PDF) doesn't recognize".
    However my PDF is updated and it works with my older PDF files saved on my Mac.
    Thanks for your help.

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (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 (command-V) into the text box that opens.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    I've seen an unconfirmed report that the "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you might need to remove it as well, if applicable.
    Test. If you still have the issue, repeat 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 again.

  • I cannot download .pdf files with the new version of Firefox

    Using Firefox 1.5, .pdf files automatically download to my desktop. With Firefox 3.6.13 a new tab/window opens and a box where the document should appear remains blank. When I attempt to 'right' click on the link, it doesn't allow me to download the linked file, only the linked address. I am able to open the .pdf files using another web browser such as Sarfari

    The Google Toolbar "will not be supported on Firefox 5 and future versions." <br />
    http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    The Google Toolbar '''7.1.20110512W''' version does work pretty good in Firefox 5.0 by using the Compatibility Reporter extension. But not every feature works 100%.<br />
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    http://googlesystem.blogspot.com/2011/06/enable-google-toolbar-in-firefox-5.html

  • How can I upload a pdf file into the application server?

    Hi,
    I have the otf data, which i have converted into pdf using the funcation module "Convert_otf". Is it possible to upload the pdf file in application server?

    Dear Srishti,
    Use OPEN DATASET in BINARY MODE.
    following link will help you.
    http://scn.sap.com/thread/1480434
    thanks,
    vidyasagar

  • I am not able to download PDF files all the sudden.

    Recently I tried to download a manual for a PowerMac G4. I used my Intel iMac running Snow Leapard. I just got a message that ot could not downlaod the file. (I can't remember the exact language.) I researched it on the Web and it seems that the solution was to trash adobe reader, reboot. After that fix the permissions. Well, evey time I fixed the permissions so they were all fixed, Then I checked them again and once again they were wrong. I don't have a clue.
    One more thing, the 160GB drive ot so full that I could not install Snow Leadard. So I cloned the drive ans bought a 1TB drive. Then I had the Apple Techs at Micro Center swap out the drives. Everthing worked great and ten I intalled Snow Leapard. I now kick my self for cleaning the permissions before I swapped te drives.

    what I should do if I use the iPad . I can't fill forms from same website. And when I open the form online the adobe message come on the forme that tells me that I need version 11 of Adobe . What should I do . I am new on Appel gadgets   thanks folks

  • I sent e-mail on 6/7/11 re inability to download pdf files on the internet. An e-mail confirming my e-mail was being sent :"shortly". I have not received the e-mail

    promised e-mail has not arrived.

    Thunderbird gets all suggestions for addressing from one of your address books. You have two books by default. The Personal and the Collected books. If you have sent an email to the wrong address then it will be in your collected book for sure. You need to go there and delete it and then find any other occurrences of the incorrect address and fix or delete it.

  • Cannot open a downloaded pdf file..."The file couldn't be opened because it isn't in the correct format."

    I have had this problem several times lately: I cannot open a downloaded pdf file. The error message reads: "The file couldn't be opened because it isn't in the correct format." But, of course, it is a pdf file.

    My MacBook Pro (2.5 Ghz Intel Core i5) is running OS X 10.9.4. Here is what happens when reading an online user manual that I want to save to the Desktop and read later as a PDF file on my iPad or phone. With Safari I will select "Export As PDF" and the file shows up on the desktop. Even after multiple trials, there will be a dialogue box indicating the file cannot be opened. If I check the file info, the size is "zero." Trying to save the file as a pdf using the Print menu yields the same results. I have tried both of these methods using Preview, Adobe Reader, and PDF Pen Pro. This strange behavior also occurred several weeks ago and I finally abandoned the effort. But when the same thing happens twice, it becomes an issue that needs to be resolved.

  • The Downloaded PDF file does not contain the Signature through BSP pages

    HI,
    We have an requirement for Distributing the FORM 16 to all Employee's through our Website, where the user will login and download his own FORM 16 ( TDS Certificate)
    This FORM 16 ( TDS Certificate ) is generated in SAP ( ECC 6.0 ) in Payroll Module.
    To satisfy the above requirement we have done the following steps.
    1) First we have modified the standards SAP Sapscript(Layout) to incorporate the Signature of Authorised Payroll Person. 
    We have done this by uploading the BMP file ( though t-code SE78 ) and then calling this file in the Standards layout which prints the FORM 16 document.
    2) WE also Modifed the Dirver program to Download the above document in a .PDF  file. 
    The Program creates the seperate file for each employee and assigns the employee number as a file name to each downloaded file. These all files are downloaded on a Users Machine.
    We opened the Downloaded .PDF files, and checked for the Signatures. The Signature were comming perfect as it ws uploaded.
    3) We uploaded these all FORM 16 PDF file off all emlpoyee's to a different SERVER ( BW 7.0 ). With the help of BASIS person, using the FTP utility.
    4) We wrote a BSP program to download this ulploaded PDF Files.
    BUT we are facing a PROBLEM in the DOWNLOADED PDF file.
    The Downloaded file does not contain the Signature which is there is the Original file we uploded this server.
    All other data in the dowloaded PDF file is Perfect other than the Signature.
    When we open the downlaoded PDF file it give's following  message on the Signautre page.
    " Xobject not found named 00013"
    The number of the Object comes different to different files.
    We are using Function module 'SCMS_STRING_TO_XSTRING' to Convert string to Xstring
    We are using the the " CALL METHOD CL_BSP_UTILITY=>DOWNLOAD" for downloading the PDF file.
    Please suggest some solution if you can
    Thanks in advnace.
    Re
    GAGAN

    HI,
    We have an requirement for Distributing the FORM 16 to all Employee's through our Website, where the user will login and download his own FORM 16 ( TDS Certificate)
    This FORM 16 ( TDS Certificate ) is generated in SAP ( ECC 6.0 ) in Payroll Module.
    To satisfy the above requirement we have done the following steps.
    1) First we have modified the standards SAP Sapscript(Layout) to incorporate the Signature of Authorised Payroll Person. 
    We have done this by uploading the BMP file ( though t-code SE78 ) and then calling this file in the Standards layout which prints the FORM 16 document.
    2) WE also Modifed the Dirver program to Download the above document in a .PDF  file. 
    The Program creates the seperate file for each employee and assigns the employee number as a file name to each downloaded file. These all files are downloaded on a Users Machine.
    We opened the Downloaded .PDF files, and checked for the Signatures. The Signature were comming perfect as it ws uploaded.
    3) We uploaded these all FORM 16 PDF file off all emlpoyee's to a different SERVER ( BW 7.0 ). With the help of BASIS person, using the FTP utility.
    4) We wrote a BSP program to download this ulploaded PDF Files.
    BUT we are facing a PROBLEM in the DOWNLOADED PDF file.
    The Downloaded file does not contain the Signature which is there is the Original file we uploded this server.
    All other data in the dowloaded PDF file is Perfect other than the Signature.
    When we open the downlaoded PDF file it give's following  message on the Signautre page.
    " Xobject not found named 00013"
    The number of the Object comes different to different files.
    We are using Function module 'SCMS_STRING_TO_XSTRING' to Convert string to Xstring
    We are using the the " CALL METHOD CL_BSP_UTILITY=>DOWNLOAD" for downloading the PDF file.
    Please suggest some solution if you can
    Thanks in advnace.
    Re
    GAGAN

Maybe you are looking for

  • Program not installed properly???

    When opening QT 6.5.2 with win 98 i get...QTstreaming authoring failed to load because version of Qtstreaming and QT authoring do not match. I click ok, then get "QTstreaming extras failed to load because the versions of Qtstreaming and QT streaming

  • I installed an iTunes update, now I iTunes will not load up.  Error messages.  I'm running Windows XP

    I downloaded an update for iTunes, and now I can't get iTunes to load up.  I'm getting error messages.  I tried removing iTunes and reloading it.  Still no progress to date.  I'm running Windows XP ... Thanks for any help you can offer ...

  • Need help reading BLOB on a Zaurus

    I know the topic of BLOBs comes up a lot, but I couldn't find an answer to my problem after searching the existing posts. I'm trying to retrieve an image stored as a BLOB in an oracle DB.. The code works fine on my PC when I use getBLOB (commented ou

  • Ask the Expert : Initial Set Up and LAN Connectivity for Cisco UCS Servers

    Welcome to the Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions about related to the initial setup of UCS C & B Series which include LAN connectivity from the UCS perspective with Cisco subject ma

  • UWL workitems become non clickable/executable

    Hi, We have a huge problem with UWL workitems that become non-clickable/executable overnight. This problem only applies to the Workitems that use the Webflow principles (BIT603, so using xHandlerLauncher in UWL config file) In the portal logging, we