Text Header : THEAD 
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.
The text header contains the following fields:
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The field contains the object name of a reference text to which the current text refers.
The field contains the name of the reference text to which the current text refers.
The field contains the name of the text ID of the reference text to which the current text refers.
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.
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.