ABAP Keyword Documentation → ABAP − Reference → Language Environment → Language Settings → Text Environment Language and Text Environment
GET LOCALE LANGUAGE
Other versions: 7.31 | 7.40 | 7.54
Syntax
GET LOCALE LANGUAGE lang obsolete_parameters.
Effect
The language key of the current
text environment language is assigned to the variable lang
. The data
object lang
must have a character-like data type. The statement has two obsolete
additions - COUNTRY
and MODIFIER
- that must be specified. However the results are not evaluated.
Note
The imported text environment language of the current text environment can be used to restore the environment
after it has been changed using the statement SET LOCALE
.
Example
Determining the current text environment and restoring it after a change.
dummy TYPE string ##needed.
GET LOCALE LANGUAGE lang COUNTRY dummy MODIFIER dummy.
SET LOCALE LANGUAGE ...
...
SET LOCALE LANGUAGE lang.