cancel
Showing results for 
Search instead for 
Did you mean: 

Change display language of smartform from within the smartform itself

Former Member
0 Kudos

Hi!

The smartform is invoked to display from the standard with some language, which we want to change.

We can't change calling code (because it's standard).

Is it possible to change the displaying language of a smartform from within the smartform. Say, "Initialization" section?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

The language to be used is in parameter CONTROL_PARAMETERS, and it can't change it as it's an IMPORT parameter.

Then the language is transfered to the global data %HEADER-LANGU and %LANGUAGES-LANGU1, u can't try to change them.

Max

Former Member
0 Kudos

So it seems impossible to change language in runtime, is it?

Former Member
0 Kudos

Hi Concern,

We can change language at run time. With following way.

1. Define a variable and allocate language u want to langu fields.

DATA lV_CT_PARA TYPE SSFCTRLOP.

  • Here LV_lang contain the language u want to assign.

LV_CT_PARA-LANGU = LV_LANG.

2. Pass it to smart form.

CALL FUNCTION FM_NAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = LV_CT_PARA

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

Itu2019s working for me.

Regards

Swati.

Edited by: Swati Namdev on Apr 28, 2010 7:06 PM

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

Then in the Form Attributes section of Smartform, there is some section called language attributes.

YOu have to translate usng that radio button options.

Later, you can specify the name of the language in the Language attributes.

Regards,

ravi