Fonction SAP CBIH_LB42_UE_SCRAT_COMP - EHS: User Exit: Calculation of Additive Rating

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ANALYSIS CCIHS_ANSCIOT u 250 Summated rating
I_EPTYPE CCIHC_QT06-EPTYPE C 10 X Hazard category

Paramètre Reférence Type Long. Description
E_RATING_SUM CCIHS_ANSCIOT-RATING_SUM C 3 Calculated rating summated rating
E_RATING_WGT CCIHS_ANSCIOT-RATING_WGT C 3 Calculated rating weighted summated rating

Exception Description
INTERNAL_ERROR Serious system error

Functionality
This function module serves as a template for a calculation functionwith which you can determine the additive rating and theweighted additive rating in risk assessment when using theanalysis method summatedrating.
The function module is also available as a reference function module forthe definition of the interface of the user exit category ANLS_SCRAT
.

Preconditions
The following settings must have been made in Customizing:

  • In Customizing for Basic Data and Tools under Manage User
  • Exits, the user exit name ANLS_SCRAT must be entered and afunction module must be assigned to it.
    • The ratings you want to use must have been specified in Customizing for
    • Industrial Hygiene and Safety underSpecify Exposure Ratings. Here:
      The rating category SUC (Summated rating) must have been assignedto each rating.
      A threshold must have been specified for each rating (inpercent).

      Calculating the Rating
      The sum and the weighted sum are formed from theindexes of the individual ratings. The sums arecompared with the threshold specified in Customizing and from this, theadditive rating and the weighted additive rating are determined.
      Note:
      The module's logic determines the ratings when the thresholds areexceeded.