SAP CBRC_EHS_FILL_EHS_COMP Function Module for NOTRANSL: OBSOLETE Lesen der Zusammensetzungen









CBRC_EHS_FILL_EHS_COMP is a standard cbrc ehs fill ehs comp 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: OBSOLETE Lesen der Zusammensetzungen 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 comp FM, simply by entering the name CBRC_EHS_FILL_EHS_COMP 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): Remote-Enabled
Update:



Function CBRC_EHS_FILL_EHS_COMP 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_COMP'"NOTRANSL: OBSOLETE Lesen der Zusammensetzungen
EXPORTING
I_DET_FCT = "
* I_FLG_SUBID_GET = 'X' "
I_VALFR = "Date and Time, Current (Application Server) Date
* I_MATNR_TAB = "Table Type Logical Key

IMPORTING
E_EHS_COMP_TAB = "Table Type for CCRCT_EHS_COMP
E_EHS_COMP_DEL_TAB = "Table Type for CCRCT_EHS_COMP
E_ERROR_TAB = "Table Type Application Log
E_FLG_ERROR = "Truth Value
.



IMPORTING Parameters details for CBRC_EHS_FILL_EHS_COMP

I_DET_FCT -

Data type: CCRCC_DET
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLG_SUBID_GET -

Data type: ESEBOOLE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VALFR - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

I_MATNR_TAB - Table Type Logical Key

Data type: CCRCTT_LKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CBRC_EHS_FILL_EHS_COMP

E_EHS_COMP_TAB - Table Type for CCRCT_EHS_COMP

Data type: CCRCTT_EHS_COMP
Optional: No
Call by Reference: No ( called with pass by value option)

E_EHS_COMP_DEL_TAB - Table Type for CCRCT_EHS_COMP

Data type: CCRCTT_EHS_COMP
Optional: No
Call by Reference: No ( called with pass by value option)

E_ERROR_TAB - Table Type Application Log

Data type: CCRCTT_MSG
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_ERROR - Truth Value

Data type: ESEBOOLE
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CBRC_EHS_FILL_EHS_COMP 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_det_fct  TYPE CCRCC_DET, "   
lv_e_ehs_comp_tab  TYPE CCRCTT_EHS_COMP, "   
lv_i_flg_subid_get  TYPE ESEBOOLE, "   'X'
lv_e_ehs_comp_del_tab  TYPE CCRCTT_EHS_COMP, "   
lv_i_valfr  TYPE SY-DATUM, "   
lv_e_error_tab  TYPE CCRCTT_MSG, "   
lv_e_flg_error  TYPE ESEBOOLE, "   
lv_i_matnr_tab  TYPE CCRCTT_LKEY. "   

  CALL FUNCTION 'CBRC_EHS_FILL_EHS_COMP'  "NOTRANSL: OBSOLETE Lesen der Zusammensetzungen
    EXPORTING
         I_DET_FCT = lv_i_det_fct
         I_FLG_SUBID_GET = lv_i_flg_subid_get
         I_VALFR = lv_i_valfr
         I_MATNR_TAB = lv_i_matnr_tab
    IMPORTING
         E_EHS_COMP_TAB = lv_e_ehs_comp_tab
         E_EHS_COMP_DEL_TAB = lv_e_ehs_comp_del_tab
         E_ERROR_TAB = lv_e_error_tab
         E_FLG_ERROR = lv_e_flg_error
. " CBRC_EHS_FILL_EHS_COMP




ABAP code using 7.40 inline data declarations to call FM CBRC_EHS_FILL_EHS_COMP

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_subid_get) = 'X'.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_valfr).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!