on 11-30-2010 3:15 PM
Hi friends,
I generated a form and it is working fine. I want to display(not download) the form in PDF format. I searched the forums which are explaining to convert and download but not to print in PDF format. I am passing the following control parameters to FM.
ls_cont_param-no_dialog = 'X'.
ls_cont_param-preview = 'X'.
ls_cont_param-getotf = 'X'.
ls_out_opt-tddest = i_wa_nast-ldest.
CALL FUNCTION w_fm_name
EXPORTING
control_parameters = ls_cont_param
output_options = ls_out_opt
user_settings = 'X'
IMPORTING
job_output_info = i_wa_job_output_info
TABLES
i_hunit = i_hu
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
When I execute with above code, nothing is displaying. I want to just display the form output in PDF format.
Please let me know if I miss anything.
Regards
Wich Version you have ?
Since SAP Web Application Server 6.40 PDF Spool is integrated with SAP. See the link for more info.
Displaying and Printing PDF-Based Forms
[http://help.sap.com/saphelp_nw04/helpdata/en/c8/7f065c7363f14c84a97a3687aa7e62/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/c8/7f065c7363f14c84a97a3687aa7e62/content.htm]
Printing PDF-Based Forms
[http://help.sap.com/saphelp_nw04/helpdata/en/25/6fa8fd27837846990a7a6813b06f80/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/25/6fa8fd27837846990a7a6813b06f80/content.htm]
If you have an older version you, you simply can't in a standard way. Only List and OTF are supported.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this FM right after you call your Smartform:
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
i_otf = i_wa_job_output_info-otfdata
EXCEPTIONS
acrobat_not_registered = 1
convert_otf_to_pdf_error = 2
download_error = 3
acrobat_not_started = 4
cntl_error = 5
OTHERS = 6.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.