06-13-2007 9:17 PM
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 ??
08-11-2008 9: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
06-14-2007 12:51 PM
Hi,
You need to translate the message to languages as you needed .
Use Transaction Code SE63 for translation.
aRs
06-14-2007 1:00 PM
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.
08-11-2008 9:04 PM
08-11-2008 9: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