SAP EHSB_LBLS_CUST_COPY Function Module for NOTRANSL: EHS: Kopieren von sprachabhängigen Customizing Texten
EHSB_LBLS_CUST_COPY is a standard ehsb lbls cust copy 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: Kopieren von sprachabhängigen Customizing Texten 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 cust copy FM, simply by entering the name EHSB_LBLS_CUST_COPY 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_CUST_COPY 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_CUST_COPY'"NOTRANSL: EHS: Kopieren von sprachabhängigen Customizing Texten.
EXPORTING
* I_SOURCE_LANGUAGE = 'E' "Language Key
* I_TARGET_LANGUAGE = "Language Key
* I_FLG_PS = ESP1_FALSE "
* I_FLG_IH = ESP1_FALSE "
* I_FLG_DG = ESP1_FALSE "
* I_FLG_7BIT_ERROR = ESP1_TRUE "
* I_FLG_NOT_7BIT_REPL = ESP1_TRUE "
* I_FLG_TEST = ESP1_TRUE "
IMPORTING Parameters details for EHSB_LBLS_CUST_COPY
I_SOURCE_LANGUAGE - Language Key
Data type: T002-SPRASDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TARGET_LANGUAGE - Language Key
Data type: T002-SPRASOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PS -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_IH -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_DG -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_7BIT_ERROR -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_NOT_7BIT_REPL -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_TEST -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHSB_LBLS_CUST_COPY 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_source_language | TYPE T002-SPRAS, " 'E' | |||
| lv_i_target_language | TYPE T002-SPRAS, " | |||
| lv_i_flg_ps | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_ih | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_dg | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_7bit_error | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_not_7bit_repl | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_test | TYPE ESP1_BOOLEAN. " ESP1_TRUE |
|   CALL FUNCTION 'EHSB_LBLS_CUST_COPY' "NOTRANSL: EHS: Kopieren von sprachabhängigen Customizing Texten |
| EXPORTING | ||
| I_SOURCE_LANGUAGE | = lv_i_source_language | |
| I_TARGET_LANGUAGE | = lv_i_target_language | |
| I_FLG_PS | = lv_i_flg_ps | |
| I_FLG_IH | = lv_i_flg_ih | |
| I_FLG_DG | = lv_i_flg_dg | |
| I_FLG_7BIT_ERROR | = lv_i_flg_7bit_error | |
| I_FLG_NOT_7BIT_REPL | = lv_i_flg_not_7bit_repl | |
| I_FLG_TEST | = lv_i_flg_test | |
| . " EHSB_LBLS_CUST_COPY | ||
ABAP code using 7.40 inline data declarations to call FM EHSB_LBLS_CUST_COPY
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 SPRAS FROM T002 INTO @DATA(ld_i_source_language). | ||||
| DATA(ld_i_source_language) | = 'E'. | |||
| "SELECT single SPRAS FROM T002 INTO @DATA(ld_i_target_language). | ||||
| DATA(ld_i_flg_ps) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_ih) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_dg) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_7bit_error) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_not_7bit_repl) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_test) | = ESP1_TRUE. | |||
Search for further information about these or an SAP related objects