Fonction SAP CBIH_LB14_IAREPORTFLG_COMPUTE - EHS: User Exit to Determine Reportable Accident Indicator

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional Information
I_IALHEAD_WA CIHAL_IALHAPI_WA_TYPE 0 Header data of incident/accident log entry
I_REFOBJ CCIHT_IHVA-REFOBJ C 3 ' ' X Reference Object

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_ADDITIONAL_PARAMS 0 X Additional parameters

Paramètre Reférence Long. Facultatif Description
I_API_ABSENCES_TAB CCIHY_IPABSSAPI 321 X Multiple Absences
I_IPHEAD_TAB CIHAL_IPAPI_TAB_TYPE 0 Persons Involved
X_AFFPERS_TAB CIHAL_IPEVAAPI_TAB_TYPE 0 Persons affected
X_FAL_AFFPERS_TAB CIHAL_FALHAPI_TAB_TYPE 0 X Person Affected (When Called from Injury/Illness Log)

Exception Description
INTERNAL_ERROR System Error

Functionality
Calculates the indicator for reportable accidents(X_AFFPERS_TAB-IAREPORTFLG; or if called from the injury/illness log:X_FAL_AFFPERS_TAB-IAREPORTFLG) in accordance with German law.
When this function module is called from the injury/illness log, thevalue "FAL" must be passed to the parameter I_REFOBJ.
The indicator is only set. If it is already set at the time ofthe calculation (for example, manually or by a previous calculation), itis not deactivated again. The check is based on the German industrialsafety law (paragraph 6 section 2 ArbSchG), which states that accidentsare reportable if an employee is unfit for work for more than threedays. These include any subsequent lost days. The subsequent lost daysare taken from the Time Management (PT) component. Fatalaccidents are also reportable.

Preconditions
The prerequisite is that in Customizing for Basic Data and Tools,the user exit category IAL_REPFLG has been created underManage User Exits and assigned to a function module.
INCLUDE EHS_CBIH_USER_EXIT_HINT OBJECT DOKU ID TX

Further_hints
This function module is an example of a user exit. You can use it as atemplate for your own function modules. You must not change theparameters of the interface. You should not change the function moduleitself, but only the copy.