Application Development 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: 

Error in Extended Syntax check

Former Member
0 Kudos

Hi all,

Iam geeting this follwing error in Extended syntax check

"Dangerous use of TRANSLATE in a multilingual system"

Code: translate i_hd_data_in-bukrs to upper case.

How to resolve this error.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use function module AIPC_CONVERT_TO_UPPERCASE to resolve the error.

Thank you.

Regards,

Karun M

laxmanakumar_appana
Active Contributor
0 Kudos

Hi

You can hide this error .write below statements at the end of your statement.

#EC TRANSLANG or "#EC SYNTCHAR

Former Member
0 Kudos

Hi swaminathan,

1. Don't worry.

Its just like warning.

The program will run fine.

2. The error comes bcos of :

BUKRS field.

3. BUKRS in SAP is company code

and is meant for use in different languages.

If u don't define the variable as BUKRS,

and simply CHAR(4)

it won't give any error.

4. see this code :

REPORT zam_temp169 .

DATA : a(10) TYPE c.

TRANSLATE a TO UPPER CASE.

*----


this will give error

DATA : bukrs LIKE t001-bukrs.

TRANSLATE bukrs TO UPPER CASE.

regards,

amit m.

Former Member
0 Kudos

From SAP HELP:

Problems may occur if the language of the text environment differs from the language in which the data to be processed is entered.

Use SET LOCALE before using TRANSLATE.

SET LOCALE LANGUAGE lang [COUNTRY cntry] [MODIFIER mod].