Start of Content Area

DELETE_TEXT   Locate the document in its SAP Library structure

Use DELETE_TEXT to delete one or more text modules from the text file. You can enter generic values in the fields NAME, ID, and LANGUAGE. Depending on the corresponding text object, the system either deletes the texts directly or flags them in the text memory as to be deleted.

 

Function call:

 

CALL FUNCTION 'DELETE_TEXT'
EXPORTING CLIENT = SY-MANDT

OBJECT = ?...

NAME = ?...

ID = ?...

LANGUAGE = ?...

SAVEMODE_DIRECT = SPACE

TEXTMEMORY_ONLY = SPACE

EXCEPTIONS NOT_FOUND =

 

Export parameters:

CLIENT

Specify the client in which the text you want to delete is stored. If you omit this parameter, the system uses the current client as default.

This parameter is only valid for direct storage; it is not valid if you use the text memory.

Reference field: SY-MANDT

Default value: SY-MANDT

OBJECT

Enter the name of a text object. The system then deletes only those texts that are allocated to this text object.

Reference field: THEAD-TDOBJECT

NAME

The parameter indicates the name of the text module to be deleted. You can enter a generic value.

Reference field: THEAD-TDNAME

ID

Enter the text ID of the text you want to delete. You can enter a generic value.

Reference field:THEAD-TDID

LANGUAGE

Enter the language key of the text module. You can enter a generic value.

Reference field: THEAD-TDSPRAS

SAVEMODE_DIRECT

You determine the storage mode of a text module (direct, in update task) via the text object in table TTXOB. However, it may be necessary to replace storage in update task with direct storage of a text (for example, for background processing).

Possible values:

' ' Storage mode according to text object

'X' Save text module directly

Default value: SPACE

TEXTMEMORY_ONLY

Use this parameter to indicate that you want the delete function to apply for the text memory only. If the parameter contains 'X', the system does not delete the text itself from the text memory but only its entry. This allows you to rollback all changes made to a text during a transaction.

The parameter is valid only for texts stored in the text memory.

 

Exceptions:

NOT_FOUND

The system did not find the specified text module.