Fonction SAP CBIH_LB33_UE_RATING_COMP - EHS: User Exit: Calculation of Rating from Questionnaire

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional information
I_IOREC CIHER_ANQSIOT_WA_TYPE 0 IO structure for questionnaire
I_RAKPATH CCIHS_RAKPATH u 251 Risk assessment key path

Paramètre Reférence Type Long. Description
E_RATING CCIHS_ANQSIOT-RATING C 3 Rating calculated

Paramètre Reférence Long. Facultatif Description
I_IOTAB_REL CIHER_ANQSRELIOT_TAB_TYPE 0 Relevant questions

Exception Description
INTERNAL_ERROR Serious Error
NOTHING_FOUND No objects found
NO_AUTHORITY No authorization for this action

Functionality
With this function module you can determine therating for an agent in risk assessment in theanalysis method questionnaire.
The function module is also available as a reference function module fordefining the interface of the user exit category ANLS_QSRAT.

Prerequisites

  • The user exit name ANLS_QSRAT must exist in Customizing for
  • Basic Data and Tools under Manage User Exits and afunction module must be assigned to it.
    • The ratings to be used must have been specified in Customizing for
    • Industrial Hygiene and Safety in the activity
      Set Up Analysis Method Questionnaire. Here, therespective agent type, question catalog, catalog group, answer category,and a threshold value must be assigned to each rating.

      Calculating the Rating
      The function module reads the Customizing entries for the selectedquestionnaire and the catalog groups belonging to the respective agent.
      Then the corresponding answers are read. If their answer categorymatches the answer category specified in Customizing for the respectivecatalog group and agent, the rating is calculated.
      The weighting of the respective answer is alsoincluded. If no weighting is specified for an answer, the value 1is set. The weightings are totaled for each catalog group.
      The resulting total is compared with the corresponding Customizing entryfor the threshold value. The next lowestthreshold value represents the rating for the current catalog group. Thevalue is saved in an internal table.
      After all catalog groups have been processed, the rating that describesthe highest risk in each case is displayed.