Smartform Preview Disabled when PDF download is implemented

Dear All
I incoproated the PDF download option in the smartform.  It is working as expected,  However it disables the Preview Option.  I ddid not know where I am missing.  I like to have both Preview option as well as PDF download.
Very much helpful if someone throw light on it.
Regards,
Venkat

after useing the above code then write pdf download i.e
*&      Form  DISPLAY_PDF_OUTPUT
form display_pdf_output  using    f_sf_formname
                                       f_sf_fmname.
  call function 'SSF_GET_DEVICE_TYPE'
    EXPORTING
      i_language             = v_language
      i_application          = 'SAPDEFAULT'
    IMPORTING
      e_devtype              = v_e_devtype
    EXCEPTIONS
      no_language            = 1
      language_not_installed = 2
      no_devtype_found       = 3
      system_error           = 4
      others                 = 5.
  if sy-subrc <> 0.
  endif.
  st_output_options-tdprinter = v_e_devtype.
  st_control_parameters-no_dialog = 'X'.
  st_control_parameters-getotf = 'X'.
  call function 'SSF_FUNCTION_MODULE_NAME'
          exporting
            formname                 = f_sf_formname
          importing
            fm_name                  =  f_sf_fmname
         exceptions
           no_form                  = 1
           no_function_module       = 2
           others                   = 3            .
  if sy-subrc <> 0.
  endif.
  call function f_sf_fmname
   exporting
*   ARCHIVE_INDEX              =
     control_parameters         =  st_control_parameters
*   MAIL_APPL_OBJ              =
     output_options             = st_output_options
*   USER_SETTINGS              = 'X'
   importing
     document_output_info       = st_document_output_info
     job_output_info            = st_job_output_info
    job_output_options         =  st_job_output_options
    tables
      it_output                  = it_output
      it_final                   = it_final
* EXCEPTIONS
*   OTHERS                     = 5
  if sy-subrc <> 0.
  endif.
*Conveting to PDF
  call function 'CONVERT_OTF_2_PDF'
* EXPORTING
*   USE_OTF_MC_CMD               = 'X'
*   ARCHIVE_INDEX                =
     importing
       bin_filesize                 = v_bin_filesize
     tables
       otf                          = st_job_output_info-otfdata
       doctab_archive               = it_docs
       lines                        = it_lines
     exceptions
       err_conv_not_possible        = 1
       err_otf_mc_noendmarker       = 2
       others                       = 3
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
*........................GET THE FILE NAME TO STORE....................*
  concatenate 'Tax_Invoice' '- ALL' sy-datum '.pdf' into v_name.
  create object v_guiobj.
  call method v_guiobj->file_save_dialog
    EXPORTING
      default_extension = 'pdf'
      default_file_name = v_name
      file_filter       = v_filter
    CHANGING
      filename          = v_name
      path              = v_path
      fullpath          = v_fullpath
      user_action       = v_uact.
  if v_uact = v_guiobj->action_cancel.
    exit.
  endif.
*..................................DOWNLOAD AS FILE....................*
  move v_fullpath to v_filename.
  call function 'GUI_DOWNLOAD'
    exporting
      bin_filesize                    = v_bin_filesize
      filename                        = v_filename
      filetype                        = 'BIN'
*     APPEND                          = ' '
*     WRITE_FIELD_SEPARATOR           = ' '
*   IMPORTING
*     FILELENGTH                      =
    tables
      data_tab                        = it_lines
*     FIELDNAMES                      =
    exceptions
      file_write_error                = 1
      no_batch                        = 2
      gui_refuse_filetransfer         = 3
      invalid_type                    = 4
      no_authority                    = 5
      unknown_error                   = 6
      header_not_allowed              = 7
      separator_not_allowed           = 8
      filesize_not_allowed            = 9
      header_too_long                 = 10
      dp_error_create                 = 11
      dp_error_send                   = 12
      dp_error_write                  = 13
      unknown_dp_error                = 14
      access_denied                   = 15
      dp_out_of_memory                = 16
      disk_full                       = 17
      dp_timeout                      = 18
      file_not_found                  = 19
      dataprovider_exception          = 20
      control_flush_error             = 21
      others                          = 22
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
endform.                    " DISPLAY_

