You recognize named text elements by the paragraph format /E. In the line editor, such a paragraph may look like this:
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 that names of text elements are valid only locally. That is, different windows may contain text elements with the same names.
If you use the PC editor, press the appropriate push button to insert text elements. The system highlights them in a different color (
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):
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.