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

Read text elements in all languages

Former Member
0 Likes
3,039

Hi.

I have a simple question at first sight.

I have text element in my report. How can I read it in all existing for it languages?

In READ TEXTPOOL... and FMs that use this command the language should be defined.

But I need a universal solution in case my text elemnt will be translated into another languages later.

Does anybody know the answer?

5 REPLIES 5
Read only

Former Member
0 Likes
1,652

Hi

just give system variable SY-LANGU to the Language parameter of the Function module, it will automatically change the text in the login language.

Regards

Rajnesh D

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,652

Hi,

Select all languages in ur system into internal table. Check the table T002 for the valid languages in ur system.


        SELECT spras INTO TABLE i_t002
               FROM t002.

LOOP AT i_t002 INTO wa.
    READ TEXTPOOL 'PROGRAM NAME' INTO i_texts LANGUAGE wa-spras.
LOOP AT i_texts INTO wa.
"  print the data.
ENDLOOP.

ENDLOOP.

Thanks,

Vinod.

Edited by: Vinod Reddy Vemuru on Mar 6, 2009 6:28 PM

Read only

0 Likes
1,652

Yes, it will work. But it's not very nice and fast.

I hope there could be more general solution.

Read only

0 Likes
1,652

Hi,

If u just want to check in what languages it is maintained then u can make use of table

REPOTEXT. Paa the program name to this table. When ever u maintain translation in a language

an entry will be created in this table. So number of entries in this table = number of languages translatiions maintained.

But u wont get the actual text from this table. Its in compressed format.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,652

Hi

Get all languages to a internal table

and loop that internal table and call the FM inside the loop