‎2009 Mar 06 12:47 PM
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?
‎2009 Mar 06 12:56 PM
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
‎2009 Mar 06 12:56 PM
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
‎2009 Mar 06 12:59 PM
Yes, it will work. But it's not very nice and fast.
I hope there could be more general solution.
‎2009 Mar 06 1:19 PM
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.
‎2009 Mar 06 12:58 PM
Hi
Get all languages to a internal table
and loop that internal table and call the FM inside the loop