"00C400D600DC"
). In non-Unicode single code page systems, the program raises an
exception, because different code pages are associated with the language
keys "E" and "R" (SAP code page numbers 1100 and 1500). In MDMP
systems in which the code pages 1100 and 1500 are released, the binary
content of text ( "E4F6FC" in codepage 1100) is converted
differently according to the code page. In a text environment with the
code page 1100, the characters are interpreted as umlauts. In a text
environment with the code page 1500, these are Cyrillic characters. When
converting to uppercase, the system searches in the code page for the
appropriate character according to the text environment, and converts it
accordingly. The result for code page 1100 is "C4D6DC" , and for
code page 1500 is "C4A6AC" .
DATA text TYPE c LENGTH 3.
FIELD-SYMBOLS <(><<)>hex> TYPE x.
ASSIGN text TO <(><<)>hex> CASTING.
text = '���'.
cl_demo_output=>write( <(><<)>hex> ).
SET LOCALE LANGUAGE 'E'.
TRANSLATE text TO UPPER CASE.
cl_demo_output=>write( <(><<)>hex> ).
text = '���'.
SET LOCALE LANGUAGE 'R'.
TRANSLATE text TO UPPER CASE.
cl_demo_output=>write( <(><<)>hex> ).
SET LOCALE LANGUAGE ' '.
cl_demo_output=>display( ).
Runtime Exceptions
Catchable Exceptions
CX_SY_LOCALIZATION_ERROR
Reason for error: Using the tables TCP0D and TCP0C , a
character set was detected that is not released in your system. The
released character sets are in the table TCPDB . Normally this
table contains exactly one character set and this runtime error occurs
because the system has attempted to use a non-compatible language.
Runtime error: TEXTENV_CODEPAGE_NOT_ALLOWED
Reason for error: No entry exists (for the current platform) in the
SAP text environment table TCP0C for the specified keys
lang , cntry , and mod .
Runtime error: TEXTENV_KEY_INVALID
Non-catchable Exceptions
Reason for error: Selection of a 'binary' text environment using the
modifier 'BINARY' , 'C' , 'POSIX' , or 'RAW' .
Runtime error: TEXTENV_BINARY_NOT_SUPPORTED
Reason for error: Eines der angegebenen Schl�sselfelder lang ,
cntry oder mod ist nicht zeichenartig.
Runtime error: TEXTENV_KEY_BAD_TYPE
Reason for error: One of the key values lang , cntry , or
mod is longer than the corresponding fields LANGU , COUNTRY
, or MODIFIER in the SAP text environment table
TCP0C .
Runtime error: TEXTENV_KEY_TOO_LONG
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved