Start of Content Area

Text Elements with Names  Locate the document in its SAP Library structure

You recognize named text elements by the paragraph format /E. In the line editor, such a paragraph may look like this:

This graphic is explained in the accompanying text

The character string NAME represents the name of the text element. This name can be up to 30 characters long and may consist of letters, digits and/or special characters. The name is followed by the text lines of this text element. The end of a text element definition is marked by the beginning of the next text element (the next /E line).

Note

Note that names of text elements are valid only locally. That is, different windows may contain text elements with the same names.

Note

If you use the PC editor, press the appropriate push button to insert text elements. The system highlights them in a different color ( See also: Representing Text Elements in the PC Editor).

 

To output named text elements, you must use the interface function module WRITE_FORM, which is called in the print program.

The example below shows text elements for a column heading within an invoice (AS indicates the standard paragraph format and,, indicates the tab):

This graphic is explained in the accompanying text

You can output named text elements only in the windows, in which they are defined. For this reason, you need in the interface function module WRITE_FORM, apart from the name of the text element, the name of the window in which the text element is defined. You call the interface function module from within the print program.