SAP EHSB_SCRT_TEXT_DELETE Function Module for NOTRANSL: EHS: Löschen des angegebenen SAPscript-Textes
EHSB_SCRT_TEXT_DELETE is a standard ehsb scrt text delete 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: EHS: Löschen des angegebenen SAPscript-Textes 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 ehsb scrt text delete FM, simply by entering the name EHSB_SCRT_TEXT_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSB_SCRT
Program Name: SAPLEHSB_SCRT
Main Program: SAPLEHSB_SCRT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSB_SCRT_TEXT_DELETE 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 'EHSB_SCRT_TEXT_DELETE'"NOTRANSL: EHS: Löschen des angegebenen SAPscript-Textes.
EXPORTING
* I_LANGUAGE = SY-LANGU "Language
I_TABLENAME = "Table Name
* I_FIELDNAME = ' ' "
I_RECN = "Record Number
I_ACTN = "GUID Number
* I_FLG_EXIST_CHCK = ESP1_TRUE "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
TEXT_NOT_FOUND = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for EHSB_SCRT_TEXT_DELETE
I_LANGUAGE - Language
Data type: THEAD-TDSPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TABLENAME - Table Name
Data type: ESP1_TAB_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELDNAME -
Data type: ESP1_FIELD_NAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RECN - Record Number
Data type: EHSBS_UKEY_GUID-RECNOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTN - GUID Number
Data type: EHSBS_UKEY_GUID-ACTNOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_EXIST_CHCK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TEXT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal System Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHSB_SCRT_TEXT_DELETE 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_i_language | TYPE THEAD-TDSPRAS, " SY-LANGU | |||
| lv_text_not_found | TYPE THEAD, " | |||
| lv_i_tablename | TYPE ESP1_TAB_NAME, " | |||
| lv_internal_error | TYPE ESP1_TAB_NAME, " | |||
| lv_i_fieldname | TYPE ESP1_FIELD_NAME, " SPACE | |||
| lv_i_recn | TYPE EHSBS_UKEY_GUID-RECN, " | |||
| lv_i_actn | TYPE EHSBS_UKEY_GUID-ACTN, " | |||
| lv_i_flg_exist_chck | TYPE ESP1_BOOLEAN. " ESP1_TRUE |
|   CALL FUNCTION 'EHSB_SCRT_TEXT_DELETE' "NOTRANSL: EHS: Löschen des angegebenen SAPscript-Textes |
| EXPORTING | ||
| I_LANGUAGE | = lv_i_language | |
| I_TABLENAME | = lv_i_tablename | |
| I_FIELDNAME | = lv_i_fieldname | |
| I_RECN | = lv_i_recn | |
| I_ACTN | = lv_i_actn | |
| I_FLG_EXIST_CHCK | = lv_i_flg_exist_chck | |
| EXCEPTIONS | ||
| TEXT_NOT_FOUND = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " EHSB_SCRT_TEXT_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM EHSB_SCRT_TEXT_DELETE
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 TDSPRAS FROM THEAD INTO @DATA(ld_i_language). | ||||
| DATA(ld_i_language) | = SY-LANGU. | |||
| DATA(ld_i_fieldname) | = ' '. | |||
| "SELECT single RECN FROM EHSBS_UKEY_GUID INTO @DATA(ld_i_recn). | ||||
| "SELECT single ACTN FROM EHSBS_UKEY_GUID INTO @DATA(ld_i_actn). | ||||
| DATA(ld_i_flg_exist_chck) | = ESP1_TRUE. | |||
Search for further information about these or an SAP related objects