Skip to Content
0
Former Member
Mar 11, 2010 at 11:05 AM

Code Page error in ECC.6.0

25 Views

Hi Guys,

I am involved in upgradation project from 4.6 c to ECC 6.

I am getting a sytax error for the following code.

The error says : In the UNICODE context, TRANSLATE ... CODEPAGE is not allowed. The error is in the last line of code. " translate wg701 to code page '1110'."

Please suggest.

data: x_fld(15) type x,

wg701(30) type c,

format1 like tcp00-cpcodepage.

field-symbols: <hex_conv>.

call function 'CHAR_HEX_CONVERSION'

exporting

input = p_w2-wg701

importing

hexstring = x_fld

exceptions

others = 1.

write x_fld to wg701.

translate wg701 to code page '1110'.

Regards

Manoj