PDF conversion in smartfrom

Hi experts,
From my report i have to genarate 3 smartfroms by clicking checkboxes in report.so 3 smartfroms are coming fine.when i press back for each smartfrom it should genarate pDF for that smartfrom.
in mycode i ma using 3 Convert_off FM's ...
if check1 = 'x'.
some code..
CALL FUNCTION GS_FMNAME
EXPORTING
ARCHIVE_INDEX       = toa_dara
ARCHIVE_PARAMETERS  = arc_params
CONTROL_PARAMETERS  = ls_control_param
GV_BSTNK = GV_BSTNK
GV_BSTDK = GV_BSTDK
GV_VBELN = GV_VBELN
GV_NAME1 = GV_NAME1
IMPORTING
document_output_info = lt_ssfcrespd
job_output_info      = lt_job_output_info
job_output_options   = lt_ssfcresop
lt_otf = lt_job_output_info-otfdata
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
  format                = 'PDF'
  max_linewidth         = 132
  IMPORTING
  bin_filesize          = lv_bin_filesize
  TABLES
   otf                   = lt_job_output_info-otfdata"lt_otf
   lines                 = lt_pdf_tab
  EXCEPTIONS
  err_max_linewidth     = 1
  err_format            = 2
  err_conv_not_possible = 3
  err_bad_otf           = 4
if check2 = 'x'.
some code..
CALL FUNCTION GS_FMNAME
EXPORTING
ARCHIVE_INDEX       = toa_dara
ARCHIVE_PARAMETERS  = arc_params
CONTROL_PARAMETERS  = ls_control_param
GV_BSTNK = GV_BSTNK
GV_BSTDK = GV_BSTDK
GV_VBELN = GV_VBELN
GV_NAME1 = GV_NAME1
IMPORTING
document_output_info = lt_ssfcrespd
job_output_info      = lt_job_output_info
job_output_options   = lt_ssfcresop
lt_otf = lt_job_output_info-otfdata
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
  format                = 'PDF'
  max_linewidth         = 132
  IMPORTING
  bin_filesize          = lv_bin_filesize
  TABLES
   otf                   = lt_otf
   lines                 = lt_pdf_tab
  EXCEPTIONS
  err_max_linewidth     = 1
  err_format            = 2
  err_conv_not_possible = 3
  err_bad_otf           = 4
  OTHERS                = 5.
if check3 = 'x'.
CALL FUNCTION GS_FMNAME
EXPORTING
ARCHIVE_INDEX       = toa_dara
ARCHIVE_PARAMETERS  = arc_params
CONTROL_PARAMETERS  = ls_control_param
GV_BSTNK = GV_BSTNK
GV_BSTDK = GV_BSTDK
GV_VBELN = GV_VBELN
GV_NAME1 = GV_NAME1
IMPORTING
document_output_info = lt_ssfcrespd
job_output_info      = lt_job_output_info
job_output_options   = lt_ssfcresop
lt_otf = lt_job_output_info-otfdata
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
  format                = 'PDF'
  max_linewidth         = 132
  IMPORTING
  bin_filesize          = lv_bin_filesize
  TABLES
   otf                   = lt_otf
   lines                 = lt_pdf_tab
  EXCEPTIONS
  err_max_linewidth     = 1
  err_format            = 2
  err_conv_not_possible = 3
  err_bad_otf           = 4
  OTHERS                = 5.
   Problem is for firstsmart form if i pass lt_job_output_info-otfdata directly to convert off fm pdf is generating...but for others ieven i pass lt_otf is working..HOW COME it is..
Can anybody plz check this...

Yes  Madhu .
I want all Invoices in single PDF file after VF31.
Im  running BDC for VF31
Calling the spool request from tsp01 table for the delivery invoice number  then using
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    exporting
      src_spoolid              = wa_tsp01-rqident
      no_dialog                = 'X'
      pdf_destination          = 'X'
      no_background            = sy-batch
    importing
      bin_file                 = pdf_xstring
    tables
      pdf                      = it_tline
    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
      others                   = 12.
After this Im attaching in in the mail.
Regards
Severina

