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

Ext prog check errors

Former Member
0 Likes
378

in my program,

TRANSLATE p_letter TO UPPER CASE.

and I am getting Ext Prog Check errors:

Dangerous use of TRANSLATE in a multilingual system

(The message can be hidden with "#EC TRANSLANG or "#EC SYNTCHAR)

How can I avoid this error without adding #EC...

kindly help.......

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
345

Hi,

If you wanna hide the error just put "#EC TRANSLANG last of statement:


TRANSLATE p_letter TO UPPER CASE.                        "#EC TRANSLANG

and to avoid this use GET LOCAL and SET LOCAL ie:


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 p_letter TO UPPER CASE.

regards,

2 REPLIES 2
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
345

Refer to the SAP documentation in these cases: [http://help.sap.com/abapdocu_70/en/ABAPTRANSLATE.htm]

Read only

Former Member
0 Likes
346

Hi,

If you wanna hide the error just put "#EC TRANSLANG last of statement:


TRANSLATE p_letter TO UPPER CASE.                        "#EC TRANSLANG

and to avoid this use GET LOCAL and SET LOCAL ie:


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 p_letter TO UPPER CASE.

regards,