05-26-2010 4:52 PM
Hi All,
We have a requirement wherein we have to display an existing Smartform output in a PDF format.
We have used OTF to PDF conversion and displayed the PDF output in a container.
The issue is if certain characters are of non english language then the PDF is displaying these characters as special symbols.
The following string is getting dispalyed in the SmartForm as follows:
ОРЕНБУРГАВТОРЕМСЕРВИС_
The same string is displayed as follows in the PDF form :
" ! !_.
Any pointers on how to handle such cases would be highly appreciated.
Thanks in advance.
regards
Chaitanya
9703019495
05-27-2010 10:14 AM
05-26-2010 5:39 PM
Before calling the smartform, use the FM 'SSF_GET_DEVICE_TYPE' and get the device type based on the language.
For eg:
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = l_langu
IMPORTING
e_devtype = lwa_output_options-tdprinter.
Then you need to build the other control parameters like this:
Build control parameters.
lwa_control_parameters-getotf = c_charx.
lwa_control_parameters-device = 'PRINTER'.
lwa_control_parameters-preview = ''.
lwa_control_parameters-no_dialog = c_charx.
lwa_output_options-tddest = 'LOCL'.
Pass this lwa_output_options & lwa_control_parameters to output_options & control_parameters respectively in the Smartform FM.
This should ideally solve this issue.
Regards,
Amirth
05-27-2010 4:43 AM
05-27-2010 10:14 AM