Ansicht
Dokumentation

ABENTEXT_SYMBOLS - TEXT SYMBOLS

ABENTEXT_SYMBOLS - TEXT SYMBOLS

Fill RESBD Structure from EBP Component Structure   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Text Symbols

A text symbol is a named data object of an ABAP program that is not declared in the program itself but is maintained as a part of the text elements of the program. A text symbol has the data type c and the length defined in the text elements by mlen.

A text symbol behaves like a constant and can be specified in read positions using its names as follows:

... text-idf ...

Here, idf is the three-character ID of the text symbol, which can be composed of all alphanumeric characters including "_". The text symbol is then taken from the currently loaded text pool.

If the text symbol does not exist in the currently loaded text pool, text-idf is handled like an initial single-character text field.

A text symbol can be linked to text field literals using the following syntax:

... 'Literal'(idf) ...

If the text symbol exists in the currently loaded text pool, it replaces the literal. If the text symbol does not exist, the literal is used.

Notes

  • Like all text elements, text symbols are linked to the translation environment. They can be used in all locations where translated texts are to be displayed by the program.
  • The maximum length of a text symbol should be chosen so that there is enough space available for the translation. For example, the German translation of the six-character English word "window" requires seven characters ("Fenster").
  • The identifier text-idf is reserved for text symbols. A structure called text cannot have any components with three-character names. It is best never to call a structure text. This can cause syntax errors, particularly in structures that reference global data types.

Example

Access to the text symbol exa of the current program. If available, its text is displayed. If not, the text field literal is used in the first case and a blank is used in the second case.






BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.

Length: 3262 Date: 20240427 Time: 035638     sap01-206 ( 50 ms )