Fonction SAP CBIH_LB11_ERH_EPI_SYNCHRONIZE - EHS: User Exit to Match Up Risk Assessment and Exposure Profile

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional information
I_EPID CCIHT_ERH-EPID C 20 Agent for matchup
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Execute user exit in test mode

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: At least one error occurred
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Indicator: At least one lock error occurred
E_FLG_WARNING ESP1_BOOLEAN 0 Indicator: At least one warning occurred
E_RECORDS_CHANGED SYST-TABIX I 4 Number of matched up entries without error

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_WAH_REC CIHWA_WAHAPI_WA_TYPE 0 Work area for matchup

Paramètre Reférence Long. Facultatif Description
E_EPI_TAB CIHWA_EPIAPI_TAB_TYPE 0 X Matched up exposure profile entries
E_ERH_TAB CIHEX_ERHAPI_TAB_TYPE 0 X Matched up risk assessment headers

Exception Description
INTERNAL_ERROR Internal system error
NO_OBJECT_SPECIFIED No work area or profile entry specified

Functionality
This function module serves as a template for the matchup functionbetween exposure profile entries and risk assessments. The matchup isalways based on a "work area - agent" tuple.
In addition, the function module is also intended as a referencefunction module for defining the interface of the user exit categoryERH_SYNC.

Preconditions
It is assumed that the user exit name ERH_SYNC exists in the IMGactivity Manage User Exits in Customizing for Basic Data andTools and a function module is assigned to it.

Description
User Exit Calls (Cannot Be Changed by Customer)
The function can be called in the following dialog boxes:

  • Edit Work Area: Exposure Profile

  • All "work area - agent" tuples of the selected exposure profile entriesare passed to the function module. Double entries owing to differentoperation statuses are reduced before the function module is called.
    • Edit Risk Assessment: Hit List

    • All "work area - agent" tuples of the selected risk assessment entriesare passed to the function module. Double tuples are reduced before thecall.
      • Edit Risk Assessment: Assessment (Table Control)

      • The "work area - agent" tuple of the displayed assessments is passed tothe function module.
        User Exit Procedure (Can Be Adapted)
        In the example, exposure profile and risk assessment are matched up asfollows:
        • All existing risk assessment entries are read for each "work area -
        • agent" tuple. The system checks for each risk assessment entry whether acorresponding exposure profile entry exists (work area, agent, andoperation status must match).
          • If a corresponding exposure profile entry exists, an update is run on
          • this entry and the rating, origin, and description fields of theexposure profile entry are updated.
            • If no corresponding exposure profile entry exists, a new exposure
            • profile entry is created and the rating, origin, and description fieldsare filled with the data from the corresponding risk assessment entry.
              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

917336Changes to historical exposure profile implicitly possible