Sapscript 2 PDF conversion :when converted doesnt show printpreview

Dear all
Sapscript 2 PDF conversion :
  I hav used OTF under table parameter in Close_form & now it  doesnt show print preview(getting values OTF ) . Why ?
How 2 get both print preview and PDF ?
Thnx
moni

Hello,
This may help you:
itcpo-tdnoprint = ' '. "For Print option
itcpo-tdgetotf = 'X'.  "to Get OTF
  CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            device   = 'PRINTER'
            dialog   = 'X' " for the Print dialog
            form     = <formname>
            language = 'E'
            options  = itcpo
       IMPORTING
            result   = itcpp
       EXCEPTIONS
            canceled = 1
            device   = 2
            form     = 3
            options  = 4
            unclosed = 5
            mail_options = 6 
            archive_error = 7
            invalid_fax_number = 8
            more_params_needed_in_batch = 9
            spool_error = 10.
Regds, Murugesh AS

Similar Messages

  • Pdf problems when converting to lion

    Interactive Pdf documents scrunched when converted to Lion operating sytem. Just upgraded to lion, my children have interactive day planners which were saved on the desktop as PDF documents, the writing is now scrunched when viewing or printing. Any suggestions?

    If you are using Adobe Acrobat for PDF files read here >  Apple Safari 5.1 and Adobe Reader/Acrobat Advisory

  • How do I save highlighting in .pdf file when converting to .docx format?

    When I try to convert a .pdf file to .docx format the highlighted words are not visible through the highlighted area.  Just blocks of color with no words showing through apear in the converted file:
    After Conversion to .docx
    I created the .pdf file on an iPad using the PDF expert app, uploaded it to Dropbox, downloaded it from Dropbox on a PC laptop, and converted it to .docx.  Above is the result.  When the .pdf file is opened with Adobe reader the highlighting is as it should be (words are visible through highlighting)

    With what?
    rmckay4 wrote:
     ...and converted it to .docx.

  • Spool to PDF - Problems with downloading PDF file when converting with job

    Hi all!
    I've got a problem. I've got a program that writes a smartform into the spool. After that, I am using the function modules RSTS_GET_ATTRIBUTES and CONVERT_OTFSPOOLJOB_2_PDF to convert it into PDF. I retrieve a internal table with the binary content for the PDF file. Now i can download the file to the desktop by using the method cl_gui_frontend_services=>gui_download.
    But there is a problem: when the spool excesses 99 pages, the function module CONVERT_OTFSPOOLJOB_2_PDF asks the user via popup if the PDF should be created in background. If the user commits, the internal tables that should contain the binary PDF data is emtpy. A background job writes the binary data into the spool. The user has got an empty file that will be generated by cl_gui_frontend_services=>gui_download.
    So, is it possible to suppress the popup to create the PDF allways online? Or how can I write the PDF file if there will be create any spool id in background? You'll find my current code below.
    * Prüfen ob es die übergebene Spoolnummer überhaupt gibt
      SELECT SINGLE * FROM tsp01 INTO ls_tsp01 WHERE rqident = id_spoolid.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
    * TemSe-Objekte speichern sequentielle Daten. Ein TemSe-Objekt kann aus
    * mehreren Teilen bestehen. Dieser FB ermittelt die wichtigsten Attribute
    * eines TemSe-Objekts. Falls das Objekt aus mehreren Teilen besteht, werden
    * die Attribute entsprechend zusammengefaßt.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
        EXPORTING
          client        = ls_tsp01-rqclient
          name          = ls_tsp01-rqo1name
          part          = 1
        IMPORTING
          objtype       = ld_objtype
        EXCEPTIONS
          fb_error      = 1
          fb_rsts_other = 2
          no_object     = 3
          no_permission = 4
          OTHERS        = 5.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
      IF ld_objtype(3) = 'OTF'.
        lf_is_otf = 'X'.
      ELSE.
        lf_is_otf = ' '.
      ENDIF.
      IF ( lf_is_otf = 'X' ).
    *   Konvertiere OTF-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
    *        pdf_destination          = 'T'
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_pdf
          EXCEPTIONS
            err_no_otf_spooljob      = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_dstdevice        = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ELSE.
    *   Konvertiere ABAP-Liste-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_pdf
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ENDIF.
      WHILE ( lf_file_ok = '' ).
    *   Die in der Tabelle lt_pdf enthaltenen Binärdaten werden nun in eine
    *   Datei geschrieben. Da alle übergebenen Tickets in die gleiche Datei
    *   geschrieben werden, kann der im Speicher gehaltente Protokolleintrag
    *   gelesen werden
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize              = ld_numbytes
            filename                  = cd_filename
            filetype                  = 'BIN'
    *    append                    = SPACE
    *    write_field_separator     = SPACE
    *    header                    = '00'
    *    trunc_trailing_blanks     = SPACE
    *    write_lf                  = 'X'
    *    col_select                = SPACE
    *    col_select_mask           = SPACE
    *    dat_mode                  = SPACE
          confirm_overwrite         = 'X'
    *    no_auth_check             = SPACE
    *    codepage                  = SPACE
    *    ignore_cerr               = ABAP_TRUE
    *    replacement               = '#'
    *    write_bom                 = SPACE
    *    trunc_trailing_blanks_eol = 'X'
    *    wk1_n_format              = SPACE
    *    wk1_n_size                = SPACE
    *    wk1_t_format              = SPACE
    *    wk1_t_size                = SPACE
    *  IMPORTING
    *    filelength                =
          CHANGING
            data_tab                  = lt_pdf
          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
            not_supported_by_gui      = 22
            error_no_gui              = 23
            OTHERS                    = 24.

    Creating a PDF file with over 99 pages through SAP seems rather unreasonable to me. What are you printing - Encyclopedia Britannica? For cripes sake... Have you thought about creating more than one spool request or using something completely different? Why do you have to do this through spool? You can get Smartform output directly into PDF, there are a lot of example out there.
    The only solution that comes to mind is rather brutal - create a copy of the function module and get rid of the popup. Although it just might time out after that...

  • HT4972 How do i update when it doesnt show in settings?

    I just bought a used iPod 4 and it is not showing an update in settings, where else can I update?

    What exactly happens when yo connect the iPod to your computer and click on update/check for updates in the summary pane for the iPod in iTunes?
    Also see:
    http://www.youtube.com/watch?v=Kj91zkMrxso
    Although it says update to to iOS 5, if yu follow the instruction the 4G will go to 6.0.1
    You need iTunes 10.7 or later on the computer.
    You do have an iPod with the cameras, right?

  • TS3274 How can i update to ios5 when settings doesnt show update software option

    How can i update to ios5 or better when settings does not show software update option....and it wont update thru my pc itunes?

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

  • Lock a PDF file when converted from Smartform

    Hello Experts,
    In our current project we have an urgent requirement to apply a Lock to a PDF document
    so it cannot be amended. This is a PDF document and not an Adobe interactive
    form, which currently cannot be used on the project. We are seeking help from
    other colleagues who have had successful experience in achieving the creation
    of a lock to the PDF document which is generated as an output from a SAP Smart
    Form and then e-mailed to the recipient, in this case end Customers, therefore
    integrity of information to prevent changes is a legal requirement. We are
    aware of an encrypted password option but in this case we need to apply a lock
    to the PDF document.
    Many Thanks in advance,
    Kind Regards,
    Nikhil

    Does your pdf reader plugin need updating, are you on version 7, whilst current version is v10
    * see [[opening pdf files within firefox]]
    * and [[using the adobe reader plugin with firefox]]

  • How can i recover my ipad when it doesnt show in itunes

    tried to update to ios 5, ipad now wont restore, and doesn't show in itunes, how can I recover this is I can't see it on my PC, the screen just constantly shows the connect to itunes photo.

    I think you may need to place the iPad in Recovery Mode within iTunes in order to restore the device. Read this for the instructions.
    http://support.apple.com/kb/ht4097

  • How do you un disable an ipod touch when it doesnt show up on the side bar on itunes

    i dont know what to do when my ipod is disabled because it says to put the cude in but it wont let me because its disabled

    See Here for 
    About Backups
    http://support.apple.com/kb/ht1766

  • Hyperlink problem when converting Word to PDF

    Hi everyone.
    I am using Adobe Acrobat 7.0 Standard version 7.1.4 on a Windows 2000 environment.
    I am using Word XP/2002 SP3.
    I have a couple of problems when converting Word to PDF.
    When converting a long link which is in 2 lines, PDF just takes one line into account, not considering the whole link
    When I have hyperlinks that links to a web page, the link works fine in Word but in pdf, it gets the few words after the url address making the link not work.  For example.  I have a hyperlink that http://www.google.com/ and after this I have the words: "This is a sample text".  The hyperlink in pdf would then become http://www.google.comThisisasampletext
    Do you have any ideas how I can correct this?
    Thanks.

    To get the cross references, you have to use Convert to PDF (PDF Maker part of the Acrobat product). However, you first need to go to the print menu and set the printer to the Adobe PDF printer. Close the print menu and then do a reflow and link update of the document (ctrl-A, then F9 I think). This is needed to get the links correct since WORD reflows the document based on the printer (problem with them going to the wrong place).
    Printing to the Adobe PDF printer (the step of print to file is not needed, just print to the printer and the rest is automatic) does not include the links. PDF Maker is a PreProcessor for the Adobe PDF printer that adds PDF Marks to the PS file before it is sent to Distiller (OK, the printer when used normally creates a PS file and then invokes Distiller to complete the process - your steps did with the Adobe PDF printer is the same process done manually).
    Summary:
    1. Fix document after setting the printer to Adobe PDF.
    2. Use PDF Maker (create PDF button)

  • PDF conversion problem after password change

    I am in a loop: having changed password, Adobe insists on new subscription to PDF conversion before converting a document, but will not accept my submission because I already have a subscription with 4 months still to run before renewal. How do I sort this idiot out?

    Which subscription service did you purchase?  Adobe PDF Pack or ExportPDF?
    Could you make sure that you are signed in before converting documents?
    Go to the home screen of Adobe Reader for iOS.
    Tap My Account in the lower left corner.
    Tap the blue Sign In button.
    Sign in with your Adobe ID and new password.
    (Tap/click the image above to enlarge)
    Additionally, please take a look at this FAQ page for account information.
    Adobe ID | Sign in | Change email, password, or account information
    Please let us know if you need further assistance.

  • When saving my illustrator file to a pdf it doesnt show all the artwork ie boxes are hidden in the pdf or only showing part of them. How can I fix this?

    when saving my illustrator file to a pdf it doesnt show all the artwork ie boxes are hidden in the pdf or only showing part of them. Even some text is hidden. I have flattened the artwork so everything is in one layer. How can I fix this?

    Hi John
    I have indicated on the attached jpeg where the problem is, basically a line of text is missing at the top and part of the feeding diagram is missing. I created the artwork in different layer and then flattened. All text has been converted to outlines, however the areas being affected have no transparency, I have used solid fills or no fills. I get the same result when I export the file as a jpeg. Hope you can help.

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • When I select "Convert" using the Adobe PDF conversion - I get "Error signing in"

    When I select "Convert" using the Adobe PDF conversion - I get "Error signing in"

    You need the CreatePDF forum

  • Why do i always get conversion failure when converting pdf files to xls in exportpdf program?

    I have had export pdf for months.  I cannot export pdf files to excel files.  It always says conversion failure. Anyone have any idea why this is happening?  I am so frustrated!  This was supposed to make my payroll reports easier, but it has not helped at all.

    Hi denise/sharon,
    I can understand your frustration. Are you converting via the ExportPDF website, or from within Adobe Reader? Does the conversion failure occur every time that you try to convert a file (has it ever worked for you)?
    Since you're talking about payroll, I'm assuming that you're accessing ExportPDF from a corporate computer. You may want to check with your IT department to make sure there are no firewall/proxy settings that limit your access to the Internet.
    Also, make sure that you're using a supported web browser. You can find a list here: System Requirements | Adobe Acrobat Pro and Online Services
    Finally, if you're using Reader, you can try disabling OCR (optical character recognition) by following the steps in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel.
    Please let us know how it goes.
    Best,
    Sara

Maybe you are looking for

  • Backups Recovery from Failed Time Machine Disk

    Hello; I have been experiencing a serious problem since this April, tried everything I can do with no sign of success. So I though to ask you guys, hopefully you will be able to help or at least guide me to whom can help. Well, it is a long story, bu

  • System image utility (server 4) failing

    iMac (21.5-inch, Late 2012) with Yosemite 10.10.1 won't image with System Image Utility I'm using a procedure I've done successfully for a long time with Mavericks. Any suggestions, of course, are welcome. Create NetRestore Image Initiating NetRestor

  • Internal Server Error in PI 7.1

    Hi, We have recently moved from XI 3.0 to PI 7.1. We have built an IDoc to file scenario that is resulting in error with information as below: <SAP:Category>XIServer</SAP:Category>   <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>   <SAP:P

  • Mmap or malloc for 20GB file?

    Greetings, I have to process a flat file of about 17TB, and in the process I need to perform source to target lookup values which will be stored in a pre-processed hash file. The hash lookup table, for the 838 million or so records, will be approxima

  • Last changed on and changed by

    Hi Experts, I Have added last changed on and changed by fields on account identification screen of left side panel, its working properly.now my requirement is to move these fields from left side panel to right side panel. now the issue is i cannot fi