‎2006 Feb 17 11:46 AM
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.
‎2006 Feb 17 11:47 AM
Hi,
Use function module AIPC_CONVERT_TO_UPPERCASE to resolve the error.
Thank you.
Regards,
Karun M
‎2006 Feb 17 11:51 AM
Hi
You can hide this error .write below statements at the end of your statement.
#EC TRANSLANG or "#EC SYNTCHAR
‎2006 Feb 17 11:51 AM
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.
‎2006 Feb 17 11:52 AM
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].