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.
Before calling the smartform, use the FM 'SSF_GET_DEVICE_TYPE' and get the device type based on the language.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
i_language = l_langu
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.