Start of Content Area

Process documentation Text Header : THEAD   Locate the document in its SAP Library structure

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 form into which the text module is output.

 

TDFORM: form for output

If a form is allocated to a text module, this field contains the name of the form. The system then uses the formatting information of the form 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

The field contains the version number of the text. When creating the text, the system sets the number to 1. For each change to the text, the system increases the number by 1. If you delete a text module and create a new one using the same name, the value is reset to 1.

 

TDFUSER: name of the user who created the text

This field contains the name of the user who created the text module. The system retrieves the user name from the system field SYST-UNAME. The field contents remain the same, even if the text module is changed. If you delete a text module and create a new one using the same name, the system enters the currently active user into the field.

 

TDFRELES: release at which the text was created

This field contains the release of the SAP system at which the text module was created. The system retrieves the value from the system field SYST-SAPRL. The field contents remain the same, even if the text module is changed. If you delete the text module and create a new one using the same name, the system enters the current SAP release into this field.

TDFDATE: creation date

The field contains the complete date of the day on which the text module was created. The system retrieves the value from the system field SYST-DATUM. The field contents remain the same, even if the text module is changed. If you delete the text module and create a new one using the same name, the system enters the current date of day as creation date.

 

TDFTIME: creation time

The field contains the time of day at which the text module was created. The system retrieves the value from the system field SYST-UZEIT. The field contents remain the same, even if the text module is changed. If you delete the text module and create a new one using the same name, the system enters the current time of day as creation time.

 

TDLUSER: name of the user who last changed the text

The field contains the name of the user who last changed and saved the text module. The system retrieves the value from the system field SYST-UNAME. If the text module is new, this field contains the same value as TDFUSER.

 

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

The field contains the release of the SAP system at which the last change to the text module took place. The system retrieves the value from the system field SYST-SAPRL. If the text module is new, this field contains the same value as TDFRELES.

 

TDLDATE: date of last change

The field contains the complete date of the day on which the text module was last changed and saved. The system retrieves the value from the system field SYST-DATUM. If the text module is new, this field contains the same value as TDFDATE.

 

TDLTIME: time of last change

The field contains the complete time of day at which the text module was last changed and saved. The system retrieves the value from the system field SYST-UZEIT. If the text module is new, this field contains the same value as TDFTIME.

 

TDLINESIZE: line width in the editor

The field contains the line width of the text module. This is the line width for formatting the text in ITF format, that is, the format used for display in the editor. The lines of a paragraph are formatted in the width specified here, however, no wider than 72 characters. Exceptions are lines with paragraph formats that exclude the lines from formatting (command lines, long text lines, raw lines...). This line width has nothing to do with the line width when formatting a text for print output. The latter is determined individually for each paragraph by settings in the form and in the style.

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

 

TDTXTLINES: number of text lines

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)

This field is interpreted for forms (object = FORM) and styles (object =STYLE) only. Forms and styles consist of a definition part and a text part. The definition part is language-independent and occurs only once, whereas the text part can occur in several languages. This field specifies which of the existing languages is the original language, that is, the basis for translation. The definition part is also stored as text module and must, therefore, have a language key even though it is language-independent. The original language thus also determines the language key of the definition part of a style or form.

 

TDTRANSTAT: translation status (only for forms and styles)

 

TDMACODE1: short title 1

The field should contain a short title in the form of a key word. When searching for standard texts, the selection can be limited by entering a search character string for this field.

 

TDMACODE2: short title 2

The field should contain a short title in the form of a key word. When searching for standard texts, the selection can be limited by entering a search character string for this field.

 

TDREFOBJ: object of the reference text

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

 

TDREFNAME: name of the reference text

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

 

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 module refers.

 

TDTEXTTYPE: text format

Texts can be stored in different text formats. This field contains the name of the format of the text module. If the field is empty, SAPscript assumes that the text lines have ITF format and calls the SAPscript text editor. If the field contains a value, the system assumes a non-SAPscript format and calls the word processing program competent for this format.

 

TDOCLASS: object class

To allocate a text object to an application class, you can specify the name of a program class in this field. The value must be defined in table TRCL. SAPscript uses this field only for maintaining forms.

 

TDHYPHENAT: not used

 

TDCOMPRESS: not used