Start of Content Area

Text Format   Locate the document in its SAP Library structure

You can use the SAPscript programming interface not only to maintain texts in the SAPscript format ITF but also to pass texts with other formats. When calling the SAPscript function modules, the system passes all text lines, independent of their format, in a line table with the structure TLINE.

However, you can pass texts with other formats only to certain text modules. And the function modules EDIT_TEXT_FORMAT_xxx or PRINT_TEXT_FORMAT_xxx must exist for editing and printing these texts (xxx = text format). These function modules create a connection to the word processing program that can process the specified format.

You can define the text format both in table TTXOB and in table TTXID in the field TDTEXTTYPE, according to the following priority rules:

Table describing the text format

TTXOB-TDTEXTTYPE

TTXID-TDTEXTTYPE

Text format

> SPACE

= SPACE

from table TTXOB

> SPACE

> SPACE

from table TTXID

= SPACE

> SPACE

from table TTXID

= SPACE

= SPACE

SAPscript ITF format

 

When initializing a text using the function module INIT_TEXT, the system passes the text format to the field TDTEXTTYPE of the text header, depending on how tables TTXOB or TTXID are set and on the priority rules described above.

For an individual text, you can modify the text format by entering the desired format into this field of the text header after the call of function module INIT_TEXT. The system saves the new text format together with the text module.

Note

To modify the text format of an existing text, you must convert the text from the old to the new format, using special converters supplied by the SAPscript programming interface.