Ansicht
Dokumentation

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

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

General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module serves as a template for the matchup function between exposure profile entries and risk assessments. The matchup is always based on a "work area - agent" tuple.

In addition, the function module is also intended as a reference function module for defining the interface of the user exit category ERH_SYNC.

Requirements

It is assumed that the user exit name ERH_SYNC exists in the IMG activity Manage User Exits in Customizing for Basic Data and Tools 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 entries are passed to the function module. Double entries owing to different operation statuses are reduced before the function module is called.
  • Edit Risk Assessment: Hit List
All "work area - agent" tuples of the selected risk assessment entries are passed to the function module. Double tuples are reduced before the call.
  • Edit Risk Assessment: Assessment (Table Control)
The "work area - agent" tuple of the displayed assessments is passed to the function module.

User Exit Procedure (Can Be Adapted)

In the example, exposure profile and risk assessment are matched up as follows:

  • All existing risk assessment entries are read for each "work area - agent" tuple. The system checks for each risk assessment entry whether a corresponding exposure profile entry exists (work area, agent, and operation 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 the exposure profile entry are updated.
  • If no corresponding exposure profile entry exists, a new exposure profile entry is created and the rating, origin, and description fields are 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 risk assessment tables are evaluated and displayed on the screen. Only when all tables are returned without errors is the result saved.

Further notes





Parameters

E_EPI_TAB
E_ERH_TAB
E_FLG_ERROR
E_FLG_LOCKFAIL
E_FLG_WARNING
E_RECORDS_CHANGED
I_ADDINF
I_EPID
I_FLG_CHECK_ONLY
X_WAH_REC

Exceptions

INTERNAL_ERROR
NO_OBJECT_SPECIFIED

Function Group

CBIH_LB11

BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 3253 Date: 20240523 Time: 102540     sap01-206 ( 52 ms )