Ansicht
Dokumentation

OHIX_DP_BADI_0030 - BAdI: Control Data Processing Lock in Destruction Period

OHIX_DP_BADI_0030 - BAdI: Control Data Processing Lock in Destruction Period

BAL Application Log Documentation   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used for the destruction of HR master data.

The BAdI is called when an infotype data record is processed in the application for HR master data maintenance (PA30) or in the new infotype framework and the processing of the data is locked because the data in this period has already been destroyed.

You can use the BAdI if an infotype is used in various archiving objects. For example, the infotype Absences (2001) is used in the following archiving objects:

  • HRTIM_ABS
  • HRTIM_MAT
  • HRTIM_MIL
  • HRCUSFMLA
  • HRCUSOSHA

The BAdI interface IF_HRARCH_DATA_BLOCKING uses the method GET_RESPONSIBLE_ARCHIVE_OBJECT with the following parameters:

  • IS_CPREL: Infotype that is to be created, changed, or deleted in PA30 or in the new infotype framework
  • IO_RESPONSIBLE_ARCHOBJ_FINDER: Object of the class CL_HRARCH_RESP_ARCHOBJ_FINDER

You can have more than one BAdI implementation for the same filter parameter. The framework uses the class CL_HRARCH_RESP_ARCHOBJ_FINDER to ensure the integrity of multiple implementations.

A reference to this class is transferred to the BAdI method GET_RESPONSIBLE_ARCHIVE_OBJECT. You can use this reference to set the relevant archiving object. Call the method SET_RESPONSIBLE_ARCHIVE_OBJECT by transferring the reference to the method as an import parameter.

Example

The infotype Absences (2001) is used in multiple archiving objects.

A cross-country implementation has been created for the archiving objects HRTIM_ABS, HRTIM_MAT, and HRTIM_MIL:

CASE AINFT

When 0080: io_responsible_archobj_finder->set_responsible_archiving_object (HRTIM_MAT, false)

When 0081: io_responsible_archobj_finder->set_responsible_archiving_object (HRTIM_MIL, false)

When others: io_responsible_archobj_finder->set_responsible_archiving_object (HRTIM_ABS, true)

There is no sample implementation for this BAdI. The BAdI can be used multiple times and is a filter BAdI. The BAdI uses the following parameters as filters:

  • INFTY =
  • MOLGA =

If you create you own implementation, you need to specify the filter values. For a cross-country implementation, you enter only the value for the parameter INFTY.

For more information about the default settings, see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

For information about how to implement BAdIs in the Enhancement Framework, see SAP Library for the 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 in AS ABAP -> ABAP Customer Development -> Enhancement Framework.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3474 Date: 20240523 Time: 234924     sap01-206 ( 60 ms )