Application Development and Automation 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: 
Read only

simple text reading

Former Member
0 Likes
1,171

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,130

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,131

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.

Read only

0 Likes
1,130

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

Read only

0 Likes
1,130

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.

Read only

0 Likes
1,130

Hi,

Its table T100

Read only

0 Likes
1,130

T100.

Read only

0 Likes
1,130

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

Read only

0 Likes
1,130

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

Read only

0 Likes
1,130

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

Read only

0 Likes
1,130

Thank you all.

Stefan