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

error in code inspector

Former Member
0 Likes
797

Hi experts

I amm using the Translate to Uppercase command in my program, when i check in code inspector

I am getting the error message as "Dangerous use of translate in multilingual system"

how to avoid this and how to rewrite this statement. I am using for matnr to uppercase

thanks in advance

sai

3 REPLIES 3
Read only

Former Member
0 Likes
627

Try this code:


* set locale for given language (needed for upper-case translation)
  SET LOCALE LANGUAGE sy-langu.

* translate to upper-case
  TRANSLATE <String> TO UPPER CASE.

Read only

Former Member
0 Likes
627

Press F1 on Upper case and read the Note of SAP help.your will get the reason of this error.

Amit.

Read only

Former Member
0 Likes
627

solved