Show TOC

Text Header : THEADLocate this document in the navigation structure

Use

The text header includes all administrative information on a text module. It must be specified with all SAPscript function modules supplied for processing a text module.

You must create one set of work areas for each text module you want to process using SAPscript. The work area can, however, be used again when the processing of the text which was previously stored in it has been completed.

Process

The text header contains the following fields:

TDOBJECT: Application object of the text

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 module belongs. This object must be defined in table TTXOB.

TDNAME: Name of the text

TDNAME: Name of the text

The field is part of the text key. It contains the name of the text module. This name can have a maximum length of 70 characters. An internal structure of the text name is preset by the text object, but not interpreted by SAPscript.

TDID: ID of the text

TDID: ID of the text

The field is part of the text key. It contains the name of the text ID to which a text module belongs. The text ID must be defined in table TTXID together with the text object.

TDSPRAS: Language key of the text

TDSPRAS: Language key of the text

The field is part of the text key. It contains the language key of the language in which the text of the text module is entered. The language key must be defined in table T002.

TDTITLE: Short description of the text

TDTITLE: Short description of the text

A short description of the contents of the text module can be created in this field. 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

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 a style is not specified, the corresponding information is used from the layout set in which the text module is output.

TDFORM: Form for output

TDFORM: Form for output

If a form is allocated to a text module, this field contains the name of the form. The formatting information from this layout set is then used to format the text for output. However, the form specified here is used only, if the text is output using the function module PRINT_TEXT.

TDVERSION: Version number of the text

TDVERSION: Version number of the text

The field contains the version number of a text module. It is set to 1 when the text is created and increased by the value 1 each time the text is changed. If a text module is deleted and created again later under the same name, the value 1 is entered here again.

TDFUSER: Name of the user who created the text

TDFUSER: Name of the user who created the text

The name of the user who created the text module is specified here. The name of the user is taken from the field SYST-UNAME. This entry is not changed when the text module is changed. If a text module is deleted and created again later under the same name, the user active at that time is entered here.

TDFRELES: Release at which the text was created

TDFRELES: Release at which the text was created

The Release of the SAP System in which the text module was created is specified here. The contents of the field are taken from the field SYST-SAPRL. This entry is not changed when the text module is changed. If a text module is deleted and created again later under the same name, the SAP Release valid at that time is entered here.

TDFDATE: Creation date

TDFDATE: Creation date

The field contains the full date on which the text module was created. The value is taken from the field SYST-DATUM. This entry is not changed when the text module is changed. If a text module is deleted and created again later under the same name, the date of that day is set as the creation date.

TDFTIME. Creation time

TDFTIME. Creation time

The field contains the time at which a text module was created. The value is taken from the field SYST-UZEIT. This entry is not changed when the text module is changed. If a text module is deleted and created again later under the same name, the current time is set.

TDLUSER: Name of the user who last changed the text

TDLUSER: Name of the user who last changed the text

The name of the user who last changed and saved the text module is specified here. The name of the user is taken from the field SYST-UNAME. If the text is new, this field has the same value as TDFUSER.

TDLRELES: Release at which the last change to the text occurred

TDLRELES: Release at which the last change to the text occurred

The Release of the SAP System under which the text module was last changed is specified here. The contents of the field are taken from the field SYST-SAPRL. If the text is new, this field has the same value as TDFRELES.

TDLDATE: Date of last change

TDLDATE: Date of last change

The field contains the full date on which the text module was last changed and saved. The value is taken from the field SYST-DATUM. If the text is new, this field has the same value as TDFDATE.

TDLTIME: Time of last change

TDLTIME: Time of last change

The field contains the time at which a text module was last changed and saved. The value is taken from the field SYST-UZEIT. If the text is new, this field has the same value as TDFTIME.

TDLINESIZE: Line width in the editor

TDLINESIZE: Line width in the editor

This field contains the line width of the text module. It is the line width for text formatting in the ITF format, the format which is also displayed in the text editor. The lines of a paragraph are formatted to the width set here, at a maximum to the value 72 however. The exceptions are lines with paragraph formats which exclude formatting (command lines, extended text lines, raw lines, ...). The line width specified here is not related to the line width for formatting a text for printer output. This is defined by the settings in the layout set and style for the individual paragraphs.

The line width must have a value between 40 and 132.

TDTXTLINES: Number of text lines

TDTXTLINES: Number of text lines

This field contains the number of text lines in this text module. The field contains the number of text lines of this text module, which are stored in the corresponding lines table.

TDOSPRAS: Original language (only for forms and styles)

TDOSPRAS: Original language (only for forms and styles)

This field is only interpreted for layout sets (object = FORM) and styles (object = STYLE). Layout sets and styles consist of a definition section and a text section. The definition section is language-independent and only occurs once, while the text section can exist in several languages. Which of these languages is the original language and therefore the basis for translation is specified in this field. The definition section is also stored as a text module and must therefore have a language key although it is really language-independent. The original language therefore also determines the language key of the definition section of the style or layout set.

TDTRANSTAT: Translation status (only for forms and styles)

TDTRANSTAT: Translation status (only for forms and styles)

TDMACODE1: Short title 1

TDMACODE1: Short title 1

The field should contain a short title in the form of a key word. When searching for standard texts, the number found can be restricted if a search string is specified in this field.

TDMACODE2: Short title 2

TDMACODE2: Short title 2

The field should contain a short title in the form of a key word. When searching for standard texts, the number found can be restricted if a search string is specified in this field.

TDREFOBJ: Object of the reference text

TDREFOBJ: Object of the reference text

The field contains the object name of a reference text to which the current text refers.

TDREFNAME: Name of the reference text

TDREFNAME: Name of the reference text

The field contains the name of the reference text to which the current text refers.

TDREFID: Text ID of the reference text

TDREFID: Text ID of the reference text

The field contains the name of the text ID of the reference text to which the current text refers.

TDTEXTTYPE: Text format

TDTEXTTYPE: Text format

Texts can be available in various text formats. This field contains a key for the format of a text module. If the field is empty, SAPscript assumes that the text lines are available in ITF format and calls the SAPscript text editor. If it does contain a value, a non-SAPscript format is assumed and the word processor allocated to this format called.

TDOCLASS: Object class

TDOCLASS: Object class

In order to be able to assign a text object to an application class more easily, the name of a program class can be specified here. This value must be contained in table TRCL. SAPscript only uses this field when maintaining layout sets.

TDHYPHENAT: Not used

TDCOMPRESS: Not used