SAP CBRC_EHS_TRACK_SUBST_GET Function Module for NOTRANSL: Ermittlung d. zu überwachenden Stoffe aus d. Zusammensetzung









CBRC_EHS_TRACK_SUBST_GET is a standard cbrc ehs track subst get 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: Ermittlung d. zu überwachenden Stoffe aus d. Zusammensetzung 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 track subst get FM, simply by entering the name CBRC_EHS_TRACK_SUBST_GET 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_TRACK_SUBST_GET 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_TRACK_SUBST_GET'"NOTRANSL: Ermittlung d. zu überwachenden Stoffe aus d. Zusammensetzung
EXPORTING
* I_VALDAT = SY-DATUM "Key Date
* I_USEXPAR = "Parameters for User Exits in Generation
* I_FLG_NO_COMP = ' ' "
* I_READ_INTERVAL = "Structure for Read Interval
* I_REG = "Regulatory List
* I_SCEN = "Scenario
* I_DET_FCT = "EHS: Function Modules for Regulation/Scenario
* I_ESTCAT = 'SAP_EHS_1012_003' "Value Assignment Type
I_MATNR_TAB = "Table Type Logical Key
* I_SUB_FILTER_TAB = "SELECT-OPTIONS Table
* I_USEXNAM = "EHS: Language-Independent User Exit Name

IMPORTING
E_MATNR_SUB_TAB = "Table Type Standard Error
E_REG_TAB = "Table Type for TCG81
E_EHS_ADD_TAB = "Table Type for CCRCS_EHS_ADD_DATA
E_ERROR_TAB = "Table Type Application Log
E_FLG_ERROR = "Truth Value
.



IMPORTING Parameters details for CBRC_EHS_TRACK_SUBST_GET

I_VALDAT - Key Date

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

I_USEXPAR - Parameters for User Exits in Generation

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

I_FLG_NO_COMP -

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

I_READ_INTERVAL - Structure for Read Interval

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

I_REG - Regulatory List

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

I_SCEN - Scenario

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

I_DET_FCT - EHS: Function Modules for Regulation/Scenario

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

I_ESTCAT - Value Assignment Type

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

I_MATNR_TAB - Table Type Logical Key

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

I_SUB_FILTER_TAB - SELECT-OPTIONS Table

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

I_USEXNAM - EHS: Language-Independent User Exit Name

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

EXPORTING Parameters details for CBRC_EHS_TRACK_SUBST_GET

E_MATNR_SUB_TAB - Table Type Standard Error

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

E_REG_TAB - Table Type for TCG81

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

E_EHS_ADD_TAB - Table Type for CCRCS_EHS_ADD_DATA

Data type: CCRCTT_EHS_ADD_DATA
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_TRACK_SUBST_GET 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_valdat  TYPE SY-DATUM, "   SY-DATUM
lv_e_matnr_sub_tab  TYPE CCRCTT_FIELDS, "   
lv_i_usexpar  TYPE CCRCC_DET-USEXPAR, "   
lv_i_flg_no_comp  TYPE ESEBOOLE, "   SPACE
lv_e_reg_tab  TYPE CCRCTT_TCG81, "   
lv_i_read_interval  TYPE CCRCS_INTERVAL, "   
lv_i_reg  TYPE ESESLSTID, "   
lv_e_ehs_add_tab  TYPE CCRCTT_EHS_ADD_DATA, "   
lv_i_scen  TYPE CCRCE_SCEN, "   
lv_e_error_tab  TYPE CCRCTT_MSG, "   
lv_i_det_fct  TYPE CCRCC_DET, "   
lv_e_flg_error  TYPE ESEBOOLE, "   
lv_i_estcat  TYPE ESEESTCAT, "   'SAP_EHS_1012_003'
lv_i_matnr_tab  TYPE CCRCTT_LKEY, "   
lv_i_sub_filter_tab  TYPE RSELOPTION, "   
lv_i_usexnam  TYPE CCRCC_DET-USEXNAM. "   

  CALL FUNCTION 'CBRC_EHS_TRACK_SUBST_GET'  "NOTRANSL: Ermittlung d. zu überwachenden Stoffe aus d. Zusammensetzung
    EXPORTING
         I_VALDAT = lv_i_valdat
         I_USEXPAR = lv_i_usexpar
         I_FLG_NO_COMP = lv_i_flg_no_comp
         I_READ_INTERVAL = lv_i_read_interval
         I_REG = lv_i_reg
         I_SCEN = lv_i_scen
         I_DET_FCT = lv_i_det_fct
         I_ESTCAT = lv_i_estcat
         I_MATNR_TAB = lv_i_matnr_tab
         I_SUB_FILTER_TAB = lv_i_sub_filter_tab
         I_USEXNAM = lv_i_usexnam
    IMPORTING
         E_MATNR_SUB_TAB = lv_e_matnr_sub_tab
         E_REG_TAB = lv_e_reg_tab
         E_EHS_ADD_TAB = lv_e_ehs_add_tab
         E_ERROR_TAB = lv_e_error_tab
         E_FLG_ERROR = lv_e_flg_error
. " CBRC_EHS_TRACK_SUBST_GET




ABAP code using 7.40 inline data declarations to call FM CBRC_EHS_TRACK_SUBST_GET

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_valdat).
DATA(ld_i_valdat) = SY-DATUM.
 
 
"SELECT single USEXPAR FROM CCRCC_DET INTO @DATA(ld_i_usexpar).
 
DATA(ld_i_flg_no_comp) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_i_estcat) = 'SAP_EHS_1012_003'.
 
 
 
"SELECT single USEXNAM FROM CCRCC_DET INTO @DATA(ld_i_usexnam).
 


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!