CBRC_EHS_FILL_EHS_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name CBRC_EHS_FILL_EHS_DATA into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CBRC_EHS
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'CBRC_EHS_FILL_EHS_DATA' "
EXPORTING
* i_wa_det = " ccrcc_det EHS: Data Determination Modules per Regulation/Scenario
* i_flg_supordinate_reg = SPACE " eseboole
* i_flg_cons_supordinate_sub = SPACE " eseboole
* i_flg_comp_data_check = SPACE " eseboole
* i_subcat = " esesubcat Specification type
* i_flg_chg = " eseboole Truth Value
i_valfr = " sy-datum Date and Time, Current (Application Server) Date
* i_read_interval = " ccrcs_interval Structure for Read Interval
i_map_fct = " funcname Function name
i_reg_tab = " ccrctt_reg Table Type for CCRCS_REG
* i_matnr_sub_tab = " ccrctt_fields Table Type Standard Error
IMPORTING
e_ehs_reg_tab = " ccrctt_ehs_reg Table Type for CCRCT_EHS_REG
e_ehs_slimit_tab = " ccrctt_ehs_slimit Table Type for CCRCT_EHS_SLIMIT
e_ehs_comp_tab = " ccrctt_ehs_comp Table Type for CCRCT_EHS_COMP
e_ehs_add_tab = " ccrctt_ehs_add_data Table Type for CCRCS_EHS_ADD_DATA
e_ehs_reg_del_tab = " ccrctt_ehs_reg Table Type for CCRCT_EHS_REG
e_ehs_slimit_del_tab = " ccrctt_ehs_slimit Table Type for CCRCT_EHS_SLIMIT
e_ehs_comp_del_tab = " ccrctt_ehs_comp Table Type for CCRCT_EHS_COMP
e_ehs_add_del_tab = " ccrctt_ehs_add_data Table Type for CCRCS_EHS_ADD_DATA
e_error_tab = " ccrctt_msg Table Type Application Log
e_flg_error = " eseboole Truth Value
* TABLES
* i_subid_tab = " rseloption SELECT-OPTIONS Table
. " CBRC_EHS_FILL_EHS_DATA
The ABAP code below is a full code listing to execute function module CBRC_EHS_FILL_EHS_DATA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_ehs_reg_tab | TYPE CCRCTT_EHS_REG , |
| ld_e_ehs_slimit_tab | TYPE CCRCTT_EHS_SLIMIT , |
| ld_e_ehs_comp_tab | TYPE CCRCTT_EHS_COMP , |
| ld_e_ehs_add_tab | TYPE CCRCTT_EHS_ADD_DATA , |
| ld_e_ehs_reg_del_tab | TYPE CCRCTT_EHS_REG , |
| ld_e_ehs_slimit_del_tab | TYPE CCRCTT_EHS_SLIMIT , |
| ld_e_ehs_comp_del_tab | TYPE CCRCTT_EHS_COMP , |
| ld_e_ehs_add_del_tab | TYPE CCRCTT_EHS_ADD_DATA , |
| ld_e_error_tab | TYPE CCRCTT_MSG , |
| ld_e_flg_error | TYPE ESEBOOLE , |
| it_i_subid_tab | TYPE STANDARD TABLE OF RSELOPTION,"TABLES PARAM |
| wa_i_subid_tab | LIKE LINE OF it_i_subid_tab . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| it_i_subid_tab | TYPE STANDARD TABLE OF RSELOPTION , |
| wa_i_subid_tab | LIKE LINE OF it_i_subid_tab, |
| ld_i_wa_det | TYPE CCRCC_DET , |
| ld_e_ehs_reg_tab | TYPE CCRCTT_EHS_REG , |
| ld_e_ehs_slimit_tab | TYPE CCRCTT_EHS_SLIMIT , |
| ld_i_flg_supordinate_reg | TYPE ESEBOOLE , |
| ld_e_ehs_comp_tab | TYPE CCRCTT_EHS_COMP , |
| ld_i_flg_cons_supordinate_sub | TYPE ESEBOOLE , |
| ld_e_ehs_add_tab | TYPE CCRCTT_EHS_ADD_DATA , |
| ld_i_flg_comp_data_check | TYPE ESEBOOLE , |
| ld_e_ehs_reg_del_tab | TYPE CCRCTT_EHS_REG , |
| ld_i_subcat | TYPE ESESUBCAT , |
| ld_e_ehs_slimit_del_tab | TYPE CCRCTT_EHS_SLIMIT , |
| ld_i_flg_chg | TYPE ESEBOOLE , |
| ld_e_ehs_comp_del_tab | TYPE CCRCTT_EHS_COMP , |
| ld_i_valfr | TYPE SY-DATUM , |
| ld_e_ehs_add_del_tab | TYPE CCRCTT_EHS_ADD_DATA , |
| ld_i_read_interval | TYPE CCRCS_INTERVAL , |
| ld_e_error_tab | TYPE CCRCTT_MSG , |
| ld_i_map_fct | TYPE FUNCNAME , |
| ld_e_flg_error | TYPE ESEBOOLE , |
| ld_i_reg_tab | TYPE CCRCTT_REG , |
| ld_i_matnr_sub_tab | TYPE CCRCTT_FIELDS . |
This function module determines the data required for substance volume
tracking and monitoring from the property tree of the substances to be
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CBRC_EHS_FILL_EHS_DATA or its description.