Skip to Content
0
Former Member
Jul 16, 2008 at 06:25 AM

Translate string using hex(0020) in Unicode system.

282 Views

Hello all,

We are facing a problem of the "translate" statement in the Unicode system.

The original statement goes as follows:

TRANSLATE BULOG USING WS_STRING1.

Here BULOG is a structure and ws_string1 is declared as follows:

DATA : ws_string1(2) type x value '0020'.

On compilation in the new system which is Unicode enabled, the above mentioned statement removes all the '#' placed in the structure.

We tried the following statement instead of the original TRANSLATE statement.

TRANSLATE BULOG USING SPACE.

But this statement leaves the '#' unchanged.

We have already REPLACE statement after converting the structure contents into a string.

We have also tried the convert methods of the classes CL_ABAP_CONV_IN_CE and CL_ABAP_CONV_OUT_CE.

Hoping to receive a fast response.

Thanks in advance.

Zankruti.