Ansicht
Dokumentation

HRPAD00AUTH_BLOCK - BAdI: Block Personnel Numbers in Authorization Check

HRPAD00AUTH_BLOCK - BAdI: Block Personnel Numbers in Authorization Check

Fill RESBD Structure from EBP Component Structure   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

In the component Personnel Administration (PA-PA), this Business Add-In (BAdI) is used for the authorization check for access to personal data. Users only have access to this kind of data if they have the corresponding direct or structural authorizations. However, if this data is no longer required, it must be locked for users. You can use this BAdI for this purpose.

The Data Protection Act stipulates that employee data must be blocked six months after an employee has left the company. Only users with special authorizations are then still able to access this blocked data.

If employee data is to be blocked at personnel number level for a user, you should implement the BAdI HRPAD00AUTH_BLOCK.

If the BAdI is active, it is always called when standard authorization checks are performed. Such authorization checks are necessary in the following situations, for example:

  • When executing transactions that you can use to display or change employee data (such as transaction PA30 or PPOME)
  • For input helps for personnel numbers
  • For HR reports

If a personnel number is not blocked, all HR authorization checks are performed.

The BAdI method CHECK_PERNR_IS_BLOCKED can only be executed for employees with transaction class A (master data and time data).

The new concept for blocking personnel numbers must also be activated using the T77S0 switch AUTSW BLOCK (HR: Blocking personnel numbers for certain country/region).

For more information about the standard settings (filters, single use, or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder (transaction SE18).

A default implementation is provided in class CL_DEF_IM_HRPAD00AUTH_BLOCK. This is executed if no other implementation is activated. If necessary, you can copy the implementation and adjust it to suit your requirements.

Documentation for the BAdI methods:

For information about how to implement BAdIs in the Enhancement Framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View -> Application Server -> Application Server ABAP -> Application Development on AS ABAP -> Customer Development -> Enhancement Framework.






PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3182 Date: 20240523 Time: 215354     sap01-206 ( 52 ms )