Application Development 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: 

Text symbols

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Text symbols are native to a program. It is not possible to use them outside a program.

6 REPLIES 6

Former Member
0 Kudos

Text symbols are native to a program. It is not possible to use them outside a program.

0 Kudos

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 ?

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.