07-02-2004 5:47 PM
Hi,
I'am developing a function mudule to convert a smartform into a PDF for send by e-mail. I want to know if there is a function module to convert a smartform into a PDF format.
Thanks
Santiago
07-02-2004 6:52 PM
Hi there,
There is a standard function module to convert a spool request (result of SAP script, SMART forms or report output) into a PDF document ...
If I recall well out of the top of my head it is called something like 'Convert_otf_to_pdf' ... a search on PDF will give you the answer ...
I used it before and it works superb ...
Steven
07-05-2004 7:14 AM
Hello Saniago,
If you have installed SAP Connect it is just a customizing
setting.
BR
Michael
07-13-2004 5:32 PM
Hi!
All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
s_control_parameters-no_dialog = 'X'.
s_control_parameters-getotf = 'X'.
CALL FUNCTION v_func_name "call your smartform
EXPORTING
output_options = s_output_options
control_parameters = s_control_parameters
IMPORTING
job_output_info = s_job_output_info
call function 'CONVERT_OTF_2_PDF'
tables
otf = s_job_output_info-otfdata
lines = t_pdf
Hope this helps!
Kind regards,
Igor Barbaric