Fonction SAP CBIH_IA08_UE_RESTR_AUTH_CHECK - EHS: User Exit - Authorization Check to Read OH Restrictions

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 EHS: Additional Information for Function Module Calls
I_IAL_IOREC CCIHS_IALHIOT u 1156 EHS: IOTAB for Incident/Accident Log (CCIHT_IAL)
I_IPEVA_IOREC CCIHS_IPEVAIOT u 2809 EHS: Inc./Acc. Log - Data for Person Affected (Event)
I_IP_IOREC CCIHS_IPIOT u 490 EHS: IOTAB List of Persons Involved (CCIHT_IP)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_ACTYPE RCGDIALCTR-ACTYPE C 1 Activity Type in the Transaction

Paramètre Reférence Long. Facultatif Description
X_RESTRICTIONS_TAB CCIHS_IPRESTRIOT 591 EHS: Incident/Accident Log - Restrictions for Pers. Affected

Exception Description
NO_AUTHORITY No Authorization

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