Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Non English language characters in PDF output

Former Member
0 Kudos

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 :

  1. " ! !_.

Any pointers on how to handle such cases would be highly appreciated.

Thanks in advance.

regards

Chaitanya

9703019495

1 ACCEPTED SOLUTION
3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Amrith,

This still did not worked.