Ansicht
Dokumentation

CBIH_FA30_FAL_READ - EHS: Read Injury/Illness Log Data

CBIH_FA30_FAL_READ - EHS: Read Injury/Illness Log Data

TXBHW - Original Tax Base Amount in Local Currency   rdisp/max_wprun_time - Maximum work process run time  
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 injury/illness log data.

Which injury/illness log entries are read?

To determine the injury/illness log entries for which the SAP system reads the data, the X_API_HEADER_TAB table must contain records in which the record number (RECN) field is filled.

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

Which data is read for the injury/illness log entries?

Which injury/illness log data is read is specified by the different I_FLG_XXX indicators, 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_MEDACT              | E_API_MEDACT_TAB
I_FLG_MEDA_DESC_LTXT      | E_API_MEDA_DESC_LTXT_TAB
I_FLG_MEDA_DESCF_LTXT     | E_API_MEDA_DESCF_LTXT_TAB
I_FLG_INVPERS             | X_API_INVPERSONS_TAB
I_FLG_INVPERS_LTXT        | E_API_INVPERS_LTXT_TAB
I_FLG_AFF_INTLTXT         | E_API_AFF_INTLTXT_TAB
I_FLG_AFF_EXTLTXT         | E_API_AFF_EXTLTXT_TAB
I_FLG_INJURIES            | E_API_INJURIES_TAB
I_FLG_FALVAL              | E_API_FALVAL_INST_TAB
                          | E_API_FALVAL_PROP_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 triggered.

How and for what purpose is the data read?

The scenario I_SCENARIO determines how the injury/illness log data is read: "for display" (secure or nonsecure, meaning with or without shared lock) or "for changing." Within a scenario there is a maximum of three levels for which the read type can be specified.

Each output table is assigned to a level as follows:

Level 1, header level: X_API_HEADER_TAB
Level 2: E_API_MEDACT_TAB
E_API_MEDA_DESC_LTXT_TAB
E_API_MEDA_DESCF_LTXT_TAB
X_API_INVPERSONS_TAB
E_API_INVPERS_LTXT_TAB
E_API_AFF_INTLTXT_TAB
E_API_AFF_EXTLTXT_TAB
E_API_INJURIES_TAB
E_API_FALVAL_INST_TAB
E_API_FALVAL_PROP_TAB

Notes

  • So that the classification system data (I_FLG_FALVAL = TRUE) is placed in the E_API_FALVAL_PROP_TAB table in the order in which it appears in the dialog box, the I_FLG_VAL_SORT indicator must be set to "TRUE." Note that the sort takes additional time and therefore slows performance.

  • So that characteristics without value assignments are also returned in the E_API_FALVAL_PROP_TAB table, the I_FLG_VAL_READ_ALL indicator must be set to "TRUE."

  • 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

  • CONVMODE_SET_FAILED: Language support 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 CIHAL
  • Type group CIH01




Parameters

E_API_AFF_EXTLTXT_TAB
E_API_AFF_INTLTXT_TAB
E_API_FALVAL_INST_TAB
E_API_FALVAL_PROP_TAB
E_API_INJURIES_TAB
E_API_INVPERS_LTXT_TAB
E_API_MEDACT_TAB
E_API_MEDA_DESCF_LTXT_TAB
E_API_MEDA_DESC_LTXT_TAB
E_FLG_ERROR
E_FLG_LOCKFAIL
E_FLG_WARNING
I_ADDINF
I_FLG_AFF_EXTLTXT
I_FLG_AFF_INTLTXT
I_FLG_FALVAL
I_FLG_FILL_EXTERROR
I_FLG_HEADER
I_FLG_INJURIES
I_FLG_INVPERS
I_FLG_INVPERS_LTXT
I_FLG_KEY_DATE_SWITCH_ONLY
I_FLG_MEDACT
I_FLG_MEDA_DESCF_LTXT
I_FLG_MEDA_DESC_LTXT
I_FLG_NO_AUTH_CHECK
I_FLG_RETURN_WHOLE_INTERVAL
I_FLG_VAL_READ_ALL
I_FLG_VAL_SORT
I_LANGU
I_SCENARIO
I_VALFR
I_VALTO
X_API_HEADER_TAB
X_API_INVPERSONS_TAB

Exceptions

CONVMODE_SET_FAILED
INTERNAL_ERROR
INTERVAL_ACCESS_ERROR
NO_OBJECT_SPECIFIED
PARAMETER_ERROR

Function Group

CBIH_FA30

TXBHW - Original Tax Base Amount in Local Currency   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 8126 Date: 20240523 Time: 093247     sap01-206 ( 81 ms )