Form to PDF form

Hi ,
     I have cretaed a form ( SAP Script) which I want send through email. So I need to convert that form to PDF format. How can I do that ?
Thanks,
Manas

Hi,
There are two approaches that can be followed to convert script to PDF.
First method
first generate a Spool Request for the required Sapscript
then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
here enter the copied Spool request number and the target directory into the parameters
execute the report
required pdf file will be generated into the target directory
i hope it will help you out
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Second Method
converting to OTF and from OTF to PDF
See the sample code and do accordingly
REPORT zzz_jaytest .
Types Declaration
TYPES : BEGIN OF ty_pa0001,
pernr TYPE pa0001-pernr,
bukrs TYPE pa0001-bukrs,
werks TYPE pa0001-werks,
END OF ty_pa0001.
Internal Table Declaration
DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
i_content_txt TYPE soli_tab, "Content
i_content_bin TYPE solix_tab, "Content
i_objhead TYPE soli_tab,
Work Area Declaration
w_pa0001 TYPE ty_pa0001, "For pa0001 Details
w_res TYPE itcpp, "SAPscript output
"parameters
w_otf TYPE itcoo, "For OTF
w_pdf TYPE solisti1, "For PDF
w_transfer_bin TYPE sx_boolean, "Content
w_options TYPE itcpo, "SAPscript output
"interface
Variable Declaration
v_len_in TYPE so_obj_len,
v_size TYPE i.
Constants Declaration
CONSTANTS : c_x TYPE c VALUE 'X', "X
c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
c_otf TYPE sx_format VALUE 'OTF', "OTF
c_pdf TYPE sx_format VALUE 'PDF', "PDF
c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
c_bin TYPE char10 VALUE 'BIN', "BIN
c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
"File Name
c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
START-OF-SELECTION.
Selecting the records from pa0001
SELECT pernr bukrs werks FROM pa0001
INTO TABLE i_pa0001 UP TO 10 ROWS.
Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
Opening the form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = c_form
device = c_printer
language = sy-langu
OPTIONS = w_options
IMPORTING
RESULT = w_res.
LOOP AT i_pa0001 INTO w_pa0001.
Writting into the form
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MAIN'
window = 'MAIN'.
ENDLOOP.
Closing the form
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = w_res
TABLES
otfdata = i_otf
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS = 6.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Converting OTF data to single line
LOOP AT i_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
Converting to PDF Format
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = c_otf
format_dst = c_pdf
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
v_size = v_len_in.
Downloading the PDF File
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_size
filename = c_name
filetype = c_bin
TABLES
data_tab = i_content_bin.
If you r using this function module check it once....
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
Fehlerhandling
if sy-subrc 0.
endif.
follow this link for sample program.
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1121833,00.html
Regards,
Raj.

