Fonction SAP CBIH_LB11_ERH_CREATE_FROM_EPI - EHS: Create Risk Assessments from Exposure Profile

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional information
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0
E_FLG_LOCKFAIL ESP1_BOOLEAN 0
E_FLG_WARNING ESP1_BOOLEAN 0
E_RECORDS_CREATED SYST-TABIX I 4

Paramètre Reférence Long. Facultatif Description
E_ERH_TAB CIHEX_ERHAPI_TAB_TYPE 0 X Risk assessment headers created
X_EPI_TAB CIHWA_EPIAPI_TAB_TYPE 0
X_WAH_TAB CIHWA_WAHAPI_TAB_TYPE 0

Exception Description
INTERNAL_ERROR Internal system error
NO_OBJECT_SPECIFIED

Functionality
This function module serves as a template for the function CreateRisk Assessments in theexposure profile.
In addition, the function module is also intended as a referencefunction module for defining the interface of the user exit categoryERH_CREATE.

Preconditions
It is assumed that the user exit name ERH_CREATE exists in theIMG activity Manage User Exits in Customizing for Basic Dataand Tools and a function module is assigned to it.

Description
User Exit Call in Exposure Profile (Cannot Be Changed by Customer)

The function is called from the Edit Work Area: Exposure Profilescreen. All selected exposure profile entries and the header record ofthe corresponding work area are passed to the function module.
User Exit Procedure (Can Be Adapted)
Risk assessments are created in the example as follows:

  • The system checks whether a corresponding header record exists for each
  • combination of work area, agent, and operation status.
    • If no header record exists, it is created with the initial status
    • Created and the validity period of the current version of thework area.
      Error Handling After Execution (Cannot Be Changed by Customer)
      The errors returned in the work area, exposure profile, and riskassessment tables are evaluated and displayed on the screen. Only whenall tables are returned without errors is the result saved.

      Further_hints
      INCLUDE EHS_CBIH_USER_EXIT_HINT OBJECT DOKU ID TX