‎2010 Mar 12 3:48 PM
Hi,
how can I read standard text from the message class using a special language. In my case the user is logged in in German, but i like to read out the text in english.
test = text-e01.
Any ideas?
Thanks
Stefan
‎2010 Mar 12 3:53 PM
Are teh messages stored in a message class tcode Se91 ..?
Then in that case You need to use teh FM FORMAT_MESSAGE by passing the message id and message no .
If the texts are maintained in germand then u need to translate them by using se63 . " check this as im not sure on teh tcode.
Br,
Vijay.
‎2010 Mar 12 3:53 PM
Are teh messages stored in a message class tcode Se91 ..?
Then in that case You need to use teh FM FORMAT_MESSAGE by passing the message id and message no .
If the texts are maintained in germand then u need to translate them by using se63 . " check this as im not sure on teh tcode.
Br,
Vijay.
‎2010 Mar 12 3:59 PM
Hi,
the texts are maintained in both languages but if I get the text, SAP is using the login language - any idea - maybe i can get the texts from the table where they stored, anyone know this table?
Stefan
‎2010 Mar 12 4:01 PM
in this FM there is an field called language .. just pass EN and DE and check this working in SE37.
execute the FM if this works for u
Br,
Vijay.
‎2010 Mar 12 4:04 PM
‎2010 Mar 12 4:10 PM
‎2010 Mar 12 4:31 PM
Hi,
you are right - it works for Message class - but I rechecked my programm - it is using progamm text - and it looks like, that this texts are not in table t100 - so the FM raised an exception.
Stefan
‎2010 Mar 12 4:31 PM
Hi
Use the FM RP_READ_T100, it contains the parameter SPRAS that you need and it contains the message class and its number.
Kleber Santos
‎2010 Mar 12 4:37 PM
Hi Stefan
Use the code that follows
DATA: vl_prog TYPE progname VALUE 'ZTEST',
t_itab TYPE STANDARD TABLE OF textpool .
READ TEXTPOOL vl_prog INTO t_itab LANGUAGE sy-langu.
The internal table t_itab will contain the selection-screen texts and the text elements too.
Hope it helps
Kleber Santos
‎2010 Mar 12 4:40 PM