Fonction SAP SET_LOCALE - Set Language Environment

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
NEW_COUNTRY TCP0C-COUNTRY C 3 X New country setting
NEW_LANGUAGE TCP0C-LANGU C 1 New language setting
NEW_MODIFIER TCP0C-MODIFIER C 8 X New modifier setting

Paramètre Reférence Type Long. Description
OLD_COUNTR TCP0C-COUNTRY C 3 Previous country setting
OLD_LANGUAGE TCP0C-LANGU C 1 Previous language setting
OLD_MODIFIE TCP0C-MODIFIER C 8 Previous modifier setting

Exception Description
TEXTENV_CODEPAGE_NOT_ALLOWED Text environment codepage not allowed
TEXTENV_INVALID Text environment invalid
TEXTENV_KEY_INVALID Text environment not defined
TEXTENV_LANGUAGE_NOT_ALLOWED Text environment language not allowed

Functionality
The function module set new locale language and return the previouslocale setting.
If it is not possible to set the new locale language, exceptions areprocessed.