Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smartforms in Multiple Language

Hi all,

I want to print smartform in different language than logon Language,

I have maintain translation in SE63 with different languages.but my problem is if i am in Logon with EN Language and we have set GET/SET perameter for Print Language if in my id this parameter is set to French or Chines then my form should be print in chines or french language?

Former Member
replied

Hi,

See http://scn.sap.com/docs/DOC-47865

See:

DATA: st_control_parameters TYPE ssfctrlop .

  DATA: st_output_options     TYPE ssfcompop .

  DATA: st_job_output_info    TYPE ssfcrescl .

  st_control_parameters-no_dialog = p_dialog .

  st_control_parameters-device    = 'PRINTER' .

  st_control_parameters-preview   = p_prview .

  st_control_parameters-langu     = p_langu .

* st_output_options-tdnoprint = abap_true .

  st_output_options-tdnewid   = abap_true .

  st_output_options-tdimmed   = p_immed .

  st_output_options-tddest    = p_padest  .

  st_output_options-tddelete  = p_delete .

  CALL FUNCTION fm_name

    EXPORTING

      user_settings      = abap_false "Take into account st_output_options

      control_parameters = st_control_parameters

      output_options     = st_output_options

      st_meta_1          = st_meta_1

      st_scarr_1         = st_scarr_1

      it_spfli_1         = it_spfli_1

    IMPORTING

      job_output_info    = st_job_output_info

    EXCEPTIONS

      formatting_error   = 1

      internal_error     = 2

      send_error         = 3

      user_canceled      = 4

      OTHERS             = 5.

Regards.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question