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 : Error when generating text environment .

0 Kudos
2,180

HI All,

I've got error :

Runtime Errors TEXTENV_INVALID

Exception CX_SY_LOCALIZATION_ERROR

The exception, which is assigned to class 'CX_SY_LO caught and therefore caused a runtime error.

The reason for the exception is:

The semantic structure of a number of ABAP/4 statem functions is determined by the text environment.

environment depends on .The text environment depends on the following:

(1) the system installation

(2) the current user

(3) any explicit "SET LOCALE" statements which occu

The text environment consists of

- the language,

- the locale categories LC_CTYPE and LC_COLLATE

- the SAP character set

Normally, the text environment is determined by the language.

The "SET LOCALE" statement also allows you to specify a particular

text environment by using the options "LANGUAGE l", "COUNTRY c"

and/or "MODIFIER m".

In this case, operation "SET LOCALE" was used to select the text environment

for

language = 7

country = " "

modifier = " "

with

locale = "nl_NL.ISO8859-1"

codep page = 1100

but an error occurred.

Since text environments are normally determined via environment table TCP0C, there is probably an inconsistent

table TCP0C.

Please Help.

Thanks.

3 REPLIES 3

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,283

Hi,

please check your operating system (probably via "locale -a") regarding installed locales.

Is the locale "nl_NL.ISO8859-1" available ?

Best regards,

Nils Buerckel

SAP AG

0 Kudos
1,283

Hi Nils, thanks for your reply,

yes, value nl_NL.ISO8859-1 is already in table TPC0C.

but actually we do not need that language to install, because we are in malaysia

we just install language EN and DE only.

( Run program RSCPINST via se38 ).

rgds.

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,283

Hi,

this indicates that someone in your system added the language key for Malaysia in a language dependent table.

In order to avoid the error you need to either install the locale on the server side or you need to find out the according table and change the language key in the data.

Best regards,

Nils Buerckel

SAP AG