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

Text Symbols

Former Member
0 Likes
3,651

HI can any body tell me

what is the use of text symbols in reports and steps to create them.

thanks in advance

kp

HI can any body tell me

what is the use of text symbols in reports and steps to create them.

thanks in advance

kp

8 REPLIES 8
Read only

Former Member
0 Likes
1,796

Hi!

Text symbols are language dependent pre-defined texts.

In SE38, you can create them, on the selection screen choose the text elements radio button and click modify.

Or inside the editor choose menu Goto - Text elements.

Give an alphabetic identifier and give the text, for example A01 - Apple

In the program source code you can address the text like this: TEXT-A01.

Regards

Tamás

Message was edited by:

Tamás Nyisztor

Read only

Former Member
0 Likes
1,796

hi,

for creating text elements just type text-001. in your program and double click on that, it will bring a screen where you can set the text for it.

for example

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_devcl FOR tdevc-devclass.

SELECT-OPTIONS : s_objna FOR ybstpopt1-objna.

SELECTION-SCREEN : END OF BLOCK b1.

dbl click on the text-001 and enter the text.

Message was edited by:

Navneeth Bothra

Read only

Former Member
0 Likes
1,796

HI KP,

Text-symbols are a way of avoiding the hard coding the texts information in reports. It also facilitates the translation of texts when the program is run in any other logon language.

eG:

write:/ 'Hello'(001).

Double Click on 001. It will let you create a text for 001. in a sequence of easy steps. YOu have to finally save the text symbols and activate them.

Regards,

Ravi

Read only

Former Member
0 Likes
1,796

<b>A text symbol is a named data object that is generated when you start the program from the texts in the text pool of the ABAP program. It always has the data type c. Its field length is that of the text in the text pool.

Text symbols, along with the program title, list headings, and selection texts, belong to the text elements of a program. Text elements allow you to create language-independent programs. Any text that the program sends to the screen can be stored as a text element in a text pool. Different text pools can be created for different languages. When a text element is changed or translated, there is no need to change the actual program code. Text elements in an ABAP program are stored in the ABAP Editor </b>

WRITE: text-010,

/ text-aaa,

/ text-020,

/ 'Default Text 030'(030),

/ 'Default Text 040'(040).

double click on text-010 give description

double click on text-aaa give description

double click on text-020 give description

Read only

0 Likes
1,796

Hi,

is there any range for the number.

please give if any restrictions of using the number range

thanks in advance

kp

Read only

0 Likes
1,796

You can have any 3 characters from '000' to 'ZZZ'

i.e

TEXT-000 TO TEXT-ZZZ.

Read only

Former Member
0 Likes
1,796

Hai KP,

Its very simple to say about Text elements.

1. These are client dependent objects. Just like SAP-Scripts.

2. Its can be used instead of harding coding stuff in the write statements, in ALV field catlogs,in the internal tableetc

3.It can be created in two ways.

a.By the program se38

b.by the transaction code se32.

4.Text elements are language dependent.

Thanks

Manju

Read only

Former Member
0 Likes
1,796

HI KP......

A text symbol is a named data object of the ABAP program. It always has the data type c. Its field length is that of the text in the text pool.

Text symbol belongs to the text elements of a program. Text elements allow you to create language-independent programs.

If u have any 'Hard coded' text in your program, then u need to create these Text Symbols..to make the TRANSLATION for that Hard coded Text, in the desired language,

Suppose you wrote a Report in <b>English Lang,</b> and some one logged on to <b>DE language</b> and executes your program .then they will get these type of problems.

1.<b> If your Text has No Text Symbol .

Then That hard coded text will be displayed as it is in English language only, which may not be understood by that user.

2. If your Text has Text Symbol and it is not maintained Translation.

Then That hard coded text will not be displayed in output .

3. The thing that wat we need to do is.

Text must have a Text Symbol and if it maintaines the Translation to the desired language ( here DE ) .</b>

Then in output he will get Translated Text in his login (DE) language,which will be better understood to that person....

<b> By these we can make the Reports as language-independent .</b>