Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP - unicode system

Former Member
0 Kudos

can u tell what are these concepts in Unicode System????

locale,code page and language key....

Thanks

3 REPLIES 3

Former Member
0 Kudos

Former Member
0 Kudos

Hi Dear....

try this...

http://www.saptechies.com/doubt-in-unicode-enabling/

Regards .

Sudarsan Sahoo

Former Member
0 Kudos

Hi,

CODE PAGE :

These classes are used to convert ABAP data from the system format to external formats and vice versa. During this conversion process, character-type data may be converted to another character set, while numeric-type data may be converted to another byte order (or endian format). You must use a container of type X or XSTRING for data in an external format.

Character sets and endian formats are also converted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. The classes described below are available for those special cases where the possibilities offered by conversion are insufficient. Since these classes work with containers of types X and XSTRING, these containers can be copied unconverted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. These classes replace the following two statements:

TRANSLATE c ...FROM CODE PAGE g1 ... TO CODE PAGE g2

TRANSLATE f ...FROM NUMBER FORMAT n1 ... TO NUMBER FORMAT n2

For a detailed description, see the class documentation in the Class Builder. The following classes are available:

CL_ABAP_CONV_IN_CE

Reads data from a container and converts it to the system format. You can also fill structures with data.

CL_ABAP_CONV_OUT_CE

Converts data from the system format to an external format and writes it to a container.

CL_ABAP_CONV_X2X_CE

Converts data from one external format to another.

LOCALE :

The goal of Internationalization is to provide the technical foundation to enable programs to support multiple scripts and languages without redesign or modification. Once a user has selected a log on language, all programs must transparently alter their run-time behavior to meet the expectations of the user. Internationalization furthers generic programming, because hard-encoded search strings, error messages, etc. may work in one language, but not in another.

error usually occurs in TRANSLATE statement

TRANSLATE P_VARIVAR_TEXT TO UPPER CASE.

just add below statement to eliminate error.

set locale language sy-langu.

TRANSLATE P_VARIVAR_TEXT TO UPPER CASE.

REWARD IF USEFUL