Fonction SAP CBIH_ER30_ER_UPDATE - EHS: Change Risk Assessment Data

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: Change safety measures
I_FLG_ACTION_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change SAPscript long text for safety measures
I_FLG_ANALYSIS ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change analyses
I_FLG_CHECK_CLVALUE ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Check?
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Only perform checks
I_FLG_EXP_QTY_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change amount long texts
I_FLG_EXP_QUANTITY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change amount data
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: 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: Change value assignment instances
I_FLG_HEADER ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change header data for exposure log entry
I_FLG_PHRASECHECK_OFF ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Phrase check deactivated
I_FLG_RESULT_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change result long texts

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

Paramètre Reférence Long. Facultatif Description
X_API_ACTION_LTXT_TAB CIHAC_ACLTAPI_TAB_TYPE 0 X Long text for safety measures
X_API_ACTION_TAB CIHAC_ACHAPI_TAB_TYPE 0 X Safety measures
X_API_ANALYSIS_AD08_TAB CIHEX_AD08API_TAB_TYPE 0 X
X_API_ANALYSIS_AD09_TAB CIHEX_AD09API_TAB_TYPE 0 X
X_API_ANALYSIS_AD10_TAB CIHEX_AD10API_TAB_TYPE 0 X
X_API_ANALYSIS_AM01_TAB CIHEX_AM01API_TAB_TYPE 0 X Customer analysis method AM01
X_API_ANALYSIS_AM02_TAB CIHEX_AM02API_TAB_TYPE 0 X Customer analysis method AM02
X_API_ANALYSIS_AM03_TAB CIHEX_AM03API_TAB_TYPE 0 X Customer analysis method AM03
X_API_ANALYSIS_AM04_TAB CIHEX_AM04API_TAB_TYPE 0 X
X_API_ANALYSIS_AM05_TAB CIHEX_AM05API_TAB_TYPE 0 X
X_API_ANALYSIS_AM06_TAB CIHEX_AM06API_TAB_TYPE 0 X
X_API_ANALYSIS_AM07_TAB CIHEX_AM07API_TAB_TYPE 0 X
X_API_ANALYSIS_AM08_TAB CIHEX_AM08API_TAB_TYPE 0 X
X_API_ANALYSIS_AM09_TAB CIHEX_AM09API_TAB_TYPE 0 X
X_API_ANALYSIS_AM10_TAB CIHEX_AM10API_TAB_TYPE 0 X
X_API_ANALYSIS_ANML_TAB CIHEX_ANMLAPI_TAB_TYPE 0 X Comparison measured value-reference value
X_API_ANALYSIS_ANNC_TAB CIHEX_ANNCAPI_TAB_TYPE 0 X Standardized criteria
X_API_ANALYSIS_ANQS_TAB CIHEX_ANQSGENAPI_TAB_TYPE 0 X Questionnaire
X_API_ANALYSIS_ANSC_TAB CIHEX_ANSCAPI_TAB_TYPE 0 X Summated rating header
X_API_ANALYSIS_ANSE_TAB CIHEX_ANSEAPI_TAB_TYPE 0 X Summated rating detail
X_API_ANNC_LTXT_TAB CIHEX_NCLTAPI_TAB_TYPE 0 X Standardized criteria long texts
X_API_FREETEXT_LTXT_TAB CIH01_DFTLTAPI_TAB_TYPE 0 X
X_API_FREETEXT_TAB CIH01_DFTAPI_TAB_TYPE 0 X
X_API_HAS_PROPDATA_TAB CIH01_IHPRAPI_TAB_TYPE 0 X Value assignment data
X_API_HAS_VAL_TAB CIH01_IHVALAPI_TAB_TYPE 0 X Value assignment instances
X_API_HEADER_TAB CIHEX_ERHAPI_TAB_TYPE 0 Exposure log entry header data
X_API_QUANT_LTXT_TAB CIHEX_QTLTAPI_TAB_TYPE 0 X Amounts long texts
X_API_QUANT_TAB CIHEX_ERQTAPI_TAB_TYPE 0 X Amount data
X_API_RESULT_LTXT_TAB CIHEX_IRLTAPI_TAB_TYPE 0 X Result long texts

