smartforms printing garbled in Chinese and English

2010-10-30  来源:本站原创  分类:Tech  人气:128 

In smartforms encounter when printing with the form in English

Sometimes the system will not be processed garbled sometimes do not know what the system or configuration of things

Now is my solution because it is in English and Chinese environment with the establishment in the form

English environment do not have to maintain the maintenance of this form does not appear garbled if the following method is also useless

Mainly in the program only under the form call the Chinese environment is set to be the only one language

data: lv_ssf like ssfctrlop.

lv_ssf-langu = '1'.

  call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
      formname           = 'Z06MM_DELIVERYSCHEDULE'
    importing
      fm_name            = lv_func_mod_name
    exceptions
      no_form            = 1
      no_function_module = 2
      others             = 3.

  call function lv_func_mod_name
     exporting
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
     control_parameters         = lv_ssf
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
*     OUTPUT_OPTIONS             =
     user_settings              = 'X'
    tables
      it_head          = gt_head
      it_item          = gt_item
    exceptions
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 4
      others           = 5.
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
相关文章