Fonction SAP CBIH_ER30_ER_READ - EHS: Read Data for Risk Assessment

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: Read safety measures
I_FLG_ACTION_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read safety measure long texts
I_FLG_ANALYSIS ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read analysis methods
I_FLG_EXP_QTY_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read amount long texts
I_FLG_EXP_QUANTITY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read exposure amounts
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read extended error table
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: Read classification system data
I_FLG_HEADER ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read header
I_FLG_KEY_DATE_SWITCH_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change key date and change number only
I_FLG_READ_ALL_CHARACT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read empty value assignments also
I_FLG_RESULT_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read result long texts
I_FLG_RETURN_WHOLE_INTERVAL ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read the entire time interval
I_FLG_SORT_PROP_DATA ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Sort classification system value assignments
I_SCENARIO ESPAP_SCENARIO_TYPE 0 Lock scenario for reading
I_VALFR RCGADDINF-VALDAT D 8 X Lower Time Interval Limit
I_VALTO RCGADDINF-VALDAT D 8 X Upper Time Interval Limit

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

Paramètre Reférence Long. Facultatif Description
E_API_ACTION_LTXT_TAB CIHAC_ACLTAPI_TAB_TYPE 0 X Safety measure long texts
E_API_ACTION_TAB CIHAC_ACHAPI_TAB_TYPE 0 X Safety measures
E_API_ANALYSIS_AD08_TAB CIHEX_AD08API_TAB_TYPE 0 X
E_API_ANALYSIS_AD09_TAB CIHEX_AD09API_TAB_TYPE 0 X
E_API_ANALYSIS_AD10_TAB CIHEX_AD10API_TAB_TYPE 0 X
E_API_ANALYSIS_AM01_TAB CIHEX_AM01API_TAB_TYPE 0 X Customer analysis method 1
E_API_ANALYSIS_AM02_TAB CIHEX_AM02API_TAB_TYPE 0 X Customer analysis method 2
E_API_ANALYSIS_AM03_TAB CIHEX_AM03API_TAB_TYPE 0 X Customer analysis method 3
E_API_ANALYSIS_AM04_TAB CIHEX_AM04API_TAB_TYPE 0 X
E_API_ANALYSIS_AM05_TAB CIHEX_AM05API_TAB_TYPE 0 X
E_API_ANALYSIS_AM06_TAB CIHEX_AM06API_TAB_TYPE 0 X
E_API_ANALYSIS_AM07_TAB CIHEX_AM07API_TAB_TYPE 0 X
E_API_ANALYSIS_AM08_TAB CIHEX_AM08API_TAB_TYPE 0 X
E_API_ANALYSIS_AM09_TAB CIHEX_AM09API_TAB_TYPE 0 X
E_API_ANALYSIS_AM10_TAB CIHEX_AM10API_TAB_TYPE 0 X
E_API_ANALYSIS_ANML_TAB CIHEX_ANMLAPI_TAB_TYPE 0 X Analysis method measured value/reference value
E_API_ANALYSIS_ANNC_TAB CIHEX_ANNCAPI_TAB_TYPE 0 X Analysis method standardized criteria
E_API_ANALYSIS_ANQS_TAB CIHEX_ANQSGENAPI_TAB_TYPE 0 X Analysis method questionnaire
E_API_ANALYSIS_ANSC_TAB CIHEX_ANSCAPI_TAB_TYPE 0 X Analysis method summated rating header
E_API_ANALYSIS_ANSE_TAB CIHEX_ANSEAPI_TAB_TYPE 0 X Analysis method summated rating detail
E_API_ANNC_LTXT_TAB CIHEX_NCLTAPI_TAB_TYPE 0 X Long text for analysis method standardized criteria
E_API_EXP_QTY_LTXT_TAB CIHEX_QTLTAPI_TAB_TYPE 0 X Amounts long texts
E_API_EXP_QUANTITY_TAB CIHEX_ERQTAPI_TAB_TYPE 0 X Exposure amounts
E_API_FREETEXT_LTXT_TAB CIH01_DFTLTAPI_TAB_TYPE 0 X
E_API_FREETEXT_TAB CIH01_DFTAPI_TAB_TYPE 0 X
E_API_HAS_PROPDATA_TAB CIH01_IHPRAPI_TAB_TYPE 0 X Classification system value assignments
E_API_HAS_VAL_TAB CIH01_IHVALAPI_TAB_TYPE 0 X Classification system instances (VA records)
E_API_RESULT_LTXT_TAB CIHEX_IRLTAPI_TAB_TYPE 0 X Result long texts
X_API_HEADER_TAB CIHEX_ERHAPI_TAB_TYPE 0 Header Data

Exception Description
INTERNAL_ERROR Internal system error
INTERVAL_ACCESS_ERROR Access to time intervals failed
NO_OBJECT_SPECIFIED No objects were specified in the header table
PARAMETER_ERROR Indicator set but relevant table missing

Functionality
This function module is part of the Application Programming Interface(API) of the EH&Scomponent Industrial Hygiene and Safety. It is used to read riskassessment data.

Which risk assessments areread?
To determine the risk assessments for which the SAP system reads data,the X_API_HEADER_TAB table must contain records in which therecord number (RECN) field is filled.
If the table X_API_HEADER_TAB does not contain an entry, theexception NO_OBJECT_SPECIFIED is raised.

Which data is read for the risk assessment?
Which risk assessment data is read is specified by the differentindicators I_FLG_XXX, where an indicator corresponds to one ormore output tables as follows:
| Corresponding
Indicator | table parameter
--------------------------|---------------------------
I_FLG_HEADER | X_API_HEADER_TAB
I_FLG_RESULT_LTXT | E_API_RESULT_LTXT_TAB
I_FLG_HAS_VAL | E_API_HAS_VAL_TAB
| E_API_HAS_PROPDATA_TAB
I_FLG_EXP_QUANTITY | E_API_EXP_QUANTITY_TAB
I_FLG_EXP_QTY_LTXT | E_API_EXP_QTY_LTXT_TAB
I_FLG_ACTION | E_API_ACTION_TAB
I_FLG_ACTION_LTXT | E_API_ACTION_LTXT_TAB
I_FLG_ANALYSIS | E_API_ANALYSIS_ANML_TAB
| E_API_ANALYSIS_ANNC_TAB
| E_API_ANALYSIS_ANQS_TAB
| E_API_ANALYSIS_ANSC_TAB
| E_API_ANALYSIS_ANSE_TAB
| E_API_ANALYSIS_AM01_TAB
| E_API_ANALYSIS_AM02_TAB
| E_API_ANALYSIS_AM03_TAB
| E_API_ANALYSIS_AM04_TAB
| E_API_ANALYSIS_AM05_TAB
| E_API_ANALYSIS_AM06_TAB
| E_API_ANALYSIS_AM07_TAB
| E_API_ANALYSIS_AM08_TAB
| E_API_ANALYSIS_AM09_TAB
| E_API_ANALYSIS_AM10_TAB
| E_API_ANALYSIS_AD08_TAB
| E_API_ANALYSIS_AD09_TAB
| E_API_ANALYSIS_AD10_TAB
| E_API_ANNC_LTXT_TAB
--------------------------------------------------------
If an indicator is set to "TRUE," the respective data is placed in thecorresponding output table(s).
If an indicator is set to "TRUE," but no corresponding output table isspecified, the exception PARAMETER_ERROR is raised.

How and for what purpose is the data read?
The scenario I_SCENARIO determines how the risk assessment datais read: "for display" (secure or unsecure, meaning with or without ashared lock) or "for changing."
Within a scenario there is a maximum of two levels for which the readtype can be specified.
Each output table is assigned to one level where level 1 corresponds tothe header of the table X_API_HEADER_TAB and level 2 covers allother detail tables.
INCLUDE EHS_FMODULE_API_INTERVAL_IHS OBJECT DOKU ID TX

Possible Function Module Exceptions:

  • NO_OBJECT_SPECIFIED: No objects were specified for reading

  • PARAMETER_ERROR: Table for specified object missing

  • INTERNAL_ERROR: Internal processing error

  • INTERVAL_ACCESS_ERROR: Interval-related read error
  • Possible Error Indicators

    • E_FLG_LOCKFAIL: Error locking data

    • E_FLG_ERROR: Error reading data

    • E_FLG_WARNING: Warning reading data
    • Further information
      EH&S programming guidelines (API programming chapter)

      • Type group ESPAP

      • Type group CIH01

      • Type group CIHEX

      • Type group CIHER