
The field TDTEXTTYPE was included in the text header for Release 3.0. The format in which the text module is stored is recorded in this field. If the field is empty, the text module has the SAPscript ITF format, otherwise it is a text which does not exist in the SAPscript format.
The headers of these text modules are stored in table STXH as SAPscript texts, the lines however in table STXB. This table is read or written exactly as the STXL with the ABAP commands IMPORT/EXPORT.
Texts which do not exist in the ITF format can be transferred to the interface of the following function modules READ_TEXT, INIT_TEXT, DELETE_TEXT, COPY_TEXTS, SAVE_TEXT, SELECT_TEXT, RENAME_TEXT and COMMIT_TEXT. SAPScript does not interpret the contents of the line table for these function modules. This way these function modules can process text modules in any format.
Calling up the editor can be carried out via the function module EDIT_TEXT. This module checks the text format and calls EDIT_TEXT_FORMAT_x, which is an editor specific for this text format, where x is the contents of the field TDTEXTTYPE. The connection to the external word processor must then be made in this function module. The same procedure is implemented for printing the text module via the function module PRINT_TEXT. Here a format-specific function module PRINT_TEXT_FORMAT_x is called up, which must implement the printout of the text module.
Mixing texts in SAPscript format and texts in external format is not possible. The following restrictions result for texts in the external format: