Fonction SAP CBIH_ER30_ER_CREATE - EHS: Create Risk Assessments

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional Information on Object
I_FLG_ACTION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create safety measures
I_FLG_ACTION_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create long text for safety measures
I_FLG_ANALYSIS ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create analyses
I_FLG_ANALYSIS_DETAILS ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create analysis detail data
I_FLG_CHECK_CLVALUE ESP1_BOOLEAN 0 ESP1_TRUE X
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Check data only
I_FLG_EXP_QTY_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create long text for amounts
I_FLG_EXP_QUANTITY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create amounts
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Fill extended error output
I_FLG_FREETEXT ESP1_BOOLEAN 0 ESP1_FALSE X
I_FLG_FREETEXT_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X
I_FLG_HAS_VAL ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create value assignment instance
I_FLG_HEADER ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create risk assessment header
I_FLG_RESULT_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create result long texts

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error creating a record
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Indicator: Lock on at least one record failed
E_FLG_WARNING ESP1_BOOLEAN 0 Indicator: Warning creating a record

Paramètre Reférence Long. Facultatif Description
X_API_EXPREG_TAB CIHEX_EXPREG_API_TAB_TYPE 0 Agent assignment data

Exception Description
INTERNAL_ERROR Internal Program Error
NO_OBJECT_SPECIFIED No object to be created specified
PARAMETER_ERROR Indicator set but relevant data missing

Functionality
This function module is part of the Application Programming Interface(API) of SAP EH&S. It isused to create riskassessment data.
Dependencies between new risk assessment data items to be createdcannot yet be represented via foreign keys. The new data does not yethave keys and therefore it cannot be referenced even by foreign keys,so the risk assessment data is passed to the function in a complexstructure. In this structure, the dependencies exist implicitly andmust not therefore be expressed explicitly using (foreign) keys.
You will find a description of the complex structure used(CIHEX_EXPREG_API_TAB_TYPE) in the type group CIHEX.

Which risk assessment data is created?
To create a new risk assessment, the required entry fields of the riskassessment header (HEAD) must be filled in the X_API_EXPREG_TABparameter.
If the X_API_EXPREG_TAB parameter does not contain a value, theexception NO_OBJECT_SPECIFIED is raised.

Which data is created for a risk assessment?
Which risk assessment data is to be created is specified by thedifferent I_FLG_xxx indicators, where an indicator correspondsto one or more tables or structures within the complex structure ofX_API_EXPREG_TAB as follows:
NEW-PAGE
| Corresponding
Indicator | table parameter
-----------------------------------|-------------------------
I_FLG_HEADER | HEAD
| |
|--I_FLG_RESULT_LTXT | LTXT_TAB
| |
|--I_FLG_HAS_VAL | VAL_TAB-VALUATION
| | VAL_TAB-PROPDATA
|--I_FLG_EXP_QUANTITY | QUANT_TAB-HEAD
| | |
| |--I_FLG_EXP_QTY_LTXT | QUANT_TAB-LONGTEXT
| |
|--I_FLG_ACTION | ACTION_TAB-HEAD
| | |
| |--I_FLG_ACTION_LTXT | ACTION_TAB-LONGTEXT
| |
|--I_FLG_ANALYSIS | ANALYSIS_TAB-ANML
| | ANALYSIS_TAB-ANNC-HEAD
| | ANALYSIS_TAB-ANNC-LONGTEXT
| | ANALYSIS_TAB-ANQS-QS
| | ANALYSIS_TAB-ANSC-HEAD
| | ANALYSIS_TAB-AM01
| | ANALYSIS_TAB-AM02
| | ANALYSIS_TAB-AM03
| | ANALYSIS_TAB-AM04
| | ANALYSIS_TAB-AM05
| | ANALYSIS_TAB-AM06
| | ANALYSIS_TAB-AM07
| | ANALYSIS_TAB-AM08-HEAD
| | ANALYSIS_TAB-AM09-HEAD
| | ANALYSIS_TAB-AM10-HEAD
| |
|--I_FLG_ANALYSIS_DETAILS | ANALYSIS_TAB-ANQS-QSREL
| ANALYSIS_TAB-ANSC-DETAIL
| ANALYSIS_TAB-AM08-DETAIL
| ANALYSIS_TAB-AM09-DETAIL
| ANALYSIS_TAB-AM10-DETAIL
----------------------------------------------------------------
If an indicator is set to "TRUE," the respective data is created in thedatabase if the respective data record does not yet have an internalkey (RECN).

Further information

  • Type group ESPAP

  • Type group CIH01

  • Type group CIHEX

  • Type group CIHER

  • Type group CIHWA

671068Long text lost when dereferencing patterns