SAP DELETE_TEXT_FOR_OBJECT Function Module for NOTRANSL: Löschen von Texten zur gelöschten(reorganisierten) PM-Objekten
DELETE_TEXT_FOR_OBJECT is a standard delete text for object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Löschen von Texten zur gelöschten(reorganisierten) PM-Objekten processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for delete text for object FM, simply by entering the name DELETE_TEXT_FOR_OBJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: ITX1
Program Name: SAPLITX1
Main Program: SAPLITX1
Appliation area: I
Release date: 13-Aug-1993
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DELETE_TEXT_FOR_OBJECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'DELETE_TEXT_FOR_OBJECT'"NOTRANSL: Löschen von Texten zur gelöschten(reorganisierten) PM-Objekten.
EXPORTING
OBJECT = "Affected object (type)
OBJECT_NR = "Object number
* ROOTLENG = ' ' "Root name for composite text key
* ROOTOBJECT = ' ' "Root object for composite text key
* SHORT_TEXT_DEL = ' ' "Indicator whether short texts are to be deleted
* SPRAS = ' ' "Language of text to be deleted
* TXTID = ' ' "ID of the text to be deleted
IMPORTING Parameters details for DELETE_TEXT_FOR_OBJECT
OBJECT - Affected object (type)
Data type: TTXOB-TDOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT_NR - Object number
Data type: RM63T-OBJNROptional: No
Call by Reference: No ( called with pass by value option)
ROOTLENG - Root name for composite text key
Data type: DD01V-LENGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ROOTOBJECT - Root object for composite text key
Data type: THEAD-TDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_TEXT_DEL - Indicator whether short texts are to be deleted
Data type: EQKT-KZLTXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPRAS - Language of text to be deleted
Data type: EQKT-SPRASDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TXTID - ID of the text to be deleted
Data type: TTXID-TDIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DELETE_TEXT_FOR_OBJECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_object | TYPE TTXOB-TDOBJECT, " | |||
| lv_object_nr | TYPE RM63T-OBJNR, " | |||
| lv_rootleng | TYPE DD01V-LENG, " SPACE | |||
| lv_rootobject | TYPE THEAD-TDNAME, " SPACE | |||
| lv_short_text_del | TYPE EQKT-KZLTX, " SPACE | |||
| lv_spras | TYPE EQKT-SPRAS, " SPACE | |||
| lv_txtid | TYPE TTXID-TDID. " SPACE |
|   CALL FUNCTION 'DELETE_TEXT_FOR_OBJECT' "NOTRANSL: Löschen von Texten zur gelöschten(reorganisierten) PM-Objekten |
| EXPORTING | ||
| OBJECT | = lv_object | |
| OBJECT_NR | = lv_object_nr | |
| ROOTLENG | = lv_rootleng | |
| ROOTOBJECT | = lv_rootobject | |
| SHORT_TEXT_DEL | = lv_short_text_del | |
| SPRAS | = lv_spras | |
| TXTID | = lv_txtid | |
| . " DELETE_TEXT_FOR_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM DELETE_TEXT_FOR_OBJECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TDOBJECT FROM TTXOB INTO @DATA(ld_object). | ||||
| "SELECT single OBJNR FROM RM63T INTO @DATA(ld_object_nr). | ||||
| "SELECT single LENG FROM DD01V INTO @DATA(ld_rootleng). | ||||
| DATA(ld_rootleng) | = ' '. | |||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_rootobject). | ||||
| DATA(ld_rootobject) | = ' '. | |||
| "SELECT single KZLTX FROM EQKT INTO @DATA(ld_short_text_del). | ||||
| DATA(ld_short_text_del) | = ' '. | |||
| "SELECT single SPRAS FROM EQKT INTO @DATA(ld_spras). | ||||
| DATA(ld_spras) | = ' '. | |||
| "SELECT single TDID FROM TTXID INTO @DATA(ld_txtid). | ||||
| DATA(ld_txtid) | = ' '. | |||
Search for further information about these or an SAP related objects