Similar Messages

  • How to send generated form in PDF form through email

    hi,
    i am working on interactive form in Webdynpro Java, when i am trying to send pdf form as an attachment. i kept Email Submit button in the form and when i am clickink on send email button it is taking local outlook user in default and attachment as .XML attachment. i want attachment as .PDF form.
    can any body please help.
    thanks,
    kishore.

    hi,
    Read the following blog it is explaining nicely about this scenario.
    Sending mail with an online interactive form(pdf) as an attachment.
    Thanks and Regards
    shanto aloor

  • Convert Word 2007 Form to PDF Form not creating dropdown list fields

    I created a new word document with all my text fields with lines and 5 dropdown list fields with all their values.  Works great in Word 2007.  When I convert it to a pdf form (Acrobat Pro X) none of the dropdown list fields get created.  The text fields do, but no drop downs.  If I have to create them all manually in Acrobat, what's the point of doing all the work in Word?

    The Word conversion to PDF and Forms Wizard do not detect and do not know how to complete a drop down box. I do not even create the form fields in Word as there is no transfer to the PDF. I also find the Wizard lacking in proper naming and grouping. It is just easier and more efficient to add the fields manually or with JavaScript tools.
    The only product that can do this is apache OpenOffice when an author creates the from body and form fields in the Writer application and then exports to a PDF.

  • Convert FormsCentral form to PDF form

    Can I export or convert an existing FormsCentral form into an adobe acrobat Pro fillable form?

    We currently do not support creating a PDF form. This has been a very common request (we are the Acrobat team so it isn't a surprising one ). PDF form creation is defintely on our roadmap this year.
    Thanks for the feedback,
    Randy

  • Word form  to pdf form fields conversion

    Does anyone have any expereince with converting form Word
    form with active
    x controls to pdf form fields - any help would be appreciated
    Ann Steer

    No. What you can do, though, is after you edit your file create a new static PDF from it, open your old PDF and then use the Replace Pages command, selecting the new PDF file as the one to insert. This will replace the underlying PDF content while keeping all the form fields in tact. You then might need to adjust them a bit, but it's much less work then re-doing the entire form.

  • Create HTML Form from PDF Form

    Does anyone know of a quick way to create an HTML Form from an existing PDF Form?
    Thanks everyone!
    mars

    From ID you can export to XHTML which is indeed consumed by DW but not via Acrobat...
    So, can I import a PDF form into ID?
    When I meant was - InDesign can export to XHTML
    Acrobat cannot
    Indeed, it would be great if forms could be created as ID objects and then exported to a PDF form but not yet (all fingers and toes crossed for CS5/CS6)
    Cheers,
    Jon

  • How to cange sap form into pdf form

    hai friends,
    we have run payroll got  remuneration statement
    now the client wants the remuneration form should be in pdf form
    how to convert it into pdf form
    any clue plz
    kumari

    Hi,
    We are using Software called CutePDF write to print Rem Statement in PDF format.
    Search on google you will get that.
    Arti

  • Unable to collect form in PDF form

    Hello,
    I have created a fillable form using Live Cycle Designer. But when it comes to collecting the form data, after receiving the data in XML (as an email attachment), I am unable to open it as PDF. I have tried changing the default program to open xml files to Adobe Live Cycle Designer, but the program prompts me a window called "File Import Options". The file type by default in this window is "XForms Document".  When I click ok, it gives me a "main error 47" with a long list of runtime errors.
    Is there a way I can set this up when creating and saving the form?
    I greatly appreciate your feedback.
    Best
    IILIonline

    Hi  Paul,
    Thank  you for your reply. Where  do I go to access the post submit event in order  to add the message? What kind of button do I select?
    I   like idea of sending the user back to our  website by using xfa.host.gotoURL("address   you want to goto").  I found the script editor and added that script to the button (regular). My question is, what do I select on Show?  Initialize, Enter, Exit, Calculate or Validate?
    Please  forgive my ignorance : ) Thank  you.
    Nash

  • Forms: Translating Word Form to PDF Form

    I have created a fill-in form in Microsoft Word (protected). Does anyone know how to then make it a fill-in form in Acrobat? Years (and years) ago, Word had an icon on the toolbar that you simply clicked. Acrobat help says use the "Acrobat toolbar." Help me on that? I could probably recreate the darn thing in Acrobat, but it's much easier for me to work in Word. Thanks.

    I am new to this and trying to do the same thing.  For interactive forms you save the word file to pdf first.  Then, using the forms tool you create the form.  Acrobat searches the fields and identifies what it thinks are the interactive fields.  From there you can go to a host of editing tools to modify, add or delete fields.
    Jay

  • Print Footer Window of PO Form at end of Last Page of PDF Forms(Adobe)

    Hi,
    I am trying to print PO form using PDF form which includes multiple line items. At the end of last page I am trying to print the footer window that contains Comments and Signature.
    Right now my Footer Window is being printed immediately after the end of line items.
    I have included the Comments text box and image inside a Sub Form.
    Please let me know how to print the Footer window at the end of the page instead of printing immediately after the line items.
    Thanks,
    Rekha

    Hi,
    Please take the footer subform from the tables section and position it on the page where u want to print and write the script so that it will print only on last page.
    Regards,
    sasi

  • Attachments in the PDF form

    I am saving my form as a PDF.  In the form I have an attachment field included.  However when I try to use the attachment "Select File" I am getting an error. saying the file attachment in not supported in the formPDF.  Is there a way to do this with the PDF form?

    PDF forms currently do not support attachments. You would have to distribute the form as a web form to get that functionality.
    Randy

  • Support for PDF form editing in Acrobat Pro XI and futire versions?

    Will Adobe Professional continue to support the creation and editing of PDF forms after Forms Central? Can I import my Forms-Central PDF forms into Acrobat XI? What are the plans for future versions of Acrobat Pro - any cancellations planned for forms-features?

    >. I understand that this LifeCycle Reader Extensions allows for such a result
    That's correct.
    >but I have not clue how to add this funtionality to my already created PDF?!?
    LiveCycle Reader Extensions is a product. You buy it. Note that the
    price is "on application" and varies with your company's needs, but is
    typically either tens or hundreds of thousands of dollars. This is to
    offset the "lost sales" of Acrobat which people would otherwise have
    to buy to save forms.
    > I have downloaded the trial version Adobe LifeCycle Designer 7.1 (which appears to have full functionality for only 60 days)in hopes to just add this capability
    There are many products with LiveCycle in the name from Adobe. That's
    a different one.
    Aandi Inston

  • NEW! Import Fillable PDF Form and Collect Responses

    FormsCentral now allows you to import an existing fillable PDF form and use the FormsCentral service to collect and analyze the submitted data. You no longer have to recreate your existing PDF forms within the service in order to take advantage of FormsCentral’s data collection/analysis capabilities.
    You can also use popular tools like Adobe Acrobat X Pro or Adobe InDesign to create PDF forms that work with FormsCentral.
    To import a PDF form go to the “My Forms” tab, click the More button on the toolbar and select “Import PDF Form.” Note: FormsCentral does not support PDF forms created using the LiveCycle Designer (XML-based forms).
    Once imported the normal Design tab is replaced with an “Imported Form” tab that allows you to place a Submit button on the PDF form. You can place it on the top left or right of the first page, or place it on the bottom left or right of the last page. A thumbnail shows where the button will appear.
    Click to view larger image
    The Options tab shows options that are available for PDF forms (Note: PDF Forms do not support Redirect URLs or Payments so these are not shown)
    Click to view larger image
    The Distribute tab allows you to open the form and download the submit-enabled PDF file for distribution. The PDF file can be filled out, saved and submitted using the free Adobe Reader.
    Click to view larger image
    The Response and Summary Report tabs will show the data submitted from the PDF form. They function as they do for a normal form file that you created from scratch or template.
    This FAQ describes what types of PDF forms can/cannot be imported and what functionality is limited within the PDF once imported:
    http://forums.adobe.com/docs/DOC-2533
    Please send us your feedback.
    Randy

    I followed this process to import my PDF form.  The link I have on my web page is displaying an error from FormsCentral.  The link works but the web page is confusing to customers.  The message is: 
    An error has occurred.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    When I saved the submission-enabled PDF, I could only save it to my computer.  I then had to upload it to the web site server and created a link on my web page to point to that URL.  
    How can I get rid of the Adobe FormsCentral message on the web page?

  • Save the PDF Form with Field Name

    HI Guys,
    I have the Requirment in PDF Form.The PDF Form is generated with the Adobe Live Cycle Designer.After generating the PDF Form the user filled the details in the form and save the filled form.while clicking the Save button the default PDF name is displayed in the File name box.The Requirement is iam having one field in the form.The Field name value should needs to displayed in the File name box during saving.Is it possible.Once its possible please let me know.This is needs to be delivered very shortly.
    Thanks & Regards,
    SatheshKumar R

    You can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
    You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
    Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
    http://thelivecycle.blogspot.com/search/label/Save

  • Alternative using a .pdf form?

    We do performance reviews, order forms, etc all through formcentral. This is going to really hurt us as well.
    Do any of the listed alternatives allow a user to fill out a form off-line like a .pdf form with a submit button (as formcentral did)? We have users that cannot get to websites but can work on a .pdf form.
    And not formstack - that pricing model is absurd.
    Thanks,

    Hi JD-MHM,
    I can't speak to the functionality provided by the alternative solutions listed in the FAQ: End of support | Adobe FormsCentral.
    But, can you repurpose your forms as PDF forms for use with Adobe Acrobat. Information about that is discussed in the FAQ as well.
    Best,
    Sara

Maybe you are looking for