Ansicht
Dokumentation

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

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

ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to check the authorization for whether restrictions created in Occupational Health can be displayed in the incident/accident log.

The function module is also available as a reference function module for the definition of the interface of the user exit category IAL_RESCHK.

In the delivered version of the user exit, the authorization objects C_EHSH_PER and C_EHSH_POH are used to check whether the user has authorization to read personal data and restrictions in Occupational Health (OH). If this authorization does not exist, the OH restrictions are deleted from the table of the restrictions that are to be displayed.

Requirements

The user exit name RESTR_CHK must exist in Customizing for Basic Data and Tools for IAL_RESCHK and a function module must be assigned to 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 OH can be deleted from the table.

Errors can be raised directly in the user exit. Errors that occur in the user exit are not handled by the calling program.

Changes to the current data records can only be made in the table X_RESTRICTIONS_TAB and the activity type X_ACTYPE.

The changes in the table X_RESTRICTIONS_TAB only have effects on the display of restrictions at this point and not on the dataset in the database.

Notes





Parameters

I_ADDINF
I_IAL_IOREC
I_IPEVA_IOREC
I_IP_IOREC
X_ACTYPE
X_RESTRICTIONS_TAB

Exceptions

NO_AUTHORITY

Function Group

CBIH_IA08

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2745 Date: 20240523 Time: 092038     sap01-206 ( 50 ms )