Exception Description
INTERNAL_ERROR Internal program error
NO_OBJECT_SPECIFIED Header indicator set but table missing
PARAMETER_ERROR Indicator set but relevant table missing

Functionality
This function module is part of the Application Programming Interface(API) in EH&S forrisk assessment. It isused to update risk assessment data.

Which data is updated?
Only data for which valid keys are specified in the interface tables isupdated. Here, keys are the fields of the structure RCGUKEY andthe corresponding foreign keys (RECNROOT, RECMST...). Theforeign keys required are determined in each case by the correspondingcategory of the data record to be updated. Irrespective of the data tobe updated, the header record for the corresponding risk assessmententry (X_API_HEADER_TAB) must always be additionally specified.

How is the data record to be updated determined?
Which risk assessment data is updated is specified by the differentdifferent I_FLG_xxx indicators. In accordance with theindicators the input tables must additionally be transferred to thecorresponding risk assessment header as follows:
| Corresponding
Indicator | table parameter
-------------------------------|----------------------------
I_FLG_HEADER | X_API_HEADER_TAB
| |
|--I_FLG_RESULT_LTXT | X_API_RESULT_LTXT_TAB
|--I_FLG_HAS_VAL | X_API_HAS_VAL_TAB
| | X_API_HAS_PROPDATA_TAB
|--I_FLG_EXP_QUANTITY | X_API_QUANT_TAB
| | |
| |--I_FLG_EXP_QTY_LTXT | X_API_QUANT_LTXT_TAB
| |
|--I_FLG_ACTION | X_API_ACTION_TAB
| | |
| |--I_FLG_ACTION_LTXT | X_API_ACTION_LTXT_TAB
| |
|--I_FLG_ANALYSIS | X_API_ANALYSIS_ANML_TAB
| X_API_ANALYSIS_ANNC_TAB
| X_API_ANALYSIS_ANQS_TAB
| X_API_ANALYSIS_ANSC_TAB
| X_API_ANALYSIS_ANSE_TAB
| X_API_ANALYSIS_AM01_TAB
| X_API_ANALYSIS_AM02_TAB
| X_API_ANALYSIS_AM03_TAB
| X_API_ANALYSIS_AM04_TAB
| X_API_ANALYSIS_AM05_TAB
| X_API_ANALYSIS_AM06_TAB
| X_API_ANALYSIS_AM07_TAB
| X_API_ANALYSIS_AM08_TAB
| X_API_ANALYSIS_AM09_TAB
| X_API_ANALYSIS_AM10_TAB
| X_API_ANALYSIS_AD08_TAB
| X_API_ANALYSIS_AD09_TAB
| X_API_ANALYSIS_AD10_TAB
| X_API_ANNC_LTXT_TAB
------------------------------------------------------------
The calling program determines the subobjects to be updated by settingthe corresponding indicators to "TRUE" ("TRUE" and "FALSE" are definedas constants in the Include CBUI09). Then the calling programdetermines the corresponding table parameters with the subobjects to beupdated. The data and in particular the keys must be specified fully.

Output
Boolean parameters indicate that errors occurred when the subobjectswere being processed. The following errors can occur:

  • Lock error: E_FLG_LOCKFAIL = TRUE

  • Processing error: E_FLG_ERROR = TRUE

  • Processing warning: E_FLG_WARNING = TRUE
  • Possible exceptions

    • NO_OBJECT_SPECIFIED: No objects were specified for updating

    • PARAMETER_ERROR: Table for specified object missing

    • INTERNAL_ERROR: Internal processing error
    • Further information

      • Type group ESPAP

      • Type group CIH01

      • Type group CIHEX

      • Type group CIHER