SAP CBRC_EHS_FILL_EHS_EXAMPLE1 Function Module for NOTRANSL: Beispielimplementierung für Lesen von Zusatzdaten
CBRC_EHS_FILL_EHS_EXAMPLE1 is a standard cbrc ehs fill ehs example1 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: Beispielimplementierung für Lesen von Zusatzdaten 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 cbrc ehs fill ehs example1 FM, simply by entering the name CBRC_EHS_FILL_EHS_EXAMPLE1 into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_EHS
Program Name: SAPLCBRC_EHS
Main Program: SAPLCBRC_EHS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_EHS_FILL_EHS_EXAMPLE1 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 'CBRC_EHS_FILL_EHS_EXAMPLE1'"NOTRANSL: Beispielimplementierung für Lesen von Zusatzdaten.
EXPORTING
* I_WA_DET = "EHS: Data Determination Modules per Regulation/Scenario
* I_SUBCAT = "Specification Type
* I_FLG_CHG = "Truth Value
I_VALFR = "Current Date of Application Server
I_MAP_FCT = "Function Name
I_REG_TAB = "Table Type for CCRCS_REG
* I_MATNR_SUB_TAB = "Table Type Standard Error
I_SUBID_UPD_TAB = "EHS: Structure for subs. key (blocking logic, workflow, ...)
CHANGING
X_EHS_REG_TAB = "Table Type for CCRCT_EHS_REG
X_FLG_ERROR = "Truth Value
X_EHS_SLIMIT_TAB = "Table Type for CCRCT_EHS_SLIMIT
X_EHS_COMP_TAB = "Table Type for CCRCT_EHS_COMP
X_EHS_ADD_TAB = "Table Type for CCRCS_EHS_ADD_DATA
X_EHS_REG_DEL_TAB = "Table Type for CCRCT_EHS_REG
X_EHS_SLIMIT_DEL_TAB = "Table Type for CCRCT_EHS_SLIMIT
X_EHS_COMP_DEL_TAB = "Table Type for CCRCT_EHS_COMP
X_EHS_ADD_DEL_TAB = "Table Type for CCRCS_EHS_ADD_DATA
X_ERROR_TAB = "Table Type Application Log
TABLES
* I_SUBID_TAB = "SELECT-OPTIONS Table
IMPORTING Parameters details for CBRC_EHS_FILL_EHS_EXAMPLE1
I_WA_DET - EHS: Data Determination Modules per Regulation/Scenario
Data type: CCRCC_DETOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBCAT - Specification Type
Data type: ESESUBCATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHG - Truth Value
Data type: ESEBOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALFR - Current Date of Application Server
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_MAP_FCT - Function Name
Data type: FUNCNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_REG_TAB - Table Type for CCRCS_REG
Data type: CCRCTT_REGOptional: No
Call by Reference: No ( called with pass by value option)
I_MATNR_SUB_TAB - Table Type Standard Error
Data type: CCRCTT_FIELDSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBID_UPD_TAB - EHS: Structure for subs. key (blocking logic, workflow, ...)
Data type: RCG_SUBIDOptional: No
Call by Reference: Yes
CHANGING Parameters details for CBRC_EHS_FILL_EHS_EXAMPLE1
X_EHS_REG_TAB - Table Type for CCRCT_EHS_REG
Data type: CCRCTT_EHS_REGOptional: No
Call by Reference: Yes
X_FLG_ERROR - Truth Value
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
X_EHS_SLIMIT_TAB - Table Type for CCRCT_EHS_SLIMIT
Data type: CCRCTT_EHS_SLIMITOptional: No
Call by Reference: Yes
X_EHS_COMP_TAB - Table Type for CCRCT_EHS_COMP
Data type: CCRCTT_EHS_COMPOptional: No
Call by Reference: Yes
X_EHS_ADD_TAB - Table Type for CCRCS_EHS_ADD_DATA
Data type: CCRCTT_EHS_ADD_DATAOptional: No
Call by Reference: Yes
X_EHS_REG_DEL_TAB - Table Type for CCRCT_EHS_REG
Data type: CCRCTT_EHS_REGOptional: No
Call by Reference: Yes
X_EHS_SLIMIT_DEL_TAB - Table Type for CCRCT_EHS_SLIMIT
Data type: CCRCTT_EHS_SLIMITOptional: No
Call by Reference: Yes
X_EHS_COMP_DEL_TAB - Table Type for CCRCT_EHS_COMP
Data type: CCRCTT_EHS_COMPOptional: No
Call by Reference: Yes
X_EHS_ADD_DEL_TAB - Table Type for CCRCS_EHS_ADD_DATA
Data type: CCRCTT_EHS_ADD_DATAOptional: No
Call by Reference: Yes
X_ERROR_TAB - Table Type Application Log
Data type: CCRCTT_MSGOptional: No
Call by Reference: Yes
TABLES Parameters details for CBRC_EHS_FILL_EHS_EXAMPLE1
I_SUBID_TAB - SELECT-OPTIONS Table
Data type: RSELOPTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBRC_EHS_FILL_EHS_EXAMPLE1 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_wa_det | TYPE CCRCC_DET, " | |||
| lt_i_subid_tab | TYPE STANDARD TABLE OF RSELOPTION, " | |||
| lv_x_ehs_reg_tab | TYPE CCRCTT_EHS_REG, " | |||
| lv_x_flg_error | TYPE ESEBOOLE, " | |||
| lv_i_subcat | TYPE ESESUBCAT, " | |||
| lv_x_ehs_slimit_tab | TYPE CCRCTT_EHS_SLIMIT, " | |||
| lv_i_flg_chg | TYPE ESEBOOLE, " | |||
| lv_x_ehs_comp_tab | TYPE CCRCTT_EHS_COMP, " | |||
| lv_i_valfr | TYPE SY-DATUM, " | |||
| lv_x_ehs_add_tab | TYPE CCRCTT_EHS_ADD_DATA, " | |||
| lv_i_map_fct | TYPE FUNCNAME, " | |||
| lv_x_ehs_reg_del_tab | TYPE CCRCTT_EHS_REG, " | |||
| lv_i_reg_tab | TYPE CCRCTT_REG, " | |||
| lv_x_ehs_slimit_del_tab | TYPE CCRCTT_EHS_SLIMIT, " | |||
| lv_i_matnr_sub_tab | TYPE CCRCTT_FIELDS, " | |||
| lv_x_ehs_comp_del_tab | TYPE CCRCTT_EHS_COMP, " | |||
| lv_i_subid_upd_tab | TYPE RCG_SUBID, " | |||
| lv_x_ehs_add_del_tab | TYPE CCRCTT_EHS_ADD_DATA, " | |||
| lv_x_error_tab | TYPE CCRCTT_MSG. " |
|   CALL FUNCTION 'CBRC_EHS_FILL_EHS_EXAMPLE1' "NOTRANSL: Beispielimplementierung für Lesen von Zusatzdaten |
| EXPORTING | ||
| I_WA_DET | = lv_i_wa_det | |
| I_SUBCAT | = lv_i_subcat | |
| I_FLG_CHG | = lv_i_flg_chg | |
| I_VALFR | = lv_i_valfr | |
| I_MAP_FCT | = lv_i_map_fct | |
| I_REG_TAB | = lv_i_reg_tab | |
| I_MATNR_SUB_TAB | = lv_i_matnr_sub_tab | |
| I_SUBID_UPD_TAB | = lv_i_subid_upd_tab | |
| CHANGING | ||
| X_EHS_REG_TAB | = lv_x_ehs_reg_tab | |
| X_FLG_ERROR | = lv_x_flg_error | |
| X_EHS_SLIMIT_TAB | = lv_x_ehs_slimit_tab | |
| X_EHS_COMP_TAB | = lv_x_ehs_comp_tab | |
| X_EHS_ADD_TAB | = lv_x_ehs_add_tab | |
| X_EHS_REG_DEL_TAB | = lv_x_ehs_reg_del_tab | |
| X_EHS_SLIMIT_DEL_TAB | = lv_x_ehs_slimit_del_tab | |
| X_EHS_COMP_DEL_TAB | = lv_x_ehs_comp_del_tab | |
| X_EHS_ADD_DEL_TAB | = lv_x_ehs_add_del_tab | |
| X_ERROR_TAB | = lv_x_error_tab | |
| TABLES | ||
| I_SUBID_TAB | = lt_i_subid_tab | |
| . " CBRC_EHS_FILL_EHS_EXAMPLE1 | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_EHS_FILL_EHS_EXAMPLE1
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 DATUM FROM SY INTO @DATA(ld_i_valfr). | ||||
Search for further information about these or an SAP related objects