Similar Messages

  • Problem in PDF conversion of a Smartform

    Hi Experts,
    I have Chinese text and english text in the  Smartform
    When see print preview of Smartfrom the output is perfect
    But when i convert the OTF to PDF using  CONVERT_OTF FM and send as mail attachment,
    The chinese characters are JUNK and conversion don't occur properly.
    For english TEXT i use Times new roman font
    For Chinese Text i use CNSONG
    I have used other FM as well CONVERT_OTF_2_PDF, the results were negative.
    Please advise
    Regards
    Balaji R

    Hello Davide,
    We got this solution from SAP active global support.
    I suppose it works in some cases only.
    Our scenario is when we try to create PDF of the smartform using FM convert_otf and send as mail attachment.
    We can able to see chinese chracters when giving the print preview of the form, but during PDF conversion we get Junk chinese characters.
    Even if you have multiple languages in your form, SAP proposes to use 'ZPDFUC' as device type.
    My question has the solution proposed by you works in all cases?
    Please advise.Thanks.
    Best regards
    Balaji R

  • Automated report/ PDF conversion with AppleScript

    Hello-
    I am attempting to PDF a spreadsheet from Dropbox, and email it to a set list of recipients with AppleScript.  Much of this I have been able to figure out, but I am having some issues with the PDF conversion.  As you can see below, I am still working on sending the xls file, and have not yet been able to get AppleScript to convert a specific tab of the file to aPDF.  I expect scheduling to be handled theough crontab.
    Current script is as follows:
    tell application "Finder"
              set folderPath to folder "Macintosh HD:Users:user:Dropbox:folder:Calculated PO Sheet"
              set theFile to first file in folderPath as alias
              set fileName to name of theFile
    end tell
    set theSubject to "Current PO Report" date
    set theBody to "See attached."
    set theAddress to "recipient email"
    set theAttachment to "CALCULATED PO SHEET.xlsx"
    set theSender to "sender email"
    tell application "Mail"
              set theNewMessage to make new outgoing message with properties{subject:theSubject, content:theBody & return & return, visible:true}
              tell theNewMessage
                        set visibile to true
                        set sender to theSender
      make new to recipient at end of to recipients with properties {address:theAddress}
                        try
      make new attachment with properties {file name:theAttachment} at after the last word ofthe last paragraph
                                  set message_attachment to 0
                        on error errmess -- oops
      log errmess -- log the error
                                  set message_attachment to 1
                        end try
                        log "message_attachment = " & message_attachment
      #send
              end tell
    end tell

    Hi,
    there is a special setup for this requirement. Please see the following support note
    Reference
    Oracle Reports Output For Indian Languages Like Gujarati, Marathi [ID 980554.1]
    Roberto

  • Smart form: Spool to PDF Conversion more than 100 pages.

    Hi folks,
    I have an issue with Function Module (FM) CONVERT_ABAPSPOOLJOB_2_PDF when the report to be converted has more than 100 pages.....i have explained this scenario as below
    We have been using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert ABAP report to PDF file and then send this via mail using FM SO_DOCUMENT_SEND_API1.....
    PDF conversion using FM CONVERT_ABAPSPOOLJOB_2_PDF works well if the number of report pages is less than 100....i.e the table pdf of the FM will contain the output as expected.....
    If the report has more than 100 pages, the the FM CONVERT_ABAPSPOOLJOB_2_PDF will schedule the conversion job as a background job and returns with a SY-subrc eq 0 and the table parameter pdf will ne empty.
    Could you suggest me a woorkaround in this situtaion...i.e how do I then get the output of the background job
    And  any process to convert Spool to PDF if having more than 100 pages.
    Thanks in Advance............

    Pb,
    If the report has more than 100 pages, the the FM CONVERT_ABAPSPOOLJOB_2_PDF will schedule the conversion job as a background job and returns with a SY-subrc eq 0 and the table parameter pdf will ne empty
    i would suggest you to if pages are more than 100 than you need to send report output to sp01 with spool request number by using fm job_open..job_close..
    than from sp01 you can convert pdf by running RSTXPDFT4 in se38.
    hope this would solve your problem.
    Amit.

  • Acrobat 9 HTML to PDF conversion sets all checkboxes to checked?

    When I convert an HTML file that contains checkboxes to PDF using Acrobat 9 Standard or Pro (fully updated) on Windows XP SP3, all of the checkboxes end up checked in the resulting PDF.  I've looked in settings menus but can't find anything that seems to be a relevant option to prevent this from happening.  I've attached a simple test case .html file to this post that you can use to repeat the problem.
    To convert the file, I right-click on the file in Windows Explorer, and click Convert to Adobe PDF.  I've tried "printing" the document to the Adobe PDF printer, but that introduces other issues and is not really an acceptable solution.
    Has anyone encountered this before, and/or have ideas how to fix it?

    Input elements have no such inheritance on the checked attribute.  Furthermore, the input elements in my test case are not grouped together.  They are each encapsulated within separate list item elements, and so no inheritance should take place after the first input element.
    Just for grins, I changed the order of the elements (moved the checked one below the unchecked one), but that did not make any difference in the Acrobat 9 HTML to PDF conversion.
    I did test this with Acrobat 8 Standard, and the HTML to PDF conversion preserved the correct checked status of the input elements.  It looks to me like this is a bug that was introduced in Acrobat 9.

  • Need help about PDF conversion

    I have red words in a text box using publisher. How come the text show up as black after PDF conversion in Adobe?

    Hi,
    I have windows 8. I am using Microsoft publisher 2013. I want to make a postcard. I made a text box and my text in the box are red. Then I click save as to convert to a PDF file. It works. It opens on Adobe but the text in the text box are black and not red. What can I do to retain the original colors?

  • HTML to PDF conversion - problems with page-breaks and bookmarks

    Hello,
    My company is currently considering updating your software (from Acrobat 9 Pro to Acrobat XI Pro) and I’ve been assigned to research its features and make sure that it is a right fit for our goals. Basically we want to automate the whole process as much as possible and we want to create PDF directly from HTML. We’re providing a lot of content in HTML and we need a fast way to transfer it into PDF format. There are however some guidelines:
    We want page-breaks in is this kind of documents, and thus - your app needs to be able to interpret HTML and put them where we want to;
    We need to have bookmarks in there. Converter must be able to make them based on headlines from HTML source or afterwards, directly in PDF by using some auto-bookmarks feature;
    There has to be table of content generated, based on HTML Link Tags if possible. Here’s sample of TOC structure that we have currently:
    <A NAME="redirect">sample_text</A>
    <A HREF="#redirect">sample_text</A>
    Of course we can modify HTML in any way you want us to. The important thing for us is to make it work in PDF without the need to make a lot of manual changes after conversion.
    I’ve been messing with Acrobat 9 Pro and reading some documentation that you have provided and I’m convinced that point 3 is not a problem. I’m aware that Acrobat 9 Pro is not having any difficulties with links in document and they work fine in PDF format that has been created from HTML.
    Page-breaks on the other hand are bothering me. Your app is apparently ignoring every HTML code that the Internet is advising me to use to force page-break where I want. Honestly - I’ve tested like ten ways to make them and not even one was working. That’s why I’m asking for your help.
    Another problematic subject for me is the bookmarks creation. I know that they are not a problem if I’m doing DOC to PDF conversion. Then I’m able to decide what header should be used as a curtain level of bookmarks and everything is working great at the end. However - with direct HTML to PDF conversion - I really don’t know how to generate bookmarks that are based on the source of the input document. Is there any way to make fully working 2 level bookmark tree in this case? Here’s an example of the structure we want at the end:
    header1
    header2
    header2
    header1
    header1
    header2
    Could you please help me in finding the solutions? Just like I’ve mentioned - we can modify input HTML in any way, but in the end we would like to achieve our goals as quickly as possible.
    Please excuse my English.
    I am looking forward to your response,
    Lucas

    Frankly - we would like to avoid using Word. We are using it currently but there are long-term plans of improving whole conversion process, eliminate any mid-steps and automate as much as possible even though conversion is not going to be done unattended on a server. Thank you for your response, but I hope that maybe someone else would have any idea?

  • PDF conversion with PDF2ID; Hypertext not working when exported back to pdf.

    I have done a PDF conversion with PDF2ID, however Hypertext is not working when I exported it back to pdf. I am using the PDF2ID plug-in program to redo all the product booklets for our company as the hypertext did not work when downloaded to any smart phone. All that appeared were blank placeholders in each booklet index page.
    According to the PDF2ID people the program plug-in recovers all URLs static and dynamic and bookmarks and local links and suggested I check with Adobe ID5 for help, but Adobe says my $1,000 ID5 is no longer supported and that I should go to the forums.....so here I am.
    This is the first time I've even opened my ID5, so I'm a bit lost. Now I need to improve the quality of the PDFs, as we also need to convert all images to TIFF-CMYK in order to have the booklets printed & bound professionally. they tell me ID can do that.
    Any help is greatly appreciated.
    David

    Daveorne wrote:
    they tell me ID can do that.
    Ugh...in some companies, that is training.
    Don't take this the wrong way David, but of course ID can't do anything. PDF2ID conversions can be sketchy in the hands of the experienced. The same can be said of properly preparing matials for print. As Bob has already alluded, you're in an unfair position there. It's not uncommon for "management" types to just throw some sophisticated tools at a need and expect someone to make it work. In order to do what's being asked of you, you'll have to learn a fair bit about InDesign and production. It's too soon to ask about the output when you haven't learned to manage the input.

  • Web pages missing from PDF conversion of my website

    The top page of my website has an expander list with links to subpages. When I convert my site to PDF, Acrobat skips those subpages. The expander list is closed during PDF conversion, so the links are not visible preventing Acrobat from "seeing" these subpages.
    How can I make Acrobat "see" these pages?

    In WORD try these for comparison: 1. Print to the Adobe PDF printer and 2. Use the Adobe menu to convert to PDF (this is PDF Maker). There are possibly 2 conversion to PDF processes in the file menu. One is equivalent to PDF Maker (Save As Adobe PDF) and the other is the MS conversion to PDF (Save As PDF or XPS).
    One additional issue you may run into (since you mentioned page numbers) is a change in formating when creating the PDF. To avoid this change, be sure the Adobe PDF printer is selected in the print menu before editing the DOC file. Another option is to make the Adobe PDF printer the default.

  • Smartform to PDF conversion having issue with Russian address

    We are having a business situation we are the invoice in English language and the the address of ship-to party and sold-to party in Russian.
    The issue we face is.
    When the  smartform is converted to PDF the Russian specific characters are missing in the PDF output. The same are perfect in the smart form print preview.
    we are using   CONVERT_OTF function module and we are getting the Russian characters correctly in the table parameter OTF.
    We are using "SX_TABLE_LINE_WIDTH_CHANGE" and " SO_DOCUMENT_SEND_API1"
    function module to attach and mail the pdf.
    In the PDF we are missing the Russian specific characters .
    For Example in "Sedláčkova čč" the output is "Sedláčkova    " means "čč" is mising
    Thanks in advance
    Regards
    Joby

    Hi,
    As described in note 999712 - PDF conversion for Unicode, there is a new unicode PDF converter PDFUC.
    It depends on the SAP Version if you have to install the device type or not. You can check also via SPAD -> Full Administration -> Device Types -> Display.
    You can pass the device type in the output options. I used:
    SSFCTRLOP-no_dialog   = 'X'.
    SSFCTRLOP-getotf      = 'X'.
    SSFCTRLOP-langu       = 'EN'.
    SSFCOMPOP-tdprinter = 'PDFUC'.
    If you specify a device other than printer in the control options like SSFCTRLOP-device      = 'TELEFAX'., above will not work as
    SSFCOMPOP-tdprinter is only evaluated for printer.
    You have to check in SCOT -> Settings -> Device Types for Format Conversion.
    You can make a general entry or for a specific language:
    PDF                           SAPscript/Smart Forms    PDFUC
    PDF    EN    English    SAPscript/Smart Forms    PDFUC
    Let me know if you get this working.
    Jeroen.

  • Word 2007 to PDF conversion

    Hi,
    when I save a MS Word 2K7 document to PDF, it opens in PDF with a yellow background. Has anyone else experienced this, or know what the problem/solution is?
    thx.

    > What is the difference between acrobat distiller and acrobat distiller server?
    Licensing. If you want to run Distiller processing on a server, or
    otherwise to produce files for more than one end user, the normal
    Acrobat license does not work.
    >And also need the trial version installation for distiller server.
    I don't know if there is such a thing.
    I notice this topic is about Word to PDF conversion. If you want Word
    to PDF conversion on a server, Adobe's LiveCycle PDF Generator might
    be more suitable.
    Aandi Inston

  • PDF conversion from Word - WMF display

    I have created a PDF from a word document. It has WMFs inserted in the document using BuildBetter WMF.  The document displays correctly in word.  I have used the preset of "high quality" on the PDF conversion.  The document print quality is correct but I am having difficulty seeing the WMF drawing when displayed on the computer.  If I zoom in I can see the drawing fine.  Obviously it is a pixel problem.  How can I fix this?

    You should be able to print to the Adobe PDF printer, but nothing else probably will work with OFFICE 2010 as Adobe told you. You probably can just wait until AA10. There are no current expectations of AA9 being updated to work with OFFICE 2010 (at least the PDF Maker part.).

  • Lines in pdf conversion look thick!

    It's an architectural plan linked as eps in indesign the one I'd like to convert to pdf. In Indesign High quality display mode, in a "fit to windows zoom" I see very smooth and thin lines and everything seems perfect. I convert that page in pdf but in zoom at the same level I see very thick lines! I know they just look like that because if I zoom them everything is as it should be but in an aerial view isn't properly rendered.
    Is there an option in the pdf conversion I should check? I can use both print pdf or export...
    Here are the 2 results compared:
    http://farm4.static.flickr.com/3646/3297308538_e02b798333_o.jpg
    let me know please!
    thanks!
    mz

    If the lines are really too thick - as shown by zoom,
    where the linewidth grows proportionally - then the
    information is already in the PDF. Perhaps by applying
    'Fix Hairlines' in AcrobatPro.
    If the original vector lines in the EPS a very thin -
    which happens for instance by downscaling a technical
    drawing - then PostScript systems are handling this case
    like zero linewidth: the thinnest device pixel line is shown.
    In Acrobat use
    Edit > Preferences > Page Display > SmoothLineArt=Off
    The line is shown for all zoom factors by one-pixel
    rendering.
    For SmoothLineArt=On, the line looks considerably thicker,
    but the visual linewidth is still independent of the zoom
    factor.
    So far actually tested by CS2.
    I'm programming plenty graphics directly by PostScript as
    EPS', place in ID or PageMaker and export as PDF.
    It happened never that a sufficiently thick line was rendered
    thicker in the PDF.
    The remedy is IMO: use Fix Hairlines with a sufficiently large
    minimal linewidth, for instance 0.3 mm.
    Best regards --Gernot Hoffmann

  • Layout problem in PDF conversion

    Hi all,
    i am downloading spool data using the function module CONVERT_ABAPSPOOLJOB_2_PDF. But i am facing layout problem. e.g. RFBILA00(financial statement generation program) has written balancesheet data to the spool. This spool data has some 6 columns. but CONVERT_ABAPSPOOLJOB_2_PDF is writing only first 3 columns to the generated PDF file. i used 'GET_PRINT_PARAMETERS' function module also with values like layout as 'X_65_132' and 'X_90_120'. but no success. if anybody knows the answer, please let me know.
    Thanks in advance,
    Naveen

    Hi All,
    i am following the below approach to download the information from spool.
    program/spool output is an ALV List output data having 8 columns. but below approach is converting only first 5 columns in to PDF format. other 3 columns are getting truncated.
    FUNCTION /ngl/download_spoolinfo_as_pdf.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_SPOOL_REQUEST) LIKE  TSP01-RQIDENT
    *"     REFERENCE(I_FILENAME) LIKE  RLGRAP-FILENAME
    *"  EXCEPTIONS
    *"      DOWNLOAD_ERROR
      TABLES tsp01.
      DATA: mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
            mc_filename LIKE rlgrap-filename.
      DATA: mstr_print_parms LIKE pri_params,
            mc_valid(1) TYPE c,
            mi_bytecount TYPE i.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          copies                 = '1'
          cover_page             = space
          destination            = 'locl'
          expiration             = '1'
          immediately            = space
          mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
          line_size              = 200
          line_count             = 65
         layout                 = 'X_65_200'
          layout                 = 'X_90_120'
          sap_cover_page         = 'X'
        IMPORTING
          out_parameters         = mstr_print_parms
          valid                  = mc_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = i_spool_request
            no_dialog                = 'X'
            dst_device               = mstr_print_parms-pdest
          IMPORTING
            pdf_bytecount            = mi_bytecount
          TABLES
            pdf                      = mtab_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
            OTHERS                   = 12.
        IF sy-subrc EQ 0.
          mc_filename = i_filename.
          DATA: lv_filename TYPE string.
          lv_filename = i_filename.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize = mi_bytecount
              filename     = lv_filename
              filetype     = 'BIN'
            TABLES
              data_tab     = mtab_pdf
            EXCEPTIONS
              OTHERS       = 22.
          IF sy-subrc EQ 0.
            WRITE:/ mc_filename, 'CONVERTED TO PDF AND DOWNLOADED'.
          ELSE.
            WRITE:/ 'PROBLEM WITH DOWNLOAD'.
            RAISE download_error.
          ENDIF.
        ELSE.
          WRITE:/ 'PROBLEM WITH PDF CONVERSION'.
          RAISE download_error.
        ENDIF.
      ELSE.
        WRITE:/ 'PROBLEM GETTING PRINT PARAMETERS'.
        RAISE download_error.
      ENDIF.
    ENDFUNCTION.

  • Acrobat 9 HTML to PDF conversion sets all checkboxes to checked - Duplicate question

    I am converting html files to pdf using Acrobat 9 pro. All of the check boxes and radio buttons come out checked.
    This is exactly the same as the following thread:
    Acrobat 9 HTML to PDF conversion sets all checkboxes to checked?
    That thread is old, but not answered. Has there been any update to this?

    Hi Don,
    Have you tried updating to v 9.5.5 and checked.
    Which OS and browser are you using?
    Have you checked the behavior with a new sample form on the browser?
    Regards,
    Rave

Maybe you are looking for