Ansicht
Dokumentation

CBIH_ER30_ER_READ - EHS: Read Data for Risk Assessment

CBIH_ER30_ER_READ - EHS: Read Data for Risk Assessment

BAL_S_LOG - Application Log: Log header data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is part of the Application Programming Interface (API) of the EH&S component Industrial Hygiene and Safety. It is used to read risk assessment data.

Which risk assessments are read?

To determine the risk assessments for which the SAP system reads data, the X_API_HEADER_TAB table must contain records in which the record number (RECN) field is filled.

If the table X_API_HEADER_TAB does not contain an entry, the exception NO_OBJECT_SPECIFIED is raised.

Which data is read for the risk assessment?

Which risk assessment data is read is specified by the different indicators I_FLG_XXX, where an indicator corresponds to one or more 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 the corresponding output table(s).

If an indicator is set to "TRUE," but no corresponding output table is specified, the exception PARAMETER_ERROR is raised.

How and for what purpose is the data read?

The scenario I_SCENARIO determines how the risk assessment data is read: "for display" (secure or unsecure, meaning with or without a shared lock) or "for changing."

Within a scenario there is a maximum of two levels for which the read type can be specified.

Each output table is assigned to one level where level 1 corresponds to the header of the table X_API_HEADER_TAB and level 2 covers all other detail tables.

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

  • Type group ESPAP
  • Type group CIH01
  • Type group CIHEX
  • Type group CIHER




Parameters

E_API_ACTION_LTXT_TAB
E_API_ACTION_TAB
E_API_ANALYSIS_AD08_TAB
E_API_ANALYSIS_AD09_TAB
E_API_ANALYSIS_AD10_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_ANML_TAB
E_API_ANALYSIS_ANNC_TAB
E_API_ANALYSIS_ANQS_TAB
E_API_ANALYSIS_ANSC_TAB
E_API_ANALYSIS_ANSE_TAB
E_API_ANNC_LTXT_TAB
E_API_EXP_QTY_LTXT_TAB
E_API_EXP_QUANTITY_TAB
E_API_FREETEXT_LTXT_TAB
E_API_FREETEXT_TAB
E_API_HAS_PROPDATA_TAB
E_API_HAS_VAL_TAB
E_API_RESULT_LTXT_TAB
E_FLG_ERROR
E_FLG_LOCKFAIL
E_FLG_WARNING
I_ADDINF
I_FLG_ACTION
I_FLG_ACTION_LTXT
I_FLG_ANALYSIS
I_FLG_EXP_QTY_LTXT
I_FLG_EXP_QUANTITY
I_FLG_FILL_EXTERROR
I_FLG_FREETEXT
I_FLG_FREETEXT_LTXT
I_FLG_HAS_VAL
I_FLG_HEADER
I_FLG_KEY_DATE_SWITCH_ONLY
I_FLG_READ_ALL_CHARACT
I_FLG_RESULT_LTXT
I_FLG_RETURN_WHOLE_INTERVAL
I_FLG_SORT_PROP_DATA
I_SCENARIO
I_VALFR
I_VALTO
X_API_HEADER_TAB

Exceptions

INTERNAL_ERROR
INTERVAL_ACCESS_ERROR
NO_OBJECT_SPECIFIED
PARAMETER_ERROR

Function Group

CBIH_ER30

CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 11149 Date: 20240523 Time: 091307     sap01-206 ( 83 ms )