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: 

Changing the current language

Former Member
0 Kudos

Hi,

I'm writing a ABAP proxy for a interface with XI.

In the interface has a element(importing parameter) where the language is defined

XI always make a connection with ECC in English (EN).

My program will execute a standard function of ECC that return a lot of messages. this messages is generate with standards ABAP statement, like text-001

I need this messages in the language defined in the interface parameters.

I Tried to use

SET LANGUAGE 'S'

before the call function, it works, but only for current program, just like the help explanation. The output messages of the standards functions steel returning in logon language (another program).

I Tried to use

SET LOCALE LANGUAGE 'S'

In according with help, this statement changes the language of the internal session, it changes the value of sy-langu field, but messages steel returning in logon language

I Cannot change the standards functions.

I Cannot translate the output messages of the standards functions because it can contain a set of placeholders

Any suggestions ??

1 ACCEPTED SOLUTION

karol_seman
Active Participant
0 Kudos

Hi Darley,

it isn't exactly what you want but maybe it can helps you. If you need to get error messages (from your text elements defined for your program) you can use command


READ TEXTPOOL prog ... INTO itab ... LANGUAGE lg. 

where you can specify any language in which you have translation and then you can use command MESSAGE to display the text you get from TEXTPOOL. So you also get text-001 in specified language (doesn't matter on which language you logged on).

I hope this can helps you if you don't find any other solution.

Regards,

Karol

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos

Hi,

You need to translate the message to languages as you needed .

Use Transaction Code SE63 for translation.

aRs

0 Kudos

The messages was translated.

My problem is:

I'm logged in English and I need the messages in spanish, for example.

Remember, is the standard functions that generate this messages.

Former Member
0 Kudos

It works only for the locale program

karol_seman
Active Participant
0 Kudos

Hi Darley,

it isn't exactly what you want but maybe it can helps you. If you need to get error messages (from your text elements defined for your program) you can use command


READ TEXTPOOL prog ... INTO itab ... LANGUAGE lg. 

where you can specify any language in which you have translation and then you can use command MESSAGE to display the text you get from TEXTPOOL. So you also get text-001 in specified language (doesn't matter on which language you logged on).

I hope this can helps you if you don't find any other solution.

Regards,

Karol