Skip to Content
author's profile photo Former Member
Former Member

Changing the current language

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 ??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 11, 2008 at 08:20 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 14, 2007 at 11:51 AM

    Hi,

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

    Use Transaction Code SE63 for translation.

    aRs

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 08:04 PM

    It works only for the locale program

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.