Application Development and Automation 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: 
Read only

TRANSLATE STATEMENT

Former Member
0 Likes
455

We are doing Unicode upgrade from 4.7 to ECC.

DATA: letters(20) TYPE C VALUE 'abcabcabcXab',

change(2) TYPE X VALUE '7F20'.

TRANSLATE letters USING change.

WRITE letters.

It gives Unicode error in TRANSLATE statement.

saying 'change' should be of type 'c'.

Please let me know, how this translate statement would have performed in 4.7 version.

Would it have changed any value or not.(The value specified in variable 'letters' is an example)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
424

thing is in ecc u cannot use function on type x values directly ..

in ur case

use fm HR_RU_CONVERT_HEX_TO_STRING and convert the type X to Type c and then use translate statement .

Use this Fm frequently especially in UCC fix of upgrade proj .

br,

Vijay.

1 REPLY 1
Read only

Former Member
0 Likes
425

thing is in ecc u cannot use function on type x values directly ..

in ur case

use fm HR_RU_CONVERT_HEX_TO_STRING and convert the type X to Type c and then use translate statement .

Use this Fm frequently especially in UCC fix of upgrade proj .

br,

Vijay.