cancel
Showing results for 
Search instead for 
Did you mean: 

smartform to pdf problem - encoding

Former Member
0 Kudos

Hi,

in my wd4a component I need to create pdf file from smartfom

I call generated FM for smartform and then use FM CONVERT_OTF to get xstring.

the only problem is, that created file has wrong encoding. special characters like ť or č are not displayed properly.

setting for smartforms:

ls_output_options-xsf = space. " XSF Output active

ls_output_options-xsfcmode = 'X'. " Get XSF params from program

ls_output_options-bcs_langu = sy-langu.

ls_output_options-tdnoprev = 'X'.

ls_control_parameters-langu = sy-langu.

ls_control_parameters-no_dialog = 'X'.

ls_control_parameters-getotf = 'X'.

CALL FUNCTION 'SSF_GET_DEVICE_TYPE'

EXPORTING

i_language = sy-langu

IMPORTING

e_devtype = ls_output_options-tdprinter

EXCEPTIONS

no_language = 1

language_not_installed = 2

no_devtype_found = 3

system_error = 4

OTHERS = 5.

Does anybody have any idea?

thanks

Juraj

Accepted Solutions (1)

Accepted Solutions (1)

aidan_black
Active Contributor
0 Kudos

Hi Juraj,

if these are Latin-2 characters, then true type fonts that support these characters must also be installed in SAP via report RSTXPDF2 as described in SAP note #141343.

Regards,

Aidan

Former Member
0 Kudos

Hi,

that note helps

thanks

Juraj

Answers (1)

Answers (1)

MrWhan
Participant
0 Kudos

I have had font issues (not quite like yours) when I use our default Own Data->OutputDevice default of "LOHP". I have changed that to "LOCL" for differing results within the program when sending parameters to the Smartform. Both devices go to an HP printer, but something about their configuration, settings, drivers, etc makes them different.


  job_output_options-tddest = 'LOCL'.
  output_controls-tddest    = 'LOCL'.
  user_settings             = ' '.