SAP CBRC_EHS_SVT_POT_REL Function Module for NOTRANSL: EHS: Prüfung auf potentielle SVT Relevanz









CBRC_EHS_SVT_POT_REL is a standard cbrc ehs svt pot rel 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: EHS: Prüfung auf potentielle SVT Relevanz 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 svt pot rel FM, simply by entering the name CBRC_EHS_SVT_POT_REL 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_SVT_POT_REL 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_SVT_POT_REL'"NOTRANSL: EHS: Prüfung auf potentielle SVT Relevanz
EXPORTING
I_COMP_WA = "EHS: Buffer for substance characteristic items
* I_FLG_USAGE_CHECK = 'X' "Truth Value

IMPORTING
E_FLG_POT_SVT_REL = "Truth Value
E_ESTCAT = "Value Assignment Type
.



IMPORTING Parameters details for CBRC_EHS_SVT_POT_REL

I_COMP_WA - EHS: Buffer for substance characteristic items

Data type: RCGVPBUF
Optional: No
Call by Reference: Yes

I_FLG_USAGE_CHECK - Truth Value

Data type: BAPISTDTYP-BOOLEAN
Default: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CBRC_EHS_SVT_POT_REL

E_FLG_POT_SVT_REL - Truth Value

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

E_ESTCAT - Value Assignment Type

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

Copy and paste ABAP code example for CBRC_EHS_SVT_POT_REL 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_comp_wa  TYPE RCGVPBUF, "   
lv_e_flg_pot_svt_rel  TYPE BAPISTDTYP-BOOLEAN, "   
lv_e_estcat  TYPE RCGVHBUF-ESTCAT, "   
lv_i_flg_usage_check  TYPE BAPISTDTYP-BOOLEAN. "   'X'

  CALL FUNCTION 'CBRC_EHS_SVT_POT_REL'  "NOTRANSL: EHS: Prüfung auf potentielle SVT Relevanz
    EXPORTING
         I_COMP_WA = lv_i_comp_wa
         I_FLG_USAGE_CHECK = lv_i_flg_usage_check
    IMPORTING
         E_FLG_POT_SVT_REL = lv_e_flg_pot_svt_rel
         E_ESTCAT = lv_e_estcat
. " CBRC_EHS_SVT_POT_REL




ABAP code using 7.40 inline data declarations to call FM CBRC_EHS_SVT_POT_REL

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 BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_e_flg_pot_svt_rel).
 
"SELECT single ESTCAT FROM RCGVHBUF INTO @DATA(ld_e_estcat).
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_i_flg_usage_check).
DATA(ld_i_flg_usage_check) = 'X'.
 


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!