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

need help in unicode .. translate struct to upper case

Former Member
0 Likes
680

Hi

I'm working in unicode Project. I'm facing a problem with Translate statement.

The statement like this :

Translate trec to uppercase.

BEGIN OF trec,

string(748),

carriage_return(1) TYPE x,

END OF trec.

The error is "TREC must be character data type object.

I tried to fix with byte mode edition but not worked

Please help me

Hi ,

TREC should be Char variable.

<b>Thanks,

Venkat.O</b>

3 REPLIES 3
Read only

Former Member
0 Likes
614

In Unicode TRANSLATE can be only dealed with character set. Hence you should use.


Translate trec-string to uppercase.

Cheers,

Thomas.

Read only

venkat_o
Active Contributor
0 Likes
614

Hi ,

TREC should be Char variable.

<b>Thanks,

Venkat.O</b>

Read only

Former Member
0 Likes
614

Hi sapien,

1. This is not a unicode problem.

2. The problem is in the syntax and its usage.

3.

data : BEGIN OF trec,

string(748),

carriage_return(1) TYPE x,

END OF trec.

Translate <b>trec-string</b> to upper case.

4. Translate works on Character data type,

and not on structures directly.

We have to convert EACH FIELD of structure

regards,

amit m.