Start of Content Area

Style for Formatting Output  Locate the document in its SAP Library structure

The output format of SAPscript texts is controlled by character and paragraph formats. All output formats you may use for a certain text are combined in a style, which is allocated to the text. The style is stored in the text header in field TDSTYLE.

When creating a new text module using function module INIT_TEXT, the system can automatically store a default style in the text header. However, you must first define default styles for the objects concerned in table TTXOB in field TDSTYLE.

To change the style of a text after executing INIT_TEXT or READ_TEXT, enter the desired style in the text header. If you want to allocate a style for printing only, simply specify the style in the text header before calling the function modules PRINT_TEXT or WRITE_FORM_LINES. With certain text objects, the user can change the style in the text editor, provided the text interface offers the corresponding menu functions. The system then stores the style together with the text.