Ansicht
Dokumentation

CBIH_IA30_IAL_CREATE - EHS: Create Incident/Accident Log Data

CBIH_IA30_IAL_CREATE - EHS: Create Incident/Accident Log Data

General Material Data   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 incident/accident log. It is used to create incident/accident log data.

Dependencies between new incident/accident log data items to be created cannot yet be represented via foreign keys. The new data does not yet have keys and therefore it cannot be referenced even by foreign keys, so the incident/accident log data is passed to the function in a complex structure. In this structure, the dependencies exist implicitly and must not therefore be expressed explicitly using (foreign) keys.

Note

You will find a description of the complex structure used (CIHAL_IAL_API_TAB_TYPE) in the type group CIHAL.

Which incident/accident log entries are created?

To create a new incident/accident log entry, the required entry fields of the header data (HEAD) must be filled in the X_API_IAL_TAB parameter.

Which data is created for an incident/accident log entry?

Which incident/accident log data is to be created is specified by the different I_FLG_XXX indicators, where an indicator corresponds to one or more tables or structures within the complex structure of X_API_IAL_TAB as follows:
                                      | Corresponding
Indicator                             | table parameter
--------------------------------------|-------------------------
I_FLG_HEADER                          | HEAD
  |                                   |
  |--I_FLG_RESULT_LTXT                | RESULT_LTXT
 |                                   |
  |--I_FLG_ACTION                     | ACTION_TAB-HEAD
  |      |                            |
  |      |--I_FLG_ACTION_LTXT         | ACTION_TAB-LONGTEXT
 |                                   |
  |--I_FLG_INVPERS                    | INVPERSONS_TAB-HEAD
  |      |                            |
  |      |--I_FLG_INVPERS_LTXT        | INVPERSONS_TAB-LONGTEXT
 |      |                            |
  |      |--I_FLG_AFFPERS             | ~-AFFPERSDATA_TAB-HEAD
 |             |                     |
  |             |--I_FLG_AFF_INTLTXT  | ~-AFFPERSDATA_TAB-INT_LTEXT
  |             |--I_FLG_AFF_EXTLTXT  | ~-AFFPERSDATA_TAB-EXT_LTEXT
  |             |--I_FLG_INJURIES     | ~-AFFPERSDATA_TAB-INJURIES_TAB
  |             |--I_FLG_IP_VAL       | ~-AFFPERSDATA_TAB-IP_VAL_TAB
  |                                   |
  |--I_FLG_IA_VAL                     | IA_VAL_TAB-VALUATION
  |                                   | IA_VAL_TAB-PROPDATA
  |--I_FLG_FREETEXT                   | DFT_TAB-HEAD
         |                            |
         |----I_FLG_FREETEXT_LTXT     | DFT_TAB-LONGTEXT

If an indicator is set to "TRUE," the respective data is created in the database if the respective data record does not yet have an internal key (RECN).

Further information

  • Type group ESPAP
  • Type group CIHAL




Parameters

E_FLG_ERROR
E_FLG_LOCKFAIL
E_FLG_WARNING
I_ADDINF
I_FLG_ABSENCES
I_FLG_ACTION
I_FLG_ACTION_LTXT
I_FLG_AFFPERS
I_FLG_AFF_EXTLTXT
I_FLG_AFF_INTLTXT
I_FLG_CHECK_CLVALUE
I_FLG_CHECK_ONLY
I_FLG_FILL_EXTERROR
I_FLG_FREETEXT
I_FLG_FREETEXT_LTXT
I_FLG_HEADER
I_FLG_IA_VAL
I_FLG_INJURIES
I_FLG_INVPERS
I_FLG_INVPERS_LTXT
I_FLG_IP_VAL
I_FLG_RESTRICTIONS
I_FLG_RESULT_LTXT
I_FLG_ROOTCAUSE
X_API_IAL_TAB

Exceptions

CONVMODE_SET_FAILED
INTERNAL_ERROR
NO_OBJECT_SPECIFIED
PARAMETER_ERROR

Function Group

CBIH_IA30

BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 9316 Date: 20240523 Time: 092426     sap01-206 ( 80 ms )