Start of Content Area

Process documentation Deleting Texts  Locate the document in its SAP Library structure

To explicitly delete texts from the text file, use DELETE_TEXT and specify the key of the desired text. You must not read the text first.

With DELETE_TEXT, you can specify the text name, text ID, and text language generically as well. This allows you to delete, for example, all texts belonging to an application object, in one call.

Example

Delete all texts with company code 0001 for customer 4711.

CALL FUNCTION 'DELETE_TEXT'

EXPORTING OBJECT = 'KNB1'

NAME = '00000047110001'

ID = '*'

LANGUAGE = '*'.

Example

Delete all company code-related texts of customer 4711.

CALL FUNCTION 'DELETE_TEXT'

EXPORTING OBJECT = 'KNB1'

NAME = '0000004711*'

ID = '*'

LANGUAGE = '*'.

The texts are deleted from the text file immediately, if the text object of the text(s) is set to direct storage. If it is set to storage in update task, the deletion request is stored in the text memory first. The function module COMMIT_WORK then transfers the request to the log file, from where it is executed with the next COMMIT WORK.

The function module DELETE_TEXT can handle only texts that are stored in the text file, that is, text with storage mode 'D' or 'V'.