2008 Nov 19 1:32 PM
Hi,
Does someone know if it's possible in a function module to use text symbols declared in another program (report) ?
Are Text symbols a part of a report / MF or different objects that can be used outside ?
Thanks
2008 Nov 19 1:33 PM
Text symbols are native to a program. It is not possible to use them outside a program.
2008 Nov 19 1:33 PM
Text symbols are native to a program. It is not possible to use them outside a program.
2008 Nov 19 1:46 PM
Ok, thanks.
What kind of object could i use to store texts in a program (report) ans use it in another report or FM ?
Message class ?
2008 Nov 19 1:52 PM
Yes, a message class can be used to store all the messages that you want to give. You can use the same in other programs.
REPORT ZTEST
NO STANDARD PAGE HEADING
MESSAGE-ID zuh_mcl.
Thanks,
Jayant
2008 Nov 19 1:45 PM
Hello,
Text symbols are specific to program. If you want texts that are not program specific you need to you the standard texts (SO10).
Hope it helps.
Thanks,
Jayant
2008 Nov 19 1:52 PM
Hi,
Text symbols are special text constants that you enter and maintain independently of the program code.
It is not possible to use them outside a program.
Regard's,
Naresh P
2009 Oct 20 10:03 AM
If you really need to access a text symbol of a different program or class, you can use the ABAP statement [READ TEXTPOOL|http://help.sap.com/abapdocu_70/en/ABAPREAD_TEXTPOOL.htm].
To access the text symbols associated to a class, you need to use its include name, e.g.
READ TEXTPOOL 'CL_OSME_GENERATOR=============CP' ...
to access the text symbols of the class CL_OSME_GENERATOR. You can use the class CL_OO_INCLUDE_NAMING to determine the include name of a class.
Of course, the online text repository is the better way to provide a central storage point for texts you want to use in many different programs.