SAP EHSB_LBLS_TEXT_CONVERT Function Module for NOTRANSL: EHS: Textkonvertierung
EHSB_LBLS_TEXT_CONVERT is a standard ehsb lbls text convert 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: Textkonvertierung 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 lbls text convert FM, simply by entering the name EHSB_LBLS_TEXT_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSB_LBLS
Program Name: SAPLEHSB_LBLS
Main Program: SAPLEHSB_LBLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSB_LBLS_TEXT_CONVERT 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_LBLS_TEXT_CONVERT'"NOTRANSL: EHS: Textkonvertierung.
EXPORTING
* I_FLG_DATA_INPUT = ESP1_TRUE "
* I_LANGU = SY-LANGU "ABAP System Field: Language Key of Text Environment
* I_TEXTLINE = "
* I_FLG_ENFORCE_CONVERSION = ESP1_FALSE "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_FLG_CONVERTED = "
E_TEXTLINE = "
E_TEXTLINE_AS_XSTRING = "Predefined Type
CHANGING
* X_TEXTLINE_AS_XSTRING = "Predefined Type
IMPORTING Parameters details for EHSB_LBLS_TEXT_CONVERT
I_FLG_DATA_INPUT -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU - ABAP System Field: Language Key of Text Environment
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXTLINE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ENFORCE_CONVERSION - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHSB_LBLS_TEXT_CONVERT
E_FLG_CONVERTED -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_TEXTLINE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_TEXTLINE_AS_XSTRING - Predefined Type
Data type: XSTRINGOptional: No
Call by Reference: Yes
CHANGING Parameters details for EHSB_LBLS_TEXT_CONVERT
X_TEXTLINE_AS_XSTRING - Predefined Type
Data type: XSTRINGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for EHSB_LBLS_TEXT_CONVERT 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_e_flg_converted | TYPE ESP1_BOOLEAN, " | |||
| lv_i_flg_data_input | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_x_textline_as_xstring | TYPE XSTRING, " | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_e_textline | TYPE SY, " | |||
| lv_i_textline | TYPE SY, " | |||
| lv_e_textline_as_xstring | TYPE XSTRING, " | |||
| lv_i_flg_enforce_conversion | TYPE ESP1_BOOLEAN. " ESP1_FALSE |
|   CALL FUNCTION 'EHSB_LBLS_TEXT_CONVERT' "NOTRANSL: EHS: Textkonvertierung |
| EXPORTING | ||
| I_FLG_DATA_INPUT | = lv_i_flg_data_input | |
| I_LANGU | = lv_i_langu | |
| I_TEXTLINE | = lv_i_textline | |
| I_FLG_ENFORCE_CONVERSION | = lv_i_flg_enforce_conversion | |
| IMPORTING | ||
| E_FLG_CONVERTED | = lv_e_flg_converted | |
| E_TEXTLINE | = lv_e_textline | |
| E_TEXTLINE_AS_XSTRING | = lv_e_textline_as_xstring | |
| CHANGING | ||
| X_TEXTLINE_AS_XSTRING | = lv_x_textline_as_xstring | |
| . " EHSB_LBLS_TEXT_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM EHSB_LBLS_TEXT_CONVERT
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.| DATA(ld_i_flg_data_input) | = ESP1_TRUE. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
| DATA(ld_i_flg_enforce_conversion) | = ESP1_FALSE. | |||
Search for further information about these or an SAP related objects