2008 Jun 02 5:36 PM
Hi All,
I would like to know if there is any statement to change the logon language in runtime. I have a program that execute standard programs, i am log in in english and before execute the standard program i want to change the logon language to italian to see the vat code text in italian.
Many thanks.
Hi All,
I would like to know if there is any statement to change the logon language in runtime. I have a program that execute standard programs, i am log in in english and before execute the standard program i want to change the logon language to italian to see the vat code text in italian.
Many thanks.
2008 Jun 02 5:48 PM
You can always set the value for SY-LANGU field during runtime and also take a look to SET COUNTRY statement.
2008 Jun 02 5:49 PM
Hi,
You can use this code:
DATA: v_lang TYPE tcp0c-langu,
v_cntry TYPE tcp0c-country,
v_mod TYPE tcp0c-modifier.
GET LOCALE LANGUAGE v_lang COUNTRY v_cntry MODIFIER v_mod.
SET LOCALE LANGUAGE 'IT' COUNTRY V_cntry.
YOUR CODE
SET LOCALE LANGUAGE v_lang COUNTRY V_cntry.
regards
Sandeep Reddy
2008 Jun 02 6:30 PM
Hi,
Many thanks for your quick response, it's partially working...have a look of my code.
SET LOCALE LANGUAGE 'I' COUNTRY 'IT'.
********************************************************+
submit (g_program_name)
via selection-screen
and return.After the statetmetn SET sy-langu is changed however after the submit the program g_program_name has the original logon language. Any idea?.
Many thanks again.
Edited by: Miguel Torres on Jun 2, 2008 1:31 PM
2008 Jun 02 7:38 PM
This is because the SET LOCALE command sets the text environment (i.e. SY-LANGU) for the current internal session only. The SUBMIT .. AND RETURN command executes the called program in a new internal session resetting sy-langu back to login language.
2008 Jun 07 7:50 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |