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

Extended check error

Former Member
0 Likes
548

Hi i am getting an error 'Dangerous use of TRANSLATE in a multilingual system.' in my code line TRANSLATE itabc-Istext TO UPPER CASE. wot shud i do to remove this error?

4 REPLIES 4
Read only

Former Member
0 Likes
505

It will give this error for TRNSALATE, if u can use any alternate try to use otherwise u cant remove this.

Whether itabc-Istext is character.

Read only

Former Member
0 Likes
505

Use the FM AIPC_CONVERT_TO_UPPERCASE to convert to upper case instead of translate statement...

Read only

Former Member
0 Likes
505

hi,

Try this way ..


v_lstext type lstext.

loop at itabc.
v_lstext  = itabc-Istext.
TRANSLATE v_lstext TO UPPER CASE.
 itabc-Istext  = v_lstext  .
 clear v_lstext.
endloop.

Read only

Former Member
0 Likes
505

you have to specify the local language before translating the text using TRANSLATE STATEMENT.


SET LOCALE LANGUAGE 'E'. 
TRANSLATE text TO UPPER CASE. 

thx

pavan