Fonction SAP CBIH_LB14_IAL_UPD_CRE_CHECK - EHS: User Exit for Enhanced Check at Accident Header Level

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 TRUE: API was called in check mode
I_FLG_CREATE_MODE ESP1_BOOLEAN 0

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_FLG_ERROR ESP1_BOOLEAN 0 TRUE: Errors occurred
X_FLG_WARNING ESP1_BOOLEAN 0 TRUE: Warnings occurred

Paramètre Reférence Long. Facultatif Description
E_ERROR_TAB CCIHS_EXTERROR 127 Error message table
I_API_IALHEAD_TAB CIHAL_IALHAPI_TAB_TYPE 0 Accident header data table

Exception Description
INTERNAL_ERROR Internal system error

Functionality
With this function you can run enhanced checks when you create orchange an incident/accident log entry.
You can check:

  • Whether a work area is specified (required entry field)

  • Whether a log entry already exists with the same work area, the same
  • plant, and the same event date (redundancy check)
    If an error is found, it is written to an error table. This error tableis exported by the function module.

    Notes
    If you want to use the check, you must remove the commenting from thesource text.
    INCLUDE EHS_27B_USER_EXIT_HINT OBJECT DOKU ID TX
    If you use your own function module, you can, for example, set updifferent checks for creating and changing by using the importparameter I_FLG_CREATE_MODE.