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: 

translate in unicode

Former Member
0 Kudos
135

hi,

can u please guide me in sloving

translate data type i upper case in unicode environment,

which is in an structure

Regards

Kranthi

2 REPLIES 2

Former Member
0 Kudos
76

According to the document "Requirements of ABAP Programs in Unicode Systems.pdf":

String processing statements, whose arguments were all interpreted as fields of type C until now, are now divided into statements with character arguments and those with byte arguments.

String processing statements

CLEAR ... WITH

CONCATENATE

CONDENSE

CONVERT TEXT ... INTO SORTABLE CODE

OVERLAY

REPLACE

SEARCH

SHIFT

SPLIT

TRANSLATE ... TO UPPER/LOWER CASE

TRANSLATE ... USING

The arguments of these instructions must be single fields of type C, N, D, T or STRING or purely character-type structures. There is a syntax or runtime error if arguments of a different type are passed. A subset of this function is provided with the addition IN BYTE MODE for processing byte strings – that is, operands of type X or XSTRING. A statement such as CONCATENATE a x b INTO c is thus no longer possible when a, b, and c are all character-type, but x is of type X.

TRANSLATE ... CODEPAGE ...

TRANSLATE ... NUMBER FORMAT ...

The above statements are not allowed in Unicode programs. Instead, you can use the new conversion classes:

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.

Hope it helps,

Chang

0 Kudos
76

hi ,

thank for that i have compleated that one

reg

kranthi