Similar Messages

  • Preview Disabled when Capturing in FCE

    Hi,
    I'm having trouble capturing footage from some Mini-DV tapes my dad shot. I'm using a Mini-DV deck to capture from but everytime I insert the tape and try to capture the device plays the tape but no video is sent to the computer. I don't get an error message or anything like that. The video just doesn't show up and preview disabled is all I see in my capture window.
    Any suggestions as to why this is happening??? It's really frustrating.

    Please give your full system specifications, what computer, what drives, what camera or deck, how everything's connected, what settings are on the media, what settings you're using in FCE, and finally what version of the software, of the OS, and of QT are you using?

  • Smartform preview dump when color graphics in form

    Seems I have found a SAP BUG in the smartforms Print Preview.
    A dump occurs in preview of pages beyond the first page.  The first page previews fine.  The dump occurs when you page down.  The error is an overflow because a field called stringlength2 is equal to 0 but it is used as in index for a string operation.  There should be a check for this in SAP's code before the offending line:.
    wa_otf_preview-tdprintpar+4 =          
      hexstring+stringlength(stringlength2).
    How are bugs reported to SAP if you are a developer?  Or am I doing something else wrong.  The dump does not occur if I remove the color graphic!
    Analyse erreur                                                      
    An exception occurred. This exception is dealt with in more detail be
    . The exception, which is assigned to the class 'CX_SY_RANGE_OUT_OF_B
    was neither caught nor passed along using a RAISING clause, in the procedure  "PREPARE_OTF_FOR_GUI_PREVIEWER" "(FUNCTION)" .                                                                   
    Since the caller of the procedure could not have expected this except
    to occur, the running program was terminated. The reason for the exception is: In program "SAPLSTXBW" the system tried to access field "HEXSTRING" w
    0.  Partial field access to fields with length 0 is not allowed, however.

    Hi
    U should find some notes in OSS.
    Max

  • Preview disabled when capturing on fcphd 4.5

    Hi,
    I have a lab of emacs with fcpHD4.5 and I tried to capture on one of the computers with a canon camera and the preview is disabled. However, it captures and connects no problem on the other computers. Perhaps I need to download a patch that will fix the problem. I seem to remember having to repair that problem about two years ago, but I do not remember how.
    Thanks,
    Matt

    This is a good workaround for curing your camera recognition problem with FCP (if that's what it is):
    First, check that your Easy Setup / Timeline / Camera or Deck Settings are all exactly the same, then making sure your camera or deck is in VTR mode, try to capture again.
    FCP uses a different form of QT than iMovie for capturing, so if the camera works in iMovie (or if it's listed in System Profiler) but not FCP, it obviously means your Mac can see the VTR but FCP can't, so you need to do this QuickTime fix.
    http://docs.info.apple.com/article.html?artnum=301852
    Follow the instructions carefully and you should have things running in no time - it's quite safe but you must Trash the Receipts AND re-install QT from the link provided.
    If the Camera / Deck isn't recognised by iMovie or System Profiler, try resetting the Firewire Bus . . . Turn off the Mac and disconnect the power and all Firewire cables. Leave it for 30 mins then connect back up.
    Still not working? Try a different Firewire cable.
    Failing all this, try resetting the PMU (Power Management Unit). The method varies from machine to machine, so visit the Apple site and search for it in support.
    Let us know how you get on!
    Andy
    Quad 8GB. 250+500 HDs. G-Raid 1TB. NORTON. FCP 5.1.2. Shake 4.1. Sony HVR Z1E   Mac OS X (10.4.7)  
    "I've taught you all I know, and still you know nothing".

  • Print Preview missing when PDF opened through Internet Explorer

    No preview - no option to print. This is now affecting 4 of my computers so I'm assuming there is an update that is causing this.  It is effecting different versions.  One computer has Internet Explorer 9 and Adobe Acrobat Standard 9.0.  Another computer is running Internet Explorer 10 and Adobe Reader 9.  Both are having the same symtoms.  Here is an illustration.
    Normally it says "Preview - Image", also notice the xxx on the bottom of the preview and to the bottom left of the dialog box.  If I save the PDF and open it directly (outside of Internet Explorer) it works find.  Also using Firefox it works fine.  I believe its an update because its happened on 4 machines so I don't think its from someone changing settings.  What do I need to do to Print?  Help.
    Thanks,

    papanic wrote:
    I very much doubt that this is the way things are meant to work. If I open the pdf in Safari and rightclick>open it with skim, Skim displays the proxy icon, as Preview used to.
    Btw, the file's path still points to a tmp folder (webkitpdfs)
    So this is either a bug in Safari or Preview (because it impairs functionality), or, hopefully, there's some hidden preference somewhere which you can change and reactivate the proxy icon.
    Have you verified this as a Safari bug by checking that it works with FireFox?

  • Having Preview refresh when a file changes...

    I use Preview for viewing PDF files that I generate. Often, I want to have a PDF file open in Preview, change the PDF file, and then view the changed file. Is there any way to make Preview notice when PDF files change on disk and reload them automatically?

    See:
    *[[/questions/889958]]
    *[[/questions/882443]]

  • Mavericks 10.9.1. Freezes or trackpad becomes slow and unresponsive when viewing downloaded PDF files in Preview.Help!

    The earlier post was my first attempt at posting and had some typos. Repeated with typos corrected.
    I have a Macbook Pro Retina 13" Late 2013 with preinstalled Mavericks.I now have the 10.9.1 update. Almost from the time of purchase in Nov '13, I have been experiencing freezes and slow & unresponsive trackpad. I have more or less narrowed this symptom as happening when viewing downloaded PDF files. The only option is to force eject, if available or shut down. I spoke to Support as I thought it was a RAM issue and they told me that in Mavericks RAM showing almost full was normal as it uses RAM differently. They took me through some resets and cleaning up which has helped a little but freezing stll happens. This never happened with my Macbook AIr running Lion. Any suggestions?
    Shankar9
    Macbook Pro Retina 13" Late '13-Mavericks 10.9.1
    Macbook Air 13" Mid '11-Lion
    Macbook Aluminium 13" Late '08-Snow Leopard

    So a PDF file that you can view in Preview on your MBA causes your new MBP to lock up and/or slow down. Is this right? Also you say more or less narrowed down to PDFs with Preview but does the computer exhibit this behavior with other programs and if so under what conditions? And how much free hard drive space do you have?
    Viewing memory use in Mavericks is different than with previous versions of the OS. Today it looks like we need to pay attention to what Apple calls Memory Pressure which is gauged by the bar graph in Activity Monitor and to the Virtual Memory being used. When the memory pressure graph bar gets too high it turns red and that's bad news. Looking at how much memory is being used doesn't help - I have a 16GB computer and with almost nothing running it still shows something like 15.79GB used but the memory pressure graph is just a think green line. So unless you see the memory pressure bar turning red lets not worry about memory usage at the moment.
    If among the things AppleCare had you do was reinstall Mavericks then I recommend a trip to the Apple store - and take a problem PDF file with you to demonstrate.

  • When I download pdf files in Safari I get a black screen.  However, if I open a pdf in Mail it is viewable in Preview.  How do I fix this?

    When I download pdf files in Safari I get a black screen.  However, if I open a pdf in Mail it is viewable in Preview.  What is wrong?

    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, then press return.
    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.
    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.

  • When I download PDFs on my macbook I am given the option of saving them to iCloud and in Preview they are listed under iCloud. How can I then view them on my iOS devices? Help please.

    When I download PDFs on my macbook I am given the option of saving them to iCloud and in Preview they are listed under iCloud. How can I then view them on my iOS devices? Help please.

    Welcome to the Apple Community.
    You can't share preview files to an iOS device. There are several other options for pdf's such as Adobe Reader or iBooks.

  • What to do? When on a site with a PDF download I wish to open, the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled.

    When on a site with a PDF download I wish to open, when I click on download the site commences to open in a new Tab but the information does not come through? This happens on all sites. The advanced Java Script is disabled. The new tab will sometimes flash black then go white with nothing else happening or just go white & nothing else?

    I had the same problem and also had PDF Download 3.0.02 installed. By removing this addon I can now select a PDF document which then opens up a normal Open With/Save dialogue allowing me to open the file or save it. Hope this helps.

  • How to disable automatic PDF previewing when saving

    In a recent update, Illustrator began to preview PDF documents in the default PDF viewer after every save. This interrupts my workflow. Can it be disabled? I can't find a preference option for it. I'm not even sure how to describe it—it functions like InDesign's "View after exporting," except the file isn't being exported. And, out of curiosity, if anyone know why this would be a feature, I'd be curious. Has there been a problem with Illustrator PDFs looking different in Acrobat, Preview, or other PDF viewers/printers?
    Thanks

    That does work—I should have thought of that! But I still want to change the default behavior. It seems that the view PDF option was either created or made default in a recent update. I want to set the default to not view—I almost never want to do that. Is that possible? Or do I need to save-as every time I work in an old file?
    <curmudgeon> This strikes me as an improvement like "scrubby zoom," which just messes up the workflow for existing users for some marginal benefit to new users. I'm all for new functionality, but not deprecating reliable workflows for minimal or no gain.</curmudgeon>

  • Can only download preview of some pdfs on iPad / iPhone

    Hello,
    I have a strange problem with some pdf download links on my iPad and iPhone
    and hope that somebody here has gone through that before and give me a hint.
    Problem description:
    I have a problem when I try to dowload a pdf. If the pdf is linked with a normal
    http-link, I have no problem opening it, it is shown in an extra tab in safari and
    I can save it in iBooks. So far so good.
    But: If the dowload is initiated with a command-button, then I only see a 1-page
    preview of the pdf as an image. The image shows the first page of the pdf correctly
    but I can find no way to download or save the complete pdf. If I save the preview
    as an image, I see no content in this image afterwards, just a small text saying
    "pdf".
    What I can do, is download this pdf with Safari on OS X 10.10 and on Windows
    with any Internet Browser. Android is also no problem.
    So I did a lot of research and testing:
    - I googled a lot and followed all related instrunctions I could find: no success.
    - I saved the pdf on my Mac, mailed it to myself and opened it on the iPhone or iPad.
    No problem to view the pdf, it just wouldn't download.
    - So I enabled and disabled restrictions on all devices, with no success. I also added
    the website to the trusted websites when enabling restrictions, no success.
    - I fiddled around with all safari-options, enabled and disabled cookies, switched
    between "open in background"/"open in new tab" and tested all other options,
    even those who shouldn't have any influence on this problem. No success.
    - Next I installed other apps capable of viewing PDFs since I thought them registering
    as PDF-viewers could change this behavior. Again no success. (I tested Acrobat
    Reader and Amazon Kindle)
    - After that I installed Google Chrome: Only a slight change happend, now I saw
    one and a half pages (instead of one) of the pdf as a preview.
    - Next I updated my iPhone 5 from iOS7 to iOS8.1.: No success.
    - I was so desperate after that, that I even resetted my iPhone to factory-defaults,
    completly erasing all content and settings. Again no success.
    - After that I was running out of ideas.
    Technical background:
    - The pdf I'm trying to download contains confidental content so I unfortunately
    cannot provide a link to it. But I know it's a dynamically created pdf, hence the
    command-button instead of a normal link.
    - The pdf contains no forms and other fancy stuff, just plain (ok, formatted) text
    and some small icons.
    - I can easily download and view other (static) pdfs from the same website.
    - I have this problem on my iPhone 5 with iOS7 (latest version and iOS8.1 and
    on my iPad2 with iOS7 (latest version).
    - It works well on my MacBook with OS X 10.10. and on Windows and Android.
    - I can view the pdf on iOS if I send it via Mail and open it locally, I just can't download it.
    - I think while searching for a solution I found a document saying something about
    possible problems on iOS when providing download-links within html frames.
    Unfortunately I could't find this document again but I checked and the download-
    button indeed is embedded in a html frame (for what it's worth).
    Any hints would be greatly appreciated!
    Thanks in advance,
    Wolfram

    It looks as if your server does not support 'byte-range requests'. This facility is necessary for iOS devices (it involves calling for part of a file at a time rather than the whole file) so you will need to take this up with the people running your server. Note that this applies to the media files, not the feed.

  • PDF Download in Preview and Path Names

    The menu in Preview changed with the new upgrade to Lion.  When I download a PDF document and go to 'save as' in whatever folder I want, the option to save as is not listed. 
    Also, I have now go to folder and enter the path name whereas before I never had to enter a path name to find a folder.  What am I doing wrong?  Maybe I don't understand the new changes and upgrade?
    Please help.
    Moms90

    Thanks leroydouglas!  This worked for me.  Sometimes I feel so 'stupid', but am new to Mac. . .
    Moms90

  • Print Command and Icon Disabled in PDF Preview Mode

    Hi, can somebody please explain why the File>Print command and the toolbar icon for Print in LiveCycle Designer is permanently disabled when I go into PDF Preview mode? How can I re-enable them? (The Form Properties-Defaults-Preview Type setting has no effect on this). The command and icon are not disabled in standalone Reader or Acrobat.
    Harry

    Thanks Shari, yes the right-click Print command is there. Strange.
    thanks,
    Harry

  • When I download a PDF file using Adobe I get a black screen when attempting to print and if I save the file I get a corrupted response when opening it.

    This does not always happen, for example if I get a PDF file by email, it appears to be primarilly when I download from the internet.
    I use Adobe Reader X1. Can you assist please. Thanks

    Thanks Eric, no it does not help the matter. I opened the file using preview and the same message appeared. Thanks.

Maybe you are looking for

  • Using Password_verify_function for EBS Application Schemas

    HI, As you all know, EBS Application Schemas (ex: AP, AR, GL, HR, etc) are associated with the DEFAULT profile and DEFAULT profile PASSWORD_VERIFY_FUNCTION is set to NULL. If I alter DEFAULT profile and set PASSWORD_VERIFY_FUNCTION to make use of a c

  • Skype Manager account - No access

    Dear All! I am one of the administors of our Skype Manager account. Today all administors have got a message that we were removed from our Skype Manager. When we login with our usual user and password no details to our skype manager account is shown.

  • Question About Oracle in general

    Hi everyone... Well, I took a course in ORACLE, SQL,PLSQL,Developer and Reports...And thinking of making the ORACLE certified exams soon. And I'm still in the Uni. till now studying computer science... But I'm thinking to start asking about what can

  • Scenario:client proxy

    Dear experts, -here my scenario is client proxy(file to file) -Error is internal error            http_resp_status_code_not_ok -when we check it in sxmb_moni sysyem cannot identify the receiver business system and receiver message ineterface -how to

  • Storing documents in the repository?

    There was a way to do this in release one, but I haven't come across it yet in 9iAS release two (9.0.2): Does anyone know of existing documentation that explains how to store common documents in the metadata repository; how to control access to them;