Functionality This function module is used to check the authorization for whetherrestrictions created in Occupational Health> can be displayed inthe incident/accident log. The function module is also available as a reference function module forthe definition of the interface of the user exit category IAL_RESCHK. In the delivered version of the user exit, the authorization objectsC_EHSH_PER and C_EHSH_POH are used to check whether the user hasauthorization to read personal data and restrictions in OccupationalHealth> (OH). If this authorization does not exist, the OHrestrictions are deleted from the table of the restrictions that are tobe displayed.Preconditions The user exit name RESTR_CHK must exist in Customizing for BasicData and Tools> for IAL_RESCHK and a function module must be assignedto it.Features The passed parameters and transfer table are divided up as follows:
- X_ACTYPE: Activity type in the transaction. Describes whether you are in
'Edit' ('E') or 'Display' ('D') mode.
- I_IAL_IOREC: Header data for current incident/accident log entry.
- I_IP_IOREC: Data for person involved. In this case, the person involved
is also simultaneously the person affected.
- I_IPEVA_IOREC: Data for person affected.
- I_ADDINF: Additional data such as the key date on which the data is
read.
- X_RESTRICTIONS_TAB: Table with all restrictions for the person affected
from Occupational Health> and Industrial Hygiene and Safety >. The content of this table can be changed. In this way, for example,if authorization for OH data is not available, the restrictions from OHcan be deleted from the table. Errors can be raised directly in the user exit. Errors that occur in theuser exit are not handled by the calling program. Changes to the current data records can only be made in the tableX_RESTRICTIONS_TAB and the activity type X_ACTYPE. The changes in the table X_RESTRICTIONS_TAB only have effects on thedisplay of restrictions at this point and not on the dataset in thedatabase.Notes INCLUDE EHS_CBIH_USER_EXIT_HINT OBJECT DOKU ID TX
|