03-04-2005 8:45 PM
Hi all,
Can anybody tell me waht is the function module for coverting Samrtforms to PDF ?
Is it HRHAP_DOC_CONVERT_SMF_TO_PDF.
If it is correct Can you tell me what all the types of parameters to be passed for this?
Thanx
Kelly.
03-04-2005 8:56 PM
Hi Kelly
Try "<b>CONVERT_OTF_2_PDF</b>" or "<b>SX_OBJECT_CONVERT_OTF_PDF</b>" .
Kind Regards
*--Serdar
ssimsekler@yahoo.com
03-04-2005 8:56 PM
Hi Kelly
Try "<b>CONVERT_OTF_2_PDF</b>" or "<b>SX_OBJECT_CONVERT_OTF_PDF</b>" .
Kind Regards
*--Serdar
ssimsekler@yahoo.com
03-08-2005 3:53 PM
Hi,
Can please tell me what are the parameters we are passing to the FM CONVERT_OTF_2_PDF?
Because I am getting a dump error...
Thank you,
Kelly
03-10-2005 10:24 PM
Hi Kelly
I do not know whether you still seek for an answer but here is a sample whºch I didn't try on a system but may give an idea:
CALL FUNCTION sf_func_name "smartform calling function"
EXPORTING
output_options = ...
control_parameters = ...
IMPORTING
job_output_info = <i><job_output_info></i> .
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
use_otf_mc_cmd = 'X'
IMPORTING
bin_filesize = <i><pdf_file_size></i>
TABLES
otf = <i><job_output_info></i>-otfdata
lines = <i><pdf_tab></i> .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = <i><pdf_file_size></i>
filename = <i><pdf_file_name></i>
filetype = 'BIN'
mode = space
IMPORTING
filelength = <i><pdf_file_size></i>
TABLES
data_tab = <i><pdf_tab></i>
EXCEPTIONS
...
Hope this much helps
Regards
*--Serdar
ssimsekler@yahoo.com
03-07-2005 3:05 AM
05-23-2005 4:27 PM
Hi all,
I´m using the function "
CONVERT_OTFSPOOLJOB_2_PDF
", this function convert a spool order to PDF file, with this function Can I separate in several PDF file only one spool order?.For example if in one spool order I have 5 pages, I need separate the pages, in one pdf file the page 1 to 2 and in another one the pages 3 to 5, it is this possible.
Thank.
Jhon
05-23-2005 5:59 PM
05-23-2005 5:49 PM
Hi Kelly,
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!
Regards,
Ankur
05-24-2005 4:48 AM
Hi,
Check this link for the code sample.
In that code sample, I am converting the output of smartform into PDF and then mailing the output.
Hope this link is useful.
In case of any doubt,get back to me.
Regards,
J.Jayanthi
05-31-2005 7:29 AM
Jayanthi
Could you perhaps tell me what size are the PDF documents produced by this program?
Regards
Faaiez
05-31-2005 7:34 AM
07-18-2005 2:51 PM
Hi everyone SDNer!!!
I'm gettting trouble with converting Smartform to PDF and displaying Unicode in PDF output.
Instead of letters it displays '#'. Can you tell me why?
BR,Reno_D
P.S. Thank you for reply. I can't guess the right thing.
07-20-2005 9:56 AM
Hello !
I'm in the same situation than Reno D.
We try to convert a smartform to PDF in slovakian language and we have 2 kinds of problem :
- certain special caracters are displayed as #
- other special caracters are displayed correctly but the next caracter is displayed at the same place (written over the special one)
Could someone help us ?
Thanks in advance
Message was edited by: Jean-Charles CARRET
07-21-2005 9:15 AM
After investigation we have found a solution.
2 actions are required :
- You must create a device with good unicode in SPAD transaction. (For SK it is an ISO latin 2 device.)
Affect this device to concerned users.
Before calling smartform, put the user default print in the device parameters
- Use a policy containing good caracters.
ex COURRIER policy doesn't contain all special SK caracters whereas TIMES or HELVETIC do.
Good luck