SAP Function Modules

CBRC_EHS_FILL_EHS_DATA SAP Function module







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
remote enabled module settings


Pattern for FM CBRC_EHS_FILL_EHS_DATA - CBRC EHS FILL EHS DATA





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

ABAP code example for Function Module 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).

DATA:
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 .

DATA(ld_i_wa_det) = 'Check type of data required'.
DATA(ld_i_flg_supordinate_reg) = 'Check type of data required'.
DATA(ld_i_flg_cons_supordinate_sub) = 'Check type of data required'.
DATA(ld_i_flg_comp_data_check) = 'Check type of data required'.
DATA(ld_i_subcat) = 'Check type of data required'.
DATA(ld_i_flg_chg) = 'Check type of data required'.
DATA(ld_i_valfr) = '20210129'.
DATA(ld_i_read_interval) = '20210129'.
DATA(ld_i_map_fct) = '20210129'.
DATA(ld_i_reg_tab) = '20210129'.
DATA(ld_i_matnr_sub_tab) = '20210129'.

"populate fields of struture and append to itab
append wa_i_subid_tab to it_i_subid_tab. . CALL FUNCTION 'CBRC_EHS_FILL_EHS_DATA' EXPORTING * i_wa_det = ld_i_wa_det * i_flg_supordinate_reg = ld_i_flg_supordinate_reg * i_flg_cons_supordinate_sub = ld_i_flg_cons_supordinate_sub * i_flg_comp_data_check = ld_i_flg_comp_data_check * i_subcat = ld_i_subcat * i_flg_chg = ld_i_flg_chg i_valfr = ld_i_valfr * i_read_interval = ld_i_read_interval i_map_fct = ld_i_map_fct i_reg_tab = ld_i_reg_tab * i_matnr_sub_tab = ld_i_matnr_sub_tab IMPORTING e_ehs_reg_tab = ld_e_ehs_reg_tab e_ehs_slimit_tab = ld_e_ehs_slimit_tab e_ehs_comp_tab = ld_e_ehs_comp_tab e_ehs_add_tab = ld_e_ehs_add_tab e_ehs_reg_del_tab = ld_e_ehs_reg_del_tab e_ehs_slimit_del_tab = ld_e_ehs_slimit_del_tab e_ehs_comp_del_tab = ld_e_ehs_comp_del_tab e_ehs_add_del_tab = ld_e_ehs_add_del_tab e_error_tab = ld_e_error_tab e_flg_error = ld_e_flg_error * TABLES * i_subid_tab = it_i_subid_tab . " CBRC_EHS_FILL_EHS_DATA
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .


"populate fields of struture and append to itab
append wa_i_subid_tab to it_i_subid_tab.
ld_i_wa_det = '20210129'.
ld_i_flg_supordinate_reg = '20210129'.
ld_i_flg_cons_supordinate_sub = '20210129'.
ld_i_flg_comp_data_check = '20210129'.
ld_i_subcat = '20210129'.
ld_i_flg_chg = '20210129'.
ld_i_valfr = '20210129'.
ld_i_read_interval = '20210129'.
ld_i_map_fct = '20210129'.
ld_i_reg_tab = '20210129'.
ld_i_matnr_sub_tab = '20210129'.

SAP Documentation for FM CBRC_EHS_FILL_EHS_DATA


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



Contribute (Add Comments)

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.