Ansicht
Dokumentation

OHIX_DP_BADI_0070 - BAdI: Control Generation of Destruction Logs for Archiving Subobjects

OHIX_DP_BADI_0070 - BAdI: Control Generation of Destruction Logs for Archiving Subobjects

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used for the destruction of HR master data. You can use this BAdI to change the generation of destruction logs at the archiving subobjects level. This can be necessary if the archiving subobjects of an archiving object are not relevant for a personnel number. No destruction logs are then required for these archiving subobjects for the personnel number in question. You can use this BAdI to exclude the archiving subobjects from the generation of destruction logs.

The BAdI is called in the preprocessing program of an archiving object if all checks for the preprocessing program have been completed and before the destruction logs are written.

The archiving object HR: Family Member/Dependents (HRPA_FMLYM) has all valid subtypes available as archiving subobjects in the configuration BAdI HRPA_B_GET_CONFIG of the archiving object. These subtypes are not relevant for a personnel number. You can use the Business Add-In method (BAdI method) MODIFY_DEST_LOG_ARCH_GRP to delete the relevant archiving subobjects.

  • CT_PERNR_WITH_DUMMY_DATA: Destruction log for personnel numbers with dummy data
The table CT_PERNR_WITH_DUMMY_DATA contains dummy data for personnel numbers that do not have any data to be destroyed. Depending on the archiving object, the archiving subobject can be changed.
  • CREATE_IT0283_FOR_DIFF_ARCHOBJ: Create infotype 0283 for a different archiving object with archiving subobject
You use this BAdI method if you want to generate a destruction log (data record in infotype 0283) for a different archiving object.
Example
Infotype Recurring Payments/Deductions (0014) and infotype Additional Payments (0015) belong to the archiving object HR: Remuneration (HRPA_REMUN) and to the archiving object HR: Garnishment (HRCDEPF). This means that the infotypes 0014 and 0015 can be deleted in parts. Wage types of the infotypes 0014 and 0015 that belong to garnishments can be destroyed using archiving object HRCDEPF. All other wage types of the infotypes 0014 and 0015 can be destroyed using archiving object HRPA_REMUN.
For this, the destruction log for the archiving object HRPA_REMUN must be generated together with the garnishment subtype of the archiving object HRCDEPF.
Implement the BAdI for such a scenario.
  • UPDATE_IT0283_FOR_DIFF_ARCHOBJ: Update infotype 0283 for a different archiving object with archiving subobject
You use this BAdI method if you want to update a destruction log (data record in infotype 0283) for a different archiving object.
Example
If, as described in the example above, you have used method CREATE_IT0283_FOR_DIFF_ARCHOBJ to generate destruction logs in a preprocessing run, the status of this destruction log (Prepared for Data Destruction) must be updated in the write run (Destroyed).
Implement the BAdI for such a scenario.

There is no sample implementation for this BAdI. The BAdI can be used multiple times and is a filter BAdI. The BAdI uses the parameter OBJ_NAME = <name of archiving object> as a filter.

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 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.






General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4504 Date: 20240524 Time: 010336     sap01-206 ( 96 ms )