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: 

'Dangerous use of TRANSLATE in multilingual system'?

Former Member
0 Kudos

HI Experts,

I got extended syntax error while doing syntax check.

which says..

'Dangerous use of TRANSLATE in multilingual system'...

actually for one field from EKKO table i am converting into upper case with TRANSLATE command.

so how can i solve this ..

Thanks in Advance,

Venkat

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use Translate statement like this....


data: lang  type tcp0c-langu,
        cntry type tcp0c-country,
        mod   type tcp0c-modifier.

get locale language lang country cntry modifier mod.
set locale language lang.
translate <value> to upper case.

OR

If you want to hide the error means

"#EC TRANSLANG put this statement end of your translate statment.

Hope it will helps

naveen_inuganti2
Active Contributor
0 Kudos

Hi..,

This bacuase language dependancy failure..,

Make use of this syntax to avois that error.

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

.

Thanks,

Naveen.I

Former Member
0 Kudos

Thanks gowri..

it is solved.