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 Profile>screen. 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
|