SAP GET LOCALE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID GET-LOCALE-LANGUAGE
• GET LOCALE LANGUAGE ABAP Statement

GET LOCALE LANGUAGE
Short Reference

ABAP_SYNTAX
GET LOCALE LANGUAGE lang obsolete_parameters.

What does it do?
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 but whose results should not be evaluated.



Latest notes:

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.
ABAP_HINT_END



Example ABAP Coding

Determining the current text environment and restoring it after a change. DATA: lang TYPE tcp0c-langu,
dummy TYPE string ##needed.

GET LOCALE LANGUAGE lang COUNTRY dummy MODIFIER dummy.
SET LOCALE LANGUAGE ...
...
SET LOCALE LANGUAGE lang.
ABAP_EXAMPLE_END

Return to menu