SAP SCRIPT 9


It must be specified with all SAPscript function modules supplied for processing a text module. Its structure is described in the structure THEAD. The lines table accepts the lines of a text. The structure of a text line is determined by the structure TLINE.

All text lines passed to SAPscript using the function module interface must have this line structure. The specified work areas can contain the information for one text only. If you want to process several texts at the same time, you must create a work area set for each text.

After completely processing one text, for example, after saving the text, its work areas can be used for another text. To do this, either use, for example, READ_TEXT to transfer a new text into the work areas, or use INIT_TEXT to initialize them for a new text module. Text header : THEAD Structure TLINE of the lines table Example: Create work areas in the program TEXT HEADER: THEAD The text header contains all administrative information on a text module.

You must specify it with all SAPscript function modules that exist for processing a text module. You must create one set of work areas for each text module you want to process using SAPscript. However, you can reuse such a set of work areas after processing of the old text module is complete. The text header contains the following fields: TDOBJECT: application object of the text The field is part of the text key. It contains the name of the text object to which the text is allocated.

This object must be defined in table TTXOB. TDNAME: name of the text The field is part of the text key. It contains the name of the text module. This name may be up to 70 characters long. An internal structure of the text name is preset by the text object, but not interpreted by SAPscript. TDID: ID of the text The field is part of the text key.

It contains the name of the text ID to which the text module belongs. The text ID must be defined in table TTXID together with the text object. TDSPRAS: language key of the text The field is part of the text key. It contains the language key of the language used to enter the text lines of the text module.

The language key must be defined in table T002. TDTITLE: short description of the text This field can be used to store a short description of the contents of the text module. To maintain the field, in the editor choose Goto -> Header. With standard texts, you can use the search function to find texts that contain certain character strings in this field.

TDSTYLE: style including paragraph and character formats

If a style is allocated to a text module, this field contains the name of the style. The system then edits paragraphs according to the definitions in this style. If no style is specified, the system uses the corresponding information from the layout set into which the text module is output.



RELATED POSTS

SAP SCRIPTS PART 10

No comments :

Post a Comment